_ide_helper.php 589 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246
  1. <?php
  2. // @formatter:off
  3. /**
  4. * A helper file for Laravel 5, to provide autocomplete information to your IDE
  5. * Generated for Laravel 5.6.39 on 2019-06-09 16:33:20.
  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 the application is 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 the application is 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 = array(), $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 = array())
  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 = array())
  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. * Get the current application locale.
  725. *
  726. * @return string
  727. * @static
  728. */
  729. public static function getLocale()
  730. {
  731. /** @var \Illuminate\Foundation\Application $instance */
  732. return $instance->getLocale();
  733. }
  734. /**
  735. * Set the current application locale.
  736. *
  737. * @param string $locale
  738. * @return void
  739. * @static
  740. */
  741. public static function setLocale($locale)
  742. {
  743. /** @var \Illuminate\Foundation\Application $instance */
  744. $instance->setLocale($locale);
  745. }
  746. /**
  747. * Determine if application locale is the given locale.
  748. *
  749. * @param string $locale
  750. * @return bool
  751. * @static
  752. */
  753. public static function isLocale($locale)
  754. {
  755. /** @var \Illuminate\Foundation\Application $instance */
  756. return $instance->isLocale($locale);
  757. }
  758. /**
  759. * Register the core class aliases in the container.
  760. *
  761. * @return void
  762. * @static
  763. */
  764. public static function registerCoreContainerAliases()
  765. {
  766. /** @var \Illuminate\Foundation\Application $instance */
  767. $instance->registerCoreContainerAliases();
  768. }
  769. /**
  770. * Flush the container of all bindings and resolved instances.
  771. *
  772. * @return void
  773. * @static
  774. */
  775. public static function flush()
  776. {
  777. /** @var \Illuminate\Foundation\Application $instance */
  778. $instance->flush();
  779. }
  780. /**
  781. * Get the application namespace.
  782. *
  783. * @return string
  784. * @throws \RuntimeException
  785. * @static
  786. */
  787. public static function getNamespace()
  788. {
  789. /** @var \Illuminate\Foundation\Application $instance */
  790. return $instance->getNamespace();
  791. }
  792. /**
  793. * Define a contextual binding.
  794. *
  795. * @param string $concrete
  796. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  797. * @static
  798. */
  799. public static function when($concrete)
  800. {
  801. //Method inherited from \Illuminate\Container\Container
  802. /** @var \Illuminate\Foundation\Application $instance */
  803. return $instance->when($concrete);
  804. }
  805. /**
  806. * Returns true if the container can return an entry for the given identifier.
  807. *
  808. * Returns false otherwise.
  809. *
  810. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  811. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  812. *
  813. * @param string $id Identifier of the entry to look for.
  814. * @return bool
  815. * @static
  816. */
  817. public static function has($id)
  818. {
  819. //Method inherited from \Illuminate\Container\Container
  820. /** @var \Illuminate\Foundation\Application $instance */
  821. return $instance->has($id);
  822. }
  823. /**
  824. * Determine if the given abstract type has been resolved.
  825. *
  826. * @param string $abstract
  827. * @return bool
  828. * @static
  829. */
  830. public static function resolved($abstract)
  831. {
  832. //Method inherited from \Illuminate\Container\Container
  833. /** @var \Illuminate\Foundation\Application $instance */
  834. return $instance->resolved($abstract);
  835. }
  836. /**
  837. * Determine if a given type is shared.
  838. *
  839. * @param string $abstract
  840. * @return bool
  841. * @static
  842. */
  843. public static function isShared($abstract)
  844. {
  845. //Method inherited from \Illuminate\Container\Container
  846. /** @var \Illuminate\Foundation\Application $instance */
  847. return $instance->isShared($abstract);
  848. }
  849. /**
  850. * Determine if a given string is an alias.
  851. *
  852. * @param string $name
  853. * @return bool
  854. * @static
  855. */
  856. public static function isAlias($name)
  857. {
  858. //Method inherited from \Illuminate\Container\Container
  859. /** @var \Illuminate\Foundation\Application $instance */
  860. return $instance->isAlias($name);
  861. }
  862. /**
  863. * Register a binding with the container.
  864. *
  865. * @param string $abstract
  866. * @param \Closure|string|null $concrete
  867. * @param bool $shared
  868. * @return void
  869. * @static
  870. */
  871. public static function bind($abstract, $concrete = null, $shared = false)
  872. {
  873. //Method inherited from \Illuminate\Container\Container
  874. /** @var \Illuminate\Foundation\Application $instance */
  875. $instance->bind($abstract, $concrete, $shared);
  876. }
  877. /**
  878. * Determine if the container has a method binding.
  879. *
  880. * @param string $method
  881. * @return bool
  882. * @static
  883. */
  884. public static function hasMethodBinding($method)
  885. {
  886. //Method inherited from \Illuminate\Container\Container
  887. /** @var \Illuminate\Foundation\Application $instance */
  888. return $instance->hasMethodBinding($method);
  889. }
  890. /**
  891. * Bind a callback to resolve with Container::call.
  892. *
  893. * @param array|string $method
  894. * @param \Closure $callback
  895. * @return void
  896. * @static
  897. */
  898. public static function bindMethod($method, $callback)
  899. {
  900. //Method inherited from \Illuminate\Container\Container
  901. /** @var \Illuminate\Foundation\Application $instance */
  902. $instance->bindMethod($method, $callback);
  903. }
  904. /**
  905. * Get the method binding for the given method.
  906. *
  907. * @param string $method
  908. * @param mixed $instance
  909. * @return mixed
  910. * @static
  911. */
  912. public static function callMethodBinding($method, $instance)
  913. {
  914. //Method inherited from \Illuminate\Container\Container
  915. /** @var \Illuminate\Foundation\Application $instance */
  916. return $instance->callMethodBinding($method, $instance);
  917. }
  918. /**
  919. * Add a contextual binding to the container.
  920. *
  921. * @param string $concrete
  922. * @param string $abstract
  923. * @param \Closure|string $implementation
  924. * @return void
  925. * @static
  926. */
  927. public static function addContextualBinding($concrete, $abstract, $implementation)
  928. {
  929. //Method inherited from \Illuminate\Container\Container
  930. /** @var \Illuminate\Foundation\Application $instance */
  931. $instance->addContextualBinding($concrete, $abstract, $implementation);
  932. }
  933. /**
  934. * Register a binding if it hasn't already been registered.
  935. *
  936. * @param string $abstract
  937. * @param \Closure|string|null $concrete
  938. * @param bool $shared
  939. * @return void
  940. * @static
  941. */
  942. public static function bindIf($abstract, $concrete = null, $shared = false)
  943. {
  944. //Method inherited from \Illuminate\Container\Container
  945. /** @var \Illuminate\Foundation\Application $instance */
  946. $instance->bindIf($abstract, $concrete, $shared);
  947. }
  948. /**
  949. * Register a shared binding in the container.
  950. *
  951. * @param string $abstract
  952. * @param \Closure|string|null $concrete
  953. * @return void
  954. * @static
  955. */
  956. public static function singleton($abstract, $concrete = null)
  957. {
  958. //Method inherited from \Illuminate\Container\Container
  959. /** @var \Illuminate\Foundation\Application $instance */
  960. $instance->singleton($abstract, $concrete);
  961. }
  962. /**
  963. * "Extend" an abstract type in the container.
  964. *
  965. * @param string $abstract
  966. * @param \Closure $closure
  967. * @return void
  968. * @throws \InvalidArgumentException
  969. * @static
  970. */
  971. public static function extend($abstract, $closure)
  972. {
  973. //Method inherited from \Illuminate\Container\Container
  974. /** @var \Illuminate\Foundation\Application $instance */
  975. $instance->extend($abstract, $closure);
  976. }
  977. /**
  978. * Register an existing instance as shared in the container.
  979. *
  980. * @param string $abstract
  981. * @param mixed $instance
  982. * @return mixed
  983. * @static
  984. */
  985. public static function instance($abstract, $instance)
  986. {
  987. //Method inherited from \Illuminate\Container\Container
  988. /** @var \Illuminate\Foundation\Application $instance */
  989. return $instance->instance($abstract, $instance);
  990. }
  991. /**
  992. * Assign a set of tags to a given binding.
  993. *
  994. * @param array|string $abstracts
  995. * @param array|mixed $tags
  996. * @return void
  997. * @static
  998. */
  999. public static function tag($abstracts, $tags)
  1000. {
  1001. //Method inherited from \Illuminate\Container\Container
  1002. /** @var \Illuminate\Foundation\Application $instance */
  1003. $instance->tag($abstracts, $tags);
  1004. }
  1005. /**
  1006. * Resolve all of the bindings for a given tag.
  1007. *
  1008. * @param string $tag
  1009. * @return array
  1010. * @static
  1011. */
  1012. public static function tagged($tag)
  1013. {
  1014. //Method inherited from \Illuminate\Container\Container
  1015. /** @var \Illuminate\Foundation\Application $instance */
  1016. return $instance->tagged($tag);
  1017. }
  1018. /**
  1019. * Alias a type to a different name.
  1020. *
  1021. * @param string $abstract
  1022. * @param string $alias
  1023. * @return void
  1024. * @static
  1025. */
  1026. public static function alias($abstract, $alias)
  1027. {
  1028. //Method inherited from \Illuminate\Container\Container
  1029. /** @var \Illuminate\Foundation\Application $instance */
  1030. $instance->alias($abstract, $alias);
  1031. }
  1032. /**
  1033. * Bind a new callback to an abstract's rebind event.
  1034. *
  1035. * @param string $abstract
  1036. * @param \Closure $callback
  1037. * @return mixed
  1038. * @static
  1039. */
  1040. public static function rebinding($abstract, $callback)
  1041. {
  1042. //Method inherited from \Illuminate\Container\Container
  1043. /** @var \Illuminate\Foundation\Application $instance */
  1044. return $instance->rebinding($abstract, $callback);
  1045. }
  1046. /**
  1047. * Refresh an instance on the given target and method.
  1048. *
  1049. * @param string $abstract
  1050. * @param mixed $target
  1051. * @param string $method
  1052. * @return mixed
  1053. * @static
  1054. */
  1055. public static function refresh($abstract, $target, $method)
  1056. {
  1057. //Method inherited from \Illuminate\Container\Container
  1058. /** @var \Illuminate\Foundation\Application $instance */
  1059. return $instance->refresh($abstract, $target, $method);
  1060. }
  1061. /**
  1062. * Wrap the given closure such that its dependencies will be injected when executed.
  1063. *
  1064. * @param \Closure $callback
  1065. * @param array $parameters
  1066. * @return \Closure
  1067. * @static
  1068. */
  1069. public static function wrap($callback, $parameters = array())
  1070. {
  1071. //Method inherited from \Illuminate\Container\Container
  1072. /** @var \Illuminate\Foundation\Application $instance */
  1073. return $instance->wrap($callback, $parameters);
  1074. }
  1075. /**
  1076. * Call the given Closure / class@method and inject its dependencies.
  1077. *
  1078. * @param callable|string $callback
  1079. * @param array $parameters
  1080. * @param string|null $defaultMethod
  1081. * @return mixed
  1082. * @static
  1083. */
  1084. public static function call($callback, $parameters = array(), $defaultMethod = null)
  1085. {
  1086. //Method inherited from \Illuminate\Container\Container
  1087. /** @var \Illuminate\Foundation\Application $instance */
  1088. return $instance->call($callback, $parameters, $defaultMethod);
  1089. }
  1090. /**
  1091. * Get a closure to resolve the given type from the container.
  1092. *
  1093. * @param string $abstract
  1094. * @return \Closure
  1095. * @static
  1096. */
  1097. public static function factory($abstract)
  1098. {
  1099. //Method inherited from \Illuminate\Container\Container
  1100. /** @var \Illuminate\Foundation\Application $instance */
  1101. return $instance->factory($abstract);
  1102. }
  1103. /**
  1104. * An alias function name for make().
  1105. *
  1106. * @param string $abstract
  1107. * @param array $parameters
  1108. * @return mixed
  1109. * @static
  1110. */
  1111. public static function makeWith($abstract, $parameters = array())
  1112. {
  1113. //Method inherited from \Illuminate\Container\Container
  1114. /** @var \Illuminate\Foundation\Application $instance */
  1115. return $instance->makeWith($abstract, $parameters);
  1116. }
  1117. /**
  1118. * Finds an entry of the container by its identifier and returns it.
  1119. *
  1120. * @param string $id Identifier of the entry to look for.
  1121. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1122. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1123. * @return mixed Entry.
  1124. * @static
  1125. */
  1126. public static function get($id)
  1127. {
  1128. //Method inherited from \Illuminate\Container\Container
  1129. /** @var \Illuminate\Foundation\Application $instance */
  1130. return $instance->get($id);
  1131. }
  1132. /**
  1133. * Instantiate a concrete instance of the given type.
  1134. *
  1135. * @param string $concrete
  1136. * @return mixed
  1137. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1138. * @static
  1139. */
  1140. public static function build($concrete)
  1141. {
  1142. //Method inherited from \Illuminate\Container\Container
  1143. /** @var \Illuminate\Foundation\Application $instance */
  1144. return $instance->build($concrete);
  1145. }
  1146. /**
  1147. * Register a new resolving callback.
  1148. *
  1149. * @param \Closure|string $abstract
  1150. * @param \Closure|null $callback
  1151. * @return void
  1152. * @static
  1153. */
  1154. public static function resolving($abstract, $callback = null)
  1155. {
  1156. //Method inherited from \Illuminate\Container\Container
  1157. /** @var \Illuminate\Foundation\Application $instance */
  1158. $instance->resolving($abstract, $callback);
  1159. }
  1160. /**
  1161. * Register a new after resolving callback for all types.
  1162. *
  1163. * @param \Closure|string $abstract
  1164. * @param \Closure|null $callback
  1165. * @return void
  1166. * @static
  1167. */
  1168. public static function afterResolving($abstract, $callback = null)
  1169. {
  1170. //Method inherited from \Illuminate\Container\Container
  1171. /** @var \Illuminate\Foundation\Application $instance */
  1172. $instance->afterResolving($abstract, $callback);
  1173. }
  1174. /**
  1175. * Get the container's bindings.
  1176. *
  1177. * @return array
  1178. * @static
  1179. */
  1180. public static function getBindings()
  1181. {
  1182. //Method inherited from \Illuminate\Container\Container
  1183. /** @var \Illuminate\Foundation\Application $instance */
  1184. return $instance->getBindings();
  1185. }
  1186. /**
  1187. * Get the alias for an abstract if available.
  1188. *
  1189. * @param string $abstract
  1190. * @return string
  1191. * @throws \LogicException
  1192. * @static
  1193. */
  1194. public static function getAlias($abstract)
  1195. {
  1196. //Method inherited from \Illuminate\Container\Container
  1197. /** @var \Illuminate\Foundation\Application $instance */
  1198. return $instance->getAlias($abstract);
  1199. }
  1200. /**
  1201. * Remove all of the extender callbacks for a given type.
  1202. *
  1203. * @param string $abstract
  1204. * @return void
  1205. * @static
  1206. */
  1207. public static function forgetExtenders($abstract)
  1208. {
  1209. //Method inherited from \Illuminate\Container\Container
  1210. /** @var \Illuminate\Foundation\Application $instance */
  1211. $instance->forgetExtenders($abstract);
  1212. }
  1213. /**
  1214. * Remove a resolved instance from the instance cache.
  1215. *
  1216. * @param string $abstract
  1217. * @return void
  1218. * @static
  1219. */
  1220. public static function forgetInstance($abstract)
  1221. {
  1222. //Method inherited from \Illuminate\Container\Container
  1223. /** @var \Illuminate\Foundation\Application $instance */
  1224. $instance->forgetInstance($abstract);
  1225. }
  1226. /**
  1227. * Clear all of the instances from the container.
  1228. *
  1229. * @return void
  1230. * @static
  1231. */
  1232. public static function forgetInstances()
  1233. {
  1234. //Method inherited from \Illuminate\Container\Container
  1235. /** @var \Illuminate\Foundation\Application $instance */
  1236. $instance->forgetInstances();
  1237. }
  1238. /**
  1239. * Set the globally available instance of the container.
  1240. *
  1241. * @return static
  1242. * @static
  1243. */
  1244. public static function getInstance()
  1245. {
  1246. //Method inherited from \Illuminate\Container\Container
  1247. return \Illuminate\Foundation\Application::getInstance();
  1248. }
  1249. /**
  1250. * Set the shared instance of the container.
  1251. *
  1252. * @param \Illuminate\Contracts\Container\Container|null $container
  1253. * @return \Illuminate\Contracts\Container\Container|static
  1254. * @static
  1255. */
  1256. public static function setInstance($container = null)
  1257. {
  1258. //Method inherited from \Illuminate\Container\Container
  1259. return \Illuminate\Foundation\Application::setInstance($container);
  1260. }
  1261. /**
  1262. * Determine if a given offset exists.
  1263. *
  1264. * @param string $key
  1265. * @return bool
  1266. * @static
  1267. */
  1268. public static function offsetExists($key)
  1269. {
  1270. //Method inherited from \Illuminate\Container\Container
  1271. /** @var \Illuminate\Foundation\Application $instance */
  1272. return $instance->offsetExists($key);
  1273. }
  1274. /**
  1275. * Get the value at a given offset.
  1276. *
  1277. * @param string $key
  1278. * @return mixed
  1279. * @static
  1280. */
  1281. public static function offsetGet($key)
  1282. {
  1283. //Method inherited from \Illuminate\Container\Container
  1284. /** @var \Illuminate\Foundation\Application $instance */
  1285. return $instance->offsetGet($key);
  1286. }
  1287. /**
  1288. * Set the value at a given offset.
  1289. *
  1290. * @param string $key
  1291. * @param mixed $value
  1292. * @return void
  1293. * @static
  1294. */
  1295. public static function offsetSet($key, $value)
  1296. {
  1297. //Method inherited from \Illuminate\Container\Container
  1298. /** @var \Illuminate\Foundation\Application $instance */
  1299. $instance->offsetSet($key, $value);
  1300. }
  1301. /**
  1302. * Unset the value at a given offset.
  1303. *
  1304. * @param string $key
  1305. * @return void
  1306. * @static
  1307. */
  1308. public static function offsetUnset($key)
  1309. {
  1310. //Method inherited from \Illuminate\Container\Container
  1311. /** @var \Illuminate\Foundation\Application $instance */
  1312. $instance->offsetUnset($key);
  1313. }
  1314. }
  1315. /**
  1316. *
  1317. *
  1318. * @see \Illuminate\Contracts\Console\Kernel
  1319. */
  1320. class Artisan {
  1321. /**
  1322. * Run the console application.
  1323. *
  1324. * @param \Symfony\Component\Console\Input\InputInterface $input
  1325. * @param \Symfony\Component\Console\Output\OutputInterface $output
  1326. * @return int
  1327. * @static
  1328. */
  1329. public static function handle($input, $output = null)
  1330. {
  1331. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1332. /** @var \App\Console\Kernel $instance */
  1333. return $instance->handle($input, $output);
  1334. }
  1335. /**
  1336. * Terminate the application.
  1337. *
  1338. * @param \Symfony\Component\Console\Input\InputInterface $input
  1339. * @param int $status
  1340. * @return void
  1341. * @static
  1342. */
  1343. public static function terminate($input, $status)
  1344. {
  1345. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1346. /** @var \App\Console\Kernel $instance */
  1347. $instance->terminate($input, $status);
  1348. }
  1349. /**
  1350. * Register a Closure based command with the application.
  1351. *
  1352. * @param string $signature
  1353. * @param \Closure $callback
  1354. * @return \Illuminate\Foundation\Console\ClosureCommand
  1355. * @static
  1356. */
  1357. public static function command($signature, $callback)
  1358. {
  1359. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1360. /** @var \App\Console\Kernel $instance */
  1361. return $instance->command($signature, $callback);
  1362. }
  1363. /**
  1364. * Register the given command with the console application.
  1365. *
  1366. * @param \Symfony\Component\Console\Command\Command $command
  1367. * @return void
  1368. * @static
  1369. */
  1370. public static function registerCommand($command)
  1371. {
  1372. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1373. /** @var \App\Console\Kernel $instance */
  1374. $instance->registerCommand($command);
  1375. }
  1376. /**
  1377. * Run an Artisan console command by name.
  1378. *
  1379. * @param string $command
  1380. * @param array $parameters
  1381. * @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
  1382. * @return int
  1383. * @static
  1384. */
  1385. public static function call($command, $parameters = array(), $outputBuffer = null)
  1386. {
  1387. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1388. /** @var \App\Console\Kernel $instance */
  1389. return $instance->call($command, $parameters, $outputBuffer);
  1390. }
  1391. /**
  1392. * Queue the given console command.
  1393. *
  1394. * @param string $command
  1395. * @param array $parameters
  1396. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1397. * @static
  1398. */
  1399. public static function queue($command, $parameters = array())
  1400. {
  1401. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1402. /** @var \App\Console\Kernel $instance */
  1403. return $instance->queue($command, $parameters);
  1404. }
  1405. /**
  1406. * Get all of the commands registered with the console.
  1407. *
  1408. * @return array
  1409. * @static
  1410. */
  1411. public static function all()
  1412. {
  1413. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1414. /** @var \App\Console\Kernel $instance */
  1415. return $instance->all();
  1416. }
  1417. /**
  1418. * Get the output for the last run command.
  1419. *
  1420. * @return string
  1421. * @static
  1422. */
  1423. public static function output()
  1424. {
  1425. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1426. /** @var \App\Console\Kernel $instance */
  1427. return $instance->output();
  1428. }
  1429. /**
  1430. * Bootstrap the application for artisan commands.
  1431. *
  1432. * @return void
  1433. * @static
  1434. */
  1435. public static function bootstrap()
  1436. {
  1437. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1438. /** @var \App\Console\Kernel $instance */
  1439. $instance->bootstrap();
  1440. }
  1441. /**
  1442. * Set the Artisan application instance.
  1443. *
  1444. * @param \Illuminate\Console\Application $artisan
  1445. * @return void
  1446. * @static
  1447. */
  1448. public static function setArtisan($artisan)
  1449. {
  1450. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1451. /** @var \App\Console\Kernel $instance */
  1452. $instance->setArtisan($artisan);
  1453. }
  1454. }
  1455. /**
  1456. *
  1457. *
  1458. * @see \Illuminate\Auth\AuthManager
  1459. * @see \Illuminate\Contracts\Auth\Factory
  1460. * @see \Illuminate\Contracts\Auth\Guard
  1461. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1462. */
  1463. class Auth {
  1464. /**
  1465. * Attempt to get the guard from the local cache.
  1466. *
  1467. * @param string $name
  1468. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1469. * @static
  1470. */
  1471. public static function guard($name = null)
  1472. {
  1473. /** @var \Illuminate\Auth\AuthManager $instance */
  1474. return $instance->guard($name);
  1475. }
  1476. /**
  1477. * Create a session based authentication guard.
  1478. *
  1479. * @param string $name
  1480. * @param array $config
  1481. * @return \Illuminate\Auth\SessionGuard
  1482. * @static
  1483. */
  1484. public static function createSessionDriver($name, $config)
  1485. {
  1486. /** @var \Illuminate\Auth\AuthManager $instance */
  1487. return $instance->createSessionDriver($name, $config);
  1488. }
  1489. /**
  1490. * Create a token based authentication guard.
  1491. *
  1492. * @param string $name
  1493. * @param array $config
  1494. * @return \Illuminate\Auth\TokenGuard
  1495. * @static
  1496. */
  1497. public static function createTokenDriver($name, $config)
  1498. {
  1499. /** @var \Illuminate\Auth\AuthManager $instance */
  1500. return $instance->createTokenDriver($name, $config);
  1501. }
  1502. /**
  1503. * Get the default authentication driver name.
  1504. *
  1505. * @return string
  1506. * @static
  1507. */
  1508. public static function getDefaultDriver()
  1509. {
  1510. /** @var \Illuminate\Auth\AuthManager $instance */
  1511. return $instance->getDefaultDriver();
  1512. }
  1513. /**
  1514. * Set the default guard driver the factory should serve.
  1515. *
  1516. * @param string $name
  1517. * @return void
  1518. * @static
  1519. */
  1520. public static function shouldUse($name)
  1521. {
  1522. /** @var \Illuminate\Auth\AuthManager $instance */
  1523. $instance->shouldUse($name);
  1524. }
  1525. /**
  1526. * Set the default authentication driver name.
  1527. *
  1528. * @param string $name
  1529. * @return void
  1530. * @static
  1531. */
  1532. public static function setDefaultDriver($name)
  1533. {
  1534. /** @var \Illuminate\Auth\AuthManager $instance */
  1535. $instance->setDefaultDriver($name);
  1536. }
  1537. /**
  1538. * Register a new callback based request guard.
  1539. *
  1540. * @param string $driver
  1541. * @param callable $callback
  1542. * @return \Illuminate\Auth\AuthManager
  1543. * @static
  1544. */
  1545. public static function viaRequest($driver, $callback)
  1546. {
  1547. /** @var \Illuminate\Auth\AuthManager $instance */
  1548. return $instance->viaRequest($driver, $callback);
  1549. }
  1550. /**
  1551. * Get the user resolver callback.
  1552. *
  1553. * @return \Closure
  1554. * @static
  1555. */
  1556. public static function userResolver()
  1557. {
  1558. /** @var \Illuminate\Auth\AuthManager $instance */
  1559. return $instance->userResolver();
  1560. }
  1561. /**
  1562. * Set the callback to be used to resolve users.
  1563. *
  1564. * @param \Closure $userResolver
  1565. * @return \Illuminate\Auth\AuthManager
  1566. * @static
  1567. */
  1568. public static function resolveUsersUsing($userResolver)
  1569. {
  1570. /** @var \Illuminate\Auth\AuthManager $instance */
  1571. return $instance->resolveUsersUsing($userResolver);
  1572. }
  1573. /**
  1574. * Register a custom driver creator Closure.
  1575. *
  1576. * @param string $driver
  1577. * @param \Closure $callback
  1578. * @return \Illuminate\Auth\AuthManager
  1579. * @static
  1580. */
  1581. public static function extend($driver, $callback)
  1582. {
  1583. /** @var \Illuminate\Auth\AuthManager $instance */
  1584. return $instance->extend($driver, $callback);
  1585. }
  1586. /**
  1587. * Register a custom provider creator Closure.
  1588. *
  1589. * @param string $name
  1590. * @param \Closure $callback
  1591. * @return \Illuminate\Auth\AuthManager
  1592. * @static
  1593. */
  1594. public static function provider($name, $callback)
  1595. {
  1596. /** @var \Illuminate\Auth\AuthManager $instance */
  1597. return $instance->provider($name, $callback);
  1598. }
  1599. /**
  1600. * Create the user provider implementation for the driver.
  1601. *
  1602. * @param string|null $provider
  1603. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1604. * @throws \InvalidArgumentException
  1605. * @static
  1606. */
  1607. public static function createUserProvider($provider = null)
  1608. {
  1609. /** @var \Illuminate\Auth\AuthManager $instance */
  1610. return $instance->createUserProvider($provider);
  1611. }
  1612. /**
  1613. * Get the default user provider name.
  1614. *
  1615. * @return string
  1616. * @static
  1617. */
  1618. public static function getDefaultUserProvider()
  1619. {
  1620. /** @var \Illuminate\Auth\AuthManager $instance */
  1621. return $instance->getDefaultUserProvider();
  1622. }
  1623. /**
  1624. * Get the currently authenticated user.
  1625. *
  1626. * @return \App\Http\Models\User|null
  1627. * @static
  1628. */
  1629. public static function user()
  1630. {
  1631. /** @var \Illuminate\Auth\SessionGuard $instance */
  1632. return $instance->user();
  1633. }
  1634. /**
  1635. * Get the ID for the currently authenticated user.
  1636. *
  1637. * @return int|null
  1638. * @static
  1639. */
  1640. public static function id()
  1641. {
  1642. /** @var \Illuminate\Auth\SessionGuard $instance */
  1643. return $instance->id();
  1644. }
  1645. /**
  1646. * Log a user into the application without sessions or cookies.
  1647. *
  1648. * @param array $credentials
  1649. * @return bool
  1650. * @static
  1651. */
  1652. public static function once($credentials = array())
  1653. {
  1654. /** @var \Illuminate\Auth\SessionGuard $instance */
  1655. return $instance->once($credentials);
  1656. }
  1657. /**
  1658. * Log the given user ID into the application without sessions or cookies.
  1659. *
  1660. * @param mixed $id
  1661. * @return \App\Http\Models\User|false
  1662. * @static
  1663. */
  1664. public static function onceUsingId($id)
  1665. {
  1666. /** @var \Illuminate\Auth\SessionGuard $instance */
  1667. return $instance->onceUsingId($id);
  1668. }
  1669. /**
  1670. * Validate a user's credentials.
  1671. *
  1672. * @param array $credentials
  1673. * @return bool
  1674. * @static
  1675. */
  1676. public static function validate($credentials = array())
  1677. {
  1678. /** @var \Illuminate\Auth\SessionGuard $instance */
  1679. return $instance->validate($credentials);
  1680. }
  1681. /**
  1682. * Attempt to authenticate using HTTP Basic Auth.
  1683. *
  1684. * @param string $field
  1685. * @param array $extraConditions
  1686. * @return \Symfony\Component\HttpFoundation\Response|null
  1687. * @static
  1688. */
  1689. public static function basic($field = 'email', $extraConditions = array())
  1690. {
  1691. /** @var \Illuminate\Auth\SessionGuard $instance */
  1692. return $instance->basic($field, $extraConditions);
  1693. }
  1694. /**
  1695. * Perform a stateless HTTP Basic login attempt.
  1696. *
  1697. * @param string $field
  1698. * @param array $extraConditions
  1699. * @return \Symfony\Component\HttpFoundation\Response|null
  1700. * @static
  1701. */
  1702. public static function onceBasic($field = 'email', $extraConditions = array())
  1703. {
  1704. /** @var \Illuminate\Auth\SessionGuard $instance */
  1705. return $instance->onceBasic($field, $extraConditions);
  1706. }
  1707. /**
  1708. * Attempt to authenticate a user using the given credentials.
  1709. *
  1710. * @param array $credentials
  1711. * @param bool $remember
  1712. * @return bool
  1713. * @static
  1714. */
  1715. public static function attempt($credentials = array(), $remember = false)
  1716. {
  1717. /** @var \Illuminate\Auth\SessionGuard $instance */
  1718. return $instance->attempt($credentials, $remember);
  1719. }
  1720. /**
  1721. * Log the given user ID into the application.
  1722. *
  1723. * @param mixed $id
  1724. * @param bool $remember
  1725. * @return \App\Http\Models\User|false
  1726. * @static
  1727. */
  1728. public static function loginUsingId($id, $remember = false)
  1729. {
  1730. /** @var \Illuminate\Auth\SessionGuard $instance */
  1731. return $instance->loginUsingId($id, $remember);
  1732. }
  1733. /**
  1734. * Log a user into the application.
  1735. *
  1736. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1737. * @param bool $remember
  1738. * @return void
  1739. * @static
  1740. */
  1741. public static function login($user, $remember = false)
  1742. {
  1743. /** @var \Illuminate\Auth\SessionGuard $instance */
  1744. $instance->login($user, $remember);
  1745. }
  1746. /**
  1747. * Log the user out of the application.
  1748. *
  1749. * @return void
  1750. * @static
  1751. */
  1752. public static function logout()
  1753. {
  1754. /** @var \Illuminate\Auth\SessionGuard $instance */
  1755. $instance->logout();
  1756. }
  1757. /**
  1758. * Invalidate other sessions for the current user.
  1759. *
  1760. * The application must be using the AuthenticateSession middleware.
  1761. *
  1762. * @param string $password
  1763. * @param string $attribute
  1764. * @return bool|null
  1765. * @static
  1766. */
  1767. public static function logoutOtherDevices($password, $attribute = 'password')
  1768. {
  1769. /** @var \Illuminate\Auth\SessionGuard $instance */
  1770. return $instance->logoutOtherDevices($password, $attribute);
  1771. }
  1772. /**
  1773. * Register an authentication attempt event listener.
  1774. *
  1775. * @param mixed $callback
  1776. * @return void
  1777. * @static
  1778. */
  1779. public static function attempting($callback)
  1780. {
  1781. /** @var \Illuminate\Auth\SessionGuard $instance */
  1782. $instance->attempting($callback);
  1783. }
  1784. /**
  1785. * Get the last user we attempted to authenticate.
  1786. *
  1787. * @return \App\Http\Models\User
  1788. * @static
  1789. */
  1790. public static function getLastAttempted()
  1791. {
  1792. /** @var \Illuminate\Auth\SessionGuard $instance */
  1793. return $instance->getLastAttempted();
  1794. }
  1795. /**
  1796. * Get a unique identifier for the auth session value.
  1797. *
  1798. * @return string
  1799. * @static
  1800. */
  1801. public static function getName()
  1802. {
  1803. /** @var \Illuminate\Auth\SessionGuard $instance */
  1804. return $instance->getName();
  1805. }
  1806. /**
  1807. * Get the name of the cookie used to store the "recaller".
  1808. *
  1809. * @return string
  1810. * @static
  1811. */
  1812. public static function getRecallerName()
  1813. {
  1814. /** @var \Illuminate\Auth\SessionGuard $instance */
  1815. return $instance->getRecallerName();
  1816. }
  1817. /**
  1818. * Determine if the user was authenticated via "remember me" cookie.
  1819. *
  1820. * @return bool
  1821. * @static
  1822. */
  1823. public static function viaRemember()
  1824. {
  1825. /** @var \Illuminate\Auth\SessionGuard $instance */
  1826. return $instance->viaRemember();
  1827. }
  1828. /**
  1829. * Get the cookie creator instance used by the guard.
  1830. *
  1831. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1832. * @throws \RuntimeException
  1833. * @static
  1834. */
  1835. public static function getCookieJar()
  1836. {
  1837. /** @var \Illuminate\Auth\SessionGuard $instance */
  1838. return $instance->getCookieJar();
  1839. }
  1840. /**
  1841. * Set the cookie creator instance used by the guard.
  1842. *
  1843. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1844. * @return void
  1845. * @static
  1846. */
  1847. public static function setCookieJar($cookie)
  1848. {
  1849. /** @var \Illuminate\Auth\SessionGuard $instance */
  1850. $instance->setCookieJar($cookie);
  1851. }
  1852. /**
  1853. * Get the event dispatcher instance.
  1854. *
  1855. * @return \Illuminate\Contracts\Events\Dispatcher
  1856. * @static
  1857. */
  1858. public static function getDispatcher()
  1859. {
  1860. /** @var \Illuminate\Auth\SessionGuard $instance */
  1861. return $instance->getDispatcher();
  1862. }
  1863. /**
  1864. * Set the event dispatcher instance.
  1865. *
  1866. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1867. * @return void
  1868. * @static
  1869. */
  1870. public static function setDispatcher($events)
  1871. {
  1872. /** @var \Illuminate\Auth\SessionGuard $instance */
  1873. $instance->setDispatcher($events);
  1874. }
  1875. /**
  1876. * Get the session store used by the guard.
  1877. *
  1878. * @return \Illuminate\Contracts\Session\Session
  1879. * @static
  1880. */
  1881. public static function getSession()
  1882. {
  1883. /** @var \Illuminate\Auth\SessionGuard $instance */
  1884. return $instance->getSession();
  1885. }
  1886. /**
  1887. * Return the currently cached user.
  1888. *
  1889. * @return \App\Http\Models\User|null
  1890. * @static
  1891. */
  1892. public static function getUser()
  1893. {
  1894. /** @var \Illuminate\Auth\SessionGuard $instance */
  1895. return $instance->getUser();
  1896. }
  1897. /**
  1898. * Set the current user.
  1899. *
  1900. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1901. * @return \Illuminate\Auth\SessionGuard
  1902. * @static
  1903. */
  1904. public static function setUser($user)
  1905. {
  1906. /** @var \Illuminate\Auth\SessionGuard $instance */
  1907. return $instance->setUser($user);
  1908. }
  1909. /**
  1910. * Get the current request instance.
  1911. *
  1912. * @return \Symfony\Component\HttpFoundation\Request
  1913. * @static
  1914. */
  1915. public static function getRequest()
  1916. {
  1917. /** @var \Illuminate\Auth\SessionGuard $instance */
  1918. return $instance->getRequest();
  1919. }
  1920. /**
  1921. * Set the current request instance.
  1922. *
  1923. * @param \Symfony\Component\HttpFoundation\Request $request
  1924. * @return \Illuminate\Auth\SessionGuard
  1925. * @static
  1926. */
  1927. public static function setRequest($request)
  1928. {
  1929. /** @var \Illuminate\Auth\SessionGuard $instance */
  1930. return $instance->setRequest($request);
  1931. }
  1932. /**
  1933. * Determine if the current user is authenticated.
  1934. *
  1935. * @return \App\Http\Models\User
  1936. * @throws \Illuminate\Auth\AuthenticationException
  1937. * @static
  1938. */
  1939. public static function authenticate()
  1940. {
  1941. /** @var \Illuminate\Auth\SessionGuard $instance */
  1942. return $instance->authenticate();
  1943. }
  1944. /**
  1945. * Determine if the guard has a user instance.
  1946. *
  1947. * @return bool
  1948. * @static
  1949. */
  1950. public static function hasUser()
  1951. {
  1952. /** @var \Illuminate\Auth\SessionGuard $instance */
  1953. return $instance->hasUser();
  1954. }
  1955. /**
  1956. * Determine if the current user is authenticated.
  1957. *
  1958. * @return bool
  1959. * @static
  1960. */
  1961. public static function check()
  1962. {
  1963. /** @var \Illuminate\Auth\SessionGuard $instance */
  1964. return $instance->check();
  1965. }
  1966. /**
  1967. * Determine if the current user is a guest.
  1968. *
  1969. * @return bool
  1970. * @static
  1971. */
  1972. public static function guest()
  1973. {
  1974. /** @var \Illuminate\Auth\SessionGuard $instance */
  1975. return $instance->guest();
  1976. }
  1977. /**
  1978. * Get the user provider used by the guard.
  1979. *
  1980. * @return \Illuminate\Contracts\Auth\UserProvider
  1981. * @static
  1982. */
  1983. public static function getProvider()
  1984. {
  1985. /** @var \Illuminate\Auth\SessionGuard $instance */
  1986. return $instance->getProvider();
  1987. }
  1988. /**
  1989. * Set the user provider used by the guard.
  1990. *
  1991. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  1992. * @return void
  1993. * @static
  1994. */
  1995. public static function setProvider($provider)
  1996. {
  1997. /** @var \Illuminate\Auth\SessionGuard $instance */
  1998. $instance->setProvider($provider);
  1999. }
  2000. /**
  2001. * Register a custom macro.
  2002. *
  2003. * @param string $name
  2004. * @param object|callable $macro
  2005. * @return void
  2006. * @static
  2007. */
  2008. public static function macro($name, $macro)
  2009. {
  2010. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2011. }
  2012. /**
  2013. * Mix another object into the class.
  2014. *
  2015. * @param object $mixin
  2016. * @return void
  2017. * @throws \ReflectionException
  2018. * @static
  2019. */
  2020. public static function mixin($mixin)
  2021. {
  2022. \Illuminate\Auth\SessionGuard::mixin($mixin);
  2023. }
  2024. /**
  2025. * Checks if macro is registered.
  2026. *
  2027. * @param string $name
  2028. * @return bool
  2029. * @static
  2030. */
  2031. public static function hasMacro($name)
  2032. {
  2033. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  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 = null)
  2146. {
  2147. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2148. return $instance->check($name, $parameters);
  2149. }
  2150. /**
  2151. * Register a component alias directive.
  2152. *
  2153. * @param string $path
  2154. * @param string $alias
  2155. * @return void
  2156. * @static
  2157. */
  2158. public static function component($path, $alias = null)
  2159. {
  2160. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2161. $instance->component($path, $alias);
  2162. }
  2163. /**
  2164. * Register an include alias directive.
  2165. *
  2166. * @param string $path
  2167. * @param string $alias
  2168. * @return void
  2169. * @static
  2170. */
  2171. public static function include($path, $alias = null)
  2172. {
  2173. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2174. $instance->include($path, $alias);
  2175. }
  2176. /**
  2177. * Register a handler for custom directives.
  2178. *
  2179. * @param string $name
  2180. * @param callable $handler
  2181. * @return void
  2182. * @static
  2183. */
  2184. public static function directive($name, $handler)
  2185. {
  2186. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2187. $instance->directive($name, $handler);
  2188. }
  2189. /**
  2190. * Get the list of custom directives.
  2191. *
  2192. * @return array
  2193. * @static
  2194. */
  2195. public static function getCustomDirectives()
  2196. {
  2197. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2198. return $instance->getCustomDirectives();
  2199. }
  2200. /**
  2201. * Set the echo format to be used by the compiler.
  2202. *
  2203. * @param string $format
  2204. * @return void
  2205. * @static
  2206. */
  2207. public static function setEchoFormat($format)
  2208. {
  2209. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2210. $instance->setEchoFormat($format);
  2211. }
  2212. /**
  2213. * Set the "echo" format to double encode entities.
  2214. *
  2215. * @return void
  2216. * @static
  2217. */
  2218. public static function withDoubleEncoding()
  2219. {
  2220. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2221. $instance->withDoubleEncoding();
  2222. }
  2223. /**
  2224. * Set the "echo" format to not double encode entities.
  2225. *
  2226. * @return void
  2227. * @static
  2228. */
  2229. public static function withoutDoubleEncoding()
  2230. {
  2231. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2232. $instance->withoutDoubleEncoding();
  2233. }
  2234. /**
  2235. * Get the path to the compiled version of a view.
  2236. *
  2237. * @param string $path
  2238. * @return string
  2239. * @static
  2240. */
  2241. public static function getCompiledPath($path)
  2242. {
  2243. //Method inherited from \Illuminate\View\Compilers\Compiler
  2244. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2245. return $instance->getCompiledPath($path);
  2246. }
  2247. /**
  2248. * Determine if the view at the given path is expired.
  2249. *
  2250. * @param string $path
  2251. * @return bool
  2252. * @static
  2253. */
  2254. public static function isExpired($path)
  2255. {
  2256. //Method inherited from \Illuminate\View\Compilers\Compiler
  2257. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2258. return $instance->isExpired($path);
  2259. }
  2260. /**
  2261. * Compile the default values for the echo statement.
  2262. *
  2263. * @param string $value
  2264. * @return string
  2265. * @static
  2266. */
  2267. public static function compileEchoDefaults($value)
  2268. {
  2269. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2270. return $instance->compileEchoDefaults($value);
  2271. }
  2272. }
  2273. /**
  2274. *
  2275. *
  2276. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback)
  2277. * @method static mixed auth(\Illuminate\Http\Request $request)
  2278. * @see \Illuminate\Contracts\Broadcasting\Factory
  2279. */
  2280. class Broadcast {
  2281. /**
  2282. * Register the routes for handling broadcast authentication and sockets.
  2283. *
  2284. * @param array|null $attributes
  2285. * @return void
  2286. * @static
  2287. */
  2288. public static function routes($attributes = null)
  2289. {
  2290. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2291. $instance->routes($attributes);
  2292. }
  2293. /**
  2294. * Get the socket ID for the given request.
  2295. *
  2296. * @param \Illuminate\Http\Request|null $request
  2297. * @return string|null
  2298. * @static
  2299. */
  2300. public static function socket($request = null)
  2301. {
  2302. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2303. return $instance->socket($request);
  2304. }
  2305. /**
  2306. * Begin broadcasting an event.
  2307. *
  2308. * @param mixed|null $event
  2309. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  2310. * @static
  2311. */
  2312. public static function event($event = null)
  2313. {
  2314. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2315. return $instance->event($event);
  2316. }
  2317. /**
  2318. * Queue the given event for broadcast.
  2319. *
  2320. * @param mixed $event
  2321. * @return void
  2322. * @static
  2323. */
  2324. public static function queue($event)
  2325. {
  2326. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2327. $instance->queue($event);
  2328. }
  2329. /**
  2330. * Get a driver instance.
  2331. *
  2332. * @param string $driver
  2333. * @return mixed
  2334. * @static
  2335. */
  2336. public static function connection($driver = null)
  2337. {
  2338. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2339. return $instance->connection($driver);
  2340. }
  2341. /**
  2342. * Get a driver instance.
  2343. *
  2344. * @param string|null $name
  2345. * @return mixed
  2346. * @static
  2347. */
  2348. public static function driver($name = null)
  2349. {
  2350. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2351. return $instance->driver($name);
  2352. }
  2353. /**
  2354. * Get the default driver name.
  2355. *
  2356. * @return string
  2357. * @static
  2358. */
  2359. public static function getDefaultDriver()
  2360. {
  2361. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2362. return $instance->getDefaultDriver();
  2363. }
  2364. /**
  2365. * Set the default driver name.
  2366. *
  2367. * @param string $name
  2368. * @return void
  2369. * @static
  2370. */
  2371. public static function setDefaultDriver($name)
  2372. {
  2373. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2374. $instance->setDefaultDriver($name);
  2375. }
  2376. /**
  2377. * Register a custom driver creator Closure.
  2378. *
  2379. * @param string $driver
  2380. * @param \Closure $callback
  2381. * @return \Illuminate\Broadcasting\BroadcastManager
  2382. * @static
  2383. */
  2384. public static function extend($driver, $callback)
  2385. {
  2386. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2387. return $instance->extend($driver, $callback);
  2388. }
  2389. }
  2390. /**
  2391. *
  2392. *
  2393. * @see \Illuminate\Contracts\Bus\Dispatcher
  2394. */
  2395. class Bus {
  2396. /**
  2397. * Dispatch a command to its appropriate handler.
  2398. *
  2399. * @param mixed $command
  2400. * @return mixed
  2401. * @static
  2402. */
  2403. public static function dispatch($command)
  2404. {
  2405. /** @var \Illuminate\Bus\Dispatcher $instance */
  2406. return $instance->dispatch($command);
  2407. }
  2408. /**
  2409. * Dispatch a command to its appropriate handler in the current process.
  2410. *
  2411. * @param mixed $command
  2412. * @param mixed $handler
  2413. * @return mixed
  2414. * @static
  2415. */
  2416. public static function dispatchNow($command, $handler = null)
  2417. {
  2418. /** @var \Illuminate\Bus\Dispatcher $instance */
  2419. return $instance->dispatchNow($command, $handler);
  2420. }
  2421. /**
  2422. * Determine if the given command has a handler.
  2423. *
  2424. * @param mixed $command
  2425. * @return bool
  2426. * @static
  2427. */
  2428. public static function hasCommandHandler($command)
  2429. {
  2430. /** @var \Illuminate\Bus\Dispatcher $instance */
  2431. return $instance->hasCommandHandler($command);
  2432. }
  2433. /**
  2434. * Retrieve the handler for a command.
  2435. *
  2436. * @param mixed $command
  2437. * @return bool|mixed
  2438. * @static
  2439. */
  2440. public static function getCommandHandler($command)
  2441. {
  2442. /** @var \Illuminate\Bus\Dispatcher $instance */
  2443. return $instance->getCommandHandler($command);
  2444. }
  2445. /**
  2446. * Dispatch a command to its appropriate handler behind a queue.
  2447. *
  2448. * @param mixed $command
  2449. * @return mixed
  2450. * @throws \RuntimeException
  2451. * @static
  2452. */
  2453. public static function dispatchToQueue($command)
  2454. {
  2455. /** @var \Illuminate\Bus\Dispatcher $instance */
  2456. return $instance->dispatchToQueue($command);
  2457. }
  2458. /**
  2459. * Set the pipes through which commands should be piped before dispatching.
  2460. *
  2461. * @param array $pipes
  2462. * @return \Illuminate\Bus\Dispatcher
  2463. * @static
  2464. */
  2465. public static function pipeThrough($pipes)
  2466. {
  2467. /** @var \Illuminate\Bus\Dispatcher $instance */
  2468. return $instance->pipeThrough($pipes);
  2469. }
  2470. /**
  2471. * Map a command to a handler.
  2472. *
  2473. * @param array $map
  2474. * @return \Illuminate\Bus\Dispatcher
  2475. * @static
  2476. */
  2477. public static function map($map)
  2478. {
  2479. /** @var \Illuminate\Bus\Dispatcher $instance */
  2480. return $instance->map($map);
  2481. }
  2482. /**
  2483. * Assert if a job was dispatched based on a truth-test callback.
  2484. *
  2485. * @param string $command
  2486. * @param callable|int|null $callback
  2487. * @return void
  2488. * @static
  2489. */
  2490. public static function assertDispatched($command, $callback = null)
  2491. {
  2492. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2493. $instance->assertDispatched($command, $callback);
  2494. }
  2495. /**
  2496. * Determine if a job was dispatched based on a truth-test callback.
  2497. *
  2498. * @param string $command
  2499. * @param callable|null $callback
  2500. * @return void
  2501. * @static
  2502. */
  2503. public static function assertNotDispatched($command, $callback = null)
  2504. {
  2505. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2506. $instance->assertNotDispatched($command, $callback);
  2507. }
  2508. /**
  2509. * Get all of the jobs matching a truth-test callback.
  2510. *
  2511. * @param string $command
  2512. * @param callable|null $callback
  2513. * @return \Illuminate\Support\Collection
  2514. * @static
  2515. */
  2516. public static function dispatched($command, $callback = null)
  2517. {
  2518. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2519. return $instance->dispatched($command, $callback);
  2520. }
  2521. /**
  2522. * Determine if there are any stored commands for a given class.
  2523. *
  2524. * @param string $command
  2525. * @return bool
  2526. * @static
  2527. */
  2528. public static function hasDispatched($command)
  2529. {
  2530. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2531. return $instance->hasDispatched($command);
  2532. }
  2533. }
  2534. /**
  2535. *
  2536. *
  2537. * @see \Illuminate\Cache\CacheManager
  2538. * @see \Illuminate\Cache\Repository
  2539. */
  2540. class Cache {
  2541. /**
  2542. * Get a cache store instance by name.
  2543. *
  2544. * @param string|null $name
  2545. * @return \Illuminate\Contracts\Cache\Repository
  2546. * @static
  2547. */
  2548. public static function store($name = null)
  2549. {
  2550. /** @var \Illuminate\Cache\CacheManager $instance */
  2551. return $instance->store($name);
  2552. }
  2553. /**
  2554. * Get a cache driver instance.
  2555. *
  2556. * @param string|null $driver
  2557. * @return mixed
  2558. * @static
  2559. */
  2560. public static function driver($driver = null)
  2561. {
  2562. /** @var \Illuminate\Cache\CacheManager $instance */
  2563. return $instance->driver($driver);
  2564. }
  2565. /**
  2566. * Create a new cache repository with the given implementation.
  2567. *
  2568. * @param \Illuminate\Contracts\Cache\Store $store
  2569. * @return \Illuminate\Cache\Repository
  2570. * @static
  2571. */
  2572. public static function repository($store)
  2573. {
  2574. /** @var \Illuminate\Cache\CacheManager $instance */
  2575. return $instance->repository($store);
  2576. }
  2577. /**
  2578. * Get the default cache driver name.
  2579. *
  2580. * @return string
  2581. * @static
  2582. */
  2583. public static function getDefaultDriver()
  2584. {
  2585. /** @var \Illuminate\Cache\CacheManager $instance */
  2586. return $instance->getDefaultDriver();
  2587. }
  2588. /**
  2589. * Set the default cache driver name.
  2590. *
  2591. * @param string $name
  2592. * @return void
  2593. * @static
  2594. */
  2595. public static function setDefaultDriver($name)
  2596. {
  2597. /** @var \Illuminate\Cache\CacheManager $instance */
  2598. $instance->setDefaultDriver($name);
  2599. }
  2600. /**
  2601. * Register a custom driver creator Closure.
  2602. *
  2603. * @param string $driver
  2604. * @param \Closure $callback
  2605. * @return \Illuminate\Cache\CacheManager
  2606. * @static
  2607. */
  2608. public static function extend($driver, $callback)
  2609. {
  2610. /** @var \Illuminate\Cache\CacheManager $instance */
  2611. return $instance->extend($driver, $callback);
  2612. }
  2613. /**
  2614. * Determine if an item exists in the cache.
  2615. *
  2616. * @param string $key
  2617. * @return bool
  2618. * @static
  2619. */
  2620. public static function has($key)
  2621. {
  2622. /** @var \Illuminate\Cache\Repository $instance */
  2623. return $instance->has($key);
  2624. }
  2625. /**
  2626. * Retrieve an item from the cache by key.
  2627. *
  2628. * @param string $key
  2629. * @param mixed $default
  2630. * @return mixed
  2631. * @static
  2632. */
  2633. public static function get($key, $default = null)
  2634. {
  2635. /** @var \Illuminate\Cache\Repository $instance */
  2636. return $instance->get($key, $default);
  2637. }
  2638. /**
  2639. * Retrieve multiple items from the cache by key.
  2640. *
  2641. * Items not found in the cache will have a null value.
  2642. *
  2643. * @param array $keys
  2644. * @return array
  2645. * @static
  2646. */
  2647. public static function many($keys)
  2648. {
  2649. /** @var \Illuminate\Cache\Repository $instance */
  2650. return $instance->many($keys);
  2651. }
  2652. /**
  2653. * Obtains multiple cache items by their unique keys.
  2654. *
  2655. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  2656. * @param mixed $default Default value to return for keys that do not exist.
  2657. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  2658. * @throws \Psr\SimpleCache\InvalidArgumentException
  2659. * MUST be thrown if $keys is neither an array nor a Traversable,
  2660. * or if any of the $keys are not a legal value.
  2661. * @static
  2662. */
  2663. public static function getMultiple($keys, $default = null)
  2664. {
  2665. /** @var \Illuminate\Cache\Repository $instance */
  2666. return $instance->getMultiple($keys, $default);
  2667. }
  2668. /**
  2669. * Retrieve an item from the cache and delete it.
  2670. *
  2671. * @param string $key
  2672. * @param mixed $default
  2673. * @return mixed
  2674. * @static
  2675. */
  2676. public static function pull($key, $default = null)
  2677. {
  2678. /** @var \Illuminate\Cache\Repository $instance */
  2679. return $instance->pull($key, $default);
  2680. }
  2681. /**
  2682. * Store an item in the cache.
  2683. *
  2684. * @param string $key
  2685. * @param mixed $value
  2686. * @param \DateTimeInterface|\DateInterval|float|int|null $minutes
  2687. * @return void
  2688. * @static
  2689. */
  2690. public static function put($key, $value, $minutes = null)
  2691. {
  2692. /** @var \Illuminate\Cache\Repository $instance */
  2693. $instance->put($key, $value, $minutes);
  2694. }
  2695. /**
  2696. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  2697. *
  2698. * @param string $key The key of the item to store.
  2699. * @param mixed $value The value of the item to store, must be serializable.
  2700. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2701. * the driver supports TTL then the library may set a default value
  2702. * for it or let the driver take care of that.
  2703. * @return bool True on success and false on failure.
  2704. * @throws \Psr\SimpleCache\InvalidArgumentException
  2705. * MUST be thrown if the $key string is not a legal value.
  2706. * @static
  2707. */
  2708. public static function set($key, $value, $ttl = null)
  2709. {
  2710. /** @var \Illuminate\Cache\Repository $instance */
  2711. return $instance->set($key, $value, $ttl);
  2712. }
  2713. /**
  2714. * Store multiple items in the cache for a given number of minutes.
  2715. *
  2716. * @param array $values
  2717. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2718. * @return void
  2719. * @static
  2720. */
  2721. public static function putMany($values, $minutes)
  2722. {
  2723. /** @var \Illuminate\Cache\Repository $instance */
  2724. $instance->putMany($values, $minutes);
  2725. }
  2726. /**
  2727. * Persists a set of key => value pairs in the cache, with an optional TTL.
  2728. *
  2729. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  2730. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2731. * the driver supports TTL then the library may set a default value
  2732. * for it or let the driver take care of that.
  2733. * @return bool True on success and false on failure.
  2734. * @throws \Psr\SimpleCache\InvalidArgumentException
  2735. * MUST be thrown if $values is neither an array nor a Traversable,
  2736. * or if any of the $values are not a legal value.
  2737. * @static
  2738. */
  2739. public static function setMultiple($values, $ttl = null)
  2740. {
  2741. /** @var \Illuminate\Cache\Repository $instance */
  2742. return $instance->setMultiple($values, $ttl);
  2743. }
  2744. /**
  2745. * Store an item in the cache if the key does not exist.
  2746. *
  2747. * @param string $key
  2748. * @param mixed $value
  2749. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2750. * @return bool
  2751. * @static
  2752. */
  2753. public static function add($key, $value, $minutes)
  2754. {
  2755. /** @var \Illuminate\Cache\Repository $instance */
  2756. return $instance->add($key, $value, $minutes);
  2757. }
  2758. /**
  2759. * Increment the value of an item in the cache.
  2760. *
  2761. * @param string $key
  2762. * @param mixed $value
  2763. * @return int|bool
  2764. * @static
  2765. */
  2766. public static function increment($key, $value = 1)
  2767. {
  2768. /** @var \Illuminate\Cache\Repository $instance */
  2769. return $instance->increment($key, $value);
  2770. }
  2771. /**
  2772. * Decrement the value of an item in the cache.
  2773. *
  2774. * @param string $key
  2775. * @param mixed $value
  2776. * @return int|bool
  2777. * @static
  2778. */
  2779. public static function decrement($key, $value = 1)
  2780. {
  2781. /** @var \Illuminate\Cache\Repository $instance */
  2782. return $instance->decrement($key, $value);
  2783. }
  2784. /**
  2785. * Store an item in the cache indefinitely.
  2786. *
  2787. * @param string $key
  2788. * @param mixed $value
  2789. * @return void
  2790. * @static
  2791. */
  2792. public static function forever($key, $value)
  2793. {
  2794. /** @var \Illuminate\Cache\Repository $instance */
  2795. $instance->forever($key, $value);
  2796. }
  2797. /**
  2798. * Get an item from the cache, or store the default value.
  2799. *
  2800. * @param string $key
  2801. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2802. * @param \Closure $callback
  2803. * @return mixed
  2804. * @static
  2805. */
  2806. public static function remember($key, $minutes, $callback)
  2807. {
  2808. /** @var \Illuminate\Cache\Repository $instance */
  2809. return $instance->remember($key, $minutes, $callback);
  2810. }
  2811. /**
  2812. * Get an item from the cache, or store the default value forever.
  2813. *
  2814. * @param string $key
  2815. * @param \Closure $callback
  2816. * @return mixed
  2817. * @static
  2818. */
  2819. public static function sear($key, $callback)
  2820. {
  2821. /** @var \Illuminate\Cache\Repository $instance */
  2822. return $instance->sear($key, $callback);
  2823. }
  2824. /**
  2825. * Get an item from the cache, or store the default value forever.
  2826. *
  2827. * @param string $key
  2828. * @param \Closure $callback
  2829. * @return mixed
  2830. * @static
  2831. */
  2832. public static function rememberForever($key, $callback)
  2833. {
  2834. /** @var \Illuminate\Cache\Repository $instance */
  2835. return $instance->rememberForever($key, $callback);
  2836. }
  2837. /**
  2838. * Remove an item from the cache.
  2839. *
  2840. * @param string $key
  2841. * @return bool
  2842. * @static
  2843. */
  2844. public static function forget($key)
  2845. {
  2846. /** @var \Illuminate\Cache\Repository $instance */
  2847. return $instance->forget($key);
  2848. }
  2849. /**
  2850. * Delete an item from the cache by its unique key.
  2851. *
  2852. * @param string $key The unique cache key of the item to delete.
  2853. * @return bool True if the item was successfully removed. False if there was an error.
  2854. * @throws \Psr\SimpleCache\InvalidArgumentException
  2855. * MUST be thrown if the $key string is not a legal value.
  2856. * @static
  2857. */
  2858. public static function delete($key)
  2859. {
  2860. /** @var \Illuminate\Cache\Repository $instance */
  2861. return $instance->delete($key);
  2862. }
  2863. /**
  2864. * Deletes multiple cache items in a single operation.
  2865. *
  2866. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  2867. * @return bool True if the items were successfully removed. False if there was an error.
  2868. * @throws \Psr\SimpleCache\InvalidArgumentException
  2869. * MUST be thrown if $keys is neither an array nor a Traversable,
  2870. * or if any of the $keys are not a legal value.
  2871. * @static
  2872. */
  2873. public static function deleteMultiple($keys)
  2874. {
  2875. /** @var \Illuminate\Cache\Repository $instance */
  2876. return $instance->deleteMultiple($keys);
  2877. }
  2878. /**
  2879. * Wipes clean the entire cache's keys.
  2880. *
  2881. * @return bool True on success and false on failure.
  2882. * @static
  2883. */
  2884. public static function clear()
  2885. {
  2886. /** @var \Illuminate\Cache\Repository $instance */
  2887. return $instance->clear();
  2888. }
  2889. /**
  2890. * Begin executing a new tags operation if the store supports it.
  2891. *
  2892. * @param array|mixed $names
  2893. * @return \Illuminate\Cache\TaggedCache
  2894. * @throws \BadMethodCallException
  2895. * @static
  2896. */
  2897. public static function tags($names)
  2898. {
  2899. /** @var \Illuminate\Cache\Repository $instance */
  2900. return $instance->tags($names);
  2901. }
  2902. /**
  2903. * Get the default cache time.
  2904. *
  2905. * @return float|int
  2906. * @static
  2907. */
  2908. public static function getDefaultCacheTime()
  2909. {
  2910. /** @var \Illuminate\Cache\Repository $instance */
  2911. return $instance->getDefaultCacheTime();
  2912. }
  2913. /**
  2914. * Set the default cache time in minutes.
  2915. *
  2916. * @param float|int $minutes
  2917. * @return \Illuminate\Cache\Repository
  2918. * @static
  2919. */
  2920. public static function setDefaultCacheTime($minutes)
  2921. {
  2922. /** @var \Illuminate\Cache\Repository $instance */
  2923. return $instance->setDefaultCacheTime($minutes);
  2924. }
  2925. /**
  2926. * Get the cache store implementation.
  2927. *
  2928. * @return \Illuminate\Contracts\Cache\Store
  2929. * @static
  2930. */
  2931. public static function getStore()
  2932. {
  2933. /** @var \Illuminate\Cache\Repository $instance */
  2934. return $instance->getStore();
  2935. }
  2936. /**
  2937. * Set the event dispatcher instance.
  2938. *
  2939. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2940. * @return void
  2941. * @static
  2942. */
  2943. public static function setEventDispatcher($events)
  2944. {
  2945. /** @var \Illuminate\Cache\Repository $instance */
  2946. $instance->setEventDispatcher($events);
  2947. }
  2948. /**
  2949. * Determine if a cached value exists.
  2950. *
  2951. * @param string $key
  2952. * @return bool
  2953. * @static
  2954. */
  2955. public static function offsetExists($key)
  2956. {
  2957. /** @var \Illuminate\Cache\Repository $instance */
  2958. return $instance->offsetExists($key);
  2959. }
  2960. /**
  2961. * Retrieve an item from the cache by key.
  2962. *
  2963. * @param string $key
  2964. * @return mixed
  2965. * @static
  2966. */
  2967. public static function offsetGet($key)
  2968. {
  2969. /** @var \Illuminate\Cache\Repository $instance */
  2970. return $instance->offsetGet($key);
  2971. }
  2972. /**
  2973. * Store an item in the cache for the default time.
  2974. *
  2975. * @param string $key
  2976. * @param mixed $value
  2977. * @return void
  2978. * @static
  2979. */
  2980. public static function offsetSet($key, $value)
  2981. {
  2982. /** @var \Illuminate\Cache\Repository $instance */
  2983. $instance->offsetSet($key, $value);
  2984. }
  2985. /**
  2986. * Remove an item from the cache.
  2987. *
  2988. * @param string $key
  2989. * @return void
  2990. * @static
  2991. */
  2992. public static function offsetUnset($key)
  2993. {
  2994. /** @var \Illuminate\Cache\Repository $instance */
  2995. $instance->offsetUnset($key);
  2996. }
  2997. /**
  2998. * Register a custom macro.
  2999. *
  3000. * @param string $name
  3001. * @param object|callable $macro
  3002. * @return void
  3003. * @static
  3004. */
  3005. public static function macro($name, $macro)
  3006. {
  3007. \Illuminate\Cache\Repository::macro($name, $macro);
  3008. }
  3009. /**
  3010. * Mix another object into the class.
  3011. *
  3012. * @param object $mixin
  3013. * @return void
  3014. * @throws \ReflectionException
  3015. * @static
  3016. */
  3017. public static function mixin($mixin)
  3018. {
  3019. \Illuminate\Cache\Repository::mixin($mixin);
  3020. }
  3021. /**
  3022. * Checks if macro is registered.
  3023. *
  3024. * @param string $name
  3025. * @return bool
  3026. * @static
  3027. */
  3028. public static function hasMacro($name)
  3029. {
  3030. return \Illuminate\Cache\Repository::hasMacro($name);
  3031. }
  3032. /**
  3033. * Dynamically handle calls to the class.
  3034. *
  3035. * @param string $method
  3036. * @param array $parameters
  3037. * @return mixed
  3038. * @throws \BadMethodCallException
  3039. * @static
  3040. */
  3041. public static function macroCall($method, $parameters)
  3042. {
  3043. /** @var \Illuminate\Cache\Repository $instance */
  3044. return $instance->macroCall($method, $parameters);
  3045. }
  3046. /**
  3047. * Remove all items from the cache.
  3048. *
  3049. * @return bool
  3050. * @static
  3051. */
  3052. public static function flush()
  3053. {
  3054. /** @var \Illuminate\Cache\FileStore $instance */
  3055. return $instance->flush();
  3056. }
  3057. /**
  3058. * Get the Filesystem instance.
  3059. *
  3060. * @return \Illuminate\Filesystem\Filesystem
  3061. * @static
  3062. */
  3063. public static function getFilesystem()
  3064. {
  3065. /** @var \Illuminate\Cache\FileStore $instance */
  3066. return $instance->getFilesystem();
  3067. }
  3068. /**
  3069. * Get the working directory of the cache.
  3070. *
  3071. * @return string
  3072. * @static
  3073. */
  3074. public static function getDirectory()
  3075. {
  3076. /** @var \Illuminate\Cache\FileStore $instance */
  3077. return $instance->getDirectory();
  3078. }
  3079. /**
  3080. * Get the cache key prefix.
  3081. *
  3082. * @return string
  3083. * @static
  3084. */
  3085. public static function getPrefix()
  3086. {
  3087. /** @var \Illuminate\Cache\FileStore $instance */
  3088. return $instance->getPrefix();
  3089. }
  3090. }
  3091. /**
  3092. *
  3093. *
  3094. * @see \Illuminate\Config\Repository
  3095. */
  3096. class Config {
  3097. /**
  3098. * Determine if the given configuration value exists.
  3099. *
  3100. * @param string $key
  3101. * @return bool
  3102. * @static
  3103. */
  3104. public static function has($key)
  3105. {
  3106. /** @var \Illuminate\Config\Repository $instance */
  3107. return $instance->has($key);
  3108. }
  3109. /**
  3110. * Get the specified configuration value.
  3111. *
  3112. * @param array|string $key
  3113. * @param mixed $default
  3114. * @return mixed
  3115. * @static
  3116. */
  3117. public static function get($key, $default = null)
  3118. {
  3119. /** @var \Illuminate\Config\Repository $instance */
  3120. return $instance->get($key, $default);
  3121. }
  3122. /**
  3123. * Get many configuration values.
  3124. *
  3125. * @param array $keys
  3126. * @return array
  3127. * @static
  3128. */
  3129. public static function getMany($keys)
  3130. {
  3131. /** @var \Illuminate\Config\Repository $instance */
  3132. return $instance->getMany($keys);
  3133. }
  3134. /**
  3135. * Set a given configuration value.
  3136. *
  3137. * @param array|string $key
  3138. * @param mixed $value
  3139. * @return void
  3140. * @static
  3141. */
  3142. public static function set($key, $value = null)
  3143. {
  3144. /** @var \Illuminate\Config\Repository $instance */
  3145. $instance->set($key, $value);
  3146. }
  3147. /**
  3148. * Prepend a value onto an array configuration value.
  3149. *
  3150. * @param string $key
  3151. * @param mixed $value
  3152. * @return void
  3153. * @static
  3154. */
  3155. public static function prepend($key, $value)
  3156. {
  3157. /** @var \Illuminate\Config\Repository $instance */
  3158. $instance->prepend($key, $value);
  3159. }
  3160. /**
  3161. * Push a value onto an array configuration value.
  3162. *
  3163. * @param string $key
  3164. * @param mixed $value
  3165. * @return void
  3166. * @static
  3167. */
  3168. public static function push($key, $value)
  3169. {
  3170. /** @var \Illuminate\Config\Repository $instance */
  3171. $instance->push($key, $value);
  3172. }
  3173. /**
  3174. * Get all of the configuration items for the application.
  3175. *
  3176. * @return array
  3177. * @static
  3178. */
  3179. public static function all()
  3180. {
  3181. /** @var \Illuminate\Config\Repository $instance */
  3182. return $instance->all();
  3183. }
  3184. /**
  3185. * Determine if the given configuration option exists.
  3186. *
  3187. * @param string $key
  3188. * @return bool
  3189. * @static
  3190. */
  3191. public static function offsetExists($key)
  3192. {
  3193. /** @var \Illuminate\Config\Repository $instance */
  3194. return $instance->offsetExists($key);
  3195. }
  3196. /**
  3197. * Get a configuration option.
  3198. *
  3199. * @param string $key
  3200. * @return mixed
  3201. * @static
  3202. */
  3203. public static function offsetGet($key)
  3204. {
  3205. /** @var \Illuminate\Config\Repository $instance */
  3206. return $instance->offsetGet($key);
  3207. }
  3208. /**
  3209. * Set a configuration option.
  3210. *
  3211. * @param string $key
  3212. * @param mixed $value
  3213. * @return void
  3214. * @static
  3215. */
  3216. public static function offsetSet($key, $value)
  3217. {
  3218. /** @var \Illuminate\Config\Repository $instance */
  3219. $instance->offsetSet($key, $value);
  3220. }
  3221. /**
  3222. * Unset a configuration option.
  3223. *
  3224. * @param string $key
  3225. * @return void
  3226. * @static
  3227. */
  3228. public static function offsetUnset($key)
  3229. {
  3230. /** @var \Illuminate\Config\Repository $instance */
  3231. $instance->offsetUnset($key);
  3232. }
  3233. }
  3234. /**
  3235. *
  3236. *
  3237. * @see \Illuminate\Cookie\CookieJar
  3238. */
  3239. class Cookie {
  3240. /**
  3241. * Create a new cookie instance.
  3242. *
  3243. * @param string $name
  3244. * @param string $value
  3245. * @param int $minutes
  3246. * @param string $path
  3247. * @param string $domain
  3248. * @param bool|null $secure
  3249. * @param bool $httpOnly
  3250. * @param bool $raw
  3251. * @param string|null $sameSite
  3252. * @return \Symfony\Component\HttpFoundation\Cookie
  3253. * @static
  3254. */
  3255. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3256. {
  3257. /** @var \Illuminate\Cookie\CookieJar $instance */
  3258. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3259. }
  3260. /**
  3261. * Create a cookie that lasts "forever" (five years).
  3262. *
  3263. * @param string $name
  3264. * @param string $value
  3265. * @param string $path
  3266. * @param string $domain
  3267. * @param bool|null $secure
  3268. * @param bool $httpOnly
  3269. * @param bool $raw
  3270. * @param string|null $sameSite
  3271. * @return \Symfony\Component\HttpFoundation\Cookie
  3272. * @static
  3273. */
  3274. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3275. {
  3276. /** @var \Illuminate\Cookie\CookieJar $instance */
  3277. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3278. }
  3279. /**
  3280. * Expire the given cookie.
  3281. *
  3282. * @param string $name
  3283. * @param string $path
  3284. * @param string $domain
  3285. * @return \Symfony\Component\HttpFoundation\Cookie
  3286. * @static
  3287. */
  3288. public static function forget($name, $path = null, $domain = null)
  3289. {
  3290. /** @var \Illuminate\Cookie\CookieJar $instance */
  3291. return $instance->forget($name, $path, $domain);
  3292. }
  3293. /**
  3294. * Determine if a cookie has been queued.
  3295. *
  3296. * @param string $key
  3297. * @return bool
  3298. * @static
  3299. */
  3300. public static function hasQueued($key)
  3301. {
  3302. /** @var \Illuminate\Cookie\CookieJar $instance */
  3303. return $instance->hasQueued($key);
  3304. }
  3305. /**
  3306. * Get a queued cookie instance.
  3307. *
  3308. * @param string $key
  3309. * @param mixed $default
  3310. * @return \Symfony\Component\HttpFoundation\Cookie
  3311. * @static
  3312. */
  3313. public static function queued($key, $default = null)
  3314. {
  3315. /** @var \Illuminate\Cookie\CookieJar $instance */
  3316. return $instance->queued($key, $default);
  3317. }
  3318. /**
  3319. * Queue a cookie to send with the next response.
  3320. *
  3321. * @param array $parameters
  3322. * @return void
  3323. * @static
  3324. */
  3325. public static function queue($parameters = null)
  3326. {
  3327. /** @var \Illuminate\Cookie\CookieJar $instance */
  3328. $instance->queue($parameters);
  3329. }
  3330. /**
  3331. * Remove a cookie from the queue.
  3332. *
  3333. * @param string $name
  3334. * @return void
  3335. * @static
  3336. */
  3337. public static function unqueue($name)
  3338. {
  3339. /** @var \Illuminate\Cookie\CookieJar $instance */
  3340. $instance->unqueue($name);
  3341. }
  3342. /**
  3343. * Set the default path and domain for the jar.
  3344. *
  3345. * @param string $path
  3346. * @param string $domain
  3347. * @param bool $secure
  3348. * @param string $sameSite
  3349. * @return \Illuminate\Cookie\CookieJar
  3350. * @static
  3351. */
  3352. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3353. {
  3354. /** @var \Illuminate\Cookie\CookieJar $instance */
  3355. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3356. }
  3357. /**
  3358. * Get the cookies which have been queued for the next request.
  3359. *
  3360. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3361. * @static
  3362. */
  3363. public static function getQueuedCookies()
  3364. {
  3365. /** @var \Illuminate\Cookie\CookieJar $instance */
  3366. return $instance->getQueuedCookies();
  3367. }
  3368. }
  3369. /**
  3370. *
  3371. *
  3372. * @see \Illuminate\Encryption\Encrypter
  3373. */
  3374. class Crypt {
  3375. /**
  3376. * Determine if the given key and cipher combination is valid.
  3377. *
  3378. * @param string $key
  3379. * @param string $cipher
  3380. * @return bool
  3381. * @static
  3382. */
  3383. public static function supported($key, $cipher)
  3384. {
  3385. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3386. }
  3387. /**
  3388. * Create a new encryption key for the given cipher.
  3389. *
  3390. * @param string $cipher
  3391. * @return string
  3392. * @static
  3393. */
  3394. public static function generateKey($cipher)
  3395. {
  3396. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3397. }
  3398. /**
  3399. * Encrypt the given value.
  3400. *
  3401. * @param mixed $value
  3402. * @param bool $serialize
  3403. * @return string
  3404. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3405. * @static
  3406. */
  3407. public static function encrypt($value, $serialize = true)
  3408. {
  3409. /** @var \Illuminate\Encryption\Encrypter $instance */
  3410. return $instance->encrypt($value, $serialize);
  3411. }
  3412. /**
  3413. * Encrypt a string without serialization.
  3414. *
  3415. * @param string $value
  3416. * @return string
  3417. * @static
  3418. */
  3419. public static function encryptString($value)
  3420. {
  3421. /** @var \Illuminate\Encryption\Encrypter $instance */
  3422. return $instance->encryptString($value);
  3423. }
  3424. /**
  3425. * Decrypt the given value.
  3426. *
  3427. * @param mixed $payload
  3428. * @param bool $unserialize
  3429. * @return mixed
  3430. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3431. * @static
  3432. */
  3433. public static function decrypt($payload, $unserialize = true)
  3434. {
  3435. /** @var \Illuminate\Encryption\Encrypter $instance */
  3436. return $instance->decrypt($payload, $unserialize);
  3437. }
  3438. /**
  3439. * Decrypt the given string without unserialization.
  3440. *
  3441. * @param string $payload
  3442. * @return string
  3443. * @static
  3444. */
  3445. public static function decryptString($payload)
  3446. {
  3447. /** @var \Illuminate\Encryption\Encrypter $instance */
  3448. return $instance->decryptString($payload);
  3449. }
  3450. /**
  3451. * Get the encryption key.
  3452. *
  3453. * @return string
  3454. * @static
  3455. */
  3456. public static function getKey()
  3457. {
  3458. /** @var \Illuminate\Encryption\Encrypter $instance */
  3459. return $instance->getKey();
  3460. }
  3461. }
  3462. /**
  3463. *
  3464. *
  3465. * @see \Illuminate\Database\DatabaseManager
  3466. * @see \Illuminate\Database\Connection
  3467. */
  3468. class DB {
  3469. /**
  3470. * Get a database connection instance.
  3471. *
  3472. * @param string $name
  3473. * @return \Illuminate\Database\Connection
  3474. * @static
  3475. */
  3476. public static function connection($name = null)
  3477. {
  3478. /** @var \Illuminate\Database\DatabaseManager $instance */
  3479. return $instance->connection($name);
  3480. }
  3481. /**
  3482. * Disconnect from the given database and remove from local cache.
  3483. *
  3484. * @param string $name
  3485. * @return void
  3486. * @static
  3487. */
  3488. public static function purge($name = null)
  3489. {
  3490. /** @var \Illuminate\Database\DatabaseManager $instance */
  3491. $instance->purge($name);
  3492. }
  3493. /**
  3494. * Disconnect from the given database.
  3495. *
  3496. * @param string $name
  3497. * @return void
  3498. * @static
  3499. */
  3500. public static function disconnect($name = null)
  3501. {
  3502. /** @var \Illuminate\Database\DatabaseManager $instance */
  3503. $instance->disconnect($name);
  3504. }
  3505. /**
  3506. * Reconnect to the given database.
  3507. *
  3508. * @param string $name
  3509. * @return \Illuminate\Database\Connection
  3510. * @static
  3511. */
  3512. public static function reconnect($name = null)
  3513. {
  3514. /** @var \Illuminate\Database\DatabaseManager $instance */
  3515. return $instance->reconnect($name);
  3516. }
  3517. /**
  3518. * Get the default connection name.
  3519. *
  3520. * @return string
  3521. * @static
  3522. */
  3523. public static function getDefaultConnection()
  3524. {
  3525. /** @var \Illuminate\Database\DatabaseManager $instance */
  3526. return $instance->getDefaultConnection();
  3527. }
  3528. /**
  3529. * Set the default connection name.
  3530. *
  3531. * @param string $name
  3532. * @return void
  3533. * @static
  3534. */
  3535. public static function setDefaultConnection($name)
  3536. {
  3537. /** @var \Illuminate\Database\DatabaseManager $instance */
  3538. $instance->setDefaultConnection($name);
  3539. }
  3540. /**
  3541. * Get all of the support drivers.
  3542. *
  3543. * @return array
  3544. * @static
  3545. */
  3546. public static function supportedDrivers()
  3547. {
  3548. /** @var \Illuminate\Database\DatabaseManager $instance */
  3549. return $instance->supportedDrivers();
  3550. }
  3551. /**
  3552. * Get all of the drivers that are actually available.
  3553. *
  3554. * @return array
  3555. * @static
  3556. */
  3557. public static function availableDrivers()
  3558. {
  3559. /** @var \Illuminate\Database\DatabaseManager $instance */
  3560. return $instance->availableDrivers();
  3561. }
  3562. /**
  3563. * Register an extension connection resolver.
  3564. *
  3565. * @param string $name
  3566. * @param callable $resolver
  3567. * @return void
  3568. * @static
  3569. */
  3570. public static function extend($name, $resolver)
  3571. {
  3572. /** @var \Illuminate\Database\DatabaseManager $instance */
  3573. $instance->extend($name, $resolver);
  3574. }
  3575. /**
  3576. * Return all of the created connections.
  3577. *
  3578. * @return array
  3579. * @static
  3580. */
  3581. public static function getConnections()
  3582. {
  3583. /** @var \Illuminate\Database\DatabaseManager $instance */
  3584. return $instance->getConnections();
  3585. }
  3586. /**
  3587. * Get a schema builder instance for the connection.
  3588. *
  3589. * @return \Illuminate\Database\Schema\MySqlBuilder
  3590. * @static
  3591. */
  3592. public static function getSchemaBuilder()
  3593. {
  3594. /** @var \Illuminate\Database\MySqlConnection $instance */
  3595. return $instance->getSchemaBuilder();
  3596. }
  3597. /**
  3598. * Bind values to their parameters in the given statement.
  3599. *
  3600. * @param \PDOStatement $statement
  3601. * @param array $bindings
  3602. * @return void
  3603. * @static
  3604. */
  3605. public static function bindValues($statement, $bindings)
  3606. {
  3607. /** @var \Illuminate\Database\MySqlConnection $instance */
  3608. $instance->bindValues($statement, $bindings);
  3609. }
  3610. /**
  3611. * Set the query grammar to the default implementation.
  3612. *
  3613. * @return void
  3614. * @static
  3615. */
  3616. public static function useDefaultQueryGrammar()
  3617. {
  3618. //Method inherited from \Illuminate\Database\Connection
  3619. /** @var \Illuminate\Database\MySqlConnection $instance */
  3620. $instance->useDefaultQueryGrammar();
  3621. }
  3622. /**
  3623. * Set the schema grammar to the default implementation.
  3624. *
  3625. * @return void
  3626. * @static
  3627. */
  3628. public static function useDefaultSchemaGrammar()
  3629. {
  3630. //Method inherited from \Illuminate\Database\Connection
  3631. /** @var \Illuminate\Database\MySqlConnection $instance */
  3632. $instance->useDefaultSchemaGrammar();
  3633. }
  3634. /**
  3635. * Set the query post processor to the default implementation.
  3636. *
  3637. * @return void
  3638. * @static
  3639. */
  3640. public static function useDefaultPostProcessor()
  3641. {
  3642. //Method inherited from \Illuminate\Database\Connection
  3643. /** @var \Illuminate\Database\MySqlConnection $instance */
  3644. $instance->useDefaultPostProcessor();
  3645. }
  3646. /**
  3647. * Begin a fluent query against a database table.
  3648. *
  3649. * @param string $table
  3650. * @return \Illuminate\Database\Query\Builder
  3651. * @static
  3652. */
  3653. public static function table($table)
  3654. {
  3655. //Method inherited from \Illuminate\Database\Connection
  3656. /** @var \Illuminate\Database\MySqlConnection $instance */
  3657. return $instance->table($table);
  3658. }
  3659. /**
  3660. * Get a new query builder instance.
  3661. *
  3662. * @return \Illuminate\Database\Query\Builder
  3663. * @static
  3664. */
  3665. public static function query()
  3666. {
  3667. //Method inherited from \Illuminate\Database\Connection
  3668. /** @var \Illuminate\Database\MySqlConnection $instance */
  3669. return $instance->query();
  3670. }
  3671. /**
  3672. * Run a select statement and return a single result.
  3673. *
  3674. * @param string $query
  3675. * @param array $bindings
  3676. * @param bool $useReadPdo
  3677. * @return mixed
  3678. * @static
  3679. */
  3680. public static function selectOne($query, $bindings = array(), $useReadPdo = true)
  3681. {
  3682. //Method inherited from \Illuminate\Database\Connection
  3683. /** @var \Illuminate\Database\MySqlConnection $instance */
  3684. return $instance->selectOne($query, $bindings, $useReadPdo);
  3685. }
  3686. /**
  3687. * Run a select statement against the database.
  3688. *
  3689. * @param string $query
  3690. * @param array $bindings
  3691. * @return array
  3692. * @static
  3693. */
  3694. public static function selectFromWriteConnection($query, $bindings = array())
  3695. {
  3696. //Method inherited from \Illuminate\Database\Connection
  3697. /** @var \Illuminate\Database\MySqlConnection $instance */
  3698. return $instance->selectFromWriteConnection($query, $bindings);
  3699. }
  3700. /**
  3701. * Run a select statement against the database.
  3702. *
  3703. * @param string $query
  3704. * @param array $bindings
  3705. * @param bool $useReadPdo
  3706. * @return array
  3707. * @static
  3708. */
  3709. public static function select($query, $bindings = array(), $useReadPdo = true)
  3710. {
  3711. //Method inherited from \Illuminate\Database\Connection
  3712. /** @var \Illuminate\Database\MySqlConnection $instance */
  3713. return $instance->select($query, $bindings, $useReadPdo);
  3714. }
  3715. /**
  3716. * Run a select statement against the database and returns a generator.
  3717. *
  3718. * @param string $query
  3719. * @param array $bindings
  3720. * @param bool $useReadPdo
  3721. * @return \Generator
  3722. * @static
  3723. */
  3724. public static function cursor($query, $bindings = array(), $useReadPdo = true)
  3725. {
  3726. //Method inherited from \Illuminate\Database\Connection
  3727. /** @var \Illuminate\Database\MySqlConnection $instance */
  3728. return $instance->cursor($query, $bindings, $useReadPdo);
  3729. }
  3730. /**
  3731. * Run an insert statement against the database.
  3732. *
  3733. * @param string $query
  3734. * @param array $bindings
  3735. * @return bool
  3736. * @static
  3737. */
  3738. public static function insert($query, $bindings = array())
  3739. {
  3740. //Method inherited from \Illuminate\Database\Connection
  3741. /** @var \Illuminate\Database\MySqlConnection $instance */
  3742. return $instance->insert($query, $bindings);
  3743. }
  3744. /**
  3745. * Run an update statement against the database.
  3746. *
  3747. * @param string $query
  3748. * @param array $bindings
  3749. * @return int
  3750. * @static
  3751. */
  3752. public static function update($query, $bindings = array())
  3753. {
  3754. //Method inherited from \Illuminate\Database\Connection
  3755. /** @var \Illuminate\Database\MySqlConnection $instance */
  3756. return $instance->update($query, $bindings);
  3757. }
  3758. /**
  3759. * Run a delete statement against the database.
  3760. *
  3761. * @param string $query
  3762. * @param array $bindings
  3763. * @return int
  3764. * @static
  3765. */
  3766. public static function delete($query, $bindings = array())
  3767. {
  3768. //Method inherited from \Illuminate\Database\Connection
  3769. /** @var \Illuminate\Database\MySqlConnection $instance */
  3770. return $instance->delete($query, $bindings);
  3771. }
  3772. /**
  3773. * Execute an SQL statement and return the boolean result.
  3774. *
  3775. * @param string $query
  3776. * @param array $bindings
  3777. * @return bool
  3778. * @static
  3779. */
  3780. public static function statement($query, $bindings = array())
  3781. {
  3782. //Method inherited from \Illuminate\Database\Connection
  3783. /** @var \Illuminate\Database\MySqlConnection $instance */
  3784. return $instance->statement($query, $bindings);
  3785. }
  3786. /**
  3787. * Run an SQL statement and get the number of rows affected.
  3788. *
  3789. * @param string $query
  3790. * @param array $bindings
  3791. * @return int
  3792. * @static
  3793. */
  3794. public static function affectingStatement($query, $bindings = array())
  3795. {
  3796. //Method inherited from \Illuminate\Database\Connection
  3797. /** @var \Illuminate\Database\MySqlConnection $instance */
  3798. return $instance->affectingStatement($query, $bindings);
  3799. }
  3800. /**
  3801. * Run a raw, unprepared query against the PDO connection.
  3802. *
  3803. * @param string $query
  3804. * @return bool
  3805. * @static
  3806. */
  3807. public static function unprepared($query)
  3808. {
  3809. //Method inherited from \Illuminate\Database\Connection
  3810. /** @var \Illuminate\Database\MySqlConnection $instance */
  3811. return $instance->unprepared($query);
  3812. }
  3813. /**
  3814. * Execute the given callback in "dry run" mode.
  3815. *
  3816. * @param \Closure $callback
  3817. * @return array
  3818. * @static
  3819. */
  3820. public static function pretend($callback)
  3821. {
  3822. //Method inherited from \Illuminate\Database\Connection
  3823. /** @var \Illuminate\Database\MySqlConnection $instance */
  3824. return $instance->pretend($callback);
  3825. }
  3826. /**
  3827. * Prepare the query bindings for execution.
  3828. *
  3829. * @param array $bindings
  3830. * @return array
  3831. * @static
  3832. */
  3833. public static function prepareBindings($bindings)
  3834. {
  3835. //Method inherited from \Illuminate\Database\Connection
  3836. /** @var \Illuminate\Database\MySqlConnection $instance */
  3837. return $instance->prepareBindings($bindings);
  3838. }
  3839. /**
  3840. * Log a query in the connection's query log.
  3841. *
  3842. * @param string $query
  3843. * @param array $bindings
  3844. * @param float|null $time
  3845. * @return void
  3846. * @static
  3847. */
  3848. public static function logQuery($query, $bindings, $time = null)
  3849. {
  3850. //Method inherited from \Illuminate\Database\Connection
  3851. /** @var \Illuminate\Database\MySqlConnection $instance */
  3852. $instance->logQuery($query, $bindings, $time);
  3853. }
  3854. /**
  3855. * Register a database query listener with the connection.
  3856. *
  3857. * @param \Closure $callback
  3858. * @return void
  3859. * @static
  3860. */
  3861. public static function listen($callback)
  3862. {
  3863. //Method inherited from \Illuminate\Database\Connection
  3864. /** @var \Illuminate\Database\MySqlConnection $instance */
  3865. $instance->listen($callback);
  3866. }
  3867. /**
  3868. * Get a new raw query expression.
  3869. *
  3870. * @param mixed $value
  3871. * @return \Illuminate\Database\Query\Expression
  3872. * @static
  3873. */
  3874. public static function raw($value)
  3875. {
  3876. //Method inherited from \Illuminate\Database\Connection
  3877. /** @var \Illuminate\Database\MySqlConnection $instance */
  3878. return $instance->raw($value);
  3879. }
  3880. /**
  3881. * Indicate if any records have been modified.
  3882. *
  3883. * @param bool $value
  3884. * @return void
  3885. * @static
  3886. */
  3887. public static function recordsHaveBeenModified($value = true)
  3888. {
  3889. //Method inherited from \Illuminate\Database\Connection
  3890. /** @var \Illuminate\Database\MySqlConnection $instance */
  3891. $instance->recordsHaveBeenModified($value);
  3892. }
  3893. /**
  3894. * Is Doctrine available?
  3895. *
  3896. * @return bool
  3897. * @static
  3898. */
  3899. public static function isDoctrineAvailable()
  3900. {
  3901. //Method inherited from \Illuminate\Database\Connection
  3902. /** @var \Illuminate\Database\MySqlConnection $instance */
  3903. return $instance->isDoctrineAvailable();
  3904. }
  3905. /**
  3906. * Get a Doctrine Schema Column instance.
  3907. *
  3908. * @param string $table
  3909. * @param string $column
  3910. * @return \Doctrine\DBAL\Schema\Column
  3911. * @static
  3912. */
  3913. public static function getDoctrineColumn($table, $column)
  3914. {
  3915. //Method inherited from \Illuminate\Database\Connection
  3916. /** @var \Illuminate\Database\MySqlConnection $instance */
  3917. return $instance->getDoctrineColumn($table, $column);
  3918. }
  3919. /**
  3920. * Get the Doctrine DBAL schema manager for the connection.
  3921. *
  3922. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3923. * @static
  3924. */
  3925. public static function getDoctrineSchemaManager()
  3926. {
  3927. //Method inherited from \Illuminate\Database\Connection
  3928. /** @var \Illuminate\Database\MySqlConnection $instance */
  3929. return $instance->getDoctrineSchemaManager();
  3930. }
  3931. /**
  3932. * Get the Doctrine DBAL database connection instance.
  3933. *
  3934. * @return \Doctrine\DBAL\Connection
  3935. * @static
  3936. */
  3937. public static function getDoctrineConnection()
  3938. {
  3939. //Method inherited from \Illuminate\Database\Connection
  3940. /** @var \Illuminate\Database\MySqlConnection $instance */
  3941. return $instance->getDoctrineConnection();
  3942. }
  3943. /**
  3944. * Get the current PDO connection.
  3945. *
  3946. * @return \PDO
  3947. * @static
  3948. */
  3949. public static function getPdo()
  3950. {
  3951. //Method inherited from \Illuminate\Database\Connection
  3952. /** @var \Illuminate\Database\MySqlConnection $instance */
  3953. return $instance->getPdo();
  3954. }
  3955. /**
  3956. * Get the current PDO connection used for reading.
  3957. *
  3958. * @return \PDO
  3959. * @static
  3960. */
  3961. public static function getReadPdo()
  3962. {
  3963. //Method inherited from \Illuminate\Database\Connection
  3964. /** @var \Illuminate\Database\MySqlConnection $instance */
  3965. return $instance->getReadPdo();
  3966. }
  3967. /**
  3968. * Set the PDO connection.
  3969. *
  3970. * @param \PDO|\Closure|null $pdo
  3971. * @return \Illuminate\Database\MySqlConnection
  3972. * @static
  3973. */
  3974. public static function setPdo($pdo)
  3975. {
  3976. //Method inherited from \Illuminate\Database\Connection
  3977. /** @var \Illuminate\Database\MySqlConnection $instance */
  3978. return $instance->setPdo($pdo);
  3979. }
  3980. /**
  3981. * Set the PDO connection used for reading.
  3982. *
  3983. * @param \PDO|\Closure|null $pdo
  3984. * @return \Illuminate\Database\MySqlConnection
  3985. * @static
  3986. */
  3987. public static function setReadPdo($pdo)
  3988. {
  3989. //Method inherited from \Illuminate\Database\Connection
  3990. /** @var \Illuminate\Database\MySqlConnection $instance */
  3991. return $instance->setReadPdo($pdo);
  3992. }
  3993. /**
  3994. * Set the reconnect instance on the connection.
  3995. *
  3996. * @param callable $reconnector
  3997. * @return \Illuminate\Database\MySqlConnection
  3998. * @static
  3999. */
  4000. public static function setReconnector($reconnector)
  4001. {
  4002. //Method inherited from \Illuminate\Database\Connection
  4003. /** @var \Illuminate\Database\MySqlConnection $instance */
  4004. return $instance->setReconnector($reconnector);
  4005. }
  4006. /**
  4007. * Get the database connection name.
  4008. *
  4009. * @return string|null
  4010. * @static
  4011. */
  4012. public static function getName()
  4013. {
  4014. //Method inherited from \Illuminate\Database\Connection
  4015. /** @var \Illuminate\Database\MySqlConnection $instance */
  4016. return $instance->getName();
  4017. }
  4018. /**
  4019. * Get an option from the configuration options.
  4020. *
  4021. * @param string|null $option
  4022. * @return mixed
  4023. * @static
  4024. */
  4025. public static function getConfig($option = null)
  4026. {
  4027. //Method inherited from \Illuminate\Database\Connection
  4028. /** @var \Illuminate\Database\MySqlConnection $instance */
  4029. return $instance->getConfig($option);
  4030. }
  4031. /**
  4032. * Get the PDO driver name.
  4033. *
  4034. * @return string
  4035. * @static
  4036. */
  4037. public static function getDriverName()
  4038. {
  4039. //Method inherited from \Illuminate\Database\Connection
  4040. /** @var \Illuminate\Database\MySqlConnection $instance */
  4041. return $instance->getDriverName();
  4042. }
  4043. /**
  4044. * Get the query grammar used by the connection.
  4045. *
  4046. * @return \Illuminate\Database\Query\Grammars\Grammar
  4047. * @static
  4048. */
  4049. public static function getQueryGrammar()
  4050. {
  4051. //Method inherited from \Illuminate\Database\Connection
  4052. /** @var \Illuminate\Database\MySqlConnection $instance */
  4053. return $instance->getQueryGrammar();
  4054. }
  4055. /**
  4056. * Set the query grammar used by the connection.
  4057. *
  4058. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  4059. * @return void
  4060. * @static
  4061. */
  4062. public static function setQueryGrammar($grammar)
  4063. {
  4064. //Method inherited from \Illuminate\Database\Connection
  4065. /** @var \Illuminate\Database\MySqlConnection $instance */
  4066. $instance->setQueryGrammar($grammar);
  4067. }
  4068. /**
  4069. * Get the schema grammar used by the connection.
  4070. *
  4071. * @return \Illuminate\Database\Schema\Grammars\Grammar
  4072. * @static
  4073. */
  4074. public static function getSchemaGrammar()
  4075. {
  4076. //Method inherited from \Illuminate\Database\Connection
  4077. /** @var \Illuminate\Database\MySqlConnection $instance */
  4078. return $instance->getSchemaGrammar();
  4079. }
  4080. /**
  4081. * Set the schema grammar used by the connection.
  4082. *
  4083. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  4084. * @return void
  4085. * @static
  4086. */
  4087. public static function setSchemaGrammar($grammar)
  4088. {
  4089. //Method inherited from \Illuminate\Database\Connection
  4090. /** @var \Illuminate\Database\MySqlConnection $instance */
  4091. $instance->setSchemaGrammar($grammar);
  4092. }
  4093. /**
  4094. * Get the query post processor used by the connection.
  4095. *
  4096. * @return \Illuminate\Database\Query\Processors\Processor
  4097. * @static
  4098. */
  4099. public static function getPostProcessor()
  4100. {
  4101. //Method inherited from \Illuminate\Database\Connection
  4102. /** @var \Illuminate\Database\MySqlConnection $instance */
  4103. return $instance->getPostProcessor();
  4104. }
  4105. /**
  4106. * Set the query post processor used by the connection.
  4107. *
  4108. * @param \Illuminate\Database\Query\Processors\Processor $processor
  4109. * @return void
  4110. * @static
  4111. */
  4112. public static function setPostProcessor($processor)
  4113. {
  4114. //Method inherited from \Illuminate\Database\Connection
  4115. /** @var \Illuminate\Database\MySqlConnection $instance */
  4116. $instance->setPostProcessor($processor);
  4117. }
  4118. /**
  4119. * Get the event dispatcher used by the connection.
  4120. *
  4121. * @return \Illuminate\Contracts\Events\Dispatcher
  4122. * @static
  4123. */
  4124. public static function getEventDispatcher()
  4125. {
  4126. //Method inherited from \Illuminate\Database\Connection
  4127. /** @var \Illuminate\Database\MySqlConnection $instance */
  4128. return $instance->getEventDispatcher();
  4129. }
  4130. /**
  4131. * Set the event dispatcher instance on the connection.
  4132. *
  4133. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4134. * @return void
  4135. * @static
  4136. */
  4137. public static function setEventDispatcher($events)
  4138. {
  4139. //Method inherited from \Illuminate\Database\Connection
  4140. /** @var \Illuminate\Database\MySqlConnection $instance */
  4141. $instance->setEventDispatcher($events);
  4142. }
  4143. /**
  4144. * Unset the event dispatcher for this connection.
  4145. *
  4146. * @return void
  4147. * @static
  4148. */
  4149. public static function unsetEventDispatcher()
  4150. {
  4151. //Method inherited from \Illuminate\Database\Connection
  4152. /** @var \Illuminate\Database\MySqlConnection $instance */
  4153. $instance->unsetEventDispatcher();
  4154. }
  4155. /**
  4156. * Determine if the connection in a "dry run".
  4157. *
  4158. * @return bool
  4159. * @static
  4160. */
  4161. public static function pretending()
  4162. {
  4163. //Method inherited from \Illuminate\Database\Connection
  4164. /** @var \Illuminate\Database\MySqlConnection $instance */
  4165. return $instance->pretending();
  4166. }
  4167. /**
  4168. * Get the connection query log.
  4169. *
  4170. * @return array
  4171. * @static
  4172. */
  4173. public static function getQueryLog()
  4174. {
  4175. //Method inherited from \Illuminate\Database\Connection
  4176. /** @var \Illuminate\Database\MySqlConnection $instance */
  4177. return $instance->getQueryLog();
  4178. }
  4179. /**
  4180. * Clear the query log.
  4181. *
  4182. * @return void
  4183. * @static
  4184. */
  4185. public static function flushQueryLog()
  4186. {
  4187. //Method inherited from \Illuminate\Database\Connection
  4188. /** @var \Illuminate\Database\MySqlConnection $instance */
  4189. $instance->flushQueryLog();
  4190. }
  4191. /**
  4192. * Enable the query log on the connection.
  4193. *
  4194. * @return void
  4195. * @static
  4196. */
  4197. public static function enableQueryLog()
  4198. {
  4199. //Method inherited from \Illuminate\Database\Connection
  4200. /** @var \Illuminate\Database\MySqlConnection $instance */
  4201. $instance->enableQueryLog();
  4202. }
  4203. /**
  4204. * Disable the query log on the connection.
  4205. *
  4206. * @return void
  4207. * @static
  4208. */
  4209. public static function disableQueryLog()
  4210. {
  4211. //Method inherited from \Illuminate\Database\Connection
  4212. /** @var \Illuminate\Database\MySqlConnection $instance */
  4213. $instance->disableQueryLog();
  4214. }
  4215. /**
  4216. * Determine whether we're logging queries.
  4217. *
  4218. * @return bool
  4219. * @static
  4220. */
  4221. public static function logging()
  4222. {
  4223. //Method inherited from \Illuminate\Database\Connection
  4224. /** @var \Illuminate\Database\MySqlConnection $instance */
  4225. return $instance->logging();
  4226. }
  4227. /**
  4228. * Get the name of the connected database.
  4229. *
  4230. * @return string
  4231. * @static
  4232. */
  4233. public static function getDatabaseName()
  4234. {
  4235. //Method inherited from \Illuminate\Database\Connection
  4236. /** @var \Illuminate\Database\MySqlConnection $instance */
  4237. return $instance->getDatabaseName();
  4238. }
  4239. /**
  4240. * Set the name of the connected database.
  4241. *
  4242. * @param string $database
  4243. * @return string
  4244. * @static
  4245. */
  4246. public static function setDatabaseName($database)
  4247. {
  4248. //Method inherited from \Illuminate\Database\Connection
  4249. /** @var \Illuminate\Database\MySqlConnection $instance */
  4250. return $instance->setDatabaseName($database);
  4251. }
  4252. /**
  4253. * Get the table prefix for the connection.
  4254. *
  4255. * @return string
  4256. * @static
  4257. */
  4258. public static function getTablePrefix()
  4259. {
  4260. //Method inherited from \Illuminate\Database\Connection
  4261. /** @var \Illuminate\Database\MySqlConnection $instance */
  4262. return $instance->getTablePrefix();
  4263. }
  4264. /**
  4265. * Set the table prefix in use by the connection.
  4266. *
  4267. * @param string $prefix
  4268. * @return void
  4269. * @static
  4270. */
  4271. public static function setTablePrefix($prefix)
  4272. {
  4273. //Method inherited from \Illuminate\Database\Connection
  4274. /** @var \Illuminate\Database\MySqlConnection $instance */
  4275. $instance->setTablePrefix($prefix);
  4276. }
  4277. /**
  4278. * Set the table prefix and return the grammar.
  4279. *
  4280. * @param \Illuminate\Database\Grammar $grammar
  4281. * @return \Illuminate\Database\Grammar
  4282. * @static
  4283. */
  4284. public static function withTablePrefix($grammar)
  4285. {
  4286. //Method inherited from \Illuminate\Database\Connection
  4287. /** @var \Illuminate\Database\MySqlConnection $instance */
  4288. return $instance->withTablePrefix($grammar);
  4289. }
  4290. /**
  4291. * Register a connection resolver.
  4292. *
  4293. * @param string $driver
  4294. * @param \Closure $callback
  4295. * @return void
  4296. * @static
  4297. */
  4298. public static function resolverFor($driver, $callback)
  4299. {
  4300. //Method inherited from \Illuminate\Database\Connection
  4301. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  4302. }
  4303. /**
  4304. * Get the connection resolver for the given driver.
  4305. *
  4306. * @param string $driver
  4307. * @return mixed
  4308. * @static
  4309. */
  4310. public static function getResolver($driver)
  4311. {
  4312. //Method inherited from \Illuminate\Database\Connection
  4313. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  4314. }
  4315. /**
  4316. * Execute a Closure within a transaction.
  4317. *
  4318. * @param \Closure $callback
  4319. * @param int $attempts
  4320. * @return mixed
  4321. * @throws \Exception|\Throwable
  4322. * @static
  4323. */
  4324. public static function transaction($callback, $attempts = 1)
  4325. {
  4326. //Method inherited from \Illuminate\Database\Connection
  4327. /** @var \Illuminate\Database\MySqlConnection $instance */
  4328. return $instance->transaction($callback, $attempts);
  4329. }
  4330. /**
  4331. * Start a new database transaction.
  4332. *
  4333. * @return void
  4334. * @throws \Exception
  4335. * @static
  4336. */
  4337. public static function beginTransaction()
  4338. {
  4339. //Method inherited from \Illuminate\Database\Connection
  4340. /** @var \Illuminate\Database\MySqlConnection $instance */
  4341. $instance->beginTransaction();
  4342. }
  4343. /**
  4344. * Commit the active database transaction.
  4345. *
  4346. * @return void
  4347. * @static
  4348. */
  4349. public static function commit()
  4350. {
  4351. //Method inherited from \Illuminate\Database\Connection
  4352. /** @var \Illuminate\Database\MySqlConnection $instance */
  4353. $instance->commit();
  4354. }
  4355. /**
  4356. * Rollback the active database transaction.
  4357. *
  4358. * @param int|null $toLevel
  4359. * @return void
  4360. * @throws \Exception
  4361. * @static
  4362. */
  4363. public static function rollBack($toLevel = null)
  4364. {
  4365. //Method inherited from \Illuminate\Database\Connection
  4366. /** @var \Illuminate\Database\MySqlConnection $instance */
  4367. $instance->rollBack($toLevel);
  4368. }
  4369. /**
  4370. * Get the number of active transactions.
  4371. *
  4372. * @return int
  4373. * @static
  4374. */
  4375. public static function transactionLevel()
  4376. {
  4377. //Method inherited from \Illuminate\Database\Connection
  4378. /** @var \Illuminate\Database\MySqlConnection $instance */
  4379. return $instance->transactionLevel();
  4380. }
  4381. }
  4382. /**
  4383. *
  4384. *
  4385. * @see \Illuminate\Events\Dispatcher
  4386. */
  4387. class Event {
  4388. /**
  4389. * Register an event listener with the dispatcher.
  4390. *
  4391. * @param string|array $events
  4392. * @param mixed $listener
  4393. * @return void
  4394. * @static
  4395. */
  4396. public static function listen($events, $listener)
  4397. {
  4398. /** @var \Illuminate\Events\Dispatcher $instance */
  4399. $instance->listen($events, $listener);
  4400. }
  4401. /**
  4402. * Determine if a given event has listeners.
  4403. *
  4404. * @param string $eventName
  4405. * @return bool
  4406. * @static
  4407. */
  4408. public static function hasListeners($eventName)
  4409. {
  4410. /** @var \Illuminate\Events\Dispatcher $instance */
  4411. return $instance->hasListeners($eventName);
  4412. }
  4413. /**
  4414. * Register an event and payload to be fired later.
  4415. *
  4416. * @param string $event
  4417. * @param array $payload
  4418. * @return void
  4419. * @static
  4420. */
  4421. public static function push($event, $payload = array())
  4422. {
  4423. /** @var \Illuminate\Events\Dispatcher $instance */
  4424. $instance->push($event, $payload);
  4425. }
  4426. /**
  4427. * Flush a set of pushed events.
  4428. *
  4429. * @param string $event
  4430. * @return void
  4431. * @static
  4432. */
  4433. public static function flush($event)
  4434. {
  4435. /** @var \Illuminate\Events\Dispatcher $instance */
  4436. $instance->flush($event);
  4437. }
  4438. /**
  4439. * Register an event subscriber with the dispatcher.
  4440. *
  4441. * @param object|string $subscriber
  4442. * @return void
  4443. * @static
  4444. */
  4445. public static function subscribe($subscriber)
  4446. {
  4447. /** @var \Illuminate\Events\Dispatcher $instance */
  4448. $instance->subscribe($subscriber);
  4449. }
  4450. /**
  4451. * Fire an event until the first non-null response is returned.
  4452. *
  4453. * @param string|object $event
  4454. * @param mixed $payload
  4455. * @return array|null
  4456. * @static
  4457. */
  4458. public static function until($event, $payload = array())
  4459. {
  4460. /** @var \Illuminate\Events\Dispatcher $instance */
  4461. return $instance->until($event, $payload);
  4462. }
  4463. /**
  4464. * Fire an event and call the listeners.
  4465. *
  4466. * @param string|object $event
  4467. * @param mixed $payload
  4468. * @param bool $halt
  4469. * @return array|null
  4470. * @static
  4471. */
  4472. public static function fire($event, $payload = array(), $halt = false)
  4473. {
  4474. /** @var \Illuminate\Events\Dispatcher $instance */
  4475. return $instance->fire($event, $payload, $halt);
  4476. }
  4477. /**
  4478. * Fire an event and call the listeners.
  4479. *
  4480. * @param string|object $event
  4481. * @param mixed $payload
  4482. * @param bool $halt
  4483. * @return array|null
  4484. * @static
  4485. */
  4486. public static function dispatch($event, $payload = array(), $halt = false)
  4487. {
  4488. /** @var \Illuminate\Events\Dispatcher $instance */
  4489. return $instance->dispatch($event, $payload, $halt);
  4490. }
  4491. /**
  4492. * Get all of the listeners for a given event name.
  4493. *
  4494. * @param string $eventName
  4495. * @return array
  4496. * @static
  4497. */
  4498. public static function getListeners($eventName)
  4499. {
  4500. /** @var \Illuminate\Events\Dispatcher $instance */
  4501. return $instance->getListeners($eventName);
  4502. }
  4503. /**
  4504. * Register an event listener with the dispatcher.
  4505. *
  4506. * @param \Closure|string $listener
  4507. * @param bool $wildcard
  4508. * @return \Closure
  4509. * @static
  4510. */
  4511. public static function makeListener($listener, $wildcard = false)
  4512. {
  4513. /** @var \Illuminate\Events\Dispatcher $instance */
  4514. return $instance->makeListener($listener, $wildcard);
  4515. }
  4516. /**
  4517. * Create a class based listener using the IoC container.
  4518. *
  4519. * @param string $listener
  4520. * @param bool $wildcard
  4521. * @return \Closure
  4522. * @static
  4523. */
  4524. public static function createClassListener($listener, $wildcard = false)
  4525. {
  4526. /** @var \Illuminate\Events\Dispatcher $instance */
  4527. return $instance->createClassListener($listener, $wildcard);
  4528. }
  4529. /**
  4530. * Remove a set of listeners from the dispatcher.
  4531. *
  4532. * @param string $event
  4533. * @return void
  4534. * @static
  4535. */
  4536. public static function forget($event)
  4537. {
  4538. /** @var \Illuminate\Events\Dispatcher $instance */
  4539. $instance->forget($event);
  4540. }
  4541. /**
  4542. * Forget all of the pushed listeners.
  4543. *
  4544. * @return void
  4545. * @static
  4546. */
  4547. public static function forgetPushed()
  4548. {
  4549. /** @var \Illuminate\Events\Dispatcher $instance */
  4550. $instance->forgetPushed();
  4551. }
  4552. /**
  4553. * Set the queue resolver implementation.
  4554. *
  4555. * @param callable $resolver
  4556. * @return \Illuminate\Events\Dispatcher
  4557. * @static
  4558. */
  4559. public static function setQueueResolver($resolver)
  4560. {
  4561. /** @var \Illuminate\Events\Dispatcher $instance */
  4562. return $instance->setQueueResolver($resolver);
  4563. }
  4564. /**
  4565. * Assert if an event was dispatched based on a truth-test callback.
  4566. *
  4567. * @param string $event
  4568. * @param callable|int|null $callback
  4569. * @return void
  4570. * @static
  4571. */
  4572. public static function assertDispatched($event, $callback = null)
  4573. {
  4574. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4575. $instance->assertDispatched($event, $callback);
  4576. }
  4577. /**
  4578. * Assert if a event was dispatched a number of times.
  4579. *
  4580. * @param string $event
  4581. * @param int $times
  4582. * @return void
  4583. * @static
  4584. */
  4585. public static function assertDispatchedTimes($event, $times = 1)
  4586. {
  4587. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4588. $instance->assertDispatchedTimes($event, $times);
  4589. }
  4590. /**
  4591. * Determine if an event was dispatched based on a truth-test callback.
  4592. *
  4593. * @param string $event
  4594. * @param callable|null $callback
  4595. * @return void
  4596. * @static
  4597. */
  4598. public static function assertNotDispatched($event, $callback = null)
  4599. {
  4600. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4601. $instance->assertNotDispatched($event, $callback);
  4602. }
  4603. /**
  4604. * Get all of the events matching a truth-test callback.
  4605. *
  4606. * @param string $event
  4607. * @param callable|null $callback
  4608. * @return \Illuminate\Support\Collection
  4609. * @static
  4610. */
  4611. public static function dispatched($event, $callback = null)
  4612. {
  4613. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4614. return $instance->dispatched($event, $callback);
  4615. }
  4616. /**
  4617. * Determine if the given event has been dispatched.
  4618. *
  4619. * @param string $event
  4620. * @return bool
  4621. * @static
  4622. */
  4623. public static function hasDispatched($event)
  4624. {
  4625. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4626. return $instance->hasDispatched($event);
  4627. }
  4628. }
  4629. /**
  4630. *
  4631. *
  4632. * @see \Illuminate\Filesystem\Filesystem
  4633. */
  4634. class File {
  4635. /**
  4636. * Determine if a file or directory exists.
  4637. *
  4638. * @param string $path
  4639. * @return bool
  4640. * @static
  4641. */
  4642. public static function exists($path)
  4643. {
  4644. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4645. return $instance->exists($path);
  4646. }
  4647. /**
  4648. * Get the contents of a file.
  4649. *
  4650. * @param string $path
  4651. * @param bool $lock
  4652. * @return string
  4653. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4654. * @static
  4655. */
  4656. public static function get($path, $lock = false)
  4657. {
  4658. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4659. return $instance->get($path, $lock);
  4660. }
  4661. /**
  4662. * Get contents of a file with shared access.
  4663. *
  4664. * @param string $path
  4665. * @return string
  4666. * @static
  4667. */
  4668. public static function sharedGet($path)
  4669. {
  4670. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4671. return $instance->sharedGet($path);
  4672. }
  4673. /**
  4674. * Get the returned value of a file.
  4675. *
  4676. * @param string $path
  4677. * @return mixed
  4678. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4679. * @static
  4680. */
  4681. public static function getRequire($path)
  4682. {
  4683. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4684. return $instance->getRequire($path);
  4685. }
  4686. /**
  4687. * Require the given file once.
  4688. *
  4689. * @param string $file
  4690. * @return mixed
  4691. * @static
  4692. */
  4693. public static function requireOnce($file)
  4694. {
  4695. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4696. return $instance->requireOnce($file);
  4697. }
  4698. /**
  4699. * Get the MD5 hash of the file at the given path.
  4700. *
  4701. * @param string $path
  4702. * @return string
  4703. * @static
  4704. */
  4705. public static function hash($path)
  4706. {
  4707. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4708. return $instance->hash($path);
  4709. }
  4710. /**
  4711. * Write the contents of a file.
  4712. *
  4713. * @param string $path
  4714. * @param string $contents
  4715. * @param bool $lock
  4716. * @return int
  4717. * @static
  4718. */
  4719. public static function put($path, $contents, $lock = false)
  4720. {
  4721. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4722. return $instance->put($path, $contents, $lock);
  4723. }
  4724. /**
  4725. * Prepend to a file.
  4726. *
  4727. * @param string $path
  4728. * @param string $data
  4729. * @return int
  4730. * @static
  4731. */
  4732. public static function prepend($path, $data)
  4733. {
  4734. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4735. return $instance->prepend($path, $data);
  4736. }
  4737. /**
  4738. * Append to a file.
  4739. *
  4740. * @param string $path
  4741. * @param string $data
  4742. * @return int
  4743. * @static
  4744. */
  4745. public static function append($path, $data)
  4746. {
  4747. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4748. return $instance->append($path, $data);
  4749. }
  4750. /**
  4751. * Get or set UNIX mode of a file or directory.
  4752. *
  4753. * @param string $path
  4754. * @param int $mode
  4755. * @return mixed
  4756. * @static
  4757. */
  4758. public static function chmod($path, $mode = null)
  4759. {
  4760. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4761. return $instance->chmod($path, $mode);
  4762. }
  4763. /**
  4764. * Delete the file at a given path.
  4765. *
  4766. * @param string|array $paths
  4767. * @return bool
  4768. * @static
  4769. */
  4770. public static function delete($paths)
  4771. {
  4772. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4773. return $instance->delete($paths);
  4774. }
  4775. /**
  4776. * Move a file to a new location.
  4777. *
  4778. * @param string $path
  4779. * @param string $target
  4780. * @return bool
  4781. * @static
  4782. */
  4783. public static function move($path, $target)
  4784. {
  4785. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4786. return $instance->move($path, $target);
  4787. }
  4788. /**
  4789. * Copy a file to a new location.
  4790. *
  4791. * @param string $path
  4792. * @param string $target
  4793. * @return bool
  4794. * @static
  4795. */
  4796. public static function copy($path, $target)
  4797. {
  4798. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4799. return $instance->copy($path, $target);
  4800. }
  4801. /**
  4802. * Create a hard link to the target file or directory.
  4803. *
  4804. * @param string $target
  4805. * @param string $link
  4806. * @return void
  4807. * @static
  4808. */
  4809. public static function link($target, $link)
  4810. {
  4811. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4812. $instance->link($target, $link);
  4813. }
  4814. /**
  4815. * Extract the file name from a file path.
  4816. *
  4817. * @param string $path
  4818. * @return string
  4819. * @static
  4820. */
  4821. public static function name($path)
  4822. {
  4823. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4824. return $instance->name($path);
  4825. }
  4826. /**
  4827. * Extract the trailing name component from a file path.
  4828. *
  4829. * @param string $path
  4830. * @return string
  4831. * @static
  4832. */
  4833. public static function basename($path)
  4834. {
  4835. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4836. return $instance->basename($path);
  4837. }
  4838. /**
  4839. * Extract the parent directory from a file path.
  4840. *
  4841. * @param string $path
  4842. * @return string
  4843. * @static
  4844. */
  4845. public static function dirname($path)
  4846. {
  4847. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4848. return $instance->dirname($path);
  4849. }
  4850. /**
  4851. * Extract the file extension from a file path.
  4852. *
  4853. * @param string $path
  4854. * @return string
  4855. * @static
  4856. */
  4857. public static function extension($path)
  4858. {
  4859. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4860. return $instance->extension($path);
  4861. }
  4862. /**
  4863. * Get the file type of a given file.
  4864. *
  4865. * @param string $path
  4866. * @return string
  4867. * @static
  4868. */
  4869. public static function type($path)
  4870. {
  4871. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4872. return $instance->type($path);
  4873. }
  4874. /**
  4875. * Get the mime-type of a given file.
  4876. *
  4877. * @param string $path
  4878. * @return string|false
  4879. * @static
  4880. */
  4881. public static function mimeType($path)
  4882. {
  4883. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4884. return $instance->mimeType($path);
  4885. }
  4886. /**
  4887. * Get the file size of a given file.
  4888. *
  4889. * @param string $path
  4890. * @return int
  4891. * @static
  4892. */
  4893. public static function size($path)
  4894. {
  4895. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4896. return $instance->size($path);
  4897. }
  4898. /**
  4899. * Get the file's last modification time.
  4900. *
  4901. * @param string $path
  4902. * @return int
  4903. * @static
  4904. */
  4905. public static function lastModified($path)
  4906. {
  4907. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4908. return $instance->lastModified($path);
  4909. }
  4910. /**
  4911. * Determine if the given path is a directory.
  4912. *
  4913. * @param string $directory
  4914. * @return bool
  4915. * @static
  4916. */
  4917. public static function isDirectory($directory)
  4918. {
  4919. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4920. return $instance->isDirectory($directory);
  4921. }
  4922. /**
  4923. * Determine if the given path is readable.
  4924. *
  4925. * @param string $path
  4926. * @return bool
  4927. * @static
  4928. */
  4929. public static function isReadable($path)
  4930. {
  4931. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4932. return $instance->isReadable($path);
  4933. }
  4934. /**
  4935. * Determine if the given path is writable.
  4936. *
  4937. * @param string $path
  4938. * @return bool
  4939. * @static
  4940. */
  4941. public static function isWritable($path)
  4942. {
  4943. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4944. return $instance->isWritable($path);
  4945. }
  4946. /**
  4947. * Determine if the given path is a file.
  4948. *
  4949. * @param string $file
  4950. * @return bool
  4951. * @static
  4952. */
  4953. public static function isFile($file)
  4954. {
  4955. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4956. return $instance->isFile($file);
  4957. }
  4958. /**
  4959. * Find path names matching a given pattern.
  4960. *
  4961. * @param string $pattern
  4962. * @param int $flags
  4963. * @return array
  4964. * @static
  4965. */
  4966. public static function glob($pattern, $flags = 0)
  4967. {
  4968. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4969. return $instance->glob($pattern, $flags);
  4970. }
  4971. /**
  4972. * Get an array of all files in a directory.
  4973. *
  4974. * @param string $directory
  4975. * @param bool $hidden
  4976. * @return \Symfony\Component\Finder\SplFileInfo[]
  4977. * @static
  4978. */
  4979. public static function files($directory, $hidden = false)
  4980. {
  4981. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4982. return $instance->files($directory, $hidden);
  4983. }
  4984. /**
  4985. * Get all of the files from the given directory (recursive).
  4986. *
  4987. * @param string $directory
  4988. * @param bool $hidden
  4989. * @return \Symfony\Component\Finder\SplFileInfo[]
  4990. * @static
  4991. */
  4992. public static function allFiles($directory, $hidden = false)
  4993. {
  4994. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4995. return $instance->allFiles($directory, $hidden);
  4996. }
  4997. /**
  4998. * Get all of the directories within a given directory.
  4999. *
  5000. * @param string $directory
  5001. * @return array
  5002. * @static
  5003. */
  5004. public static function directories($directory)
  5005. {
  5006. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5007. return $instance->directories($directory);
  5008. }
  5009. /**
  5010. * Create a directory.
  5011. *
  5012. * @param string $path
  5013. * @param int $mode
  5014. * @param bool $recursive
  5015. * @param bool $force
  5016. * @return bool
  5017. * @static
  5018. */
  5019. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  5020. {
  5021. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5022. return $instance->makeDirectory($path, $mode, $recursive, $force);
  5023. }
  5024. /**
  5025. * Move a directory.
  5026. *
  5027. * @param string $from
  5028. * @param string $to
  5029. * @param bool $overwrite
  5030. * @return bool
  5031. * @static
  5032. */
  5033. public static function moveDirectory($from, $to, $overwrite = false)
  5034. {
  5035. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5036. return $instance->moveDirectory($from, $to, $overwrite);
  5037. }
  5038. /**
  5039. * Copy a directory from one location to another.
  5040. *
  5041. * @param string $directory
  5042. * @param string $destination
  5043. * @param int $options
  5044. * @return bool
  5045. * @static
  5046. */
  5047. public static function copyDirectory($directory, $destination, $options = null)
  5048. {
  5049. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5050. return $instance->copyDirectory($directory, $destination, $options);
  5051. }
  5052. /**
  5053. * Recursively delete a directory.
  5054. *
  5055. * The directory itself may be optionally preserved.
  5056. *
  5057. * @param string $directory
  5058. * @param bool $preserve
  5059. * @return bool
  5060. * @static
  5061. */
  5062. public static function deleteDirectory($directory, $preserve = false)
  5063. {
  5064. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5065. return $instance->deleteDirectory($directory, $preserve);
  5066. }
  5067. /**
  5068. * Remove all of the directories within a given directory.
  5069. *
  5070. * @param string $directory
  5071. * @return bool
  5072. * @static
  5073. */
  5074. public static function deleteDirectories($directory)
  5075. {
  5076. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5077. return $instance->deleteDirectories($directory);
  5078. }
  5079. /**
  5080. * Empty the specified directory of all files and folders.
  5081. *
  5082. * @param string $directory
  5083. * @return bool
  5084. * @static
  5085. */
  5086. public static function cleanDirectory($directory)
  5087. {
  5088. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5089. return $instance->cleanDirectory($directory);
  5090. }
  5091. /**
  5092. * Register a custom macro.
  5093. *
  5094. * @param string $name
  5095. * @param object|callable $macro
  5096. * @return void
  5097. * @static
  5098. */
  5099. public static function macro($name, $macro)
  5100. {
  5101. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  5102. }
  5103. /**
  5104. * Mix another object into the class.
  5105. *
  5106. * @param object $mixin
  5107. * @return void
  5108. * @throws \ReflectionException
  5109. * @static
  5110. */
  5111. public static function mixin($mixin)
  5112. {
  5113. \Illuminate\Filesystem\Filesystem::mixin($mixin);
  5114. }
  5115. /**
  5116. * Checks if macro is registered.
  5117. *
  5118. * @param string $name
  5119. * @return bool
  5120. * @static
  5121. */
  5122. public static function hasMacro($name)
  5123. {
  5124. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  5125. }
  5126. }
  5127. /**
  5128. *
  5129. *
  5130. * @see \Illuminate\Contracts\Auth\Access\Gate
  5131. */
  5132. class Gate {
  5133. /**
  5134. * Determine if a given ability has been defined.
  5135. *
  5136. * @param string|array $ability
  5137. * @return bool
  5138. * @static
  5139. */
  5140. public static function has($ability)
  5141. {
  5142. /** @var \Illuminate\Auth\Access\Gate $instance */
  5143. return $instance->has($ability);
  5144. }
  5145. /**
  5146. * Define a new ability.
  5147. *
  5148. * @param string $ability
  5149. * @param callable|string $callback
  5150. * @return \Illuminate\Auth\Access\Gate
  5151. * @throws \InvalidArgumentException
  5152. * @static
  5153. */
  5154. public static function define($ability, $callback)
  5155. {
  5156. /** @var \Illuminate\Auth\Access\Gate $instance */
  5157. return $instance->define($ability, $callback);
  5158. }
  5159. /**
  5160. * Define abilities for a resource.
  5161. *
  5162. * @param string $name
  5163. * @param string $class
  5164. * @param array|null $abilities
  5165. * @return \Illuminate\Auth\Access\Gate
  5166. * @static
  5167. */
  5168. public static function resource($name, $class, $abilities = null)
  5169. {
  5170. /** @var \Illuminate\Auth\Access\Gate $instance */
  5171. return $instance->resource($name, $class, $abilities);
  5172. }
  5173. /**
  5174. * Define a policy class for a given class type.
  5175. *
  5176. * @param string $class
  5177. * @param string $policy
  5178. * @return \Illuminate\Auth\Access\Gate
  5179. * @static
  5180. */
  5181. public static function policy($class, $policy)
  5182. {
  5183. /** @var \Illuminate\Auth\Access\Gate $instance */
  5184. return $instance->policy($class, $policy);
  5185. }
  5186. /**
  5187. * Register a callback to run before all Gate checks.
  5188. *
  5189. * @param callable $callback
  5190. * @return \Illuminate\Auth\Access\Gate
  5191. * @static
  5192. */
  5193. public static function before($callback)
  5194. {
  5195. /** @var \Illuminate\Auth\Access\Gate $instance */
  5196. return $instance->before($callback);
  5197. }
  5198. /**
  5199. * Register a callback to run after all Gate checks.
  5200. *
  5201. * @param callable $callback
  5202. * @return \Illuminate\Auth\Access\Gate
  5203. * @static
  5204. */
  5205. public static function after($callback)
  5206. {
  5207. /** @var \Illuminate\Auth\Access\Gate $instance */
  5208. return $instance->after($callback);
  5209. }
  5210. /**
  5211. * Determine if the given ability should be granted for the current user.
  5212. *
  5213. * @param string $ability
  5214. * @param array|mixed $arguments
  5215. * @return bool
  5216. * @static
  5217. */
  5218. public static function allows($ability, $arguments = array())
  5219. {
  5220. /** @var \Illuminate\Auth\Access\Gate $instance */
  5221. return $instance->allows($ability, $arguments);
  5222. }
  5223. /**
  5224. * Determine if the given ability should be denied for the current user.
  5225. *
  5226. * @param string $ability
  5227. * @param array|mixed $arguments
  5228. * @return bool
  5229. * @static
  5230. */
  5231. public static function denies($ability, $arguments = array())
  5232. {
  5233. /** @var \Illuminate\Auth\Access\Gate $instance */
  5234. return $instance->denies($ability, $arguments);
  5235. }
  5236. /**
  5237. * Determine if all of the given abilities should be granted for the current user.
  5238. *
  5239. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5240. * @param array|mixed $arguments
  5241. * @return bool
  5242. * @static
  5243. */
  5244. public static function check($abilities, $arguments = array())
  5245. {
  5246. /** @var \Illuminate\Auth\Access\Gate $instance */
  5247. return $instance->check($abilities, $arguments);
  5248. }
  5249. /**
  5250. * Determine if any one of the given abilities should be granted for the current user.
  5251. *
  5252. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5253. * @param array|mixed $arguments
  5254. * @return bool
  5255. * @static
  5256. */
  5257. public static function any($abilities, $arguments = array())
  5258. {
  5259. /** @var \Illuminate\Auth\Access\Gate $instance */
  5260. return $instance->any($abilities, $arguments);
  5261. }
  5262. /**
  5263. * Determine if the given ability should be granted for the current user.
  5264. *
  5265. * @param string $ability
  5266. * @param array|mixed $arguments
  5267. * @return \Illuminate\Auth\Access\Response
  5268. * @throws \Illuminate\Auth\Access\AuthorizationException
  5269. * @static
  5270. */
  5271. public static function authorize($ability, $arguments = array())
  5272. {
  5273. /** @var \Illuminate\Auth\Access\Gate $instance */
  5274. return $instance->authorize($ability, $arguments);
  5275. }
  5276. /**
  5277. * Get a policy instance for a given class.
  5278. *
  5279. * @param object|string $class
  5280. * @return mixed
  5281. * @static
  5282. */
  5283. public static function getPolicyFor($class)
  5284. {
  5285. /** @var \Illuminate\Auth\Access\Gate $instance */
  5286. return $instance->getPolicyFor($class);
  5287. }
  5288. /**
  5289. * Build a policy class instance of the given type.
  5290. *
  5291. * @param object|string $class
  5292. * @return mixed
  5293. * @static
  5294. */
  5295. public static function resolvePolicy($class)
  5296. {
  5297. /** @var \Illuminate\Auth\Access\Gate $instance */
  5298. return $instance->resolvePolicy($class);
  5299. }
  5300. /**
  5301. * Get a gate instance for the given user.
  5302. *
  5303. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  5304. * @return static
  5305. * @static
  5306. */
  5307. public static function forUser($user)
  5308. {
  5309. /** @var \Illuminate\Auth\Access\Gate $instance */
  5310. return $instance->forUser($user);
  5311. }
  5312. /**
  5313. * Get all of the defined abilities.
  5314. *
  5315. * @return array
  5316. * @static
  5317. */
  5318. public static function abilities()
  5319. {
  5320. /** @var \Illuminate\Auth\Access\Gate $instance */
  5321. return $instance->abilities();
  5322. }
  5323. /**
  5324. * Get all of the defined policies.
  5325. *
  5326. * @return array
  5327. * @static
  5328. */
  5329. public static function policies()
  5330. {
  5331. /** @var \Illuminate\Auth\Access\Gate $instance */
  5332. return $instance->policies();
  5333. }
  5334. }
  5335. /**
  5336. *
  5337. *
  5338. * @see \Illuminate\Hashing\HashManager
  5339. */
  5340. class Hash {
  5341. /**
  5342. * Create an instance of the Bcrypt hash Driver.
  5343. *
  5344. * @return \Illuminate\Hashing\BcryptHasher
  5345. * @static
  5346. */
  5347. public static function createBcryptDriver()
  5348. {
  5349. /** @var \Illuminate\Hashing\HashManager $instance */
  5350. return $instance->createBcryptDriver();
  5351. }
  5352. /**
  5353. * Create an instance of the Argon2 hash Driver.
  5354. *
  5355. * @return \Illuminate\Hashing\ArgonHasher
  5356. * @static
  5357. */
  5358. public static function createArgonDriver()
  5359. {
  5360. /** @var \Illuminate\Hashing\HashManager $instance */
  5361. return $instance->createArgonDriver();
  5362. }
  5363. /**
  5364. * Get information about the given hashed value.
  5365. *
  5366. * @param string $hashedValue
  5367. * @return array
  5368. * @static
  5369. */
  5370. public static function info($hashedValue)
  5371. {
  5372. /** @var \Illuminate\Hashing\HashManager $instance */
  5373. return $instance->info($hashedValue);
  5374. }
  5375. /**
  5376. * Hash the given value.
  5377. *
  5378. * @param string $value
  5379. * @param array $options
  5380. * @return string
  5381. * @static
  5382. */
  5383. public static function make($value, $options = array())
  5384. {
  5385. /** @var \Illuminate\Hashing\HashManager $instance */
  5386. return $instance->make($value, $options);
  5387. }
  5388. /**
  5389. * Check the given plain value against a hash.
  5390. *
  5391. * @param string $value
  5392. * @param string $hashedValue
  5393. * @param array $options
  5394. * @return bool
  5395. * @static
  5396. */
  5397. public static function check($value, $hashedValue, $options = array())
  5398. {
  5399. /** @var \Illuminate\Hashing\HashManager $instance */
  5400. return $instance->check($value, $hashedValue, $options);
  5401. }
  5402. /**
  5403. * Check if the given hash has been hashed using the given options.
  5404. *
  5405. * @param string $hashedValue
  5406. * @param array $options
  5407. * @return bool
  5408. * @static
  5409. */
  5410. public static function needsRehash($hashedValue, $options = array())
  5411. {
  5412. /** @var \Illuminate\Hashing\HashManager $instance */
  5413. return $instance->needsRehash($hashedValue, $options);
  5414. }
  5415. /**
  5416. * Get the default driver name.
  5417. *
  5418. * @return string
  5419. * @static
  5420. */
  5421. public static function getDefaultDriver()
  5422. {
  5423. /** @var \Illuminate\Hashing\HashManager $instance */
  5424. return $instance->getDefaultDriver();
  5425. }
  5426. /**
  5427. * Get a driver instance.
  5428. *
  5429. * @param string $driver
  5430. * @return mixed
  5431. * @throws \InvalidArgumentException
  5432. * @static
  5433. */
  5434. public static function driver($driver = null)
  5435. {
  5436. //Method inherited from \Illuminate\Support\Manager
  5437. /** @var \Illuminate\Hashing\HashManager $instance */
  5438. return $instance->driver($driver);
  5439. }
  5440. /**
  5441. * Register a custom driver creator Closure.
  5442. *
  5443. * @param string $driver
  5444. * @param \Closure $callback
  5445. * @return \Illuminate\Hashing\HashManager
  5446. * @static
  5447. */
  5448. public static function extend($driver, $callback)
  5449. {
  5450. //Method inherited from \Illuminate\Support\Manager
  5451. /** @var \Illuminate\Hashing\HashManager $instance */
  5452. return $instance->extend($driver, $callback);
  5453. }
  5454. /**
  5455. * Get all of the created "drivers".
  5456. *
  5457. * @return array
  5458. * @static
  5459. */
  5460. public static function getDrivers()
  5461. {
  5462. //Method inherited from \Illuminate\Support\Manager
  5463. /** @var \Illuminate\Hashing\HashManager $instance */
  5464. return $instance->getDrivers();
  5465. }
  5466. }
  5467. /**
  5468. *
  5469. *
  5470. * @see \Illuminate\Translation\Translator
  5471. */
  5472. class Lang {
  5473. /**
  5474. * Determine if a translation exists for a given locale.
  5475. *
  5476. * @param string $key
  5477. * @param string|null $locale
  5478. * @return bool
  5479. * @static
  5480. */
  5481. public static function hasForLocale($key, $locale = null)
  5482. {
  5483. /** @var \Illuminate\Translation\Translator $instance */
  5484. return $instance->hasForLocale($key, $locale);
  5485. }
  5486. /**
  5487. * Determine if a translation exists.
  5488. *
  5489. * @param string $key
  5490. * @param string|null $locale
  5491. * @param bool $fallback
  5492. * @return bool
  5493. * @static
  5494. */
  5495. public static function has($key, $locale = null, $fallback = true)
  5496. {
  5497. /** @var \Illuminate\Translation\Translator $instance */
  5498. return $instance->has($key, $locale, $fallback);
  5499. }
  5500. /**
  5501. * Get the translation for a given key.
  5502. *
  5503. * @param string $key
  5504. * @param array $replace
  5505. * @param string $locale
  5506. * @return string|array|null
  5507. * @static
  5508. */
  5509. public static function trans($key, $replace = array(), $locale = null)
  5510. {
  5511. /** @var \Illuminate\Translation\Translator $instance */
  5512. return $instance->trans($key, $replace, $locale);
  5513. }
  5514. /**
  5515. * Get the translation for the given key.
  5516. *
  5517. * @param string $key
  5518. * @param array $replace
  5519. * @param string|null $locale
  5520. * @param bool $fallback
  5521. * @return string|array|null
  5522. * @static
  5523. */
  5524. public static function get($key, $replace = array(), $locale = null, $fallback = true)
  5525. {
  5526. /** @var \Illuminate\Translation\Translator $instance */
  5527. return $instance->get($key, $replace, $locale, $fallback);
  5528. }
  5529. /**
  5530. * Get the translation for a given key from the JSON translation files.
  5531. *
  5532. * @param string $key
  5533. * @param array $replace
  5534. * @param string $locale
  5535. * @return string|array|null
  5536. * @static
  5537. */
  5538. public static function getFromJson($key, $replace = array(), $locale = null)
  5539. {
  5540. /** @var \Illuminate\Translation\Translator $instance */
  5541. return $instance->getFromJson($key, $replace, $locale);
  5542. }
  5543. /**
  5544. * Get a translation according to an integer value.
  5545. *
  5546. * @param string $key
  5547. * @param int|array|\Countable $number
  5548. * @param array $replace
  5549. * @param string $locale
  5550. * @return string
  5551. * @static
  5552. */
  5553. public static function transChoice($key, $number, $replace = array(), $locale = null)
  5554. {
  5555. /** @var \Illuminate\Translation\Translator $instance */
  5556. return $instance->transChoice($key, $number, $replace, $locale);
  5557. }
  5558. /**
  5559. * Get a translation according to an integer value.
  5560. *
  5561. * @param string $key
  5562. * @param int|array|\Countable $number
  5563. * @param array $replace
  5564. * @param string $locale
  5565. * @return string
  5566. * @static
  5567. */
  5568. public static function choice($key, $number, $replace = array(), $locale = null)
  5569. {
  5570. /** @var \Illuminate\Translation\Translator $instance */
  5571. return $instance->choice($key, $number, $replace, $locale);
  5572. }
  5573. /**
  5574. * Add translation lines to the given locale.
  5575. *
  5576. * @param array $lines
  5577. * @param string $locale
  5578. * @param string $namespace
  5579. * @return void
  5580. * @static
  5581. */
  5582. public static function addLines($lines, $locale, $namespace = '*')
  5583. {
  5584. /** @var \Illuminate\Translation\Translator $instance */
  5585. $instance->addLines($lines, $locale, $namespace);
  5586. }
  5587. /**
  5588. * Load the specified language group.
  5589. *
  5590. * @param string $namespace
  5591. * @param string $group
  5592. * @param string $locale
  5593. * @return void
  5594. * @static
  5595. */
  5596. public static function load($namespace, $group, $locale)
  5597. {
  5598. /** @var \Illuminate\Translation\Translator $instance */
  5599. $instance->load($namespace, $group, $locale);
  5600. }
  5601. /**
  5602. * Add a new namespace to the loader.
  5603. *
  5604. * @param string $namespace
  5605. * @param string $hint
  5606. * @return void
  5607. * @static
  5608. */
  5609. public static function addNamespace($namespace, $hint)
  5610. {
  5611. /** @var \Illuminate\Translation\Translator $instance */
  5612. $instance->addNamespace($namespace, $hint);
  5613. }
  5614. /**
  5615. * Add a new JSON path to the loader.
  5616. *
  5617. * @param string $path
  5618. * @return void
  5619. * @static
  5620. */
  5621. public static function addJsonPath($path)
  5622. {
  5623. /** @var \Illuminate\Translation\Translator $instance */
  5624. $instance->addJsonPath($path);
  5625. }
  5626. /**
  5627. * Parse a key into namespace, group, and item.
  5628. *
  5629. * @param string $key
  5630. * @return array
  5631. * @static
  5632. */
  5633. public static function parseKey($key)
  5634. {
  5635. /** @var \Illuminate\Translation\Translator $instance */
  5636. return $instance->parseKey($key);
  5637. }
  5638. /**
  5639. * Get the message selector instance.
  5640. *
  5641. * @return \Illuminate\Translation\MessageSelector
  5642. * @static
  5643. */
  5644. public static function getSelector()
  5645. {
  5646. /** @var \Illuminate\Translation\Translator $instance */
  5647. return $instance->getSelector();
  5648. }
  5649. /**
  5650. * Set the message selector instance.
  5651. *
  5652. * @param \Illuminate\Translation\MessageSelector $selector
  5653. * @return void
  5654. * @static
  5655. */
  5656. public static function setSelector($selector)
  5657. {
  5658. /** @var \Illuminate\Translation\Translator $instance */
  5659. $instance->setSelector($selector);
  5660. }
  5661. /**
  5662. * Get the language line loader implementation.
  5663. *
  5664. * @return \Illuminate\Contracts\Translation\Loader
  5665. * @static
  5666. */
  5667. public static function getLoader()
  5668. {
  5669. /** @var \Illuminate\Translation\Translator $instance */
  5670. return $instance->getLoader();
  5671. }
  5672. /**
  5673. * Get the default locale being used.
  5674. *
  5675. * @return string
  5676. * @static
  5677. */
  5678. public static function locale()
  5679. {
  5680. /** @var \Illuminate\Translation\Translator $instance */
  5681. return $instance->locale();
  5682. }
  5683. /**
  5684. * Get the default locale being used.
  5685. *
  5686. * @return string
  5687. * @static
  5688. */
  5689. public static function getLocale()
  5690. {
  5691. /** @var \Illuminate\Translation\Translator $instance */
  5692. return $instance->getLocale();
  5693. }
  5694. /**
  5695. * Set the default locale.
  5696. *
  5697. * @param string $locale
  5698. * @return void
  5699. * @static
  5700. */
  5701. public static function setLocale($locale)
  5702. {
  5703. /** @var \Illuminate\Translation\Translator $instance */
  5704. $instance->setLocale($locale);
  5705. }
  5706. /**
  5707. * Get the fallback locale being used.
  5708. *
  5709. * @return string
  5710. * @static
  5711. */
  5712. public static function getFallback()
  5713. {
  5714. /** @var \Illuminate\Translation\Translator $instance */
  5715. return $instance->getFallback();
  5716. }
  5717. /**
  5718. * Set the fallback locale being used.
  5719. *
  5720. * @param string $fallback
  5721. * @return void
  5722. * @static
  5723. */
  5724. public static function setFallback($fallback)
  5725. {
  5726. /** @var \Illuminate\Translation\Translator $instance */
  5727. $instance->setFallback($fallback);
  5728. }
  5729. /**
  5730. * Set the loaded translation groups.
  5731. *
  5732. * @param array $loaded
  5733. * @return void
  5734. * @static
  5735. */
  5736. public static function setLoaded($loaded)
  5737. {
  5738. /** @var \Illuminate\Translation\Translator $instance */
  5739. $instance->setLoaded($loaded);
  5740. }
  5741. /**
  5742. * Set the parsed value of a key.
  5743. *
  5744. * @param string $key
  5745. * @param array $parsed
  5746. * @return void
  5747. * @static
  5748. */
  5749. public static function setParsedKey($key, $parsed)
  5750. {
  5751. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  5752. /** @var \Illuminate\Translation\Translator $instance */
  5753. $instance->setParsedKey($key, $parsed);
  5754. }
  5755. /**
  5756. * Register a custom macro.
  5757. *
  5758. * @param string $name
  5759. * @param object|callable $macro
  5760. * @return void
  5761. * @static
  5762. */
  5763. public static function macro($name, $macro)
  5764. {
  5765. \Illuminate\Translation\Translator::macro($name, $macro);
  5766. }
  5767. /**
  5768. * Mix another object into the class.
  5769. *
  5770. * @param object $mixin
  5771. * @return void
  5772. * @throws \ReflectionException
  5773. * @static
  5774. */
  5775. public static function mixin($mixin)
  5776. {
  5777. \Illuminate\Translation\Translator::mixin($mixin);
  5778. }
  5779. /**
  5780. * Checks if macro is registered.
  5781. *
  5782. * @param string $name
  5783. * @return bool
  5784. * @static
  5785. */
  5786. public static function hasMacro($name)
  5787. {
  5788. return \Illuminate\Translation\Translator::hasMacro($name);
  5789. }
  5790. }
  5791. /**
  5792. *
  5793. *
  5794. * @see \Illuminate\Log\Logger
  5795. */
  5796. class Log {
  5797. /**
  5798. * Adds a log record at the DEBUG level.
  5799. *
  5800. * @param string $message The log message
  5801. * @param array $context The log context
  5802. * @return bool Whether the record has been processed
  5803. * @static
  5804. */
  5805. public static function debug($message, $context = array())
  5806. {
  5807. /** @var \Monolog\Logger $instance */
  5808. return $instance->addDebug($message, $context);
  5809. }
  5810. /**
  5811. * Adds a log record at the INFO level.
  5812. *
  5813. * @param string $message The log message
  5814. * @param array $context The log context
  5815. * @return bool Whether the record has been processed
  5816. * @static
  5817. */
  5818. public static function info($message, $context = array())
  5819. {
  5820. /** @var \Monolog\Logger $instance */
  5821. return $instance->addInfo($message, $context);
  5822. }
  5823. /**
  5824. * Adds a log record at the NOTICE level.
  5825. *
  5826. * @param string $message The log message
  5827. * @param array $context The log context
  5828. * @return bool Whether the record has been processed
  5829. * @static
  5830. */
  5831. public static function notice($message, $context = array())
  5832. {
  5833. /** @var \Monolog\Logger $instance */
  5834. return $instance->addNotice($message, $context);
  5835. }
  5836. /**
  5837. * Adds a log record at the WARNING level.
  5838. *
  5839. * @param string $message The log message
  5840. * @param array $context The log context
  5841. * @return bool Whether the record has been processed
  5842. * @static
  5843. */
  5844. public static function warning($message, $context = array())
  5845. {
  5846. /** @var \Monolog\Logger $instance */
  5847. return $instance->addWarning($message, $context);
  5848. }
  5849. /**
  5850. * Adds a log record at the ERROR level.
  5851. *
  5852. * @param string $message The log message
  5853. * @param array $context The log context
  5854. * @return bool Whether the record has been processed
  5855. * @static
  5856. */
  5857. public static function error($message, $context = array())
  5858. {
  5859. /** @var \Monolog\Logger $instance */
  5860. return $instance->addError($message, $context);
  5861. }
  5862. /**
  5863. * Adds a log record at the CRITICAL level.
  5864. *
  5865. * @param string $message The log message
  5866. * @param array $context The log context
  5867. * @return bool Whether the record has been processed
  5868. * @static
  5869. */
  5870. public static function critical($message, $context = array())
  5871. {
  5872. /** @var \Monolog\Logger $instance */
  5873. return $instance->addCritical($message, $context);
  5874. }
  5875. /**
  5876. * Adds a log record at the ALERT level.
  5877. *
  5878. * @param string $message The log message
  5879. * @param array $context The log context
  5880. * @return bool Whether the record has been processed
  5881. * @static
  5882. */
  5883. public static function alert($message, $context = array())
  5884. {
  5885. /** @var \Monolog\Logger $instance */
  5886. return $instance->addAlert($message, $context);
  5887. }
  5888. /**
  5889. * Adds a log record at the EMERGENCY level.
  5890. *
  5891. * @param string $message The log message
  5892. * @param array $context The log context
  5893. * @return bool Whether the record has been processed
  5894. * @static
  5895. */
  5896. public static function emergency($message, $context = array())
  5897. {
  5898. /** @var \Monolog\Logger $instance */
  5899. return $instance->addEmergency($message, $context);
  5900. }
  5901. /**
  5902. * Create a new, on-demand aggregate logger instance.
  5903. *
  5904. * @param array $channels
  5905. * @param string|null $channel
  5906. * @return \Psr\Log\LoggerInterface
  5907. * @static
  5908. */
  5909. public static function stack($channels, $channel = null)
  5910. {
  5911. /** @var \Illuminate\Log\LogManager $instance */
  5912. return $instance->stack($channels, $channel);
  5913. }
  5914. /**
  5915. * Get a log channel instance.
  5916. *
  5917. * @param string|null $channel
  5918. * @return mixed
  5919. * @static
  5920. */
  5921. public static function channel($channel = null)
  5922. {
  5923. /** @var \Illuminate\Log\LogManager $instance */
  5924. return $instance->channel($channel);
  5925. }
  5926. /**
  5927. * Get a log driver instance.
  5928. *
  5929. * @param string|null $driver
  5930. * @return mixed
  5931. * @static
  5932. */
  5933. public static function driver($driver = null)
  5934. {
  5935. /** @var \Illuminate\Log\LogManager $instance */
  5936. return $instance->driver($driver);
  5937. }
  5938. /**
  5939. * Get the default log driver name.
  5940. *
  5941. * @return string
  5942. * @static
  5943. */
  5944. public static function getDefaultDriver()
  5945. {
  5946. /** @var \Illuminate\Log\LogManager $instance */
  5947. return $instance->getDefaultDriver();
  5948. }
  5949. /**
  5950. * Set the default log driver name.
  5951. *
  5952. * @param string $name
  5953. * @return void
  5954. * @static
  5955. */
  5956. public static function setDefaultDriver($name)
  5957. {
  5958. /** @var \Illuminate\Log\LogManager $instance */
  5959. $instance->setDefaultDriver($name);
  5960. }
  5961. /**
  5962. * Register a custom driver creator Closure.
  5963. *
  5964. * @param string $driver
  5965. * @param \Closure $callback
  5966. * @return \Illuminate\Log\LogManager
  5967. * @static
  5968. */
  5969. public static function extend($driver, $callback)
  5970. {
  5971. /** @var \Illuminate\Log\LogManager $instance */
  5972. return $instance->extend($driver, $callback);
  5973. }
  5974. /**
  5975. * Logs with an arbitrary level.
  5976. *
  5977. * @param mixed $level
  5978. * @param string $message
  5979. * @param array $context
  5980. * @return void
  5981. * @static
  5982. */
  5983. public static function log($level, $message, $context = array())
  5984. {
  5985. /** @var \Illuminate\Log\LogManager $instance */
  5986. $instance->log($level, $message, $context);
  5987. }
  5988. }
  5989. /**
  5990. *
  5991. *
  5992. * @see \Illuminate\Mail\Mailer
  5993. */
  5994. class Mail {
  5995. /**
  5996. * Set the global from address and name.
  5997. *
  5998. * @param string $address
  5999. * @param string|null $name
  6000. * @return void
  6001. * @static
  6002. */
  6003. public static function alwaysFrom($address, $name = null)
  6004. {
  6005. /** @var \Illuminate\Mail\Mailer $instance */
  6006. $instance->alwaysFrom($address, $name);
  6007. }
  6008. /**
  6009. * Set the global reply-to address and name.
  6010. *
  6011. * @param string $address
  6012. * @param string|null $name
  6013. * @return void
  6014. * @static
  6015. */
  6016. public static function alwaysReplyTo($address, $name = null)
  6017. {
  6018. /** @var \Illuminate\Mail\Mailer $instance */
  6019. $instance->alwaysReplyTo($address, $name);
  6020. }
  6021. /**
  6022. * Set the global to address and name.
  6023. *
  6024. * @param string $address
  6025. * @param string|null $name
  6026. * @return void
  6027. * @static
  6028. */
  6029. public static function alwaysTo($address, $name = null)
  6030. {
  6031. /** @var \Illuminate\Mail\Mailer $instance */
  6032. $instance->alwaysTo($address, $name);
  6033. }
  6034. /**
  6035. * Begin the process of mailing a mailable class instance.
  6036. *
  6037. * @param mixed $users
  6038. * @return \Illuminate\Mail\PendingMail
  6039. * @static
  6040. */
  6041. public static function to($users)
  6042. {
  6043. /** @var \Illuminate\Mail\Mailer $instance */
  6044. return $instance->to($users);
  6045. }
  6046. /**
  6047. * Begin the process of mailing a mailable class instance.
  6048. *
  6049. * @param mixed $users
  6050. * @return \Illuminate\Mail\PendingMail
  6051. * @static
  6052. */
  6053. public static function bcc($users)
  6054. {
  6055. /** @var \Illuminate\Mail\Mailer $instance */
  6056. return $instance->bcc($users);
  6057. }
  6058. /**
  6059. * Send a new message with only an HTML part.
  6060. *
  6061. * @param string $html
  6062. * @param mixed $callback
  6063. * @return void
  6064. * @static
  6065. */
  6066. public static function html($html, $callback)
  6067. {
  6068. /** @var \Illuminate\Mail\Mailer $instance */
  6069. $instance->html($html, $callback);
  6070. }
  6071. /**
  6072. * Send a new message when only a raw text part.
  6073. *
  6074. * @param string $text
  6075. * @param mixed $callback
  6076. * @return void
  6077. * @static
  6078. */
  6079. public static function raw($text, $callback)
  6080. {
  6081. /** @var \Illuminate\Mail\Mailer $instance */
  6082. $instance->raw($text, $callback);
  6083. }
  6084. /**
  6085. * Send a new message when only a plain part.
  6086. *
  6087. * @param string $view
  6088. * @param array $data
  6089. * @param mixed $callback
  6090. * @return void
  6091. * @static
  6092. */
  6093. public static function plain($view, $data, $callback)
  6094. {
  6095. /** @var \Illuminate\Mail\Mailer $instance */
  6096. $instance->plain($view, $data, $callback);
  6097. }
  6098. /**
  6099. * Render the given message as a view.
  6100. *
  6101. * @param string|array $view
  6102. * @param array $data
  6103. * @return string
  6104. * @static
  6105. */
  6106. public static function render($view, $data = array())
  6107. {
  6108. /** @var \Illuminate\Mail\Mailer $instance */
  6109. return $instance->render($view, $data);
  6110. }
  6111. /**
  6112. * Send a new message using a view.
  6113. *
  6114. * @param string|array|\Illuminate\Mail\MailableContract $view
  6115. * @param array $data
  6116. * @param \Closure|string $callback
  6117. * @return void
  6118. * @static
  6119. */
  6120. public static function send($view, $data = array(), $callback = null)
  6121. {
  6122. /** @var \Illuminate\Mail\Mailer $instance */
  6123. $instance->send($view, $data, $callback);
  6124. }
  6125. /**
  6126. * Queue a new e-mail message for sending.
  6127. *
  6128. * @param string|array|\Illuminate\Mail\MailableContract $view
  6129. * @param string|null $queue
  6130. * @return mixed
  6131. * @static
  6132. */
  6133. public static function queue($view, $queue = null)
  6134. {
  6135. /** @var \Illuminate\Mail\Mailer $instance */
  6136. return $instance->queue($view, $queue);
  6137. }
  6138. /**
  6139. * Queue a new e-mail message for sending on the given queue.
  6140. *
  6141. * @param string $queue
  6142. * @param string|array $view
  6143. * @return mixed
  6144. * @static
  6145. */
  6146. public static function onQueue($queue, $view)
  6147. {
  6148. /** @var \Illuminate\Mail\Mailer $instance */
  6149. return $instance->onQueue($queue, $view);
  6150. }
  6151. /**
  6152. * Queue a new e-mail message for sending on the given queue.
  6153. *
  6154. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  6155. *
  6156. * @param string $queue
  6157. * @param string|array $view
  6158. * @return mixed
  6159. * @static
  6160. */
  6161. public static function queueOn($queue, $view)
  6162. {
  6163. /** @var \Illuminate\Mail\Mailer $instance */
  6164. return $instance->queueOn($queue, $view);
  6165. }
  6166. /**
  6167. * Queue a new e-mail message for sending after (n) seconds.
  6168. *
  6169. * @param \DateTimeInterface|\DateInterval|int $delay
  6170. * @param string|array|\Illuminate\Mail\MailableContract $view
  6171. * @param string|null $queue
  6172. * @return mixed
  6173. * @static
  6174. */
  6175. public static function later($delay, $view, $queue = null)
  6176. {
  6177. /** @var \Illuminate\Mail\Mailer $instance */
  6178. return $instance->later($delay, $view, $queue);
  6179. }
  6180. /**
  6181. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  6182. *
  6183. * @param string $queue
  6184. * @param \DateTimeInterface|\DateInterval|int $delay
  6185. * @param string|array $view
  6186. * @return mixed
  6187. * @static
  6188. */
  6189. public static function laterOn($queue, $delay, $view)
  6190. {
  6191. /** @var \Illuminate\Mail\Mailer $instance */
  6192. return $instance->laterOn($queue, $delay, $view);
  6193. }
  6194. /**
  6195. * Get the view factory instance.
  6196. *
  6197. * @return \Illuminate\Contracts\View\Factory
  6198. * @static
  6199. */
  6200. public static function getViewFactory()
  6201. {
  6202. /** @var \Illuminate\Mail\Mailer $instance */
  6203. return $instance->getViewFactory();
  6204. }
  6205. /**
  6206. * Get the Swift Mailer instance.
  6207. *
  6208. * @return \Swift_Mailer
  6209. * @static
  6210. */
  6211. public static function getSwiftMailer()
  6212. {
  6213. /** @var \Illuminate\Mail\Mailer $instance */
  6214. return $instance->getSwiftMailer();
  6215. }
  6216. /**
  6217. * Get the array of failed recipients.
  6218. *
  6219. * @return array
  6220. * @static
  6221. */
  6222. public static function failures()
  6223. {
  6224. /** @var \Illuminate\Mail\Mailer $instance */
  6225. return $instance->failures();
  6226. }
  6227. /**
  6228. * Set the Swift Mailer instance.
  6229. *
  6230. * @param \Swift_Mailer $swift
  6231. * @return void
  6232. * @static
  6233. */
  6234. public static function setSwiftMailer($swift)
  6235. {
  6236. /** @var \Illuminate\Mail\Mailer $instance */
  6237. $instance->setSwiftMailer($swift);
  6238. }
  6239. /**
  6240. * Set the queue manager instance.
  6241. *
  6242. * @param \Illuminate\Contracts\Queue\Factory $queue
  6243. * @return \Illuminate\Mail\Mailer
  6244. * @static
  6245. */
  6246. public static function setQueue($queue)
  6247. {
  6248. /** @var \Illuminate\Mail\Mailer $instance */
  6249. return $instance->setQueue($queue);
  6250. }
  6251. /**
  6252. * Register a custom macro.
  6253. *
  6254. * @param string $name
  6255. * @param object|callable $macro
  6256. * @return void
  6257. * @static
  6258. */
  6259. public static function macro($name, $macro)
  6260. {
  6261. \Illuminate\Mail\Mailer::macro($name, $macro);
  6262. }
  6263. /**
  6264. * Mix another object into the class.
  6265. *
  6266. * @param object $mixin
  6267. * @return void
  6268. * @throws \ReflectionException
  6269. * @static
  6270. */
  6271. public static function mixin($mixin)
  6272. {
  6273. \Illuminate\Mail\Mailer::mixin($mixin);
  6274. }
  6275. /**
  6276. * Checks if macro is registered.
  6277. *
  6278. * @param string $name
  6279. * @return bool
  6280. * @static
  6281. */
  6282. public static function hasMacro($name)
  6283. {
  6284. return \Illuminate\Mail\Mailer::hasMacro($name);
  6285. }
  6286. /**
  6287. * Assert if a mailable was sent based on a truth-test callback.
  6288. *
  6289. * @param string $mailable
  6290. * @param callable|int|null $callback
  6291. * @return void
  6292. * @static
  6293. */
  6294. public static function assertSent($mailable, $callback = null)
  6295. {
  6296. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6297. $instance->assertSent($mailable, $callback);
  6298. }
  6299. /**
  6300. * Determine if a mailable was not sent based on a truth-test callback.
  6301. *
  6302. * @param string $mailable
  6303. * @param callable|null $callback
  6304. * @return void
  6305. * @static
  6306. */
  6307. public static function assertNotSent($mailable, $callback = null)
  6308. {
  6309. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6310. $instance->assertNotSent($mailable, $callback);
  6311. }
  6312. /**
  6313. * Assert that no mailables were sent.
  6314. *
  6315. * @return void
  6316. * @static
  6317. */
  6318. public static function assertNothingSent()
  6319. {
  6320. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6321. $instance->assertNothingSent();
  6322. }
  6323. /**
  6324. * Assert if a mailable was queued based on a truth-test callback.
  6325. *
  6326. * @param string $mailable
  6327. * @param callable|int|null $callback
  6328. * @return void
  6329. * @static
  6330. */
  6331. public static function assertQueued($mailable, $callback = null)
  6332. {
  6333. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6334. $instance->assertQueued($mailable, $callback);
  6335. }
  6336. /**
  6337. * Determine if a mailable was not queued based on a truth-test callback.
  6338. *
  6339. * @param string $mailable
  6340. * @param callable|null $callback
  6341. * @return void
  6342. * @static
  6343. */
  6344. public static function assertNotQueued($mailable, $callback = null)
  6345. {
  6346. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6347. $instance->assertNotQueued($mailable, $callback);
  6348. }
  6349. /**
  6350. * Assert that no mailables were queued.
  6351. *
  6352. * @return void
  6353. * @static
  6354. */
  6355. public static function assertNothingQueued()
  6356. {
  6357. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6358. $instance->assertNothingQueued();
  6359. }
  6360. /**
  6361. * Get all of the mailables matching a truth-test callback.
  6362. *
  6363. * @param string $mailable
  6364. * @param callable|null $callback
  6365. * @return \Illuminate\Support\Collection
  6366. * @static
  6367. */
  6368. public static function sent($mailable, $callback = null)
  6369. {
  6370. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6371. return $instance->sent($mailable, $callback);
  6372. }
  6373. /**
  6374. * Determine if the given mailable has been sent.
  6375. *
  6376. * @param string $mailable
  6377. * @return bool
  6378. * @static
  6379. */
  6380. public static function hasSent($mailable)
  6381. {
  6382. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6383. return $instance->hasSent($mailable);
  6384. }
  6385. /**
  6386. * Get all of the queued mailables matching a truth-test callback.
  6387. *
  6388. * @param string $mailable
  6389. * @param callable|null $callback
  6390. * @return \Illuminate\Support\Collection
  6391. * @static
  6392. */
  6393. public static function queued($mailable, $callback = null)
  6394. {
  6395. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6396. return $instance->queued($mailable, $callback);
  6397. }
  6398. /**
  6399. * Determine if the given mailable has been queued.
  6400. *
  6401. * @param string $mailable
  6402. * @return bool
  6403. * @static
  6404. */
  6405. public static function hasQueued($mailable)
  6406. {
  6407. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6408. return $instance->hasQueued($mailable);
  6409. }
  6410. }
  6411. /**
  6412. *
  6413. *
  6414. * @see \Illuminate\Notifications\ChannelManager
  6415. */
  6416. class Notification {
  6417. /**
  6418. * Send the given notification to the given notifiable entities.
  6419. *
  6420. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6421. * @param mixed $notification
  6422. * @return void
  6423. * @static
  6424. */
  6425. public static function send($notifiables, $notification)
  6426. {
  6427. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6428. $instance->send($notifiables, $notification);
  6429. }
  6430. /**
  6431. * Send the given notification immediately.
  6432. *
  6433. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6434. * @param mixed $notification
  6435. * @param array|null $channels
  6436. * @return void
  6437. * @static
  6438. */
  6439. public static function sendNow($notifiables, $notification, $channels = null)
  6440. {
  6441. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6442. $instance->sendNow($notifiables, $notification, $channels);
  6443. }
  6444. /**
  6445. * Get a channel instance.
  6446. *
  6447. * @param string|null $name
  6448. * @return mixed
  6449. * @static
  6450. */
  6451. public static function channel($name = null)
  6452. {
  6453. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6454. return $instance->channel($name);
  6455. }
  6456. /**
  6457. * Get the default channel driver name.
  6458. *
  6459. * @return string
  6460. * @static
  6461. */
  6462. public static function getDefaultDriver()
  6463. {
  6464. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6465. return $instance->getDefaultDriver();
  6466. }
  6467. /**
  6468. * Get the default channel driver name.
  6469. *
  6470. * @return string
  6471. * @static
  6472. */
  6473. public static function deliversVia()
  6474. {
  6475. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6476. return $instance->deliversVia();
  6477. }
  6478. /**
  6479. * Set the default channel driver name.
  6480. *
  6481. * @param string $channel
  6482. * @return void
  6483. * @static
  6484. */
  6485. public static function deliverVia($channel)
  6486. {
  6487. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6488. $instance->deliverVia($channel);
  6489. }
  6490. /**
  6491. * Get a driver instance.
  6492. *
  6493. * @param string $driver
  6494. * @return mixed
  6495. * @throws \InvalidArgumentException
  6496. * @static
  6497. */
  6498. public static function driver($driver = null)
  6499. {
  6500. //Method inherited from \Illuminate\Support\Manager
  6501. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6502. return $instance->driver($driver);
  6503. }
  6504. /**
  6505. * Register a custom driver creator Closure.
  6506. *
  6507. * @param string $driver
  6508. * @param \Closure $callback
  6509. * @return \Illuminate\Notifications\ChannelManager
  6510. * @static
  6511. */
  6512. public static function extend($driver, $callback)
  6513. {
  6514. //Method inherited from \Illuminate\Support\Manager
  6515. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6516. return $instance->extend($driver, $callback);
  6517. }
  6518. /**
  6519. * Get all of the created "drivers".
  6520. *
  6521. * @return array
  6522. * @static
  6523. */
  6524. public static function getDrivers()
  6525. {
  6526. //Method inherited from \Illuminate\Support\Manager
  6527. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6528. return $instance->getDrivers();
  6529. }
  6530. /**
  6531. * Assert if a notification was sent based on a truth-test callback.
  6532. *
  6533. * @param mixed $notifiable
  6534. * @param string $notification
  6535. * @param callable|null $callback
  6536. * @return void
  6537. * @static
  6538. */
  6539. public static function assertSentTo($notifiable, $notification, $callback = null)
  6540. {
  6541. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6542. $instance->assertSentTo($notifiable, $notification, $callback);
  6543. }
  6544. /**
  6545. * Assert if a notification was sent a number of times.
  6546. *
  6547. * @param mixed $notifiable
  6548. * @param string $notification
  6549. * @param int $times
  6550. * @return void
  6551. * @static
  6552. */
  6553. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  6554. {
  6555. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6556. $instance->assertSentToTimes($notifiable, $notification, $times);
  6557. }
  6558. /**
  6559. * Determine if a notification was sent based on a truth-test callback.
  6560. *
  6561. * @param mixed $notifiable
  6562. * @param string $notification
  6563. * @param callable|null $callback
  6564. * @return void
  6565. * @static
  6566. */
  6567. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  6568. {
  6569. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6570. $instance->assertNotSentTo($notifiable, $notification, $callback);
  6571. }
  6572. /**
  6573. * Assert that no notifications were sent.
  6574. *
  6575. * @return void
  6576. * @static
  6577. */
  6578. public static function assertNothingSent()
  6579. {
  6580. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6581. $instance->assertNothingSent();
  6582. }
  6583. /**
  6584. * Assert the total amount of times a notification was sent.
  6585. *
  6586. * @param int $expectedCount
  6587. * @param string $notification
  6588. * @return void
  6589. * @static
  6590. */
  6591. public static function assertTimesSent($expectedCount, $notification)
  6592. {
  6593. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6594. $instance->assertTimesSent($expectedCount, $notification);
  6595. }
  6596. /**
  6597. * Get all of the notifications matching a truth-test callback.
  6598. *
  6599. * @param mixed $notifiable
  6600. * @param string $notification
  6601. * @param callable|null $callback
  6602. * @return \Illuminate\Support\Collection
  6603. * @static
  6604. */
  6605. public static function sent($notifiable, $notification, $callback = null)
  6606. {
  6607. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6608. return $instance->sent($notifiable, $notification, $callback);
  6609. }
  6610. /**
  6611. * Determine if there are more notifications left to inspect.
  6612. *
  6613. * @param mixed $notifiable
  6614. * @param string $notification
  6615. * @return bool
  6616. * @static
  6617. */
  6618. public static function hasSent($notifiable, $notification)
  6619. {
  6620. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6621. return $instance->hasSent($notifiable, $notification);
  6622. }
  6623. }
  6624. /**
  6625. *
  6626. *
  6627. * @method static string sendResetLink(array $credentials)
  6628. * @method static mixed reset(array $credentials, \Closure $callback)
  6629. * @method static void validator(\Closure $callback)
  6630. * @method static bool validateNewPassword(array $credentials)
  6631. * @see \Illuminate\Auth\Passwords\PasswordBroker
  6632. */
  6633. class Password {
  6634. /**
  6635. * Attempt to get the broker from the local cache.
  6636. *
  6637. * @param string|null $name
  6638. * @return \Illuminate\Contracts\Auth\PasswordBroker
  6639. * @static
  6640. */
  6641. public static function broker($name = null)
  6642. {
  6643. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6644. return $instance->broker($name);
  6645. }
  6646. /**
  6647. * Get the default password broker name.
  6648. *
  6649. * @return string
  6650. * @static
  6651. */
  6652. public static function getDefaultDriver()
  6653. {
  6654. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6655. return $instance->getDefaultDriver();
  6656. }
  6657. /**
  6658. * Set the default password broker name.
  6659. *
  6660. * @param string $name
  6661. * @return void
  6662. * @static
  6663. */
  6664. public static function setDefaultDriver($name)
  6665. {
  6666. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6667. $instance->setDefaultDriver($name);
  6668. }
  6669. }
  6670. /**
  6671. *
  6672. *
  6673. * @see \Illuminate\Queue\QueueManager
  6674. * @see \Illuminate\Queue\Queue
  6675. */
  6676. class Queue {
  6677. /**
  6678. * Register an event listener for the before job event.
  6679. *
  6680. * @param mixed $callback
  6681. * @return void
  6682. * @static
  6683. */
  6684. public static function before($callback)
  6685. {
  6686. /** @var \Illuminate\Queue\QueueManager $instance */
  6687. $instance->before($callback);
  6688. }
  6689. /**
  6690. * Register an event listener for the after job event.
  6691. *
  6692. * @param mixed $callback
  6693. * @return void
  6694. * @static
  6695. */
  6696. public static function after($callback)
  6697. {
  6698. /** @var \Illuminate\Queue\QueueManager $instance */
  6699. $instance->after($callback);
  6700. }
  6701. /**
  6702. * Register an event listener for the exception occurred job event.
  6703. *
  6704. * @param mixed $callback
  6705. * @return void
  6706. * @static
  6707. */
  6708. public static function exceptionOccurred($callback)
  6709. {
  6710. /** @var \Illuminate\Queue\QueueManager $instance */
  6711. $instance->exceptionOccurred($callback);
  6712. }
  6713. /**
  6714. * Register an event listener for the daemon queue loop.
  6715. *
  6716. * @param mixed $callback
  6717. * @return void
  6718. * @static
  6719. */
  6720. public static function looping($callback)
  6721. {
  6722. /** @var \Illuminate\Queue\QueueManager $instance */
  6723. $instance->looping($callback);
  6724. }
  6725. /**
  6726. * Register an event listener for the failed job event.
  6727. *
  6728. * @param mixed $callback
  6729. * @return void
  6730. * @static
  6731. */
  6732. public static function failing($callback)
  6733. {
  6734. /** @var \Illuminate\Queue\QueueManager $instance */
  6735. $instance->failing($callback);
  6736. }
  6737. /**
  6738. * Register an event listener for the daemon queue stopping.
  6739. *
  6740. * @param mixed $callback
  6741. * @return void
  6742. * @static
  6743. */
  6744. public static function stopping($callback)
  6745. {
  6746. /** @var \Illuminate\Queue\QueueManager $instance */
  6747. $instance->stopping($callback);
  6748. }
  6749. /**
  6750. * Determine if the driver is connected.
  6751. *
  6752. * @param string $name
  6753. * @return bool
  6754. * @static
  6755. */
  6756. public static function connected($name = null)
  6757. {
  6758. /** @var \Illuminate\Queue\QueueManager $instance */
  6759. return $instance->connected($name);
  6760. }
  6761. /**
  6762. * Resolve a queue connection instance.
  6763. *
  6764. * @param string $name
  6765. * @return \Illuminate\Contracts\Queue\Queue
  6766. * @static
  6767. */
  6768. public static function connection($name = null)
  6769. {
  6770. /** @var \Illuminate\Queue\QueueManager $instance */
  6771. return $instance->connection($name);
  6772. }
  6773. /**
  6774. * Add a queue connection resolver.
  6775. *
  6776. * @param string $driver
  6777. * @param \Closure $resolver
  6778. * @return void
  6779. * @static
  6780. */
  6781. public static function extend($driver, $resolver)
  6782. {
  6783. /** @var \Illuminate\Queue\QueueManager $instance */
  6784. $instance->extend($driver, $resolver);
  6785. }
  6786. /**
  6787. * Add a queue connection resolver.
  6788. *
  6789. * @param string $driver
  6790. * @param \Closure $resolver
  6791. * @return void
  6792. * @static
  6793. */
  6794. public static function addConnector($driver, $resolver)
  6795. {
  6796. /** @var \Illuminate\Queue\QueueManager $instance */
  6797. $instance->addConnector($driver, $resolver);
  6798. }
  6799. /**
  6800. * Get the name of the default queue connection.
  6801. *
  6802. * @return string
  6803. * @static
  6804. */
  6805. public static function getDefaultDriver()
  6806. {
  6807. /** @var \Illuminate\Queue\QueueManager $instance */
  6808. return $instance->getDefaultDriver();
  6809. }
  6810. /**
  6811. * Set the name of the default queue connection.
  6812. *
  6813. * @param string $name
  6814. * @return void
  6815. * @static
  6816. */
  6817. public static function setDefaultDriver($name)
  6818. {
  6819. /** @var \Illuminate\Queue\QueueManager $instance */
  6820. $instance->setDefaultDriver($name);
  6821. }
  6822. /**
  6823. * Get the full name for the given connection.
  6824. *
  6825. * @param string $connection
  6826. * @return string
  6827. * @static
  6828. */
  6829. public static function getName($connection = null)
  6830. {
  6831. /** @var \Illuminate\Queue\QueueManager $instance */
  6832. return $instance->getName($connection);
  6833. }
  6834. /**
  6835. * Determine if the application is in maintenance mode.
  6836. *
  6837. * @return bool
  6838. * @static
  6839. */
  6840. public static function isDownForMaintenance()
  6841. {
  6842. /** @var \Illuminate\Queue\QueueManager $instance */
  6843. return $instance->isDownForMaintenance();
  6844. }
  6845. /**
  6846. * Assert if a job was pushed based on a truth-test callback.
  6847. *
  6848. * @param string $job
  6849. * @param callable|int|null $callback
  6850. * @return void
  6851. * @static
  6852. */
  6853. public static function assertPushed($job, $callback = null)
  6854. {
  6855. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6856. $instance->assertPushed($job, $callback);
  6857. }
  6858. /**
  6859. * Assert if a job was pushed based on a truth-test callback.
  6860. *
  6861. * @param string $queue
  6862. * @param string $job
  6863. * @param callable|null $callback
  6864. * @return void
  6865. * @static
  6866. */
  6867. public static function assertPushedOn($queue, $job, $callback = null)
  6868. {
  6869. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6870. $instance->assertPushedOn($queue, $job, $callback);
  6871. }
  6872. /**
  6873. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  6874. *
  6875. * @param string $job
  6876. * @param array $expectedChain
  6877. * @param callable|null $callback
  6878. * @return void
  6879. * @static
  6880. */
  6881. public static function assertPushedWithChain($job, $expectedChain = array(), $callback = null)
  6882. {
  6883. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6884. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  6885. }
  6886. /**
  6887. * Determine if a job was pushed based on a truth-test callback.
  6888. *
  6889. * @param string $job
  6890. * @param callable|null $callback
  6891. * @return void
  6892. * @static
  6893. */
  6894. public static function assertNotPushed($job, $callback = null)
  6895. {
  6896. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6897. $instance->assertNotPushed($job, $callback);
  6898. }
  6899. /**
  6900. * Assert that no jobs were pushed.
  6901. *
  6902. * @return void
  6903. * @static
  6904. */
  6905. public static function assertNothingPushed()
  6906. {
  6907. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6908. $instance->assertNothingPushed();
  6909. }
  6910. /**
  6911. * Get all of the jobs matching a truth-test callback.
  6912. *
  6913. * @param string $job
  6914. * @param callable|null $callback
  6915. * @return \Illuminate\Support\Collection
  6916. * @static
  6917. */
  6918. public static function pushed($job, $callback = null)
  6919. {
  6920. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6921. return $instance->pushed($job, $callback);
  6922. }
  6923. /**
  6924. * Determine if there are any stored jobs for a given class.
  6925. *
  6926. * @param string $job
  6927. * @return bool
  6928. * @static
  6929. */
  6930. public static function hasPushed($job)
  6931. {
  6932. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6933. return $instance->hasPushed($job);
  6934. }
  6935. /**
  6936. * Get the size of the queue.
  6937. *
  6938. * @param string $queue
  6939. * @return int
  6940. * @static
  6941. */
  6942. public static function size($queue = null)
  6943. {
  6944. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6945. return $instance->size($queue);
  6946. }
  6947. /**
  6948. * Push a new job onto the queue.
  6949. *
  6950. * @param string $job
  6951. * @param mixed $data
  6952. * @param string $queue
  6953. * @return mixed
  6954. * @static
  6955. */
  6956. public static function push($job, $data = '', $queue = null)
  6957. {
  6958. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6959. return $instance->push($job, $data, $queue);
  6960. }
  6961. /**
  6962. * Push a raw payload onto the queue.
  6963. *
  6964. * @param string $payload
  6965. * @param string $queue
  6966. * @param array $options
  6967. * @return mixed
  6968. * @static
  6969. */
  6970. public static function pushRaw($payload, $queue = null, $options = array())
  6971. {
  6972. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6973. return $instance->pushRaw($payload, $queue, $options);
  6974. }
  6975. /**
  6976. * Push a new job onto the queue after a delay.
  6977. *
  6978. * @param \DateTime|int $delay
  6979. * @param string $job
  6980. * @param mixed $data
  6981. * @param string $queue
  6982. * @return mixed
  6983. * @static
  6984. */
  6985. public static function later($delay, $job, $data = '', $queue = null)
  6986. {
  6987. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6988. return $instance->later($delay, $job, $data, $queue);
  6989. }
  6990. /**
  6991. * Push a new job onto the queue.
  6992. *
  6993. * @param string $queue
  6994. * @param string $job
  6995. * @param mixed $data
  6996. * @return mixed
  6997. * @static
  6998. */
  6999. public static function pushOn($queue, $job, $data = '')
  7000. {
  7001. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7002. return $instance->pushOn($queue, $job, $data);
  7003. }
  7004. /**
  7005. * Push a new job onto the queue after a delay.
  7006. *
  7007. * @param string $queue
  7008. * @param \DateTime|int $delay
  7009. * @param string $job
  7010. * @param mixed $data
  7011. * @return mixed
  7012. * @static
  7013. */
  7014. public static function laterOn($queue, $delay, $job, $data = '')
  7015. {
  7016. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7017. return $instance->laterOn($queue, $delay, $job, $data);
  7018. }
  7019. /**
  7020. * Pop the next job off of the queue.
  7021. *
  7022. * @param string $queue
  7023. * @return \Illuminate\Contracts\Queue\Job|null
  7024. * @static
  7025. */
  7026. public static function pop($queue = null)
  7027. {
  7028. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7029. return $instance->pop($queue);
  7030. }
  7031. /**
  7032. * Push an array of jobs onto the queue.
  7033. *
  7034. * @param array $jobs
  7035. * @param mixed $data
  7036. * @param string $queue
  7037. * @return mixed
  7038. * @static
  7039. */
  7040. public static function bulk($jobs, $data = '', $queue = null)
  7041. {
  7042. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7043. return $instance->bulk($jobs, $data, $queue);
  7044. }
  7045. /**
  7046. * Get the connection name for the queue.
  7047. *
  7048. * @return string
  7049. * @static
  7050. */
  7051. public static function getConnectionName()
  7052. {
  7053. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7054. return $instance->getConnectionName();
  7055. }
  7056. /**
  7057. * Set the connection name for the queue.
  7058. *
  7059. * @param string $name
  7060. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  7061. * @static
  7062. */
  7063. public static function setConnectionName($name)
  7064. {
  7065. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7066. return $instance->setConnectionName($name);
  7067. }
  7068. /**
  7069. * Release a reserved job back onto the queue.
  7070. *
  7071. * @param string $queue
  7072. * @param \Illuminate\Queue\Jobs\DatabaseJobRecord $job
  7073. * @param int $delay
  7074. * @return mixed
  7075. * @static
  7076. */
  7077. public static function release($queue, $job, $delay)
  7078. {
  7079. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7080. return $instance->release($queue, $job, $delay);
  7081. }
  7082. /**
  7083. * Delete a reserved job from the queue.
  7084. *
  7085. * @param string $queue
  7086. * @param string $id
  7087. * @return void
  7088. * @throws \Exception|\Throwable
  7089. * @static
  7090. */
  7091. public static function deleteReserved($queue, $id)
  7092. {
  7093. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7094. $instance->deleteReserved($queue, $id);
  7095. }
  7096. /**
  7097. * Get the queue or return the default.
  7098. *
  7099. * @param string|null $queue
  7100. * @return string
  7101. * @static
  7102. */
  7103. public static function getQueue($queue)
  7104. {
  7105. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7106. return $instance->getQueue($queue);
  7107. }
  7108. /**
  7109. * Get the underlying database instance.
  7110. *
  7111. * @return \Illuminate\Database\Connection
  7112. * @static
  7113. */
  7114. public static function getDatabase()
  7115. {
  7116. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7117. return $instance->getDatabase();
  7118. }
  7119. /**
  7120. * Get the expiration timestamp for an object-based queue handler.
  7121. *
  7122. * @param mixed $job
  7123. * @return mixed
  7124. * @static
  7125. */
  7126. public static function getJobExpiration($job)
  7127. {
  7128. //Method inherited from \Illuminate\Queue\Queue
  7129. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7130. return $instance->getJobExpiration($job);
  7131. }
  7132. /**
  7133. * Set the IoC container instance.
  7134. *
  7135. * @param \Illuminate\Container\Container $container
  7136. * @return void
  7137. * @static
  7138. */
  7139. public static function setContainer($container)
  7140. {
  7141. //Method inherited from \Illuminate\Queue\Queue
  7142. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7143. $instance->setContainer($container);
  7144. }
  7145. }
  7146. /**
  7147. *
  7148. *
  7149. * @see \Illuminate\Routing\Redirector
  7150. */
  7151. class Redirect {
  7152. /**
  7153. * Create a new redirect response to the "home" route.
  7154. *
  7155. * @param int $status
  7156. * @return \Illuminate\Http\RedirectResponse
  7157. * @static
  7158. */
  7159. public static function home($status = 302)
  7160. {
  7161. /** @var \Illuminate\Routing\Redirector $instance */
  7162. return $instance->home($status);
  7163. }
  7164. /**
  7165. * Create a new redirect response to the previous location.
  7166. *
  7167. * @param int $status
  7168. * @param array $headers
  7169. * @param mixed $fallback
  7170. * @return \Illuminate\Http\RedirectResponse
  7171. * @static
  7172. */
  7173. public static function back($status = 302, $headers = array(), $fallback = false)
  7174. {
  7175. /** @var \Illuminate\Routing\Redirector $instance */
  7176. return $instance->back($status, $headers, $fallback);
  7177. }
  7178. /**
  7179. * Create a new redirect response to the current URI.
  7180. *
  7181. * @param int $status
  7182. * @param array $headers
  7183. * @return \Illuminate\Http\RedirectResponse
  7184. * @static
  7185. */
  7186. public static function refresh($status = 302, $headers = array())
  7187. {
  7188. /** @var \Illuminate\Routing\Redirector $instance */
  7189. return $instance->refresh($status, $headers);
  7190. }
  7191. /**
  7192. * Create a new redirect response, while putting the current URL in the session.
  7193. *
  7194. * @param string $path
  7195. * @param int $status
  7196. * @param array $headers
  7197. * @param bool $secure
  7198. * @return \Illuminate\Http\RedirectResponse
  7199. * @static
  7200. */
  7201. public static function guest($path, $status = 302, $headers = array(), $secure = null)
  7202. {
  7203. /** @var \Illuminate\Routing\Redirector $instance */
  7204. return $instance->guest($path, $status, $headers, $secure);
  7205. }
  7206. /**
  7207. * Create a new redirect response to the previously intended location.
  7208. *
  7209. * @param string $default
  7210. * @param int $status
  7211. * @param array $headers
  7212. * @param bool $secure
  7213. * @return \Illuminate\Http\RedirectResponse
  7214. * @static
  7215. */
  7216. public static function intended($default = '/', $status = 302, $headers = array(), $secure = null)
  7217. {
  7218. /** @var \Illuminate\Routing\Redirector $instance */
  7219. return $instance->intended($default, $status, $headers, $secure);
  7220. }
  7221. /**
  7222. * Create a new redirect response to the given path.
  7223. *
  7224. * @param string $path
  7225. * @param int $status
  7226. * @param array $headers
  7227. * @param bool $secure
  7228. * @return \Illuminate\Http\RedirectResponse
  7229. * @static
  7230. */
  7231. public static function to($path, $status = 302, $headers = array(), $secure = null)
  7232. {
  7233. /** @var \Illuminate\Routing\Redirector $instance */
  7234. return $instance->to($path, $status, $headers, $secure);
  7235. }
  7236. /**
  7237. * Create a new redirect response to an external URL (no validation).
  7238. *
  7239. * @param string $path
  7240. * @param int $status
  7241. * @param array $headers
  7242. * @return \Illuminate\Http\RedirectResponse
  7243. * @static
  7244. */
  7245. public static function away($path, $status = 302, $headers = array())
  7246. {
  7247. /** @var \Illuminate\Routing\Redirector $instance */
  7248. return $instance->away($path, $status, $headers);
  7249. }
  7250. /**
  7251. * Create a new redirect response to the given HTTPS path.
  7252. *
  7253. * @param string $path
  7254. * @param int $status
  7255. * @param array $headers
  7256. * @return \Illuminate\Http\RedirectResponse
  7257. * @static
  7258. */
  7259. public static function secure($path, $status = 302, $headers = array())
  7260. {
  7261. /** @var \Illuminate\Routing\Redirector $instance */
  7262. return $instance->secure($path, $status, $headers);
  7263. }
  7264. /**
  7265. * Create a new redirect response to a named route.
  7266. *
  7267. * @param string $route
  7268. * @param mixed $parameters
  7269. * @param int $status
  7270. * @param array $headers
  7271. * @return \Illuminate\Http\RedirectResponse
  7272. * @static
  7273. */
  7274. public static function route($route, $parameters = array(), $status = 302, $headers = array())
  7275. {
  7276. /** @var \Illuminate\Routing\Redirector $instance */
  7277. return $instance->route($route, $parameters, $status, $headers);
  7278. }
  7279. /**
  7280. * Create a new redirect response to a controller action.
  7281. *
  7282. * @param string $action
  7283. * @param mixed $parameters
  7284. * @param int $status
  7285. * @param array $headers
  7286. * @return \Illuminate\Http\RedirectResponse
  7287. * @static
  7288. */
  7289. public static function action($action, $parameters = array(), $status = 302, $headers = array())
  7290. {
  7291. /** @var \Illuminate\Routing\Redirector $instance */
  7292. return $instance->action($action, $parameters, $status, $headers);
  7293. }
  7294. /**
  7295. * Get the URL generator instance.
  7296. *
  7297. * @return \Illuminate\Routing\UrlGenerator
  7298. * @static
  7299. */
  7300. public static function getUrlGenerator()
  7301. {
  7302. /** @var \Illuminate\Routing\Redirector $instance */
  7303. return $instance->getUrlGenerator();
  7304. }
  7305. /**
  7306. * Set the active session store.
  7307. *
  7308. * @param \Illuminate\Session\Store $session
  7309. * @return void
  7310. * @static
  7311. */
  7312. public static function setSession($session)
  7313. {
  7314. /** @var \Illuminate\Routing\Redirector $instance */
  7315. $instance->setSession($session);
  7316. }
  7317. /**
  7318. * Register a custom macro.
  7319. *
  7320. * @param string $name
  7321. * @param object|callable $macro
  7322. * @return void
  7323. * @static
  7324. */
  7325. public static function macro($name, $macro)
  7326. {
  7327. \Illuminate\Routing\Redirector::macro($name, $macro);
  7328. }
  7329. /**
  7330. * Mix another object into the class.
  7331. *
  7332. * @param object $mixin
  7333. * @return void
  7334. * @throws \ReflectionException
  7335. * @static
  7336. */
  7337. public static function mixin($mixin)
  7338. {
  7339. \Illuminate\Routing\Redirector::mixin($mixin);
  7340. }
  7341. /**
  7342. * Checks if macro is registered.
  7343. *
  7344. * @param string $name
  7345. * @return bool
  7346. * @static
  7347. */
  7348. public static function hasMacro($name)
  7349. {
  7350. return \Illuminate\Routing\Redirector::hasMacro($name);
  7351. }
  7352. }
  7353. /**
  7354. *
  7355. *
  7356. * @see \Illuminate\Redis\RedisManager
  7357. * @see \Illuminate\Contracts\Redis\Factory
  7358. */
  7359. class Redis {
  7360. /**
  7361. * Get a Redis connection by name.
  7362. *
  7363. * @param string|null $name
  7364. * @return \Illuminate\Redis\Connections\Connection
  7365. * @static
  7366. */
  7367. public static function connection($name = null)
  7368. {
  7369. /** @var \Illuminate\Redis\RedisManager $instance */
  7370. return $instance->connection($name);
  7371. }
  7372. /**
  7373. * Resolve the given connection by name.
  7374. *
  7375. * @param string|null $name
  7376. * @return \Illuminate\Redis\Connections\Connection
  7377. * @throws \InvalidArgumentException
  7378. * @static
  7379. */
  7380. public static function resolve($name = null)
  7381. {
  7382. /** @var \Illuminate\Redis\RedisManager $instance */
  7383. return $instance->resolve($name);
  7384. }
  7385. /**
  7386. * Return all of the created connections.
  7387. *
  7388. * @return array
  7389. * @static
  7390. */
  7391. public static function connections()
  7392. {
  7393. /** @var \Illuminate\Redis\RedisManager $instance */
  7394. return $instance->connections();
  7395. }
  7396. }
  7397. /**
  7398. *
  7399. *
  7400. * @see \Illuminate\Http\Request
  7401. */
  7402. class Request {
  7403. /**
  7404. * Create a new Illuminate HTTP request from server variables.
  7405. *
  7406. * @return static
  7407. * @static
  7408. */
  7409. public static function capture()
  7410. {
  7411. return \Illuminate\Http\Request::capture();
  7412. }
  7413. /**
  7414. * Return the Request instance.
  7415. *
  7416. * @return \Illuminate\Http\Request
  7417. * @static
  7418. */
  7419. public static function instance()
  7420. {
  7421. /** @var \Illuminate\Http\Request $instance */
  7422. return $instance->instance();
  7423. }
  7424. /**
  7425. * Get the request method.
  7426. *
  7427. * @return string
  7428. * @static
  7429. */
  7430. public static function method()
  7431. {
  7432. /** @var \Illuminate\Http\Request $instance */
  7433. return $instance->method();
  7434. }
  7435. /**
  7436. * Get the root URL for the application.
  7437. *
  7438. * @return string
  7439. * @static
  7440. */
  7441. public static function root()
  7442. {
  7443. /** @var \Illuminate\Http\Request $instance */
  7444. return $instance->root();
  7445. }
  7446. /**
  7447. * Get the URL (no query string) for the request.
  7448. *
  7449. * @return string
  7450. * @static
  7451. */
  7452. public static function url()
  7453. {
  7454. /** @var \Illuminate\Http\Request $instance */
  7455. return $instance->url();
  7456. }
  7457. /**
  7458. * Get the full URL for the request.
  7459. *
  7460. * @return string
  7461. * @static
  7462. */
  7463. public static function fullUrl()
  7464. {
  7465. /** @var \Illuminate\Http\Request $instance */
  7466. return $instance->fullUrl();
  7467. }
  7468. /**
  7469. * Get the full URL for the request with the added query string parameters.
  7470. *
  7471. * @param array $query
  7472. * @return string
  7473. * @static
  7474. */
  7475. public static function fullUrlWithQuery($query)
  7476. {
  7477. /** @var \Illuminate\Http\Request $instance */
  7478. return $instance->fullUrlWithQuery($query);
  7479. }
  7480. /**
  7481. * Get the current path info for the request.
  7482. *
  7483. * @return string
  7484. * @static
  7485. */
  7486. public static function path()
  7487. {
  7488. /** @var \Illuminate\Http\Request $instance */
  7489. return $instance->path();
  7490. }
  7491. /**
  7492. * Get the current decoded path info for the request.
  7493. *
  7494. * @return string
  7495. * @static
  7496. */
  7497. public static function decodedPath()
  7498. {
  7499. /** @var \Illuminate\Http\Request $instance */
  7500. return $instance->decodedPath();
  7501. }
  7502. /**
  7503. * Get a segment from the URI (1 based index).
  7504. *
  7505. * @param int $index
  7506. * @param string|null $default
  7507. * @return string|null
  7508. * @static
  7509. */
  7510. public static function segment($index, $default = null)
  7511. {
  7512. /** @var \Illuminate\Http\Request $instance */
  7513. return $instance->segment($index, $default);
  7514. }
  7515. /**
  7516. * Get all of the segments for the request path.
  7517. *
  7518. * @return array
  7519. * @static
  7520. */
  7521. public static function segments()
  7522. {
  7523. /** @var \Illuminate\Http\Request $instance */
  7524. return $instance->segments();
  7525. }
  7526. /**
  7527. * Determine if the current request URI matches a pattern.
  7528. *
  7529. * @param mixed $patterns
  7530. * @return bool
  7531. * @static
  7532. */
  7533. public static function is($patterns = null)
  7534. {
  7535. /** @var \Illuminate\Http\Request $instance */
  7536. return $instance->is($patterns);
  7537. }
  7538. /**
  7539. * Determine if the route name matches a given pattern.
  7540. *
  7541. * @param mixed $patterns
  7542. * @return bool
  7543. * @static
  7544. */
  7545. public static function routeIs($patterns = null)
  7546. {
  7547. /** @var \Illuminate\Http\Request $instance */
  7548. return $instance->routeIs($patterns);
  7549. }
  7550. /**
  7551. * Determine if the current request URL and query string matches a pattern.
  7552. *
  7553. * @param mixed $patterns
  7554. * @return bool
  7555. * @static
  7556. */
  7557. public static function fullUrlIs($patterns = null)
  7558. {
  7559. /** @var \Illuminate\Http\Request $instance */
  7560. return $instance->fullUrlIs($patterns);
  7561. }
  7562. /**
  7563. * Determine if the request is the result of an AJAX call.
  7564. *
  7565. * @return bool
  7566. * @static
  7567. */
  7568. public static function ajax()
  7569. {
  7570. /** @var \Illuminate\Http\Request $instance */
  7571. return $instance->ajax();
  7572. }
  7573. /**
  7574. * Determine if the request is the result of an PJAX call.
  7575. *
  7576. * @return bool
  7577. * @static
  7578. */
  7579. public static function pjax()
  7580. {
  7581. /** @var \Illuminate\Http\Request $instance */
  7582. return $instance->pjax();
  7583. }
  7584. /**
  7585. * Determine if the request is over HTTPS.
  7586. *
  7587. * @return bool
  7588. * @static
  7589. */
  7590. public static function secure()
  7591. {
  7592. /** @var \Illuminate\Http\Request $instance */
  7593. return $instance->secure();
  7594. }
  7595. /**
  7596. * Get the client IP address.
  7597. *
  7598. * @return string
  7599. * @static
  7600. */
  7601. public static function ip()
  7602. {
  7603. /** @var \Illuminate\Http\Request $instance */
  7604. return $instance->ip();
  7605. }
  7606. /**
  7607. * Get the client IP addresses.
  7608. *
  7609. * @return array
  7610. * @static
  7611. */
  7612. public static function ips()
  7613. {
  7614. /** @var \Illuminate\Http\Request $instance */
  7615. return $instance->ips();
  7616. }
  7617. /**
  7618. * Get the client user agent.
  7619. *
  7620. * @return string
  7621. * @static
  7622. */
  7623. public static function userAgent()
  7624. {
  7625. /** @var \Illuminate\Http\Request $instance */
  7626. return $instance->userAgent();
  7627. }
  7628. /**
  7629. * Merge new input into the current request's input array.
  7630. *
  7631. * @param array $input
  7632. * @return \Illuminate\Http\Request
  7633. * @static
  7634. */
  7635. public static function merge($input)
  7636. {
  7637. /** @var \Illuminate\Http\Request $instance */
  7638. return $instance->merge($input);
  7639. }
  7640. /**
  7641. * Replace the input for the current request.
  7642. *
  7643. * @param array $input
  7644. * @return \Illuminate\Http\Request
  7645. * @static
  7646. */
  7647. public static function replace($input)
  7648. {
  7649. /** @var \Illuminate\Http\Request $instance */
  7650. return $instance->replace($input);
  7651. }
  7652. /**
  7653. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  7654. *
  7655. * Instead, you may use the "input" method.
  7656. *
  7657. * @param string $key
  7658. * @param mixed $default
  7659. * @return mixed
  7660. * @static
  7661. */
  7662. public static function get($key, $default = null)
  7663. {
  7664. /** @var \Illuminate\Http\Request $instance */
  7665. return $instance->get($key, $default);
  7666. }
  7667. /**
  7668. * Get the JSON payload for the request.
  7669. *
  7670. * @param string $key
  7671. * @param mixed $default
  7672. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  7673. * @static
  7674. */
  7675. public static function json($key = null, $default = null)
  7676. {
  7677. /** @var \Illuminate\Http\Request $instance */
  7678. return $instance->json($key, $default);
  7679. }
  7680. /**
  7681. * Create a new request instance from the given Laravel request.
  7682. *
  7683. * @param \Illuminate\Http\Request $from
  7684. * @param \Illuminate\Http\Request|null $to
  7685. * @return static
  7686. * @static
  7687. */
  7688. public static function createFrom($from, $to = null)
  7689. {
  7690. return \Illuminate\Http\Request::createFrom($from, $to);
  7691. }
  7692. /**
  7693. * Create an Illuminate request from a Symfony instance.
  7694. *
  7695. * @param \Symfony\Component\HttpFoundation\Request $request
  7696. * @return \Illuminate\Http\Request
  7697. * @static
  7698. */
  7699. public static function createFromBase($request)
  7700. {
  7701. return \Illuminate\Http\Request::createFromBase($request);
  7702. }
  7703. /**
  7704. * Clones a request and overrides some of its parameters.
  7705. *
  7706. * @param array $query The GET parameters
  7707. * @param array $request The POST parameters
  7708. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7709. * @param array $cookies The COOKIE parameters
  7710. * @param array $files The FILES parameters
  7711. * @param array $server The SERVER parameters
  7712. * @return static
  7713. * @static
  7714. */
  7715. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  7716. {
  7717. /** @var \Illuminate\Http\Request $instance */
  7718. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  7719. }
  7720. /**
  7721. * Get the session associated with the request.
  7722. *
  7723. * @return \Illuminate\Session\Store
  7724. * @throws \RuntimeException
  7725. * @static
  7726. */
  7727. public static function session()
  7728. {
  7729. /** @var \Illuminate\Http\Request $instance */
  7730. return $instance->session();
  7731. }
  7732. /**
  7733. * Get the session associated with the request.
  7734. *
  7735. * @return \Illuminate\Session\Store|null
  7736. * @static
  7737. */
  7738. public static function getSession()
  7739. {
  7740. /** @var \Illuminate\Http\Request $instance */
  7741. return $instance->getSession();
  7742. }
  7743. /**
  7744. * Set the session instance on the request.
  7745. *
  7746. * @param \Illuminate\Contracts\Session\Session $session
  7747. * @return void
  7748. * @static
  7749. */
  7750. public static function setLaravelSession($session)
  7751. {
  7752. /** @var \Illuminate\Http\Request $instance */
  7753. $instance->setLaravelSession($session);
  7754. }
  7755. /**
  7756. * Get the user making the request.
  7757. *
  7758. * @param string|null $guard
  7759. * @return mixed
  7760. * @static
  7761. */
  7762. public static function user($guard = null)
  7763. {
  7764. /** @var \Illuminate\Http\Request $instance */
  7765. return $instance->user($guard);
  7766. }
  7767. /**
  7768. * Get the route handling the request.
  7769. *
  7770. * @param string|null $param
  7771. * @return \Illuminate\Routing\Route|object|string
  7772. * @static
  7773. */
  7774. public static function route($param = null)
  7775. {
  7776. /** @var \Illuminate\Http\Request $instance */
  7777. return $instance->route($param);
  7778. }
  7779. /**
  7780. * Get a unique fingerprint for the request / route / IP address.
  7781. *
  7782. * @return string
  7783. * @throws \RuntimeException
  7784. * @static
  7785. */
  7786. public static function fingerprint()
  7787. {
  7788. /** @var \Illuminate\Http\Request $instance */
  7789. return $instance->fingerprint();
  7790. }
  7791. /**
  7792. * Set the JSON payload for the request.
  7793. *
  7794. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  7795. * @return \Illuminate\Http\Request
  7796. * @static
  7797. */
  7798. public static function setJson($json)
  7799. {
  7800. /** @var \Illuminate\Http\Request $instance */
  7801. return $instance->setJson($json);
  7802. }
  7803. /**
  7804. * Get the user resolver callback.
  7805. *
  7806. * @return \Closure
  7807. * @static
  7808. */
  7809. public static function getUserResolver()
  7810. {
  7811. /** @var \Illuminate\Http\Request $instance */
  7812. return $instance->getUserResolver();
  7813. }
  7814. /**
  7815. * Set the user resolver callback.
  7816. *
  7817. * @param \Closure $callback
  7818. * @return \Illuminate\Http\Request
  7819. * @static
  7820. */
  7821. public static function setUserResolver($callback)
  7822. {
  7823. /** @var \Illuminate\Http\Request $instance */
  7824. return $instance->setUserResolver($callback);
  7825. }
  7826. /**
  7827. * Get the route resolver callback.
  7828. *
  7829. * @return \Closure
  7830. * @static
  7831. */
  7832. public static function getRouteResolver()
  7833. {
  7834. /** @var \Illuminate\Http\Request $instance */
  7835. return $instance->getRouteResolver();
  7836. }
  7837. /**
  7838. * Set the route resolver callback.
  7839. *
  7840. * @param \Closure $callback
  7841. * @return \Illuminate\Http\Request
  7842. * @static
  7843. */
  7844. public static function setRouteResolver($callback)
  7845. {
  7846. /** @var \Illuminate\Http\Request $instance */
  7847. return $instance->setRouteResolver($callback);
  7848. }
  7849. /**
  7850. * Get all of the input and files for the request.
  7851. *
  7852. * @return array
  7853. * @static
  7854. */
  7855. public static function toArray()
  7856. {
  7857. /** @var \Illuminate\Http\Request $instance */
  7858. return $instance->toArray();
  7859. }
  7860. /**
  7861. * Determine if the given offset exists.
  7862. *
  7863. * @param string $offset
  7864. * @return bool
  7865. * @static
  7866. */
  7867. public static function offsetExists($offset)
  7868. {
  7869. /** @var \Illuminate\Http\Request $instance */
  7870. return $instance->offsetExists($offset);
  7871. }
  7872. /**
  7873. * Get the value at the given offset.
  7874. *
  7875. * @param string $offset
  7876. * @return mixed
  7877. * @static
  7878. */
  7879. public static function offsetGet($offset)
  7880. {
  7881. /** @var \Illuminate\Http\Request $instance */
  7882. return $instance->offsetGet($offset);
  7883. }
  7884. /**
  7885. * Set the value at the given offset.
  7886. *
  7887. * @param string $offset
  7888. * @param mixed $value
  7889. * @return void
  7890. * @static
  7891. */
  7892. public static function offsetSet($offset, $value)
  7893. {
  7894. /** @var \Illuminate\Http\Request $instance */
  7895. $instance->offsetSet($offset, $value);
  7896. }
  7897. /**
  7898. * Remove the value at the given offset.
  7899. *
  7900. * @param string $offset
  7901. * @return void
  7902. * @static
  7903. */
  7904. public static function offsetUnset($offset)
  7905. {
  7906. /** @var \Illuminate\Http\Request $instance */
  7907. $instance->offsetUnset($offset);
  7908. }
  7909. /**
  7910. * Sets the parameters for this request.
  7911. *
  7912. * This method also re-initializes all properties.
  7913. *
  7914. * @param array $query The GET parameters
  7915. * @param array $request The POST parameters
  7916. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7917. * @param array $cookies The COOKIE parameters
  7918. * @param array $files The FILES parameters
  7919. * @param array $server The SERVER parameters
  7920. * @param string|resource|null $content The raw body data
  7921. * @static
  7922. */
  7923. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  7924. {
  7925. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7926. /** @var \Illuminate\Http\Request $instance */
  7927. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  7928. }
  7929. /**
  7930. * Creates a new request with values from PHP's super globals.
  7931. *
  7932. * @return static
  7933. * @static
  7934. */
  7935. public static function createFromGlobals()
  7936. {
  7937. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7938. return \Illuminate\Http\Request::createFromGlobals();
  7939. }
  7940. /**
  7941. * Creates a Request based on a given URI and configuration.
  7942. *
  7943. * The information contained in the URI always take precedence
  7944. * over the other information (server and parameters).
  7945. *
  7946. * @param string $uri The URI
  7947. * @param string $method The HTTP method
  7948. * @param array $parameters The query (GET) or request (POST) parameters
  7949. * @param array $cookies The request cookies ($_COOKIE)
  7950. * @param array $files The request files ($_FILES)
  7951. * @param array $server The server parameters ($_SERVER)
  7952. * @param string|resource|null $content The raw body data
  7953. * @return static
  7954. * @static
  7955. */
  7956. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  7957. {
  7958. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7959. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  7960. }
  7961. /**
  7962. * Sets a callable able to create a Request instance.
  7963. *
  7964. * This is mainly useful when you need to override the Request class
  7965. * to keep BC with an existing system. It should not be used for any
  7966. * other purpose.
  7967. *
  7968. * @param callable|null $callable A PHP callable
  7969. * @static
  7970. */
  7971. public static function setFactory($callable)
  7972. {
  7973. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7974. return \Illuminate\Http\Request::setFactory($callable);
  7975. }
  7976. /**
  7977. * Overrides the PHP global variables according to this request instance.
  7978. *
  7979. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  7980. * $_FILES is never overridden, see rfc1867
  7981. *
  7982. * @static
  7983. */
  7984. public static function overrideGlobals()
  7985. {
  7986. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7987. /** @var \Illuminate\Http\Request $instance */
  7988. return $instance->overrideGlobals();
  7989. }
  7990. /**
  7991. * Sets a list of trusted proxies.
  7992. *
  7993. * You should only list the reverse proxies that you manage directly.
  7994. *
  7995. * @param array $proxies A list of trusted proxies
  7996. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  7997. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  7998. * @static
  7999. */
  8000. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  8001. {
  8002. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8003. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  8004. }
  8005. /**
  8006. * Gets the list of trusted proxies.
  8007. *
  8008. * @return array An array of trusted proxies
  8009. * @static
  8010. */
  8011. public static function getTrustedProxies()
  8012. {
  8013. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8014. return \Illuminate\Http\Request::getTrustedProxies();
  8015. }
  8016. /**
  8017. * Gets the set of trusted headers from trusted proxies.
  8018. *
  8019. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  8020. * @static
  8021. */
  8022. public static function getTrustedHeaderSet()
  8023. {
  8024. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8025. return \Illuminate\Http\Request::getTrustedHeaderSet();
  8026. }
  8027. /**
  8028. * Sets a list of trusted host patterns.
  8029. *
  8030. * You should only list the hosts you manage using regexs.
  8031. *
  8032. * @param array $hostPatterns A list of trusted host patterns
  8033. * @static
  8034. */
  8035. public static function setTrustedHosts($hostPatterns)
  8036. {
  8037. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8038. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  8039. }
  8040. /**
  8041. * Gets the list of trusted host patterns.
  8042. *
  8043. * @return array An array of trusted host patterns
  8044. * @static
  8045. */
  8046. public static function getTrustedHosts()
  8047. {
  8048. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8049. return \Illuminate\Http\Request::getTrustedHosts();
  8050. }
  8051. /**
  8052. * Normalizes a query string.
  8053. *
  8054. * It builds a normalized query string, where keys/value pairs are alphabetized,
  8055. * have consistent escaping and unneeded delimiters are removed.
  8056. *
  8057. * @param string $qs Query string
  8058. * @return string A normalized query string for the Request
  8059. * @static
  8060. */
  8061. public static function normalizeQueryString($qs)
  8062. {
  8063. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8064. return \Illuminate\Http\Request::normalizeQueryString($qs);
  8065. }
  8066. /**
  8067. * Enables support for the _method request parameter to determine the intended HTTP method.
  8068. *
  8069. * Be warned that enabling this feature might lead to CSRF issues in your code.
  8070. * Check that you are using CSRF tokens when required.
  8071. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  8072. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  8073. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  8074. *
  8075. * The HTTP method can only be overridden when the real HTTP method is POST.
  8076. *
  8077. * @static
  8078. */
  8079. public static function enableHttpMethodParameterOverride()
  8080. {
  8081. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8082. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  8083. }
  8084. /**
  8085. * Checks whether support for the _method request parameter is enabled.
  8086. *
  8087. * @return bool True when the _method request parameter is enabled, false otherwise
  8088. * @static
  8089. */
  8090. public static function getHttpMethodParameterOverride()
  8091. {
  8092. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8093. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  8094. }
  8095. /**
  8096. * Whether the request contains a Session which was started in one of the
  8097. * previous requests.
  8098. *
  8099. * @return bool
  8100. * @static
  8101. */
  8102. public static function hasPreviousSession()
  8103. {
  8104. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8105. /** @var \Illuminate\Http\Request $instance */
  8106. return $instance->hasPreviousSession();
  8107. }
  8108. /**
  8109. * Whether the request contains a Session object.
  8110. *
  8111. * This method does not give any information about the state of the session object,
  8112. * like whether the session is started or not. It is just a way to check if this Request
  8113. * is associated with a Session instance.
  8114. *
  8115. * @return bool true when the Request contains a Session object, false otherwise
  8116. * @static
  8117. */
  8118. public static function hasSession()
  8119. {
  8120. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8121. /** @var \Illuminate\Http\Request $instance */
  8122. return $instance->hasSession();
  8123. }
  8124. /**
  8125. * Sets the Session.
  8126. *
  8127. * @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
  8128. * @static
  8129. */
  8130. public static function setSession($session)
  8131. {
  8132. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8133. /** @var \Illuminate\Http\Request $instance */
  8134. return $instance->setSession($session);
  8135. }
  8136. /**
  8137. *
  8138. *
  8139. * @internal
  8140. * @static
  8141. */
  8142. public static function setSessionFactory($factory)
  8143. {
  8144. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8145. /** @var \Illuminate\Http\Request $instance */
  8146. return $instance->setSessionFactory($factory);
  8147. }
  8148. /**
  8149. * Returns the client IP addresses.
  8150. *
  8151. * In the returned array the most trusted IP address is first, and the
  8152. * least trusted one last. The "real" client IP address is the last one,
  8153. * but this is also the least trusted one. Trusted proxies are stripped.
  8154. *
  8155. * Use this method carefully; you should use getClientIp() instead.
  8156. *
  8157. * @return array The client IP addresses
  8158. * @see getClientIp()
  8159. * @static
  8160. */
  8161. public static function getClientIps()
  8162. {
  8163. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8164. /** @var \Illuminate\Http\Request $instance */
  8165. return $instance->getClientIps();
  8166. }
  8167. /**
  8168. * Returns the client IP address.
  8169. *
  8170. * This method can read the client IP address from the "X-Forwarded-For" header
  8171. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  8172. * header value is a comma+space separated list of IP addresses, the left-most
  8173. * being the original client, and each successive proxy that passed the request
  8174. * adding the IP address where it received the request from.
  8175. *
  8176. * @return string|null The client IP address
  8177. * @see getClientIps()
  8178. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  8179. * @static
  8180. */
  8181. public static function getClientIp()
  8182. {
  8183. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8184. /** @var \Illuminate\Http\Request $instance */
  8185. return $instance->getClientIp();
  8186. }
  8187. /**
  8188. * Returns current script name.
  8189. *
  8190. * @return string
  8191. * @static
  8192. */
  8193. public static function getScriptName()
  8194. {
  8195. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8196. /** @var \Illuminate\Http\Request $instance */
  8197. return $instance->getScriptName();
  8198. }
  8199. /**
  8200. * Returns the path being requested relative to the executed script.
  8201. *
  8202. * The path info always starts with a /.
  8203. *
  8204. * Suppose this request is instantiated from /mysite on localhost:
  8205. *
  8206. * * http://localhost/mysite returns an empty string
  8207. * * http://localhost/mysite/about returns '/about'
  8208. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  8209. * * http://localhost/mysite/about?var=1 returns '/about'
  8210. *
  8211. * @return string The raw path (i.e. not urldecoded)
  8212. * @static
  8213. */
  8214. public static function getPathInfo()
  8215. {
  8216. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8217. /** @var \Illuminate\Http\Request $instance */
  8218. return $instance->getPathInfo();
  8219. }
  8220. /**
  8221. * Returns the root path from which this request is executed.
  8222. *
  8223. * Suppose that an index.php file instantiates this request object:
  8224. *
  8225. * * http://localhost/index.php returns an empty string
  8226. * * http://localhost/index.php/page returns an empty string
  8227. * * http://localhost/web/index.php returns '/web'
  8228. * * http://localhost/we%20b/index.php returns '/we%20b'
  8229. *
  8230. * @return string The raw path (i.e. not urldecoded)
  8231. * @static
  8232. */
  8233. public static function getBasePath()
  8234. {
  8235. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8236. /** @var \Illuminate\Http\Request $instance */
  8237. return $instance->getBasePath();
  8238. }
  8239. /**
  8240. * Returns the root URL from which this request is executed.
  8241. *
  8242. * The base URL never ends with a /.
  8243. *
  8244. * This is similar to getBasePath(), except that it also includes the
  8245. * script filename (e.g. index.php) if one exists.
  8246. *
  8247. * @return string The raw URL (i.e. not urldecoded)
  8248. * @static
  8249. */
  8250. public static function getBaseUrl()
  8251. {
  8252. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8253. /** @var \Illuminate\Http\Request $instance */
  8254. return $instance->getBaseUrl();
  8255. }
  8256. /**
  8257. * Gets the request's scheme.
  8258. *
  8259. * @return string
  8260. * @static
  8261. */
  8262. public static function getScheme()
  8263. {
  8264. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8265. /** @var \Illuminate\Http\Request $instance */
  8266. return $instance->getScheme();
  8267. }
  8268. /**
  8269. * Returns the port on which the request is made.
  8270. *
  8271. * This method can read the client port from the "X-Forwarded-Port" header
  8272. * when trusted proxies were set via "setTrustedProxies()".
  8273. *
  8274. * The "X-Forwarded-Port" header must contain the client port.
  8275. *
  8276. * @return int|string can be a string if fetched from the server bag
  8277. * @static
  8278. */
  8279. public static function getPort()
  8280. {
  8281. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8282. /** @var \Illuminate\Http\Request $instance */
  8283. return $instance->getPort();
  8284. }
  8285. /**
  8286. * Returns the user.
  8287. *
  8288. * @return string|null
  8289. * @static
  8290. */
  8291. public static function getUser()
  8292. {
  8293. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8294. /** @var \Illuminate\Http\Request $instance */
  8295. return $instance->getUser();
  8296. }
  8297. /**
  8298. * Returns the password.
  8299. *
  8300. * @return string|null
  8301. * @static
  8302. */
  8303. public static function getPassword()
  8304. {
  8305. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8306. /** @var \Illuminate\Http\Request $instance */
  8307. return $instance->getPassword();
  8308. }
  8309. /**
  8310. * Gets the user info.
  8311. *
  8312. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  8313. * @static
  8314. */
  8315. public static function getUserInfo()
  8316. {
  8317. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8318. /** @var \Illuminate\Http\Request $instance */
  8319. return $instance->getUserInfo();
  8320. }
  8321. /**
  8322. * Returns the HTTP host being requested.
  8323. *
  8324. * The port name will be appended to the host if it's non-standard.
  8325. *
  8326. * @return string
  8327. * @static
  8328. */
  8329. public static function getHttpHost()
  8330. {
  8331. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8332. /** @var \Illuminate\Http\Request $instance */
  8333. return $instance->getHttpHost();
  8334. }
  8335. /**
  8336. * Returns the requested URI (path and query string).
  8337. *
  8338. * @return string The raw URI (i.e. not URI decoded)
  8339. * @static
  8340. */
  8341. public static function getRequestUri()
  8342. {
  8343. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8344. /** @var \Illuminate\Http\Request $instance */
  8345. return $instance->getRequestUri();
  8346. }
  8347. /**
  8348. * Gets the scheme and HTTP host.
  8349. *
  8350. * If the URL was called with basic authentication, the user
  8351. * and the password are not added to the generated string.
  8352. *
  8353. * @return string The scheme and HTTP host
  8354. * @static
  8355. */
  8356. public static function getSchemeAndHttpHost()
  8357. {
  8358. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8359. /** @var \Illuminate\Http\Request $instance */
  8360. return $instance->getSchemeAndHttpHost();
  8361. }
  8362. /**
  8363. * Generates a normalized URI (URL) for the Request.
  8364. *
  8365. * @return string A normalized URI (URL) for the Request
  8366. * @see getQueryString()
  8367. * @static
  8368. */
  8369. public static function getUri()
  8370. {
  8371. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8372. /** @var \Illuminate\Http\Request $instance */
  8373. return $instance->getUri();
  8374. }
  8375. /**
  8376. * Generates a normalized URI for the given path.
  8377. *
  8378. * @param string $path A path to use instead of the current one
  8379. * @return string The normalized URI for the path
  8380. * @static
  8381. */
  8382. public static function getUriForPath($path)
  8383. {
  8384. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8385. /** @var \Illuminate\Http\Request $instance */
  8386. return $instance->getUriForPath($path);
  8387. }
  8388. /**
  8389. * Returns the path as relative reference from the current Request path.
  8390. *
  8391. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  8392. * Both paths must be absolute and not contain relative parts.
  8393. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  8394. * Furthermore, they can be used to reduce the link size in documents.
  8395. *
  8396. * Example target paths, given a base path of "/a/b/c/d":
  8397. * - "/a/b/c/d" -> ""
  8398. * - "/a/b/c/" -> "./"
  8399. * - "/a/b/" -> "../"
  8400. * - "/a/b/c/other" -> "other"
  8401. * - "/a/x/y" -> "../../x/y"
  8402. *
  8403. * @param string $path The target path
  8404. * @return string The relative target path
  8405. * @static
  8406. */
  8407. public static function getRelativeUriForPath($path)
  8408. {
  8409. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8410. /** @var \Illuminate\Http\Request $instance */
  8411. return $instance->getRelativeUriForPath($path);
  8412. }
  8413. /**
  8414. * Generates the normalized query string for the Request.
  8415. *
  8416. * It builds a normalized query string, where keys/value pairs are alphabetized
  8417. * and have consistent escaping.
  8418. *
  8419. * @return string|null A normalized query string for the Request
  8420. * @static
  8421. */
  8422. public static function getQueryString()
  8423. {
  8424. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8425. /** @var \Illuminate\Http\Request $instance */
  8426. return $instance->getQueryString();
  8427. }
  8428. /**
  8429. * Checks whether the request is secure or not.
  8430. *
  8431. * This method can read the client protocol from the "X-Forwarded-Proto" header
  8432. * when trusted proxies were set via "setTrustedProxies()".
  8433. *
  8434. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  8435. *
  8436. * @return bool
  8437. * @static
  8438. */
  8439. public static function isSecure()
  8440. {
  8441. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8442. /** @var \Illuminate\Http\Request $instance */
  8443. return $instance->isSecure();
  8444. }
  8445. /**
  8446. * Returns the host name.
  8447. *
  8448. * This method can read the client host name from the "X-Forwarded-Host" header
  8449. * when trusted proxies were set via "setTrustedProxies()".
  8450. *
  8451. * The "X-Forwarded-Host" header must contain the client host name.
  8452. *
  8453. * @return string
  8454. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  8455. * @static
  8456. */
  8457. public static function getHost()
  8458. {
  8459. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8460. /** @var \Illuminate\Http\Request $instance */
  8461. return $instance->getHost();
  8462. }
  8463. /**
  8464. * Sets the request method.
  8465. *
  8466. * @param string $method
  8467. * @static
  8468. */
  8469. public static function setMethod($method)
  8470. {
  8471. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8472. /** @var \Illuminate\Http\Request $instance */
  8473. return $instance->setMethod($method);
  8474. }
  8475. /**
  8476. * Gets the request "intended" method.
  8477. *
  8478. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  8479. * then it is used to determine the "real" intended HTTP method.
  8480. *
  8481. * The _method request parameter can also be used to determine the HTTP method,
  8482. * but only if enableHttpMethodParameterOverride() has been called.
  8483. *
  8484. * The method is always an uppercased string.
  8485. *
  8486. * @return string The request method
  8487. * @see getRealMethod()
  8488. * @static
  8489. */
  8490. public static function getMethod()
  8491. {
  8492. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8493. /** @var \Illuminate\Http\Request $instance */
  8494. return $instance->getMethod();
  8495. }
  8496. /**
  8497. * Gets the "real" request method.
  8498. *
  8499. * @return string The request method
  8500. * @see getMethod()
  8501. * @static
  8502. */
  8503. public static function getRealMethod()
  8504. {
  8505. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8506. /** @var \Illuminate\Http\Request $instance */
  8507. return $instance->getRealMethod();
  8508. }
  8509. /**
  8510. * Gets the mime type associated with the format.
  8511. *
  8512. * @param string $format The format
  8513. * @return string|null The associated mime type (null if not found)
  8514. * @static
  8515. */
  8516. public static function getMimeType($format)
  8517. {
  8518. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8519. /** @var \Illuminate\Http\Request $instance */
  8520. return $instance->getMimeType($format);
  8521. }
  8522. /**
  8523. * Gets the mime types associated with the format.
  8524. *
  8525. * @param string $format The format
  8526. * @return array The associated mime types
  8527. * @static
  8528. */
  8529. public static function getMimeTypes($format)
  8530. {
  8531. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8532. return \Illuminate\Http\Request::getMimeTypes($format);
  8533. }
  8534. /**
  8535. * Gets the format associated with the mime type.
  8536. *
  8537. * @param string $mimeType The associated mime type
  8538. * @return string|null The format (null if not found)
  8539. * @static
  8540. */
  8541. public static function getFormat($mimeType)
  8542. {
  8543. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8544. /** @var \Illuminate\Http\Request $instance */
  8545. return $instance->getFormat($mimeType);
  8546. }
  8547. /**
  8548. * Associates a format with mime types.
  8549. *
  8550. * @param string $format The format
  8551. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  8552. * @static
  8553. */
  8554. public static function setFormat($format, $mimeTypes)
  8555. {
  8556. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8557. /** @var \Illuminate\Http\Request $instance */
  8558. return $instance->setFormat($format, $mimeTypes);
  8559. }
  8560. /**
  8561. * Gets the request format.
  8562. *
  8563. * Here is the process to determine the format:
  8564. *
  8565. * * format defined by the user (with setRequestFormat())
  8566. * * _format request attribute
  8567. * * $default
  8568. *
  8569. * @param string|null $default The default format
  8570. * @return string|null The request format
  8571. * @static
  8572. */
  8573. public static function getRequestFormat($default = 'html')
  8574. {
  8575. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8576. /** @var \Illuminate\Http\Request $instance */
  8577. return $instance->getRequestFormat($default);
  8578. }
  8579. /**
  8580. * Sets the request format.
  8581. *
  8582. * @param string $format The request format
  8583. * @static
  8584. */
  8585. public static function setRequestFormat($format)
  8586. {
  8587. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8588. /** @var \Illuminate\Http\Request $instance */
  8589. return $instance->setRequestFormat($format);
  8590. }
  8591. /**
  8592. * Gets the format associated with the request.
  8593. *
  8594. * @return string|null The format (null if no content type is present)
  8595. * @static
  8596. */
  8597. public static function getContentType()
  8598. {
  8599. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8600. /** @var \Illuminate\Http\Request $instance */
  8601. return $instance->getContentType();
  8602. }
  8603. /**
  8604. * Sets the default locale.
  8605. *
  8606. * @param string $locale
  8607. * @static
  8608. */
  8609. public static function setDefaultLocale($locale)
  8610. {
  8611. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8612. /** @var \Illuminate\Http\Request $instance */
  8613. return $instance->setDefaultLocale($locale);
  8614. }
  8615. /**
  8616. * Get the default locale.
  8617. *
  8618. * @return string
  8619. * @static
  8620. */
  8621. public static function getDefaultLocale()
  8622. {
  8623. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8624. /** @var \Illuminate\Http\Request $instance */
  8625. return $instance->getDefaultLocale();
  8626. }
  8627. /**
  8628. * Sets the locale.
  8629. *
  8630. * @param string $locale
  8631. * @static
  8632. */
  8633. public static function setLocale($locale)
  8634. {
  8635. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8636. /** @var \Illuminate\Http\Request $instance */
  8637. return $instance->setLocale($locale);
  8638. }
  8639. /**
  8640. * Get the locale.
  8641. *
  8642. * @return string
  8643. * @static
  8644. */
  8645. public static function getLocale()
  8646. {
  8647. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8648. /** @var \Illuminate\Http\Request $instance */
  8649. return $instance->getLocale();
  8650. }
  8651. /**
  8652. * Checks if the request method is of specified type.
  8653. *
  8654. * @param string $method Uppercase request method (GET, POST etc)
  8655. * @return bool
  8656. * @static
  8657. */
  8658. public static function isMethod($method)
  8659. {
  8660. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8661. /** @var \Illuminate\Http\Request $instance */
  8662. return $instance->isMethod($method);
  8663. }
  8664. /**
  8665. * Checks whether or not the method is safe.
  8666. *
  8667. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  8668. * @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default.
  8669. * @return bool
  8670. * @static
  8671. */
  8672. public static function isMethodSafe()
  8673. {
  8674. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8675. /** @var \Illuminate\Http\Request $instance */
  8676. return $instance->isMethodSafe();
  8677. }
  8678. /**
  8679. * Checks whether or not the method is idempotent.
  8680. *
  8681. * @return bool
  8682. * @static
  8683. */
  8684. public static function isMethodIdempotent()
  8685. {
  8686. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8687. /** @var \Illuminate\Http\Request $instance */
  8688. return $instance->isMethodIdempotent();
  8689. }
  8690. /**
  8691. * Checks whether the method is cacheable or not.
  8692. *
  8693. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  8694. * @return bool True for GET and HEAD, false otherwise
  8695. * @static
  8696. */
  8697. public static function isMethodCacheable()
  8698. {
  8699. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8700. /** @var \Illuminate\Http\Request $instance */
  8701. return $instance->isMethodCacheable();
  8702. }
  8703. /**
  8704. * Returns the protocol version.
  8705. *
  8706. * If the application is behind a proxy, the protocol version used in the
  8707. * requests between the client and the proxy and between the proxy and the
  8708. * server might be different. This returns the former (from the "Via" header)
  8709. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  8710. * the latter (from the "SERVER_PROTOCOL" server parameter).
  8711. *
  8712. * @return string
  8713. * @static
  8714. */
  8715. public static function getProtocolVersion()
  8716. {
  8717. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8718. /** @var \Illuminate\Http\Request $instance */
  8719. return $instance->getProtocolVersion();
  8720. }
  8721. /**
  8722. * Returns the request body content.
  8723. *
  8724. * @param bool $asResource If true, a resource will be returned
  8725. * @return string|resource The request body content or a resource to read the body stream
  8726. * @throws \LogicException
  8727. * @static
  8728. */
  8729. public static function getContent($asResource = false)
  8730. {
  8731. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8732. /** @var \Illuminate\Http\Request $instance */
  8733. return $instance->getContent($asResource);
  8734. }
  8735. /**
  8736. * Gets the Etags.
  8737. *
  8738. * @return array The entity tags
  8739. * @static
  8740. */
  8741. public static function getETags()
  8742. {
  8743. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8744. /** @var \Illuminate\Http\Request $instance */
  8745. return $instance->getETags();
  8746. }
  8747. /**
  8748. *
  8749. *
  8750. * @return bool
  8751. * @static
  8752. */
  8753. public static function isNoCache()
  8754. {
  8755. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8756. /** @var \Illuminate\Http\Request $instance */
  8757. return $instance->isNoCache();
  8758. }
  8759. /**
  8760. * Returns the preferred language.
  8761. *
  8762. * @param array $locales An array of ordered available locales
  8763. * @return string|null The preferred locale
  8764. * @static
  8765. */
  8766. public static function getPreferredLanguage($locales = null)
  8767. {
  8768. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8769. /** @var \Illuminate\Http\Request $instance */
  8770. return $instance->getPreferredLanguage($locales);
  8771. }
  8772. /**
  8773. * Gets a list of languages acceptable by the client browser.
  8774. *
  8775. * @return array Languages ordered in the user browser preferences
  8776. * @static
  8777. */
  8778. public static function getLanguages()
  8779. {
  8780. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8781. /** @var \Illuminate\Http\Request $instance */
  8782. return $instance->getLanguages();
  8783. }
  8784. /**
  8785. * Gets a list of charsets acceptable by the client browser.
  8786. *
  8787. * @return array List of charsets in preferable order
  8788. * @static
  8789. */
  8790. public static function getCharsets()
  8791. {
  8792. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8793. /** @var \Illuminate\Http\Request $instance */
  8794. return $instance->getCharsets();
  8795. }
  8796. /**
  8797. * Gets a list of encodings acceptable by the client browser.
  8798. *
  8799. * @return array List of encodings in preferable order
  8800. * @static
  8801. */
  8802. public static function getEncodings()
  8803. {
  8804. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8805. /** @var \Illuminate\Http\Request $instance */
  8806. return $instance->getEncodings();
  8807. }
  8808. /**
  8809. * Gets a list of content types acceptable by the client browser.
  8810. *
  8811. * @return array List of content types in preferable order
  8812. * @static
  8813. */
  8814. public static function getAcceptableContentTypes()
  8815. {
  8816. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8817. /** @var \Illuminate\Http\Request $instance */
  8818. return $instance->getAcceptableContentTypes();
  8819. }
  8820. /**
  8821. * Returns true if the request is a XMLHttpRequest.
  8822. *
  8823. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  8824. * It is known to work with common JavaScript frameworks:
  8825. *
  8826. * @see http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  8827. * @return bool true if the request is an XMLHttpRequest, false otherwise
  8828. * @static
  8829. */
  8830. public static function isXmlHttpRequest()
  8831. {
  8832. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8833. /** @var \Illuminate\Http\Request $instance */
  8834. return $instance->isXmlHttpRequest();
  8835. }
  8836. /**
  8837. * Indicates whether this request originated from a trusted proxy.
  8838. *
  8839. * This can be useful to determine whether or not to trust the
  8840. * contents of a proxy-specific header.
  8841. *
  8842. * @return bool true if the request came from a trusted proxy, false otherwise
  8843. * @static
  8844. */
  8845. public static function isFromTrustedProxy()
  8846. {
  8847. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8848. /** @var \Illuminate\Http\Request $instance */
  8849. return $instance->isFromTrustedProxy();
  8850. }
  8851. /**
  8852. * Determine if the given content types match.
  8853. *
  8854. * @param string $actual
  8855. * @param string $type
  8856. * @return bool
  8857. * @static
  8858. */
  8859. public static function matchesType($actual, $type)
  8860. {
  8861. return \Illuminate\Http\Request::matchesType($actual, $type);
  8862. }
  8863. /**
  8864. * Determine if the request is sending JSON.
  8865. *
  8866. * @return bool
  8867. * @static
  8868. */
  8869. public static function isJson()
  8870. {
  8871. /** @var \Illuminate\Http\Request $instance */
  8872. return $instance->isJson();
  8873. }
  8874. /**
  8875. * Determine if the current request probably expects a JSON response.
  8876. *
  8877. * @return bool
  8878. * @static
  8879. */
  8880. public static function expectsJson()
  8881. {
  8882. /** @var \Illuminate\Http\Request $instance */
  8883. return $instance->expectsJson();
  8884. }
  8885. /**
  8886. * Determine if the current request is asking for JSON.
  8887. *
  8888. * @return bool
  8889. * @static
  8890. */
  8891. public static function wantsJson()
  8892. {
  8893. /** @var \Illuminate\Http\Request $instance */
  8894. return $instance->wantsJson();
  8895. }
  8896. /**
  8897. * Determines whether the current requests accepts a given content type.
  8898. *
  8899. * @param string|array $contentTypes
  8900. * @return bool
  8901. * @static
  8902. */
  8903. public static function accepts($contentTypes)
  8904. {
  8905. /** @var \Illuminate\Http\Request $instance */
  8906. return $instance->accepts($contentTypes);
  8907. }
  8908. /**
  8909. * Return the most suitable content type from the given array based on content negotiation.
  8910. *
  8911. * @param string|array $contentTypes
  8912. * @return string|null
  8913. * @static
  8914. */
  8915. public static function prefers($contentTypes)
  8916. {
  8917. /** @var \Illuminate\Http\Request $instance */
  8918. return $instance->prefers($contentTypes);
  8919. }
  8920. /**
  8921. * Determine if the current request accepts any content type.
  8922. *
  8923. * @return bool
  8924. * @static
  8925. */
  8926. public static function acceptsAnyContentType()
  8927. {
  8928. /** @var \Illuminate\Http\Request $instance */
  8929. return $instance->acceptsAnyContentType();
  8930. }
  8931. /**
  8932. * Determines whether a request accepts JSON.
  8933. *
  8934. * @return bool
  8935. * @static
  8936. */
  8937. public static function acceptsJson()
  8938. {
  8939. /** @var \Illuminate\Http\Request $instance */
  8940. return $instance->acceptsJson();
  8941. }
  8942. /**
  8943. * Determines whether a request accepts HTML.
  8944. *
  8945. * @return bool
  8946. * @static
  8947. */
  8948. public static function acceptsHtml()
  8949. {
  8950. /** @var \Illuminate\Http\Request $instance */
  8951. return $instance->acceptsHtml();
  8952. }
  8953. /**
  8954. * Get the data format expected in the response.
  8955. *
  8956. * @param string $default
  8957. * @return string
  8958. * @static
  8959. */
  8960. public static function format($default = 'html')
  8961. {
  8962. /** @var \Illuminate\Http\Request $instance */
  8963. return $instance->format($default);
  8964. }
  8965. /**
  8966. * Retrieve an old input item.
  8967. *
  8968. * @param string $key
  8969. * @param string|array|null $default
  8970. * @return string|array
  8971. * @static
  8972. */
  8973. public static function old($key = null, $default = null)
  8974. {
  8975. /** @var \Illuminate\Http\Request $instance */
  8976. return $instance->old($key, $default);
  8977. }
  8978. /**
  8979. * Flash the input for the current request to the session.
  8980. *
  8981. * @return void
  8982. * @static
  8983. */
  8984. public static function flash()
  8985. {
  8986. /** @var \Illuminate\Http\Request $instance */
  8987. $instance->flash();
  8988. }
  8989. /**
  8990. * Flash only some of the input to the session.
  8991. *
  8992. * @param array|mixed $keys
  8993. * @return void
  8994. * @static
  8995. */
  8996. public static function flashOnly($keys)
  8997. {
  8998. /** @var \Illuminate\Http\Request $instance */
  8999. $instance->flashOnly($keys);
  9000. }
  9001. /**
  9002. * Flash only some of the input to the session.
  9003. *
  9004. * @param array|mixed $keys
  9005. * @return void
  9006. * @static
  9007. */
  9008. public static function flashExcept($keys)
  9009. {
  9010. /** @var \Illuminate\Http\Request $instance */
  9011. $instance->flashExcept($keys);
  9012. }
  9013. /**
  9014. * Flush all of the old input from the session.
  9015. *
  9016. * @return void
  9017. * @static
  9018. */
  9019. public static function flush()
  9020. {
  9021. /** @var \Illuminate\Http\Request $instance */
  9022. $instance->flush();
  9023. }
  9024. /**
  9025. * Retrieve a server variable from the request.
  9026. *
  9027. * @param string $key
  9028. * @param string|array|null $default
  9029. * @return string|array
  9030. * @static
  9031. */
  9032. public static function server($key = null, $default = null)
  9033. {
  9034. /** @var \Illuminate\Http\Request $instance */
  9035. return $instance->server($key, $default);
  9036. }
  9037. /**
  9038. * Determine if a header is set on the request.
  9039. *
  9040. * @param string $key
  9041. * @return bool
  9042. * @static
  9043. */
  9044. public static function hasHeader($key)
  9045. {
  9046. /** @var \Illuminate\Http\Request $instance */
  9047. return $instance->hasHeader($key);
  9048. }
  9049. /**
  9050. * Retrieve a header from the request.
  9051. *
  9052. * @param string $key
  9053. * @param string|array|null $default
  9054. * @return string|array
  9055. * @static
  9056. */
  9057. public static function header($key = null, $default = null)
  9058. {
  9059. /** @var \Illuminate\Http\Request $instance */
  9060. return $instance->header($key, $default);
  9061. }
  9062. /**
  9063. * Get the bearer token from the request headers.
  9064. *
  9065. * @return string|null
  9066. * @static
  9067. */
  9068. public static function bearerToken()
  9069. {
  9070. /** @var \Illuminate\Http\Request $instance */
  9071. return $instance->bearerToken();
  9072. }
  9073. /**
  9074. * Determine if the request contains a given input item key.
  9075. *
  9076. * @param string|array $key
  9077. * @return bool
  9078. * @static
  9079. */
  9080. public static function exists($key)
  9081. {
  9082. /** @var \Illuminate\Http\Request $instance */
  9083. return $instance->exists($key);
  9084. }
  9085. /**
  9086. * Determine if the request contains a given input item key.
  9087. *
  9088. * @param string|array $key
  9089. * @return bool
  9090. * @static
  9091. */
  9092. public static function has($key)
  9093. {
  9094. /** @var \Illuminate\Http\Request $instance */
  9095. return $instance->has($key);
  9096. }
  9097. /**
  9098. * Determine if the request contains any of the given inputs.
  9099. *
  9100. * @param string|array $keys
  9101. * @return bool
  9102. * @static
  9103. */
  9104. public static function hasAny($keys)
  9105. {
  9106. /** @var \Illuminate\Http\Request $instance */
  9107. return $instance->hasAny($keys);
  9108. }
  9109. /**
  9110. * Determine if the request contains a non-empty value for an input item.
  9111. *
  9112. * @param string|array $key
  9113. * @return bool
  9114. * @static
  9115. */
  9116. public static function filled($key)
  9117. {
  9118. /** @var \Illuminate\Http\Request $instance */
  9119. return $instance->filled($key);
  9120. }
  9121. /**
  9122. * Determine if the request contains a non-empty value for any of the given inputs.
  9123. *
  9124. * @param string|array $keys
  9125. * @return bool
  9126. * @static
  9127. */
  9128. public static function anyFilled($keys)
  9129. {
  9130. /** @var \Illuminate\Http\Request $instance */
  9131. return $instance->anyFilled($keys);
  9132. }
  9133. /**
  9134. * Get the keys for all of the input and files.
  9135. *
  9136. * @return array
  9137. * @static
  9138. */
  9139. public static function keys()
  9140. {
  9141. /** @var \Illuminate\Http\Request $instance */
  9142. return $instance->keys();
  9143. }
  9144. /**
  9145. * Get all of the input and files for the request.
  9146. *
  9147. * @param array|mixed $keys
  9148. * @return array
  9149. * @static
  9150. */
  9151. public static function all($keys = null)
  9152. {
  9153. /** @var \Illuminate\Http\Request $instance */
  9154. return $instance->all($keys);
  9155. }
  9156. /**
  9157. * Retrieve an input item from the request.
  9158. *
  9159. * @param string|null $key
  9160. * @param string|array|null $default
  9161. * @return string|array|null
  9162. * @static
  9163. */
  9164. public static function input($key = null, $default = null)
  9165. {
  9166. /** @var \Illuminate\Http\Request $instance */
  9167. return $instance->input($key, $default);
  9168. }
  9169. /**
  9170. * Get a subset containing the provided keys with values from the input data.
  9171. *
  9172. * @param array|mixed $keys
  9173. * @return array
  9174. * @static
  9175. */
  9176. public static function only($keys)
  9177. {
  9178. /** @var \Illuminate\Http\Request $instance */
  9179. return $instance->only($keys);
  9180. }
  9181. /**
  9182. * Get all of the input except for a specified array of items.
  9183. *
  9184. * @param array|mixed $keys
  9185. * @return array
  9186. * @static
  9187. */
  9188. public static function except($keys)
  9189. {
  9190. /** @var \Illuminate\Http\Request $instance */
  9191. return $instance->except($keys);
  9192. }
  9193. /**
  9194. * Retrieve a query string item from the request.
  9195. *
  9196. * @param string $key
  9197. * @param string|array|null $default
  9198. * @return string|array
  9199. * @static
  9200. */
  9201. public static function query($key = null, $default = null)
  9202. {
  9203. /** @var \Illuminate\Http\Request $instance */
  9204. return $instance->query($key, $default);
  9205. }
  9206. /**
  9207. * Retrieve a request payload item from the request.
  9208. *
  9209. * @param string $key
  9210. * @param string|array|null $default
  9211. * @return string|array
  9212. * @static
  9213. */
  9214. public static function post($key = null, $default = null)
  9215. {
  9216. /** @var \Illuminate\Http\Request $instance */
  9217. return $instance->post($key, $default);
  9218. }
  9219. /**
  9220. * Determine if a cookie is set on the request.
  9221. *
  9222. * @param string $key
  9223. * @return bool
  9224. * @static
  9225. */
  9226. public static function hasCookie($key)
  9227. {
  9228. /** @var \Illuminate\Http\Request $instance */
  9229. return $instance->hasCookie($key);
  9230. }
  9231. /**
  9232. * Retrieve a cookie from the request.
  9233. *
  9234. * @param string $key
  9235. * @param string|array|null $default
  9236. * @return string|array
  9237. * @static
  9238. */
  9239. public static function cookie($key = null, $default = null)
  9240. {
  9241. /** @var \Illuminate\Http\Request $instance */
  9242. return $instance->cookie($key, $default);
  9243. }
  9244. /**
  9245. * Get an array of all of the files on the request.
  9246. *
  9247. * @return array
  9248. * @static
  9249. */
  9250. public static function allFiles()
  9251. {
  9252. /** @var \Illuminate\Http\Request $instance */
  9253. return $instance->allFiles();
  9254. }
  9255. /**
  9256. * Determine if the uploaded data contains a file.
  9257. *
  9258. * @param string $key
  9259. * @return bool
  9260. * @static
  9261. */
  9262. public static function hasFile($key)
  9263. {
  9264. /** @var \Illuminate\Http\Request $instance */
  9265. return $instance->hasFile($key);
  9266. }
  9267. /**
  9268. * Retrieve a file from the request.
  9269. *
  9270. * @param string $key
  9271. * @param mixed $default
  9272. * @return \Illuminate\Http\UploadedFile|array|null
  9273. * @static
  9274. */
  9275. public static function file($key = null, $default = null)
  9276. {
  9277. /** @var \Illuminate\Http\Request $instance */
  9278. return $instance->file($key, $default);
  9279. }
  9280. /**
  9281. * Register a custom macro.
  9282. *
  9283. * @param string $name
  9284. * @param object|callable $macro
  9285. * @return void
  9286. * @static
  9287. */
  9288. public static function macro($name, $macro)
  9289. {
  9290. \Illuminate\Http\Request::macro($name, $macro);
  9291. }
  9292. /**
  9293. * Mix another object into the class.
  9294. *
  9295. * @param object $mixin
  9296. * @return void
  9297. * @throws \ReflectionException
  9298. * @static
  9299. */
  9300. public static function mixin($mixin)
  9301. {
  9302. \Illuminate\Http\Request::mixin($mixin);
  9303. }
  9304. /**
  9305. * Checks if macro is registered.
  9306. *
  9307. * @param string $name
  9308. * @return bool
  9309. * @static
  9310. */
  9311. public static function hasMacro($name)
  9312. {
  9313. return \Illuminate\Http\Request::hasMacro($name);
  9314. }
  9315. /**
  9316. *
  9317. *
  9318. * @static
  9319. */
  9320. public static function validate($rules, $params = null)
  9321. {
  9322. return \Illuminate\Http\Request::validate($rules, $params);
  9323. }
  9324. /**
  9325. *
  9326. *
  9327. * @static
  9328. */
  9329. public static function hasValidSignature()
  9330. {
  9331. return \Illuminate\Http\Request::hasValidSignature();
  9332. }
  9333. }
  9334. /**
  9335. *
  9336. *
  9337. * @see \Illuminate\Contracts\Routing\ResponseFactory
  9338. */
  9339. class Response {
  9340. /**
  9341. * Return a new response from the application.
  9342. *
  9343. * @param string $content
  9344. * @param int $status
  9345. * @param array $headers
  9346. * @return \Illuminate\Http\Response
  9347. * @static
  9348. */
  9349. public static function make($content = '', $status = 200, $headers = array())
  9350. {
  9351. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9352. return $instance->make($content, $status, $headers);
  9353. }
  9354. /**
  9355. * Return a new view response from the application.
  9356. *
  9357. * @param string $view
  9358. * @param array $data
  9359. * @param int $status
  9360. * @param array $headers
  9361. * @return \Illuminate\Http\Response
  9362. * @static
  9363. */
  9364. public static function view($view, $data = array(), $status = 200, $headers = array())
  9365. {
  9366. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9367. return $instance->view($view, $data, $status, $headers);
  9368. }
  9369. /**
  9370. * Return a new JSON response from the application.
  9371. *
  9372. * @param mixed $data
  9373. * @param int $status
  9374. * @param array $headers
  9375. * @param int $options
  9376. * @return \Illuminate\Http\JsonResponse
  9377. * @static
  9378. */
  9379. public static function json($data = array(), $status = 200, $headers = array(), $options = 0)
  9380. {
  9381. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9382. return $instance->json($data, $status, $headers, $options);
  9383. }
  9384. /**
  9385. * Return a new JSONP response from the application.
  9386. *
  9387. * @param string $callback
  9388. * @param mixed $data
  9389. * @param int $status
  9390. * @param array $headers
  9391. * @param int $options
  9392. * @return \Illuminate\Http\JsonResponse
  9393. * @static
  9394. */
  9395. public static function jsonp($callback, $data = array(), $status = 200, $headers = array(), $options = 0)
  9396. {
  9397. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9398. return $instance->jsonp($callback, $data, $status, $headers, $options);
  9399. }
  9400. /**
  9401. * Return a new streamed response from the application.
  9402. *
  9403. * @param \Closure $callback
  9404. * @param int $status
  9405. * @param array $headers
  9406. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9407. * @static
  9408. */
  9409. public static function stream($callback, $status = 200, $headers = array())
  9410. {
  9411. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9412. return $instance->stream($callback, $status, $headers);
  9413. }
  9414. /**
  9415. * Return a new streamed response as a file download from the application.
  9416. *
  9417. * @param \Closure $callback
  9418. * @param string|null $name
  9419. * @param array $headers
  9420. * @param string|null $disposition
  9421. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9422. * @static
  9423. */
  9424. public static function streamDownload($callback, $name = null, $headers = array(), $disposition = 'attachment')
  9425. {
  9426. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9427. return $instance->streamDownload($callback, $name, $headers, $disposition);
  9428. }
  9429. /**
  9430. * Create a new file download response.
  9431. *
  9432. * @param \SplFileInfo|string $file
  9433. * @param string|null $name
  9434. * @param array $headers
  9435. * @param string|null $disposition
  9436. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9437. * @static
  9438. */
  9439. public static function download($file, $name = null, $headers = array(), $disposition = 'attachment')
  9440. {
  9441. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9442. return $instance->download($file, $name, $headers, $disposition);
  9443. }
  9444. /**
  9445. * Return the raw contents of a binary file.
  9446. *
  9447. * @param \SplFileInfo|string $file
  9448. * @param array $headers
  9449. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9450. * @static
  9451. */
  9452. public static function file($file, $headers = array())
  9453. {
  9454. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9455. return $instance->file($file, $headers);
  9456. }
  9457. /**
  9458. * Create a new redirect response to the given path.
  9459. *
  9460. * @param string $path
  9461. * @param int $status
  9462. * @param array $headers
  9463. * @param bool|null $secure
  9464. * @return \Illuminate\Http\RedirectResponse
  9465. * @static
  9466. */
  9467. public static function redirectTo($path, $status = 302, $headers = array(), $secure = null)
  9468. {
  9469. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9470. return $instance->redirectTo($path, $status, $headers, $secure);
  9471. }
  9472. /**
  9473. * Create a new redirect response to a named route.
  9474. *
  9475. * @param string $route
  9476. * @param array $parameters
  9477. * @param int $status
  9478. * @param array $headers
  9479. * @return \Illuminate\Http\RedirectResponse
  9480. * @static
  9481. */
  9482. public static function redirectToRoute($route, $parameters = array(), $status = 302, $headers = array())
  9483. {
  9484. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9485. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  9486. }
  9487. /**
  9488. * Create a new redirect response to a controller action.
  9489. *
  9490. * @param string $action
  9491. * @param array $parameters
  9492. * @param int $status
  9493. * @param array $headers
  9494. * @return \Illuminate\Http\RedirectResponse
  9495. * @static
  9496. */
  9497. public static function redirectToAction($action, $parameters = array(), $status = 302, $headers = array())
  9498. {
  9499. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9500. return $instance->redirectToAction($action, $parameters, $status, $headers);
  9501. }
  9502. /**
  9503. * Create a new redirect response, while putting the current URL in the session.
  9504. *
  9505. * @param string $path
  9506. * @param int $status
  9507. * @param array $headers
  9508. * @param bool|null $secure
  9509. * @return \Illuminate\Http\RedirectResponse
  9510. * @static
  9511. */
  9512. public static function redirectGuest($path, $status = 302, $headers = array(), $secure = null)
  9513. {
  9514. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9515. return $instance->redirectGuest($path, $status, $headers, $secure);
  9516. }
  9517. /**
  9518. * Create a new redirect response to the previously intended location.
  9519. *
  9520. * @param string $default
  9521. * @param int $status
  9522. * @param array $headers
  9523. * @param bool|null $secure
  9524. * @return \Illuminate\Http\RedirectResponse
  9525. * @static
  9526. */
  9527. public static function redirectToIntended($default = '/', $status = 302, $headers = array(), $secure = null)
  9528. {
  9529. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9530. return $instance->redirectToIntended($default, $status, $headers, $secure);
  9531. }
  9532. /**
  9533. * Register a custom macro.
  9534. *
  9535. * @param string $name
  9536. * @param object|callable $macro
  9537. * @return void
  9538. * @static
  9539. */
  9540. public static function macro($name, $macro)
  9541. {
  9542. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  9543. }
  9544. /**
  9545. * Mix another object into the class.
  9546. *
  9547. * @param object $mixin
  9548. * @return void
  9549. * @throws \ReflectionException
  9550. * @static
  9551. */
  9552. public static function mixin($mixin)
  9553. {
  9554. \Illuminate\Routing\ResponseFactory::mixin($mixin);
  9555. }
  9556. /**
  9557. * Checks if macro is registered.
  9558. *
  9559. * @param string $name
  9560. * @return bool
  9561. * @static
  9562. */
  9563. public static function hasMacro($name)
  9564. {
  9565. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  9566. }
  9567. }
  9568. /**
  9569. *
  9570. *
  9571. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  9572. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  9573. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  9574. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  9575. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  9576. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  9577. * @method static \Illuminate\Routing\RouteRegistrar namespace(string $value)
  9578. * @see \Illuminate\Routing\Router
  9579. */
  9580. class Route {
  9581. /**
  9582. * Register a new GET route with the router.
  9583. *
  9584. * @param string $uri
  9585. * @param \Closure|array|string|null $action
  9586. * @return \Illuminate\Routing\Route
  9587. * @static
  9588. */
  9589. public static function get($uri, $action = null)
  9590. {
  9591. /** @var \Illuminate\Routing\Router $instance */
  9592. return $instance->get($uri, $action);
  9593. }
  9594. /**
  9595. * Register a new POST route with the router.
  9596. *
  9597. * @param string $uri
  9598. * @param \Closure|array|string|null $action
  9599. * @return \Illuminate\Routing\Route
  9600. * @static
  9601. */
  9602. public static function post($uri, $action = null)
  9603. {
  9604. /** @var \Illuminate\Routing\Router $instance */
  9605. return $instance->post($uri, $action);
  9606. }
  9607. /**
  9608. * Register a new PUT route with the router.
  9609. *
  9610. * @param string $uri
  9611. * @param \Closure|array|string|null $action
  9612. * @return \Illuminate\Routing\Route
  9613. * @static
  9614. */
  9615. public static function put($uri, $action = null)
  9616. {
  9617. /** @var \Illuminate\Routing\Router $instance */
  9618. return $instance->put($uri, $action);
  9619. }
  9620. /**
  9621. * Register a new PATCH route with the router.
  9622. *
  9623. * @param string $uri
  9624. * @param \Closure|array|string|null $action
  9625. * @return \Illuminate\Routing\Route
  9626. * @static
  9627. */
  9628. public static function patch($uri, $action = null)
  9629. {
  9630. /** @var \Illuminate\Routing\Router $instance */
  9631. return $instance->patch($uri, $action);
  9632. }
  9633. /**
  9634. * Register a new DELETE route with the router.
  9635. *
  9636. * @param string $uri
  9637. * @param \Closure|array|string|null $action
  9638. * @return \Illuminate\Routing\Route
  9639. * @static
  9640. */
  9641. public static function delete($uri, $action = null)
  9642. {
  9643. /** @var \Illuminate\Routing\Router $instance */
  9644. return $instance->delete($uri, $action);
  9645. }
  9646. /**
  9647. * Register a new OPTIONS route with the router.
  9648. *
  9649. * @param string $uri
  9650. * @param \Closure|array|string|null $action
  9651. * @return \Illuminate\Routing\Route
  9652. * @static
  9653. */
  9654. public static function options($uri, $action = null)
  9655. {
  9656. /** @var \Illuminate\Routing\Router $instance */
  9657. return $instance->options($uri, $action);
  9658. }
  9659. /**
  9660. * Register a new route responding to all verbs.
  9661. *
  9662. * @param string $uri
  9663. * @param \Closure|array|string|null $action
  9664. * @return \Illuminate\Routing\Route
  9665. * @static
  9666. */
  9667. public static function any($uri, $action = null)
  9668. {
  9669. /** @var \Illuminate\Routing\Router $instance */
  9670. return $instance->any($uri, $action);
  9671. }
  9672. /**
  9673. * Register a new Fallback route with the router.
  9674. *
  9675. * @param \Closure|array|string|null $action
  9676. * @return \Illuminate\Routing\Route
  9677. * @static
  9678. */
  9679. public static function fallback($action)
  9680. {
  9681. /** @var \Illuminate\Routing\Router $instance */
  9682. return $instance->fallback($action);
  9683. }
  9684. /**
  9685. * Create a redirect from one URI to another.
  9686. *
  9687. * @param string $uri
  9688. * @param string $destination
  9689. * @param int $status
  9690. * @return \Illuminate\Routing\Route
  9691. * @static
  9692. */
  9693. public static function redirect($uri, $destination, $status = 301)
  9694. {
  9695. /** @var \Illuminate\Routing\Router $instance */
  9696. return $instance->redirect($uri, $destination, $status);
  9697. }
  9698. /**
  9699. * Register a new route that returns a view.
  9700. *
  9701. * @param string $uri
  9702. * @param string $view
  9703. * @param array $data
  9704. * @return \Illuminate\Routing\Route
  9705. * @static
  9706. */
  9707. public static function view($uri, $view, $data = array())
  9708. {
  9709. /** @var \Illuminate\Routing\Router $instance */
  9710. return $instance->view($uri, $view, $data);
  9711. }
  9712. /**
  9713. * Register a new route with the given verbs.
  9714. *
  9715. * @param array|string $methods
  9716. * @param string $uri
  9717. * @param \Closure|array|string|null $action
  9718. * @return \Illuminate\Routing\Route
  9719. * @static
  9720. */
  9721. public static function match($methods, $uri, $action = null)
  9722. {
  9723. /** @var \Illuminate\Routing\Router $instance */
  9724. return $instance->match($methods, $uri, $action);
  9725. }
  9726. /**
  9727. * Register an array of resource controllers.
  9728. *
  9729. * @param array $resources
  9730. * @return void
  9731. * @static
  9732. */
  9733. public static function resources($resources)
  9734. {
  9735. /** @var \Illuminate\Routing\Router $instance */
  9736. $instance->resources($resources);
  9737. }
  9738. /**
  9739. * Route a resource to a controller.
  9740. *
  9741. * @param string $name
  9742. * @param string $controller
  9743. * @param array $options
  9744. * @return \Illuminate\Routing\PendingResourceRegistration
  9745. * @static
  9746. */
  9747. public static function resource($name, $controller, $options = array())
  9748. {
  9749. /** @var \Illuminate\Routing\Router $instance */
  9750. return $instance->resource($name, $controller, $options);
  9751. }
  9752. /**
  9753. * Register an array of API resource controllers.
  9754. *
  9755. * @param array $resources
  9756. * @return void
  9757. * @static
  9758. */
  9759. public static function apiResources($resources)
  9760. {
  9761. /** @var \Illuminate\Routing\Router $instance */
  9762. $instance->apiResources($resources);
  9763. }
  9764. /**
  9765. * Route an API resource to a controller.
  9766. *
  9767. * @param string $name
  9768. * @param string $controller
  9769. * @param array $options
  9770. * @return \Illuminate\Routing\PendingResourceRegistration
  9771. * @static
  9772. */
  9773. public static function apiResource($name, $controller, $options = array())
  9774. {
  9775. /** @var \Illuminate\Routing\Router $instance */
  9776. return $instance->apiResource($name, $controller, $options);
  9777. }
  9778. /**
  9779. * Create a route group with shared attributes.
  9780. *
  9781. * @param array $attributes
  9782. * @param \Closure|string $routes
  9783. * @return void
  9784. * @static
  9785. */
  9786. public static function group($attributes, $routes)
  9787. {
  9788. /** @var \Illuminate\Routing\Router $instance */
  9789. $instance->group($attributes, $routes);
  9790. }
  9791. /**
  9792. * Merge the given array with the last group stack.
  9793. *
  9794. * @param array $new
  9795. * @return array
  9796. * @static
  9797. */
  9798. public static function mergeWithLastGroup($new)
  9799. {
  9800. /** @var \Illuminate\Routing\Router $instance */
  9801. return $instance->mergeWithLastGroup($new);
  9802. }
  9803. /**
  9804. * Get the prefix from the last group on the stack.
  9805. *
  9806. * @return string
  9807. * @static
  9808. */
  9809. public static function getLastGroupPrefix()
  9810. {
  9811. /** @var \Illuminate\Routing\Router $instance */
  9812. return $instance->getLastGroupPrefix();
  9813. }
  9814. /**
  9815. * Add a route to the underlying route collection.
  9816. *
  9817. * @param array|string $methods
  9818. * @param string $uri
  9819. * @param \Closure|array|string|null $action
  9820. * @return \Illuminate\Routing\Route
  9821. * @static
  9822. */
  9823. public static function addRoute($methods, $uri, $action)
  9824. {
  9825. /** @var \Illuminate\Routing\Router $instance */
  9826. return $instance->addRoute($methods, $uri, $action);
  9827. }
  9828. /**
  9829. * Return the response returned by the given route.
  9830. *
  9831. * @param string $name
  9832. * @return mixed
  9833. * @static
  9834. */
  9835. public static function respondWithRoute($name)
  9836. {
  9837. /** @var \Illuminate\Routing\Router $instance */
  9838. return $instance->respondWithRoute($name);
  9839. }
  9840. /**
  9841. * Dispatch the request to the application.
  9842. *
  9843. * @param \Illuminate\Http\Request $request
  9844. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9845. * @static
  9846. */
  9847. public static function dispatch($request)
  9848. {
  9849. /** @var \Illuminate\Routing\Router $instance */
  9850. return $instance->dispatch($request);
  9851. }
  9852. /**
  9853. * Dispatch the request to a route and return the response.
  9854. *
  9855. * @param \Illuminate\Http\Request $request
  9856. * @return mixed
  9857. * @static
  9858. */
  9859. public static function dispatchToRoute($request)
  9860. {
  9861. /** @var \Illuminate\Routing\Router $instance */
  9862. return $instance->dispatchToRoute($request);
  9863. }
  9864. /**
  9865. * Gather the middleware for the given route with resolved class names.
  9866. *
  9867. * @param \Illuminate\Routing\Route $route
  9868. * @return array
  9869. * @static
  9870. */
  9871. public static function gatherRouteMiddleware($route)
  9872. {
  9873. /** @var \Illuminate\Routing\Router $instance */
  9874. return $instance->gatherRouteMiddleware($route);
  9875. }
  9876. /**
  9877. * Create a response instance from the given value.
  9878. *
  9879. * @param \Symfony\Component\HttpFoundation\Request $request
  9880. * @param mixed $response
  9881. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9882. * @static
  9883. */
  9884. public static function prepareResponse($request, $response)
  9885. {
  9886. /** @var \Illuminate\Routing\Router $instance */
  9887. return $instance->prepareResponse($request, $response);
  9888. }
  9889. /**
  9890. * Static version of prepareResponse.
  9891. *
  9892. * @param \Symfony\Component\HttpFoundation\Request $request
  9893. * @param mixed $response
  9894. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9895. * @static
  9896. */
  9897. public static function toResponse($request, $response)
  9898. {
  9899. return \Illuminate\Routing\Router::toResponse($request, $response);
  9900. }
  9901. /**
  9902. * Substitute the route bindings onto the route.
  9903. *
  9904. * @param \Illuminate\Routing\Route $route
  9905. * @return \Illuminate\Routing\Route
  9906. * @static
  9907. */
  9908. public static function substituteBindings($route)
  9909. {
  9910. /** @var \Illuminate\Routing\Router $instance */
  9911. return $instance->substituteBindings($route);
  9912. }
  9913. /**
  9914. * Substitute the implicit Eloquent model bindings for the route.
  9915. *
  9916. * @param \Illuminate\Routing\Route $route
  9917. * @return void
  9918. * @static
  9919. */
  9920. public static function substituteImplicitBindings($route)
  9921. {
  9922. /** @var \Illuminate\Routing\Router $instance */
  9923. $instance->substituteImplicitBindings($route);
  9924. }
  9925. /**
  9926. * Register a route matched event listener.
  9927. *
  9928. * @param string|callable $callback
  9929. * @return void
  9930. * @static
  9931. */
  9932. public static function matched($callback)
  9933. {
  9934. /** @var \Illuminate\Routing\Router $instance */
  9935. $instance->matched($callback);
  9936. }
  9937. /**
  9938. * Get all of the defined middleware short-hand names.
  9939. *
  9940. * @return array
  9941. * @static
  9942. */
  9943. public static function getMiddleware()
  9944. {
  9945. /** @var \Illuminate\Routing\Router $instance */
  9946. return $instance->getMiddleware();
  9947. }
  9948. /**
  9949. * Register a short-hand name for a middleware.
  9950. *
  9951. * @param string $name
  9952. * @param string $class
  9953. * @return \Illuminate\Routing\Router
  9954. * @static
  9955. */
  9956. public static function aliasMiddleware($name, $class)
  9957. {
  9958. /** @var \Illuminate\Routing\Router $instance */
  9959. return $instance->aliasMiddleware($name, $class);
  9960. }
  9961. /**
  9962. * Check if a middlewareGroup with the given name exists.
  9963. *
  9964. * @param string $name
  9965. * @return bool
  9966. * @static
  9967. */
  9968. public static function hasMiddlewareGroup($name)
  9969. {
  9970. /** @var \Illuminate\Routing\Router $instance */
  9971. return $instance->hasMiddlewareGroup($name);
  9972. }
  9973. /**
  9974. * Get all of the defined middleware groups.
  9975. *
  9976. * @return array
  9977. * @static
  9978. */
  9979. public static function getMiddlewareGroups()
  9980. {
  9981. /** @var \Illuminate\Routing\Router $instance */
  9982. return $instance->getMiddlewareGroups();
  9983. }
  9984. /**
  9985. * Register a group of middleware.
  9986. *
  9987. * @param string $name
  9988. * @param array $middleware
  9989. * @return \Illuminate\Routing\Router
  9990. * @static
  9991. */
  9992. public static function middlewareGroup($name, $middleware)
  9993. {
  9994. /** @var \Illuminate\Routing\Router $instance */
  9995. return $instance->middlewareGroup($name, $middleware);
  9996. }
  9997. /**
  9998. * Add a middleware to the beginning of a middleware group.
  9999. *
  10000. * If the middleware is already in the group, it will not be added again.
  10001. *
  10002. * @param string $group
  10003. * @param string $middleware
  10004. * @return \Illuminate\Routing\Router
  10005. * @static
  10006. */
  10007. public static function prependMiddlewareToGroup($group, $middleware)
  10008. {
  10009. /** @var \Illuminate\Routing\Router $instance */
  10010. return $instance->prependMiddlewareToGroup($group, $middleware);
  10011. }
  10012. /**
  10013. * Add a middleware to the end of a middleware group.
  10014. *
  10015. * If the middleware is already in the group, it will not be added again.
  10016. *
  10017. * @param string $group
  10018. * @param string $middleware
  10019. * @return \Illuminate\Routing\Router
  10020. * @static
  10021. */
  10022. public static function pushMiddlewareToGroup($group, $middleware)
  10023. {
  10024. /** @var \Illuminate\Routing\Router $instance */
  10025. return $instance->pushMiddlewareToGroup($group, $middleware);
  10026. }
  10027. /**
  10028. * Add a new route parameter binder.
  10029. *
  10030. * @param string $key
  10031. * @param string|callable $binder
  10032. * @return void
  10033. * @static
  10034. */
  10035. public static function bind($key, $binder)
  10036. {
  10037. /** @var \Illuminate\Routing\Router $instance */
  10038. $instance->bind($key, $binder);
  10039. }
  10040. /**
  10041. * Register a model binder for a wildcard.
  10042. *
  10043. * @param string $key
  10044. * @param string $class
  10045. * @param \Closure|null $callback
  10046. * @return void
  10047. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10048. * @static
  10049. */
  10050. public static function model($key, $class, $callback = null)
  10051. {
  10052. /** @var \Illuminate\Routing\Router $instance */
  10053. $instance->model($key, $class, $callback);
  10054. }
  10055. /**
  10056. * Get the binding callback for a given binding.
  10057. *
  10058. * @param string $key
  10059. * @return \Closure|null
  10060. * @static
  10061. */
  10062. public static function getBindingCallback($key)
  10063. {
  10064. /** @var \Illuminate\Routing\Router $instance */
  10065. return $instance->getBindingCallback($key);
  10066. }
  10067. /**
  10068. * Get the global "where" patterns.
  10069. *
  10070. * @return array
  10071. * @static
  10072. */
  10073. public static function getPatterns()
  10074. {
  10075. /** @var \Illuminate\Routing\Router $instance */
  10076. return $instance->getPatterns();
  10077. }
  10078. /**
  10079. * Set a global where pattern on all routes.
  10080. *
  10081. * @param string $key
  10082. * @param string $pattern
  10083. * @return void
  10084. * @static
  10085. */
  10086. public static function pattern($key, $pattern)
  10087. {
  10088. /** @var \Illuminate\Routing\Router $instance */
  10089. $instance->pattern($key, $pattern);
  10090. }
  10091. /**
  10092. * Set a group of global where patterns on all routes.
  10093. *
  10094. * @param array $patterns
  10095. * @return void
  10096. * @static
  10097. */
  10098. public static function patterns($patterns)
  10099. {
  10100. /** @var \Illuminate\Routing\Router $instance */
  10101. $instance->patterns($patterns);
  10102. }
  10103. /**
  10104. * Determine if the router currently has a group stack.
  10105. *
  10106. * @return bool
  10107. * @static
  10108. */
  10109. public static function hasGroupStack()
  10110. {
  10111. /** @var \Illuminate\Routing\Router $instance */
  10112. return $instance->hasGroupStack();
  10113. }
  10114. /**
  10115. * Get the current group stack for the router.
  10116. *
  10117. * @return array
  10118. * @static
  10119. */
  10120. public static function getGroupStack()
  10121. {
  10122. /** @var \Illuminate\Routing\Router $instance */
  10123. return $instance->getGroupStack();
  10124. }
  10125. /**
  10126. * Get a route parameter for the current route.
  10127. *
  10128. * @param string $key
  10129. * @param string $default
  10130. * @return mixed
  10131. * @static
  10132. */
  10133. public static function input($key, $default = null)
  10134. {
  10135. /** @var \Illuminate\Routing\Router $instance */
  10136. return $instance->input($key, $default);
  10137. }
  10138. /**
  10139. * Get the request currently being dispatched.
  10140. *
  10141. * @return \Illuminate\Http\Request
  10142. * @static
  10143. */
  10144. public static function getCurrentRequest()
  10145. {
  10146. /** @var \Illuminate\Routing\Router $instance */
  10147. return $instance->getCurrentRequest();
  10148. }
  10149. /**
  10150. * Get the currently dispatched route instance.
  10151. *
  10152. * @return \Illuminate\Routing\Route
  10153. * @static
  10154. */
  10155. public static function getCurrentRoute()
  10156. {
  10157. /** @var \Illuminate\Routing\Router $instance */
  10158. return $instance->getCurrentRoute();
  10159. }
  10160. /**
  10161. * Get the currently dispatched route instance.
  10162. *
  10163. * @return \Illuminate\Routing\Route
  10164. * @static
  10165. */
  10166. public static function current()
  10167. {
  10168. /** @var \Illuminate\Routing\Router $instance */
  10169. return $instance->current();
  10170. }
  10171. /**
  10172. * Check if a route with the given name exists.
  10173. *
  10174. * @param string $name
  10175. * @return bool
  10176. * @static
  10177. */
  10178. public static function has($name)
  10179. {
  10180. /** @var \Illuminate\Routing\Router $instance */
  10181. return $instance->has($name);
  10182. }
  10183. /**
  10184. * Get the current route name.
  10185. *
  10186. * @return string|null
  10187. * @static
  10188. */
  10189. public static function currentRouteName()
  10190. {
  10191. /** @var \Illuminate\Routing\Router $instance */
  10192. return $instance->currentRouteName();
  10193. }
  10194. /**
  10195. * Alias for the "currentRouteNamed" method.
  10196. *
  10197. * @param mixed $patterns
  10198. * @return bool
  10199. * @static
  10200. */
  10201. public static function is($patterns = null)
  10202. {
  10203. /** @var \Illuminate\Routing\Router $instance */
  10204. return $instance->is($patterns);
  10205. }
  10206. /**
  10207. * Determine if the current route matches a pattern.
  10208. *
  10209. * @param mixed $patterns
  10210. * @return bool
  10211. * @static
  10212. */
  10213. public static function currentRouteNamed($patterns = null)
  10214. {
  10215. /** @var \Illuminate\Routing\Router $instance */
  10216. return $instance->currentRouteNamed($patterns);
  10217. }
  10218. /**
  10219. * Get the current route action.
  10220. *
  10221. * @return string|null
  10222. * @static
  10223. */
  10224. public static function currentRouteAction()
  10225. {
  10226. /** @var \Illuminate\Routing\Router $instance */
  10227. return $instance->currentRouteAction();
  10228. }
  10229. /**
  10230. * Alias for the "currentRouteUses" method.
  10231. *
  10232. * @param array $patterns
  10233. * @return bool
  10234. * @static
  10235. */
  10236. public static function uses($patterns = null)
  10237. {
  10238. /** @var \Illuminate\Routing\Router $instance */
  10239. return $instance->uses($patterns);
  10240. }
  10241. /**
  10242. * Determine if the current route action matches a given action.
  10243. *
  10244. * @param string $action
  10245. * @return bool
  10246. * @static
  10247. */
  10248. public static function currentRouteUses($action)
  10249. {
  10250. /** @var \Illuminate\Routing\Router $instance */
  10251. return $instance->currentRouteUses($action);
  10252. }
  10253. /**
  10254. * Register the typical authentication routes for an application.
  10255. *
  10256. * @return void
  10257. * @static
  10258. */
  10259. public static function auth()
  10260. {
  10261. /** @var \Illuminate\Routing\Router $instance */
  10262. $instance->auth();
  10263. }
  10264. /**
  10265. * Set the unmapped global resource parameters to singular.
  10266. *
  10267. * @param bool $singular
  10268. * @return void
  10269. * @static
  10270. */
  10271. public static function singularResourceParameters($singular = true)
  10272. {
  10273. /** @var \Illuminate\Routing\Router $instance */
  10274. $instance->singularResourceParameters($singular);
  10275. }
  10276. /**
  10277. * Set the global resource parameter mapping.
  10278. *
  10279. * @param array $parameters
  10280. * @return void
  10281. * @static
  10282. */
  10283. public static function resourceParameters($parameters = array())
  10284. {
  10285. /** @var \Illuminate\Routing\Router $instance */
  10286. $instance->resourceParameters($parameters);
  10287. }
  10288. /**
  10289. * Get or set the verbs used in the resource URIs.
  10290. *
  10291. * @param array $verbs
  10292. * @return array|null
  10293. * @static
  10294. */
  10295. public static function resourceVerbs($verbs = array())
  10296. {
  10297. /** @var \Illuminate\Routing\Router $instance */
  10298. return $instance->resourceVerbs($verbs);
  10299. }
  10300. /**
  10301. * Get the underlying route collection.
  10302. *
  10303. * @return \Illuminate\Routing\RouteCollection
  10304. * @static
  10305. */
  10306. public static function getRoutes()
  10307. {
  10308. /** @var \Illuminate\Routing\Router $instance */
  10309. return $instance->getRoutes();
  10310. }
  10311. /**
  10312. * Set the route collection instance.
  10313. *
  10314. * @param \Illuminate\Routing\RouteCollection $routes
  10315. * @return void
  10316. * @static
  10317. */
  10318. public static function setRoutes($routes)
  10319. {
  10320. /** @var \Illuminate\Routing\Router $instance */
  10321. $instance->setRoutes($routes);
  10322. }
  10323. /**
  10324. * Register a custom macro.
  10325. *
  10326. * @param string $name
  10327. * @param object|callable $macro
  10328. * @return void
  10329. * @static
  10330. */
  10331. public static function macro($name, $macro)
  10332. {
  10333. \Illuminate\Routing\Router::macro($name, $macro);
  10334. }
  10335. /**
  10336. * Mix another object into the class.
  10337. *
  10338. * @param object $mixin
  10339. * @return void
  10340. * @throws \ReflectionException
  10341. * @static
  10342. */
  10343. public static function mixin($mixin)
  10344. {
  10345. \Illuminate\Routing\Router::mixin($mixin);
  10346. }
  10347. /**
  10348. * Checks if macro is registered.
  10349. *
  10350. * @param string $name
  10351. * @return bool
  10352. * @static
  10353. */
  10354. public static function hasMacro($name)
  10355. {
  10356. return \Illuminate\Routing\Router::hasMacro($name);
  10357. }
  10358. /**
  10359. * Dynamically handle calls to the class.
  10360. *
  10361. * @param string $method
  10362. * @param array $parameters
  10363. * @return mixed
  10364. * @throws \BadMethodCallException
  10365. * @static
  10366. */
  10367. public static function macroCall($method, $parameters)
  10368. {
  10369. /** @var \Illuminate\Routing\Router $instance */
  10370. return $instance->macroCall($method, $parameters);
  10371. }
  10372. }
  10373. /**
  10374. *
  10375. *
  10376. * @see \Illuminate\Database\Schema\Builder
  10377. */
  10378. class Schema {
  10379. /**
  10380. * Determine if the given table exists.
  10381. *
  10382. * @param string $table
  10383. * @return bool
  10384. * @static
  10385. */
  10386. public static function hasTable($table)
  10387. {
  10388. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10389. return $instance->hasTable($table);
  10390. }
  10391. /**
  10392. * Get the column listing for a given table.
  10393. *
  10394. * @param string $table
  10395. * @return array
  10396. * @static
  10397. */
  10398. public static function getColumnListing($table)
  10399. {
  10400. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10401. return $instance->getColumnListing($table);
  10402. }
  10403. /**
  10404. * Drop all tables from the database.
  10405. *
  10406. * @return void
  10407. * @static
  10408. */
  10409. public static function dropAllTables()
  10410. {
  10411. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10412. $instance->dropAllTables();
  10413. }
  10414. /**
  10415. * Drop all views from the database.
  10416. *
  10417. * @return void
  10418. * @static
  10419. */
  10420. public static function dropAllViews()
  10421. {
  10422. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10423. $instance->dropAllViews();
  10424. }
  10425. /**
  10426. * Set the default string length for migrations.
  10427. *
  10428. * @param int $length
  10429. * @return void
  10430. * @static
  10431. */
  10432. public static function defaultStringLength($length)
  10433. {
  10434. //Method inherited from \Illuminate\Database\Schema\Builder
  10435. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  10436. }
  10437. /**
  10438. * Determine if the given table has a given column.
  10439. *
  10440. * @param string $table
  10441. * @param string $column
  10442. * @return bool
  10443. * @static
  10444. */
  10445. public static function hasColumn($table, $column)
  10446. {
  10447. //Method inherited from \Illuminate\Database\Schema\Builder
  10448. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10449. return $instance->hasColumn($table, $column);
  10450. }
  10451. /**
  10452. * Determine if the given table has given columns.
  10453. *
  10454. * @param string $table
  10455. * @param array $columns
  10456. * @return bool
  10457. * @static
  10458. */
  10459. public static function hasColumns($table, $columns)
  10460. {
  10461. //Method inherited from \Illuminate\Database\Schema\Builder
  10462. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10463. return $instance->hasColumns($table, $columns);
  10464. }
  10465. /**
  10466. * Get the data type for the given column name.
  10467. *
  10468. * @param string $table
  10469. * @param string $column
  10470. * @return string
  10471. * @static
  10472. */
  10473. public static function getColumnType($table, $column)
  10474. {
  10475. //Method inherited from \Illuminate\Database\Schema\Builder
  10476. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10477. return $instance->getColumnType($table, $column);
  10478. }
  10479. /**
  10480. * Modify a table on the schema.
  10481. *
  10482. * @param string $table
  10483. * @param \Closure $callback
  10484. * @return void
  10485. * @static
  10486. */
  10487. public static function table($table, $callback)
  10488. {
  10489. //Method inherited from \Illuminate\Database\Schema\Builder
  10490. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10491. $instance->table($table, $callback);
  10492. }
  10493. /**
  10494. * Create a new table on the schema.
  10495. *
  10496. * @param string $table
  10497. * @param \Closure $callback
  10498. * @return void
  10499. * @static
  10500. */
  10501. public static function create($table, $callback)
  10502. {
  10503. //Method inherited from \Illuminate\Database\Schema\Builder
  10504. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10505. $instance->create($table, $callback);
  10506. }
  10507. /**
  10508. * Drop a table from the schema.
  10509. *
  10510. * @param string $table
  10511. * @return void
  10512. * @static
  10513. */
  10514. public static function drop($table)
  10515. {
  10516. //Method inherited from \Illuminate\Database\Schema\Builder
  10517. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10518. $instance->drop($table);
  10519. }
  10520. /**
  10521. * Drop a table from the schema if it exists.
  10522. *
  10523. * @param string $table
  10524. * @return void
  10525. * @static
  10526. */
  10527. public static function dropIfExists($table)
  10528. {
  10529. //Method inherited from \Illuminate\Database\Schema\Builder
  10530. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10531. $instance->dropIfExists($table);
  10532. }
  10533. /**
  10534. * Rename a table on the schema.
  10535. *
  10536. * @param string $from
  10537. * @param string $to
  10538. * @return void
  10539. * @static
  10540. */
  10541. public static function rename($from, $to)
  10542. {
  10543. //Method inherited from \Illuminate\Database\Schema\Builder
  10544. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10545. $instance->rename($from, $to);
  10546. }
  10547. /**
  10548. * Enable foreign key constraints.
  10549. *
  10550. * @return bool
  10551. * @static
  10552. */
  10553. public static function enableForeignKeyConstraints()
  10554. {
  10555. //Method inherited from \Illuminate\Database\Schema\Builder
  10556. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10557. return $instance->enableForeignKeyConstraints();
  10558. }
  10559. /**
  10560. * Disable foreign key constraints.
  10561. *
  10562. * @return bool
  10563. * @static
  10564. */
  10565. public static function disableForeignKeyConstraints()
  10566. {
  10567. //Method inherited from \Illuminate\Database\Schema\Builder
  10568. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10569. return $instance->disableForeignKeyConstraints();
  10570. }
  10571. /**
  10572. * Get the database connection instance.
  10573. *
  10574. * @return \Illuminate\Database\Connection
  10575. * @static
  10576. */
  10577. public static function getConnection()
  10578. {
  10579. //Method inherited from \Illuminate\Database\Schema\Builder
  10580. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10581. return $instance->getConnection();
  10582. }
  10583. /**
  10584. * Set the database connection instance.
  10585. *
  10586. * @param \Illuminate\Database\Connection $connection
  10587. * @return \Illuminate\Database\Schema\MySqlBuilder
  10588. * @static
  10589. */
  10590. public static function setConnection($connection)
  10591. {
  10592. //Method inherited from \Illuminate\Database\Schema\Builder
  10593. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10594. return $instance->setConnection($connection);
  10595. }
  10596. /**
  10597. * Set the Schema Blueprint resolver callback.
  10598. *
  10599. * @param \Closure $resolver
  10600. * @return void
  10601. * @static
  10602. */
  10603. public static function blueprintResolver($resolver)
  10604. {
  10605. //Method inherited from \Illuminate\Database\Schema\Builder
  10606. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10607. $instance->blueprintResolver($resolver);
  10608. }
  10609. }
  10610. /**
  10611. *
  10612. *
  10613. * @see \Illuminate\Session\SessionManager
  10614. * @see \Illuminate\Session\Store
  10615. */
  10616. class Session {
  10617. /**
  10618. * Get the session configuration.
  10619. *
  10620. * @return array
  10621. * @static
  10622. */
  10623. public static function getSessionConfig()
  10624. {
  10625. /** @var \Illuminate\Session\SessionManager $instance */
  10626. return $instance->getSessionConfig();
  10627. }
  10628. /**
  10629. * Get the default session driver name.
  10630. *
  10631. * @return string
  10632. * @static
  10633. */
  10634. public static function getDefaultDriver()
  10635. {
  10636. /** @var \Illuminate\Session\SessionManager $instance */
  10637. return $instance->getDefaultDriver();
  10638. }
  10639. /**
  10640. * Set the default session driver name.
  10641. *
  10642. * @param string $name
  10643. * @return void
  10644. * @static
  10645. */
  10646. public static function setDefaultDriver($name)
  10647. {
  10648. /** @var \Illuminate\Session\SessionManager $instance */
  10649. $instance->setDefaultDriver($name);
  10650. }
  10651. /**
  10652. * Get a driver instance.
  10653. *
  10654. * @param string $driver
  10655. * @return mixed
  10656. * @throws \InvalidArgumentException
  10657. * @static
  10658. */
  10659. public static function driver($driver = null)
  10660. {
  10661. //Method inherited from \Illuminate\Support\Manager
  10662. /** @var \Illuminate\Session\SessionManager $instance */
  10663. return $instance->driver($driver);
  10664. }
  10665. /**
  10666. * Register a custom driver creator Closure.
  10667. *
  10668. * @param string $driver
  10669. * @param \Closure $callback
  10670. * @return \Illuminate\Session\SessionManager
  10671. * @static
  10672. */
  10673. public static function extend($driver, $callback)
  10674. {
  10675. //Method inherited from \Illuminate\Support\Manager
  10676. /** @var \Illuminate\Session\SessionManager $instance */
  10677. return $instance->extend($driver, $callback);
  10678. }
  10679. /**
  10680. * Get all of the created "drivers".
  10681. *
  10682. * @return array
  10683. * @static
  10684. */
  10685. public static function getDrivers()
  10686. {
  10687. //Method inherited from \Illuminate\Support\Manager
  10688. /** @var \Illuminate\Session\SessionManager $instance */
  10689. return $instance->getDrivers();
  10690. }
  10691. /**
  10692. * Start the session, reading the data from a handler.
  10693. *
  10694. * @return bool
  10695. * @static
  10696. */
  10697. public static function start()
  10698. {
  10699. /** @var \Illuminate\Session\Store $instance */
  10700. return $instance->start();
  10701. }
  10702. /**
  10703. * Save the session data to storage.
  10704. *
  10705. * @return bool
  10706. * @static
  10707. */
  10708. public static function save()
  10709. {
  10710. /** @var \Illuminate\Session\Store $instance */
  10711. return $instance->save();
  10712. }
  10713. /**
  10714. * Age the flash data for the session.
  10715. *
  10716. * @return void
  10717. * @static
  10718. */
  10719. public static function ageFlashData()
  10720. {
  10721. /** @var \Illuminate\Session\Store $instance */
  10722. $instance->ageFlashData();
  10723. }
  10724. /**
  10725. * Get all of the session data.
  10726. *
  10727. * @return array
  10728. * @static
  10729. */
  10730. public static function all()
  10731. {
  10732. /** @var \Illuminate\Session\Store $instance */
  10733. return $instance->all();
  10734. }
  10735. /**
  10736. * Checks if a key exists.
  10737. *
  10738. * @param string|array $key
  10739. * @return bool
  10740. * @static
  10741. */
  10742. public static function exists($key)
  10743. {
  10744. /** @var \Illuminate\Session\Store $instance */
  10745. return $instance->exists($key);
  10746. }
  10747. /**
  10748. * Checks if a key is present and not null.
  10749. *
  10750. * @param string|array $key
  10751. * @return bool
  10752. * @static
  10753. */
  10754. public static function has($key)
  10755. {
  10756. /** @var \Illuminate\Session\Store $instance */
  10757. return $instance->has($key);
  10758. }
  10759. /**
  10760. * Get an item from the session.
  10761. *
  10762. * @param string $key
  10763. * @param mixed $default
  10764. * @return mixed
  10765. * @static
  10766. */
  10767. public static function get($key, $default = null)
  10768. {
  10769. /** @var \Illuminate\Session\Store $instance */
  10770. return $instance->get($key, $default);
  10771. }
  10772. /**
  10773. * Get the value of a given key and then forget it.
  10774. *
  10775. * @param string $key
  10776. * @param string $default
  10777. * @return mixed
  10778. * @static
  10779. */
  10780. public static function pull($key, $default = null)
  10781. {
  10782. /** @var \Illuminate\Session\Store $instance */
  10783. return $instance->pull($key, $default);
  10784. }
  10785. /**
  10786. * Determine if the session contains old input.
  10787. *
  10788. * @param string $key
  10789. * @return bool
  10790. * @static
  10791. */
  10792. public static function hasOldInput($key = null)
  10793. {
  10794. /** @var \Illuminate\Session\Store $instance */
  10795. return $instance->hasOldInput($key);
  10796. }
  10797. /**
  10798. * Get the requested item from the flashed input array.
  10799. *
  10800. * @param string $key
  10801. * @param mixed $default
  10802. * @return mixed
  10803. * @static
  10804. */
  10805. public static function getOldInput($key = null, $default = null)
  10806. {
  10807. /** @var \Illuminate\Session\Store $instance */
  10808. return $instance->getOldInput($key, $default);
  10809. }
  10810. /**
  10811. * Replace the given session attributes entirely.
  10812. *
  10813. * @param array $attributes
  10814. * @return void
  10815. * @static
  10816. */
  10817. public static function replace($attributes)
  10818. {
  10819. /** @var \Illuminate\Session\Store $instance */
  10820. $instance->replace($attributes);
  10821. }
  10822. /**
  10823. * Put a key / value pair or array of key / value pairs in the session.
  10824. *
  10825. * @param string|array $key
  10826. * @param mixed $value
  10827. * @return void
  10828. * @static
  10829. */
  10830. public static function put($key, $value = null)
  10831. {
  10832. /** @var \Illuminate\Session\Store $instance */
  10833. $instance->put($key, $value);
  10834. }
  10835. /**
  10836. * Get an item from the session, or store the default value.
  10837. *
  10838. * @param string $key
  10839. * @param \Closure $callback
  10840. * @return mixed
  10841. * @static
  10842. */
  10843. public static function remember($key, $callback)
  10844. {
  10845. /** @var \Illuminate\Session\Store $instance */
  10846. return $instance->remember($key, $callback);
  10847. }
  10848. /**
  10849. * Push a value onto a session array.
  10850. *
  10851. * @param string $key
  10852. * @param mixed $value
  10853. * @return void
  10854. * @static
  10855. */
  10856. public static function push($key, $value)
  10857. {
  10858. /** @var \Illuminate\Session\Store $instance */
  10859. $instance->push($key, $value);
  10860. }
  10861. /**
  10862. * Increment the value of an item in the session.
  10863. *
  10864. * @param string $key
  10865. * @param int $amount
  10866. * @return mixed
  10867. * @static
  10868. */
  10869. public static function increment($key, $amount = 1)
  10870. {
  10871. /** @var \Illuminate\Session\Store $instance */
  10872. return $instance->increment($key, $amount);
  10873. }
  10874. /**
  10875. * Decrement the value of an item in the session.
  10876. *
  10877. * @param string $key
  10878. * @param int $amount
  10879. * @return int
  10880. * @static
  10881. */
  10882. public static function decrement($key, $amount = 1)
  10883. {
  10884. /** @var \Illuminate\Session\Store $instance */
  10885. return $instance->decrement($key, $amount);
  10886. }
  10887. /**
  10888. * Flash a key / value pair to the session.
  10889. *
  10890. * @param string $key
  10891. * @param mixed $value
  10892. * @return void
  10893. * @static
  10894. */
  10895. public static function flash($key, $value = true)
  10896. {
  10897. /** @var \Illuminate\Session\Store $instance */
  10898. $instance->flash($key, $value);
  10899. }
  10900. /**
  10901. * Flash a key / value pair to the session for immediate use.
  10902. *
  10903. * @param string $key
  10904. * @param mixed $value
  10905. * @return void
  10906. * @static
  10907. */
  10908. public static function now($key, $value)
  10909. {
  10910. /** @var \Illuminate\Session\Store $instance */
  10911. $instance->now($key, $value);
  10912. }
  10913. /**
  10914. * Reflash all of the session flash data.
  10915. *
  10916. * @return void
  10917. * @static
  10918. */
  10919. public static function reflash()
  10920. {
  10921. /** @var \Illuminate\Session\Store $instance */
  10922. $instance->reflash();
  10923. }
  10924. /**
  10925. * Reflash a subset of the current flash data.
  10926. *
  10927. * @param array|mixed $keys
  10928. * @return void
  10929. * @static
  10930. */
  10931. public static function keep($keys = null)
  10932. {
  10933. /** @var \Illuminate\Session\Store $instance */
  10934. $instance->keep($keys);
  10935. }
  10936. /**
  10937. * Flash an input array to the session.
  10938. *
  10939. * @param array $value
  10940. * @return void
  10941. * @static
  10942. */
  10943. public static function flashInput($value)
  10944. {
  10945. /** @var \Illuminate\Session\Store $instance */
  10946. $instance->flashInput($value);
  10947. }
  10948. /**
  10949. * Remove an item from the session, returning its value.
  10950. *
  10951. * @param string $key
  10952. * @return mixed
  10953. * @static
  10954. */
  10955. public static function remove($key)
  10956. {
  10957. /** @var \Illuminate\Session\Store $instance */
  10958. return $instance->remove($key);
  10959. }
  10960. /**
  10961. * Remove one or many items from the session.
  10962. *
  10963. * @param string|array $keys
  10964. * @return void
  10965. * @static
  10966. */
  10967. public static function forget($keys)
  10968. {
  10969. /** @var \Illuminate\Session\Store $instance */
  10970. $instance->forget($keys);
  10971. }
  10972. /**
  10973. * Remove all of the items from the session.
  10974. *
  10975. * @return void
  10976. * @static
  10977. */
  10978. public static function flush()
  10979. {
  10980. /** @var \Illuminate\Session\Store $instance */
  10981. $instance->flush();
  10982. }
  10983. /**
  10984. * Flush the session data and regenerate the ID.
  10985. *
  10986. * @return bool
  10987. * @static
  10988. */
  10989. public static function invalidate()
  10990. {
  10991. /** @var \Illuminate\Session\Store $instance */
  10992. return $instance->invalidate();
  10993. }
  10994. /**
  10995. * Generate a new session identifier.
  10996. *
  10997. * @param bool $destroy
  10998. * @return bool
  10999. * @static
  11000. */
  11001. public static function regenerate($destroy = false)
  11002. {
  11003. /** @var \Illuminate\Session\Store $instance */
  11004. return $instance->regenerate($destroy);
  11005. }
  11006. /**
  11007. * Generate a new session ID for the session.
  11008. *
  11009. * @param bool $destroy
  11010. * @return bool
  11011. * @static
  11012. */
  11013. public static function migrate($destroy = false)
  11014. {
  11015. /** @var \Illuminate\Session\Store $instance */
  11016. return $instance->migrate($destroy);
  11017. }
  11018. /**
  11019. * Determine if the session has been started.
  11020. *
  11021. * @return bool
  11022. * @static
  11023. */
  11024. public static function isStarted()
  11025. {
  11026. /** @var \Illuminate\Session\Store $instance */
  11027. return $instance->isStarted();
  11028. }
  11029. /**
  11030. * Get the name of the session.
  11031. *
  11032. * @return string
  11033. * @static
  11034. */
  11035. public static function getName()
  11036. {
  11037. /** @var \Illuminate\Session\Store $instance */
  11038. return $instance->getName();
  11039. }
  11040. /**
  11041. * Set the name of the session.
  11042. *
  11043. * @param string $name
  11044. * @return void
  11045. * @static
  11046. */
  11047. public static function setName($name)
  11048. {
  11049. /** @var \Illuminate\Session\Store $instance */
  11050. $instance->setName($name);
  11051. }
  11052. /**
  11053. * Get the current session ID.
  11054. *
  11055. * @return string
  11056. * @static
  11057. */
  11058. public static function getId()
  11059. {
  11060. /** @var \Illuminate\Session\Store $instance */
  11061. return $instance->getId();
  11062. }
  11063. /**
  11064. * Set the session ID.
  11065. *
  11066. * @param string $id
  11067. * @return void
  11068. * @static
  11069. */
  11070. public static function setId($id)
  11071. {
  11072. /** @var \Illuminate\Session\Store $instance */
  11073. $instance->setId($id);
  11074. }
  11075. /**
  11076. * Determine if this is a valid session ID.
  11077. *
  11078. * @param string $id
  11079. * @return bool
  11080. * @static
  11081. */
  11082. public static function isValidId($id)
  11083. {
  11084. /** @var \Illuminate\Session\Store $instance */
  11085. return $instance->isValidId($id);
  11086. }
  11087. /**
  11088. * Set the existence of the session on the handler if applicable.
  11089. *
  11090. * @param bool $value
  11091. * @return void
  11092. * @static
  11093. */
  11094. public static function setExists($value)
  11095. {
  11096. /** @var \Illuminate\Session\Store $instance */
  11097. $instance->setExists($value);
  11098. }
  11099. /**
  11100. * Get the CSRF token value.
  11101. *
  11102. * @return string
  11103. * @static
  11104. */
  11105. public static function token()
  11106. {
  11107. /** @var \Illuminate\Session\Store $instance */
  11108. return $instance->token();
  11109. }
  11110. /**
  11111. * Regenerate the CSRF token value.
  11112. *
  11113. * @return void
  11114. * @static
  11115. */
  11116. public static function regenerateToken()
  11117. {
  11118. /** @var \Illuminate\Session\Store $instance */
  11119. $instance->regenerateToken();
  11120. }
  11121. /**
  11122. * Get the previous URL from the session.
  11123. *
  11124. * @return string|null
  11125. * @static
  11126. */
  11127. public static function previousUrl()
  11128. {
  11129. /** @var \Illuminate\Session\Store $instance */
  11130. return $instance->previousUrl();
  11131. }
  11132. /**
  11133. * Set the "previous" URL in the session.
  11134. *
  11135. * @param string $url
  11136. * @return void
  11137. * @static
  11138. */
  11139. public static function setPreviousUrl($url)
  11140. {
  11141. /** @var \Illuminate\Session\Store $instance */
  11142. $instance->setPreviousUrl($url);
  11143. }
  11144. /**
  11145. * Get the underlying session handler implementation.
  11146. *
  11147. * @return \SessionHandlerInterface
  11148. * @static
  11149. */
  11150. public static function getHandler()
  11151. {
  11152. /** @var \Illuminate\Session\Store $instance */
  11153. return $instance->getHandler();
  11154. }
  11155. /**
  11156. * Determine if the session handler needs a request.
  11157. *
  11158. * @return bool
  11159. * @static
  11160. */
  11161. public static function handlerNeedsRequest()
  11162. {
  11163. /** @var \Illuminate\Session\Store $instance */
  11164. return $instance->handlerNeedsRequest();
  11165. }
  11166. /**
  11167. * Set the request on the handler instance.
  11168. *
  11169. * @param \Illuminate\Http\Request $request
  11170. * @return void
  11171. * @static
  11172. */
  11173. public static function setRequestOnHandler($request)
  11174. {
  11175. /** @var \Illuminate\Session\Store $instance */
  11176. $instance->setRequestOnHandler($request);
  11177. }
  11178. }
  11179. /**
  11180. *
  11181. *
  11182. * @see \Illuminate\Filesystem\FilesystemManager
  11183. */
  11184. class Storage {
  11185. /**
  11186. * Get a filesystem instance.
  11187. *
  11188. * @param string $name
  11189. * @return \Illuminate\Filesystem\FilesystemAdapter
  11190. * @static
  11191. */
  11192. public static function drive($name = null)
  11193. {
  11194. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11195. return $instance->drive($name);
  11196. }
  11197. /**
  11198. * Get a filesystem instance.
  11199. *
  11200. * @param string $name
  11201. * @return \Illuminate\Filesystem\FilesystemAdapter
  11202. * @static
  11203. */
  11204. public static function disk($name = null)
  11205. {
  11206. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11207. return $instance->disk($name);
  11208. }
  11209. /**
  11210. * Get a default cloud filesystem instance.
  11211. *
  11212. * @return \Illuminate\Filesystem\FilesystemAdapter
  11213. * @static
  11214. */
  11215. public static function cloud()
  11216. {
  11217. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11218. return $instance->cloud();
  11219. }
  11220. /**
  11221. * Create an instance of the local driver.
  11222. *
  11223. * @param array $config
  11224. * @return \Illuminate\Filesystem\FilesystemAdapter
  11225. * @static
  11226. */
  11227. public static function createLocalDriver($config)
  11228. {
  11229. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11230. return $instance->createLocalDriver($config);
  11231. }
  11232. /**
  11233. * Create an instance of the ftp driver.
  11234. *
  11235. * @param array $config
  11236. * @return \Illuminate\Filesystem\FilesystemAdapter
  11237. * @static
  11238. */
  11239. public static function createFtpDriver($config)
  11240. {
  11241. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11242. return $instance->createFtpDriver($config);
  11243. }
  11244. /**
  11245. * Create an instance of the sftp driver.
  11246. *
  11247. * @param array $config
  11248. * @return \Illuminate\Filesystem\FilesystemAdapter
  11249. * @static
  11250. */
  11251. public static function createSftpDriver($config)
  11252. {
  11253. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11254. return $instance->createSftpDriver($config);
  11255. }
  11256. /**
  11257. * Create an instance of the Amazon S3 driver.
  11258. *
  11259. * @param array $config
  11260. * @return \Illuminate\Contracts\Filesystem\Cloud
  11261. * @static
  11262. */
  11263. public static function createS3Driver($config)
  11264. {
  11265. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11266. return $instance->createS3Driver($config);
  11267. }
  11268. /**
  11269. * Create an instance of the Rackspace driver.
  11270. *
  11271. * @param array $config
  11272. * @return \Illuminate\Contracts\Filesystem\Cloud
  11273. * @static
  11274. */
  11275. public static function createRackspaceDriver($config)
  11276. {
  11277. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11278. return $instance->createRackspaceDriver($config);
  11279. }
  11280. /**
  11281. * Set the given disk instance.
  11282. *
  11283. * @param string $name
  11284. * @param mixed $disk
  11285. * @return \Illuminate\Filesystem\FilesystemManager
  11286. * @static
  11287. */
  11288. public static function set($name, $disk)
  11289. {
  11290. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11291. return $instance->set($name, $disk);
  11292. }
  11293. /**
  11294. * Get the default driver name.
  11295. *
  11296. * @return string
  11297. * @static
  11298. */
  11299. public static function getDefaultDriver()
  11300. {
  11301. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11302. return $instance->getDefaultDriver();
  11303. }
  11304. /**
  11305. * Get the default cloud driver name.
  11306. *
  11307. * @return string
  11308. * @static
  11309. */
  11310. public static function getDefaultCloudDriver()
  11311. {
  11312. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11313. return $instance->getDefaultCloudDriver();
  11314. }
  11315. /**
  11316. * Unset the given disk instances.
  11317. *
  11318. * @param array|string $disk
  11319. * @return \Illuminate\Filesystem\FilesystemManager
  11320. * @static
  11321. */
  11322. public static function forgetDisk($disk)
  11323. {
  11324. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11325. return $instance->forgetDisk($disk);
  11326. }
  11327. /**
  11328. * Register a custom driver creator Closure.
  11329. *
  11330. * @param string $driver
  11331. * @param \Closure $callback
  11332. * @return \Illuminate\Filesystem\FilesystemManager
  11333. * @static
  11334. */
  11335. public static function extend($driver, $callback)
  11336. {
  11337. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11338. return $instance->extend($driver, $callback);
  11339. }
  11340. /**
  11341. * Assert that the given file exists.
  11342. *
  11343. * @param string $path
  11344. * @return void
  11345. * @static
  11346. */
  11347. public static function assertExists($path)
  11348. {
  11349. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11350. $instance->assertExists($path);
  11351. }
  11352. /**
  11353. * Assert that the given file does not exist.
  11354. *
  11355. * @param string $path
  11356. * @return void
  11357. * @static
  11358. */
  11359. public static function assertMissing($path)
  11360. {
  11361. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11362. $instance->assertMissing($path);
  11363. }
  11364. /**
  11365. * Determine if a file exists.
  11366. *
  11367. * @param string $path
  11368. * @return bool
  11369. * @static
  11370. */
  11371. public static function exists($path)
  11372. {
  11373. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11374. return $instance->exists($path);
  11375. }
  11376. /**
  11377. * Get the full path for the file at the given "short" path.
  11378. *
  11379. * @param string $path
  11380. * @return string
  11381. * @static
  11382. */
  11383. public static function path($path)
  11384. {
  11385. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11386. return $instance->path($path);
  11387. }
  11388. /**
  11389. * Get the contents of a file.
  11390. *
  11391. * @param string $path
  11392. * @return string
  11393. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  11394. * @static
  11395. */
  11396. public static function get($path)
  11397. {
  11398. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11399. return $instance->get($path);
  11400. }
  11401. /**
  11402. * Create a streamed response for a given file.
  11403. *
  11404. * @param string $path
  11405. * @param string|null $name
  11406. * @param array|null $headers
  11407. * @param string|null $disposition
  11408. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11409. * @static
  11410. */
  11411. public static function response($path, $name = null, $headers = array(), $disposition = 'inline')
  11412. {
  11413. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11414. return $instance->response($path, $name, $headers, $disposition);
  11415. }
  11416. /**
  11417. * Create a streamed download response for a given file.
  11418. *
  11419. * @param string $path
  11420. * @param string|null $name
  11421. * @param array|null $headers
  11422. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11423. * @static
  11424. */
  11425. public static function download($path, $name = null, $headers = array())
  11426. {
  11427. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11428. return $instance->download($path, $name, $headers);
  11429. }
  11430. /**
  11431. * Write the contents of a file.
  11432. *
  11433. * @param string $path
  11434. * @param string|resource $contents
  11435. * @param mixed $options
  11436. * @return bool
  11437. * @static
  11438. */
  11439. public static function put($path, $contents, $options = array())
  11440. {
  11441. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11442. return $instance->put($path, $contents, $options);
  11443. }
  11444. /**
  11445. * Store the uploaded file on the disk.
  11446. *
  11447. * @param string $path
  11448. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11449. * @param array $options
  11450. * @return string|false
  11451. * @static
  11452. */
  11453. public static function putFile($path, $file, $options = array())
  11454. {
  11455. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11456. return $instance->putFile($path, $file, $options);
  11457. }
  11458. /**
  11459. * Store the uploaded file on the disk with a given name.
  11460. *
  11461. * @param string $path
  11462. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11463. * @param string $name
  11464. * @param array $options
  11465. * @return string|false
  11466. * @static
  11467. */
  11468. public static function putFileAs($path, $file, $name, $options = array())
  11469. {
  11470. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11471. return $instance->putFileAs($path, $file, $name, $options);
  11472. }
  11473. /**
  11474. * Get the visibility for the given path.
  11475. *
  11476. * @param string $path
  11477. * @return string
  11478. * @static
  11479. */
  11480. public static function getVisibility($path)
  11481. {
  11482. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11483. return $instance->getVisibility($path);
  11484. }
  11485. /**
  11486. * Set the visibility for the given path.
  11487. *
  11488. * @param string $path
  11489. * @param string $visibility
  11490. * @return void
  11491. * @static
  11492. */
  11493. public static function setVisibility($path, $visibility)
  11494. {
  11495. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11496. $instance->setVisibility($path, $visibility);
  11497. }
  11498. /**
  11499. * Prepend to a file.
  11500. *
  11501. * @param string $path
  11502. * @param string $data
  11503. * @param string $separator
  11504. * @return int
  11505. * @static
  11506. */
  11507. public static function prepend($path, $data, $separator = '')
  11508. {
  11509. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11510. return $instance->prepend($path, $data, $separator);
  11511. }
  11512. /**
  11513. * Append to a file.
  11514. *
  11515. * @param string $path
  11516. * @param string $data
  11517. * @param string $separator
  11518. * @return int
  11519. * @static
  11520. */
  11521. public static function append($path, $data, $separator = '')
  11522. {
  11523. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11524. return $instance->append($path, $data, $separator);
  11525. }
  11526. /**
  11527. * Delete the file at a given path.
  11528. *
  11529. * @param string|array $paths
  11530. * @return bool
  11531. * @static
  11532. */
  11533. public static function delete($paths)
  11534. {
  11535. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11536. return $instance->delete($paths);
  11537. }
  11538. /**
  11539. * Copy a file to a new location.
  11540. *
  11541. * @param string $from
  11542. * @param string $to
  11543. * @return bool
  11544. * @static
  11545. */
  11546. public static function copy($from, $to)
  11547. {
  11548. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11549. return $instance->copy($from, $to);
  11550. }
  11551. /**
  11552. * Move a file to a new location.
  11553. *
  11554. * @param string $from
  11555. * @param string $to
  11556. * @return bool
  11557. * @static
  11558. */
  11559. public static function move($from, $to)
  11560. {
  11561. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11562. return $instance->move($from, $to);
  11563. }
  11564. /**
  11565. * Get the file size of a given file.
  11566. *
  11567. * @param string $path
  11568. * @return int
  11569. * @static
  11570. */
  11571. public static function size($path)
  11572. {
  11573. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11574. return $instance->size($path);
  11575. }
  11576. /**
  11577. * Get the mime-type of a given file.
  11578. *
  11579. * @param string $path
  11580. * @return string|false
  11581. * @static
  11582. */
  11583. public static function mimeType($path)
  11584. {
  11585. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11586. return $instance->mimeType($path);
  11587. }
  11588. /**
  11589. * Get the file's last modification time.
  11590. *
  11591. * @param string $path
  11592. * @return int
  11593. * @static
  11594. */
  11595. public static function lastModified($path)
  11596. {
  11597. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11598. return $instance->lastModified($path);
  11599. }
  11600. /**
  11601. * Get the URL for the file at the given path.
  11602. *
  11603. * @param string $path
  11604. * @return string
  11605. * @static
  11606. */
  11607. public static function url($path)
  11608. {
  11609. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11610. return $instance->url($path);
  11611. }
  11612. /**
  11613. * Get a temporary URL for the file at the given path.
  11614. *
  11615. * @param string $path
  11616. * @param \DateTimeInterface $expiration
  11617. * @param array $options
  11618. * @return string
  11619. * @static
  11620. */
  11621. public static function temporaryUrl($path, $expiration, $options = array())
  11622. {
  11623. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11624. return $instance->temporaryUrl($path, $expiration, $options);
  11625. }
  11626. /**
  11627. * Get a temporary URL for the file at the given path.
  11628. *
  11629. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  11630. * @param string $path
  11631. * @param \DateTimeInterface $expiration
  11632. * @param array $options
  11633. * @return string
  11634. * @static
  11635. */
  11636. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  11637. {
  11638. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11639. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  11640. }
  11641. /**
  11642. * Get a temporary URL for the file at the given path.
  11643. *
  11644. * @param \League\Flysystem\Rackspace\RackspaceAdapter $adapter
  11645. * @param string $path
  11646. * @param \DateTimeInterface $expiration
  11647. * @param array $options
  11648. * @return string
  11649. * @static
  11650. */
  11651. public static function getRackspaceTemporaryUrl($adapter, $path, $expiration, $options)
  11652. {
  11653. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11654. return $instance->getRackspaceTemporaryUrl($adapter, $path, $expiration, $options);
  11655. }
  11656. /**
  11657. * Get an array of all files in a directory.
  11658. *
  11659. * @param string|null $directory
  11660. * @param bool $recursive
  11661. * @return array
  11662. * @static
  11663. */
  11664. public static function files($directory = null, $recursive = false)
  11665. {
  11666. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11667. return $instance->files($directory, $recursive);
  11668. }
  11669. /**
  11670. * Get all of the files from the given directory (recursive).
  11671. *
  11672. * @param string|null $directory
  11673. * @return array
  11674. * @static
  11675. */
  11676. public static function allFiles($directory = null)
  11677. {
  11678. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11679. return $instance->allFiles($directory);
  11680. }
  11681. /**
  11682. * Get all of the directories within a given directory.
  11683. *
  11684. * @param string|null $directory
  11685. * @param bool $recursive
  11686. * @return array
  11687. * @static
  11688. */
  11689. public static function directories($directory = null, $recursive = false)
  11690. {
  11691. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11692. return $instance->directories($directory, $recursive);
  11693. }
  11694. /**
  11695. * Get all (recursive) of the directories within a given directory.
  11696. *
  11697. * @param string|null $directory
  11698. * @return array
  11699. * @static
  11700. */
  11701. public static function allDirectories($directory = null)
  11702. {
  11703. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11704. return $instance->allDirectories($directory);
  11705. }
  11706. /**
  11707. * Create a directory.
  11708. *
  11709. * @param string $path
  11710. * @return bool
  11711. * @static
  11712. */
  11713. public static function makeDirectory($path)
  11714. {
  11715. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11716. return $instance->makeDirectory($path);
  11717. }
  11718. /**
  11719. * Recursively delete a directory.
  11720. *
  11721. * @param string $directory
  11722. * @return bool
  11723. * @static
  11724. */
  11725. public static function deleteDirectory($directory)
  11726. {
  11727. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11728. return $instance->deleteDirectory($directory);
  11729. }
  11730. /**
  11731. * Flush the Flysystem cache.
  11732. *
  11733. * @return void
  11734. * @static
  11735. */
  11736. public static function flushCache()
  11737. {
  11738. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11739. $instance->flushCache();
  11740. }
  11741. /**
  11742. * Get the Flysystem driver.
  11743. *
  11744. * @return \League\Flysystem\FilesystemInterface
  11745. * @static
  11746. */
  11747. public static function getDriver()
  11748. {
  11749. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11750. return $instance->getDriver();
  11751. }
  11752. }
  11753. /**
  11754. *
  11755. *
  11756. * @see \Illuminate\Routing\UrlGenerator
  11757. */
  11758. class URL {
  11759. /**
  11760. * Get the full URL for the current request.
  11761. *
  11762. * @return string
  11763. * @static
  11764. */
  11765. public static function full()
  11766. {
  11767. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11768. return $instance->full();
  11769. }
  11770. /**
  11771. * Get the current URL for the request.
  11772. *
  11773. * @return string
  11774. * @static
  11775. */
  11776. public static function current()
  11777. {
  11778. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11779. return $instance->current();
  11780. }
  11781. /**
  11782. * Get the URL for the previous request.
  11783. *
  11784. * @param mixed $fallback
  11785. * @return string
  11786. * @static
  11787. */
  11788. public static function previous($fallback = false)
  11789. {
  11790. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11791. return $instance->previous($fallback);
  11792. }
  11793. /**
  11794. * Generate an absolute URL to the given path.
  11795. *
  11796. * @param string $path
  11797. * @param mixed $extra
  11798. * @param bool|null $secure
  11799. * @return string
  11800. * @static
  11801. */
  11802. public static function to($path, $extra = array(), $secure = null)
  11803. {
  11804. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11805. return $instance->to($path, $extra, $secure);
  11806. }
  11807. /**
  11808. * Generate a secure, absolute URL to the given path.
  11809. *
  11810. * @param string $path
  11811. * @param array $parameters
  11812. * @return string
  11813. * @static
  11814. */
  11815. public static function secure($path, $parameters = array())
  11816. {
  11817. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11818. return $instance->secure($path, $parameters);
  11819. }
  11820. /**
  11821. * Generate the URL to an application asset.
  11822. *
  11823. * @param string $path
  11824. * @param bool|null $secure
  11825. * @return string
  11826. * @static
  11827. */
  11828. public static function asset($path, $secure = null)
  11829. {
  11830. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11831. return $instance->asset($path, $secure);
  11832. }
  11833. /**
  11834. * Generate the URL to a secure asset.
  11835. *
  11836. * @param string $path
  11837. * @return string
  11838. * @static
  11839. */
  11840. public static function secureAsset($path)
  11841. {
  11842. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11843. return $instance->secureAsset($path);
  11844. }
  11845. /**
  11846. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  11847. *
  11848. * @param string $root
  11849. * @param string $path
  11850. * @param bool|null $secure
  11851. * @return string
  11852. * @static
  11853. */
  11854. public static function assetFrom($root, $path, $secure = null)
  11855. {
  11856. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11857. return $instance->assetFrom($root, $path, $secure);
  11858. }
  11859. /**
  11860. * Get the default scheme for a raw URL.
  11861. *
  11862. * @param bool|null $secure
  11863. * @return string
  11864. * @static
  11865. */
  11866. public static function formatScheme($secure)
  11867. {
  11868. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11869. return $instance->formatScheme($secure);
  11870. }
  11871. /**
  11872. * Create a signed route URL for a named route.
  11873. *
  11874. * @param string $name
  11875. * @param array $parameters
  11876. * @param \DateTimeInterface|int $expiration
  11877. * @return string
  11878. * @static
  11879. */
  11880. public static function signedRoute($name, $parameters = array(), $expiration = null)
  11881. {
  11882. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11883. return $instance->signedRoute($name, $parameters, $expiration);
  11884. }
  11885. /**
  11886. * Create a temporary signed route URL for a named route.
  11887. *
  11888. * @param string $name
  11889. * @param \DateTimeInterface|int $expiration
  11890. * @param array $parameters
  11891. * @return string
  11892. * @static
  11893. */
  11894. public static function temporarySignedRoute($name, $expiration, $parameters = array())
  11895. {
  11896. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11897. return $instance->temporarySignedRoute($name, $expiration, $parameters);
  11898. }
  11899. /**
  11900. * Determine if the given request has a valid signature.
  11901. *
  11902. * @param \Illuminate\Http\Request $request
  11903. * @return bool
  11904. * @static
  11905. */
  11906. public static function hasValidSignature($request)
  11907. {
  11908. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11909. return $instance->hasValidSignature($request);
  11910. }
  11911. /**
  11912. * Get the URL to a named route.
  11913. *
  11914. * @param string $name
  11915. * @param mixed $parameters
  11916. * @param bool $absolute
  11917. * @return string
  11918. * @throws \InvalidArgumentException
  11919. * @static
  11920. */
  11921. public static function route($name, $parameters = array(), $absolute = true)
  11922. {
  11923. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11924. return $instance->route($name, $parameters, $absolute);
  11925. }
  11926. /**
  11927. * Get the URL to a controller action.
  11928. *
  11929. * @param string $action
  11930. * @param mixed $parameters
  11931. * @param bool $absolute
  11932. * @return string
  11933. * @throws \InvalidArgumentException
  11934. * @static
  11935. */
  11936. public static function action($action, $parameters = array(), $absolute = true)
  11937. {
  11938. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11939. return $instance->action($action, $parameters, $absolute);
  11940. }
  11941. /**
  11942. * Format the array of URL parameters.
  11943. *
  11944. * @param mixed|array $parameters
  11945. * @return array
  11946. * @static
  11947. */
  11948. public static function formatParameters($parameters)
  11949. {
  11950. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11951. return $instance->formatParameters($parameters);
  11952. }
  11953. /**
  11954. * Get the base URL for the request.
  11955. *
  11956. * @param string $scheme
  11957. * @param string $root
  11958. * @return string
  11959. * @static
  11960. */
  11961. public static function formatRoot($scheme, $root = null)
  11962. {
  11963. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11964. return $instance->formatRoot($scheme, $root);
  11965. }
  11966. /**
  11967. * Format the given URL segments into a single URL.
  11968. *
  11969. * @param string $root
  11970. * @param string $path
  11971. * @return string
  11972. * @static
  11973. */
  11974. public static function format($root, $path)
  11975. {
  11976. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11977. return $instance->format($root, $path);
  11978. }
  11979. /**
  11980. * Determine if the given path is a valid URL.
  11981. *
  11982. * @param string $path
  11983. * @return bool
  11984. * @static
  11985. */
  11986. public static function isValidUrl($path)
  11987. {
  11988. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11989. return $instance->isValidUrl($path);
  11990. }
  11991. /**
  11992. * Set the default named parameters used by the URL generator.
  11993. *
  11994. * @param array $defaults
  11995. * @return void
  11996. * @static
  11997. */
  11998. public static function defaults($defaults)
  11999. {
  12000. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12001. $instance->defaults($defaults);
  12002. }
  12003. /**
  12004. * Get the default named parameters used by the URL generator.
  12005. *
  12006. * @return array
  12007. * @static
  12008. */
  12009. public static function getDefaultParameters()
  12010. {
  12011. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12012. return $instance->getDefaultParameters();
  12013. }
  12014. /**
  12015. * Force the scheme for URLs.
  12016. *
  12017. * @param string $schema
  12018. * @return void
  12019. * @static
  12020. */
  12021. public static function forceScheme($schema)
  12022. {
  12023. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12024. $instance->forceScheme($schema);
  12025. }
  12026. /**
  12027. * Set the forced root URL.
  12028. *
  12029. * @param string $root
  12030. * @return void
  12031. * @static
  12032. */
  12033. public static function forceRootUrl($root)
  12034. {
  12035. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12036. $instance->forceRootUrl($root);
  12037. }
  12038. /**
  12039. * Set a callback to be used to format the host of generated URLs.
  12040. *
  12041. * @param \Closure $callback
  12042. * @return \Illuminate\Routing\UrlGenerator
  12043. * @static
  12044. */
  12045. public static function formatHostUsing($callback)
  12046. {
  12047. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12048. return $instance->formatHostUsing($callback);
  12049. }
  12050. /**
  12051. * Set a callback to be used to format the path of generated URLs.
  12052. *
  12053. * @param \Closure $callback
  12054. * @return \Illuminate\Routing\UrlGenerator
  12055. * @static
  12056. */
  12057. public static function formatPathUsing($callback)
  12058. {
  12059. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12060. return $instance->formatPathUsing($callback);
  12061. }
  12062. /**
  12063. * Get the path formatter being used by the URL generator.
  12064. *
  12065. * @return \Closure
  12066. * @static
  12067. */
  12068. public static function pathFormatter()
  12069. {
  12070. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12071. return $instance->pathFormatter();
  12072. }
  12073. /**
  12074. * Get the request instance.
  12075. *
  12076. * @return \Illuminate\Http\Request
  12077. * @static
  12078. */
  12079. public static function getRequest()
  12080. {
  12081. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12082. return $instance->getRequest();
  12083. }
  12084. /**
  12085. * Set the current request instance.
  12086. *
  12087. * @param \Illuminate\Http\Request $request
  12088. * @return void
  12089. * @static
  12090. */
  12091. public static function setRequest($request)
  12092. {
  12093. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12094. $instance->setRequest($request);
  12095. }
  12096. /**
  12097. * Set the route collection.
  12098. *
  12099. * @param \Illuminate\Routing\RouteCollection $routes
  12100. * @return \Illuminate\Routing\UrlGenerator
  12101. * @static
  12102. */
  12103. public static function setRoutes($routes)
  12104. {
  12105. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12106. return $instance->setRoutes($routes);
  12107. }
  12108. /**
  12109. * Set the session resolver for the generator.
  12110. *
  12111. * @param callable $sessionResolver
  12112. * @return \Illuminate\Routing\UrlGenerator
  12113. * @static
  12114. */
  12115. public static function setSessionResolver($sessionResolver)
  12116. {
  12117. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12118. return $instance->setSessionResolver($sessionResolver);
  12119. }
  12120. /**
  12121. * Set the encryption key resolver.
  12122. *
  12123. * @param callable $keyResolver
  12124. * @return \Illuminate\Routing\UrlGenerator
  12125. * @static
  12126. */
  12127. public static function setKeyResolver($keyResolver)
  12128. {
  12129. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12130. return $instance->setKeyResolver($keyResolver);
  12131. }
  12132. /**
  12133. * Set the root controller namespace.
  12134. *
  12135. * @param string $rootNamespace
  12136. * @return \Illuminate\Routing\UrlGenerator
  12137. * @static
  12138. */
  12139. public static function setRootControllerNamespace($rootNamespace)
  12140. {
  12141. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12142. return $instance->setRootControllerNamespace($rootNamespace);
  12143. }
  12144. /**
  12145. * Register a custom macro.
  12146. *
  12147. * @param string $name
  12148. * @param object|callable $macro
  12149. * @return void
  12150. * @static
  12151. */
  12152. public static function macro($name, $macro)
  12153. {
  12154. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  12155. }
  12156. /**
  12157. * Mix another object into the class.
  12158. *
  12159. * @param object $mixin
  12160. * @return void
  12161. * @throws \ReflectionException
  12162. * @static
  12163. */
  12164. public static function mixin($mixin)
  12165. {
  12166. \Illuminate\Routing\UrlGenerator::mixin($mixin);
  12167. }
  12168. /**
  12169. * Checks if macro is registered.
  12170. *
  12171. * @param string $name
  12172. * @return bool
  12173. * @static
  12174. */
  12175. public static function hasMacro($name)
  12176. {
  12177. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  12178. }
  12179. }
  12180. /**
  12181. *
  12182. *
  12183. * @see \Illuminate\Validation\Factory
  12184. */
  12185. class Validator {
  12186. /**
  12187. * Create a new Validator instance.
  12188. *
  12189. * @param array $data
  12190. * @param array $rules
  12191. * @param array $messages
  12192. * @param array $customAttributes
  12193. * @return \Illuminate\Validation\Validator
  12194. * @static
  12195. */
  12196. public static function make($data, $rules, $messages = array(), $customAttributes = array())
  12197. {
  12198. /** @var \Illuminate\Validation\Factory $instance */
  12199. return $instance->make($data, $rules, $messages, $customAttributes);
  12200. }
  12201. /**
  12202. * Validate the given data against the provided rules.
  12203. *
  12204. * @param array $data
  12205. * @param array $rules
  12206. * @param array $messages
  12207. * @param array $customAttributes
  12208. * @return array
  12209. * @throws \Illuminate\Validation\ValidationException
  12210. * @static
  12211. */
  12212. public static function validate($data, $rules, $messages = array(), $customAttributes = array())
  12213. {
  12214. /** @var \Illuminate\Validation\Factory $instance */
  12215. return $instance->validate($data, $rules, $messages, $customAttributes);
  12216. }
  12217. /**
  12218. * Register a custom validator extension.
  12219. *
  12220. * @param string $rule
  12221. * @param \Closure|string $extension
  12222. * @param string $message
  12223. * @return void
  12224. * @static
  12225. */
  12226. public static function extend($rule, $extension, $message = null)
  12227. {
  12228. /** @var \Illuminate\Validation\Factory $instance */
  12229. $instance->extend($rule, $extension, $message);
  12230. }
  12231. /**
  12232. * Register a custom implicit validator extension.
  12233. *
  12234. * @param string $rule
  12235. * @param \Closure|string $extension
  12236. * @param string $message
  12237. * @return void
  12238. * @static
  12239. */
  12240. public static function extendImplicit($rule, $extension, $message = null)
  12241. {
  12242. /** @var \Illuminate\Validation\Factory $instance */
  12243. $instance->extendImplicit($rule, $extension, $message);
  12244. }
  12245. /**
  12246. * Register a custom dependent validator extension.
  12247. *
  12248. * @param string $rule
  12249. * @param \Closure|string $extension
  12250. * @param string $message
  12251. * @return void
  12252. * @static
  12253. */
  12254. public static function extendDependent($rule, $extension, $message = null)
  12255. {
  12256. /** @var \Illuminate\Validation\Factory $instance */
  12257. $instance->extendDependent($rule, $extension, $message);
  12258. }
  12259. /**
  12260. * Register a custom validator message replacer.
  12261. *
  12262. * @param string $rule
  12263. * @param \Closure|string $replacer
  12264. * @return void
  12265. * @static
  12266. */
  12267. public static function replacer($rule, $replacer)
  12268. {
  12269. /** @var \Illuminate\Validation\Factory $instance */
  12270. $instance->replacer($rule, $replacer);
  12271. }
  12272. /**
  12273. * Set the Validator instance resolver.
  12274. *
  12275. * @param \Closure $resolver
  12276. * @return void
  12277. * @static
  12278. */
  12279. public static function resolver($resolver)
  12280. {
  12281. /** @var \Illuminate\Validation\Factory $instance */
  12282. $instance->resolver($resolver);
  12283. }
  12284. /**
  12285. * Get the Translator implementation.
  12286. *
  12287. * @return \Illuminate\Contracts\Translation\Translator
  12288. * @static
  12289. */
  12290. public static function getTranslator()
  12291. {
  12292. /** @var \Illuminate\Validation\Factory $instance */
  12293. return $instance->getTranslator();
  12294. }
  12295. /**
  12296. * Get the Presence Verifier implementation.
  12297. *
  12298. * @return \Illuminate\Validation\PresenceVerifierInterface
  12299. * @static
  12300. */
  12301. public static function getPresenceVerifier()
  12302. {
  12303. /** @var \Illuminate\Validation\Factory $instance */
  12304. return $instance->getPresenceVerifier();
  12305. }
  12306. /**
  12307. * Set the Presence Verifier implementation.
  12308. *
  12309. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  12310. * @return void
  12311. * @static
  12312. */
  12313. public static function setPresenceVerifier($presenceVerifier)
  12314. {
  12315. /** @var \Illuminate\Validation\Factory $instance */
  12316. $instance->setPresenceVerifier($presenceVerifier);
  12317. }
  12318. }
  12319. /**
  12320. *
  12321. *
  12322. * @see \Illuminate\View\Factory
  12323. */
  12324. class View {
  12325. /**
  12326. * Get the evaluated view contents for the given view.
  12327. *
  12328. * @param string $path
  12329. * @param array $data
  12330. * @param array $mergeData
  12331. * @return \Illuminate\Contracts\View\View
  12332. * @static
  12333. */
  12334. public static function file($path, $data = array(), $mergeData = array())
  12335. {
  12336. /** @var \Illuminate\View\Factory $instance */
  12337. return $instance->file($path, $data, $mergeData);
  12338. }
  12339. /**
  12340. * Get the evaluated view contents for the given view.
  12341. *
  12342. * @param string $view
  12343. * @param array $data
  12344. * @param array $mergeData
  12345. * @return \Illuminate\Contracts\View\View
  12346. * @static
  12347. */
  12348. public static function make($view, $data = array(), $mergeData = array())
  12349. {
  12350. /** @var \Illuminate\View\Factory $instance */
  12351. return $instance->make($view, $data, $mergeData);
  12352. }
  12353. /**
  12354. * Get the first view that actually exists from the given list.
  12355. *
  12356. * @param array $views
  12357. * @param array $data
  12358. * @param array $mergeData
  12359. * @return \Illuminate\Contracts\View\View
  12360. * @throws \InvalidArgumentException
  12361. * @static
  12362. */
  12363. public static function first($views, $data = array(), $mergeData = array())
  12364. {
  12365. /** @var \Illuminate\View\Factory $instance */
  12366. return $instance->first($views, $data, $mergeData);
  12367. }
  12368. /**
  12369. * Get the rendered content of the view based on a given condition.
  12370. *
  12371. * @param bool $condition
  12372. * @param string $view
  12373. * @param array $data
  12374. * @param array $mergeData
  12375. * @return string
  12376. * @static
  12377. */
  12378. public static function renderWhen($condition, $view, $data = array(), $mergeData = array())
  12379. {
  12380. /** @var \Illuminate\View\Factory $instance */
  12381. return $instance->renderWhen($condition, $view, $data, $mergeData);
  12382. }
  12383. /**
  12384. * Get the rendered contents of a partial from a loop.
  12385. *
  12386. * @param string $view
  12387. * @param array $data
  12388. * @param string $iterator
  12389. * @param string $empty
  12390. * @return string
  12391. * @static
  12392. */
  12393. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  12394. {
  12395. /** @var \Illuminate\View\Factory $instance */
  12396. return $instance->renderEach($view, $data, $iterator, $empty);
  12397. }
  12398. /**
  12399. * Determine if a given view exists.
  12400. *
  12401. * @param string $view
  12402. * @return bool
  12403. * @static
  12404. */
  12405. public static function exists($view)
  12406. {
  12407. /** @var \Illuminate\View\Factory $instance */
  12408. return $instance->exists($view);
  12409. }
  12410. /**
  12411. * Get the appropriate view engine for the given path.
  12412. *
  12413. * @param string $path
  12414. * @return \Illuminate\Contracts\View\Engine
  12415. * @throws \InvalidArgumentException
  12416. * @static
  12417. */
  12418. public static function getEngineFromPath($path)
  12419. {
  12420. /** @var \Illuminate\View\Factory $instance */
  12421. return $instance->getEngineFromPath($path);
  12422. }
  12423. /**
  12424. * Add a piece of shared data to the environment.
  12425. *
  12426. * @param array|string $key
  12427. * @param mixed $value
  12428. * @return mixed
  12429. * @static
  12430. */
  12431. public static function share($key, $value = null)
  12432. {
  12433. /** @var \Illuminate\View\Factory $instance */
  12434. return $instance->share($key, $value);
  12435. }
  12436. /**
  12437. * Increment the rendering counter.
  12438. *
  12439. * @return void
  12440. * @static
  12441. */
  12442. public static function incrementRender()
  12443. {
  12444. /** @var \Illuminate\View\Factory $instance */
  12445. $instance->incrementRender();
  12446. }
  12447. /**
  12448. * Decrement the rendering counter.
  12449. *
  12450. * @return void
  12451. * @static
  12452. */
  12453. public static function decrementRender()
  12454. {
  12455. /** @var \Illuminate\View\Factory $instance */
  12456. $instance->decrementRender();
  12457. }
  12458. /**
  12459. * Check if there are no active render operations.
  12460. *
  12461. * @return bool
  12462. * @static
  12463. */
  12464. public static function doneRendering()
  12465. {
  12466. /** @var \Illuminate\View\Factory $instance */
  12467. return $instance->doneRendering();
  12468. }
  12469. /**
  12470. * Add a location to the array of view locations.
  12471. *
  12472. * @param string $location
  12473. * @return void
  12474. * @static
  12475. */
  12476. public static function addLocation($location)
  12477. {
  12478. /** @var \Illuminate\View\Factory $instance */
  12479. $instance->addLocation($location);
  12480. }
  12481. /**
  12482. * Add a new namespace to the loader.
  12483. *
  12484. * @param string $namespace
  12485. * @param string|array $hints
  12486. * @return \Illuminate\View\Factory
  12487. * @static
  12488. */
  12489. public static function addNamespace($namespace, $hints)
  12490. {
  12491. /** @var \Illuminate\View\Factory $instance */
  12492. return $instance->addNamespace($namespace, $hints);
  12493. }
  12494. /**
  12495. * Prepend a new namespace to the loader.
  12496. *
  12497. * @param string $namespace
  12498. * @param string|array $hints
  12499. * @return \Illuminate\View\Factory
  12500. * @static
  12501. */
  12502. public static function prependNamespace($namespace, $hints)
  12503. {
  12504. /** @var \Illuminate\View\Factory $instance */
  12505. return $instance->prependNamespace($namespace, $hints);
  12506. }
  12507. /**
  12508. * Replace the namespace hints for the given namespace.
  12509. *
  12510. * @param string $namespace
  12511. * @param string|array $hints
  12512. * @return \Illuminate\View\Factory
  12513. * @static
  12514. */
  12515. public static function replaceNamespace($namespace, $hints)
  12516. {
  12517. /** @var \Illuminate\View\Factory $instance */
  12518. return $instance->replaceNamespace($namespace, $hints);
  12519. }
  12520. /**
  12521. * Register a valid view extension and its engine.
  12522. *
  12523. * @param string $extension
  12524. * @param string $engine
  12525. * @param \Closure $resolver
  12526. * @return void
  12527. * @static
  12528. */
  12529. public static function addExtension($extension, $engine, $resolver = null)
  12530. {
  12531. /** @var \Illuminate\View\Factory $instance */
  12532. $instance->addExtension($extension, $engine, $resolver);
  12533. }
  12534. /**
  12535. * Flush all of the factory state like sections and stacks.
  12536. *
  12537. * @return void
  12538. * @static
  12539. */
  12540. public static function flushState()
  12541. {
  12542. /** @var \Illuminate\View\Factory $instance */
  12543. $instance->flushState();
  12544. }
  12545. /**
  12546. * Flush all of the section contents if done rendering.
  12547. *
  12548. * @return void
  12549. * @static
  12550. */
  12551. public static function flushStateIfDoneRendering()
  12552. {
  12553. /** @var \Illuminate\View\Factory $instance */
  12554. $instance->flushStateIfDoneRendering();
  12555. }
  12556. /**
  12557. * Get the extension to engine bindings.
  12558. *
  12559. * @return array
  12560. * @static
  12561. */
  12562. public static function getExtensions()
  12563. {
  12564. /** @var \Illuminate\View\Factory $instance */
  12565. return $instance->getExtensions();
  12566. }
  12567. /**
  12568. * Get the engine resolver instance.
  12569. *
  12570. * @return \Illuminate\View\Engines\EngineResolver
  12571. * @static
  12572. */
  12573. public static function getEngineResolver()
  12574. {
  12575. /** @var \Illuminate\View\Factory $instance */
  12576. return $instance->getEngineResolver();
  12577. }
  12578. /**
  12579. * Get the view finder instance.
  12580. *
  12581. * @return \Illuminate\View\ViewFinderInterface
  12582. * @static
  12583. */
  12584. public static function getFinder()
  12585. {
  12586. /** @var \Illuminate\View\Factory $instance */
  12587. return $instance->getFinder();
  12588. }
  12589. /**
  12590. * Set the view finder instance.
  12591. *
  12592. * @param \Illuminate\View\ViewFinderInterface $finder
  12593. * @return void
  12594. * @static
  12595. */
  12596. public static function setFinder($finder)
  12597. {
  12598. /** @var \Illuminate\View\Factory $instance */
  12599. $instance->setFinder($finder);
  12600. }
  12601. /**
  12602. * Flush the cache of views located by the finder.
  12603. *
  12604. * @return void
  12605. * @static
  12606. */
  12607. public static function flushFinderCache()
  12608. {
  12609. /** @var \Illuminate\View\Factory $instance */
  12610. $instance->flushFinderCache();
  12611. }
  12612. /**
  12613. * Get the event dispatcher instance.
  12614. *
  12615. * @return \Illuminate\Contracts\Events\Dispatcher
  12616. * @static
  12617. */
  12618. public static function getDispatcher()
  12619. {
  12620. /** @var \Illuminate\View\Factory $instance */
  12621. return $instance->getDispatcher();
  12622. }
  12623. /**
  12624. * Set the event dispatcher instance.
  12625. *
  12626. * @param \Illuminate\Contracts\Events\Dispatcher $events
  12627. * @return void
  12628. * @static
  12629. */
  12630. public static function setDispatcher($events)
  12631. {
  12632. /** @var \Illuminate\View\Factory $instance */
  12633. $instance->setDispatcher($events);
  12634. }
  12635. /**
  12636. * Get the IoC container instance.
  12637. *
  12638. * @return \Illuminate\Contracts\Container\Container
  12639. * @static
  12640. */
  12641. public static function getContainer()
  12642. {
  12643. /** @var \Illuminate\View\Factory $instance */
  12644. return $instance->getContainer();
  12645. }
  12646. /**
  12647. * Set the IoC container instance.
  12648. *
  12649. * @param \Illuminate\Contracts\Container\Container $container
  12650. * @return void
  12651. * @static
  12652. */
  12653. public static function setContainer($container)
  12654. {
  12655. /** @var \Illuminate\View\Factory $instance */
  12656. $instance->setContainer($container);
  12657. }
  12658. /**
  12659. * Get an item from the shared data.
  12660. *
  12661. * @param string $key
  12662. * @param mixed $default
  12663. * @return mixed
  12664. * @static
  12665. */
  12666. public static function shared($key, $default = null)
  12667. {
  12668. /** @var \Illuminate\View\Factory $instance */
  12669. return $instance->shared($key, $default);
  12670. }
  12671. /**
  12672. * Get all of the shared data for the environment.
  12673. *
  12674. * @return array
  12675. * @static
  12676. */
  12677. public static function getShared()
  12678. {
  12679. /** @var \Illuminate\View\Factory $instance */
  12680. return $instance->getShared();
  12681. }
  12682. /**
  12683. * Start a component rendering process.
  12684. *
  12685. * @param string $name
  12686. * @param array $data
  12687. * @return void
  12688. * @static
  12689. */
  12690. public static function startComponent($name, $data = array())
  12691. {
  12692. /** @var \Illuminate\View\Factory $instance */
  12693. $instance->startComponent($name, $data);
  12694. }
  12695. /**
  12696. * Render the current component.
  12697. *
  12698. * @return string
  12699. * @static
  12700. */
  12701. public static function renderComponent()
  12702. {
  12703. /** @var \Illuminate\View\Factory $instance */
  12704. return $instance->renderComponent();
  12705. }
  12706. /**
  12707. * Start the slot rendering process.
  12708. *
  12709. * @param string $name
  12710. * @param string|null $content
  12711. * @return void
  12712. * @static
  12713. */
  12714. public static function slot($name, $content = null)
  12715. {
  12716. /** @var \Illuminate\View\Factory $instance */
  12717. $instance->slot($name, $content);
  12718. }
  12719. /**
  12720. * Save the slot content for rendering.
  12721. *
  12722. * @return void
  12723. * @static
  12724. */
  12725. public static function endSlot()
  12726. {
  12727. /** @var \Illuminate\View\Factory $instance */
  12728. $instance->endSlot();
  12729. }
  12730. /**
  12731. * Register a view creator event.
  12732. *
  12733. * @param array|string $views
  12734. * @param \Closure|string $callback
  12735. * @return array
  12736. * @static
  12737. */
  12738. public static function creator($views, $callback)
  12739. {
  12740. /** @var \Illuminate\View\Factory $instance */
  12741. return $instance->creator($views, $callback);
  12742. }
  12743. /**
  12744. * Register multiple view composers via an array.
  12745. *
  12746. * @param array $composers
  12747. * @return array
  12748. * @static
  12749. */
  12750. public static function composers($composers)
  12751. {
  12752. /** @var \Illuminate\View\Factory $instance */
  12753. return $instance->composers($composers);
  12754. }
  12755. /**
  12756. * Register a view composer event.
  12757. *
  12758. * @param array|string $views
  12759. * @param \Closure|string $callback
  12760. * @return array
  12761. * @static
  12762. */
  12763. public static function composer($views, $callback)
  12764. {
  12765. /** @var \Illuminate\View\Factory $instance */
  12766. return $instance->composer($views, $callback);
  12767. }
  12768. /**
  12769. * Call the composer for a given view.
  12770. *
  12771. * @param \Illuminate\Contracts\View\View $view
  12772. * @return void
  12773. * @static
  12774. */
  12775. public static function callComposer($view)
  12776. {
  12777. /** @var \Illuminate\View\Factory $instance */
  12778. $instance->callComposer($view);
  12779. }
  12780. /**
  12781. * Call the creator for a given view.
  12782. *
  12783. * @param \Illuminate\Contracts\View\View $view
  12784. * @return void
  12785. * @static
  12786. */
  12787. public static function callCreator($view)
  12788. {
  12789. /** @var \Illuminate\View\Factory $instance */
  12790. $instance->callCreator($view);
  12791. }
  12792. /**
  12793. * Start injecting content into a section.
  12794. *
  12795. * @param string $section
  12796. * @param string|null $content
  12797. * @return void
  12798. * @static
  12799. */
  12800. public static function startSection($section, $content = null)
  12801. {
  12802. /** @var \Illuminate\View\Factory $instance */
  12803. $instance->startSection($section, $content);
  12804. }
  12805. /**
  12806. * Inject inline content into a section.
  12807. *
  12808. * @param string $section
  12809. * @param string $content
  12810. * @return void
  12811. * @static
  12812. */
  12813. public static function inject($section, $content)
  12814. {
  12815. /** @var \Illuminate\View\Factory $instance */
  12816. $instance->inject($section, $content);
  12817. }
  12818. /**
  12819. * Stop injecting content into a section and return its contents.
  12820. *
  12821. * @return string
  12822. * @static
  12823. */
  12824. public static function yieldSection()
  12825. {
  12826. /** @var \Illuminate\View\Factory $instance */
  12827. return $instance->yieldSection();
  12828. }
  12829. /**
  12830. * Stop injecting content into a section.
  12831. *
  12832. * @param bool $overwrite
  12833. * @return string
  12834. * @throws \InvalidArgumentException
  12835. * @static
  12836. */
  12837. public static function stopSection($overwrite = false)
  12838. {
  12839. /** @var \Illuminate\View\Factory $instance */
  12840. return $instance->stopSection($overwrite);
  12841. }
  12842. /**
  12843. * Stop injecting content into a section and append it.
  12844. *
  12845. * @return string
  12846. * @throws \InvalidArgumentException
  12847. * @static
  12848. */
  12849. public static function appendSection()
  12850. {
  12851. /** @var \Illuminate\View\Factory $instance */
  12852. return $instance->appendSection();
  12853. }
  12854. /**
  12855. * Get the string contents of a section.
  12856. *
  12857. * @param string $section
  12858. * @param string $default
  12859. * @return string
  12860. * @static
  12861. */
  12862. public static function yieldContent($section, $default = '')
  12863. {
  12864. /** @var \Illuminate\View\Factory $instance */
  12865. return $instance->yieldContent($section, $default);
  12866. }
  12867. /**
  12868. * Get the parent placeholder for the current request.
  12869. *
  12870. * @param string $section
  12871. * @return string
  12872. * @static
  12873. */
  12874. public static function parentPlaceholder($section = '')
  12875. {
  12876. return \Illuminate\View\Factory::parentPlaceholder($section);
  12877. }
  12878. /**
  12879. * Check if section exists.
  12880. *
  12881. * @param string $name
  12882. * @return bool
  12883. * @static
  12884. */
  12885. public static function hasSection($name)
  12886. {
  12887. /** @var \Illuminate\View\Factory $instance */
  12888. return $instance->hasSection($name);
  12889. }
  12890. /**
  12891. * Get the contents of a section.
  12892. *
  12893. * @param string $name
  12894. * @param string $default
  12895. * @return mixed
  12896. * @static
  12897. */
  12898. public static function getSection($name, $default = null)
  12899. {
  12900. /** @var \Illuminate\View\Factory $instance */
  12901. return $instance->getSection($name, $default);
  12902. }
  12903. /**
  12904. * Get the entire array of sections.
  12905. *
  12906. * @return array
  12907. * @static
  12908. */
  12909. public static function getSections()
  12910. {
  12911. /** @var \Illuminate\View\Factory $instance */
  12912. return $instance->getSections();
  12913. }
  12914. /**
  12915. * Flush all of the sections.
  12916. *
  12917. * @return void
  12918. * @static
  12919. */
  12920. public static function flushSections()
  12921. {
  12922. /** @var \Illuminate\View\Factory $instance */
  12923. $instance->flushSections();
  12924. }
  12925. /**
  12926. * Add new loop to the stack.
  12927. *
  12928. * @param \Countable|array $data
  12929. * @return void
  12930. * @static
  12931. */
  12932. public static function addLoop($data)
  12933. {
  12934. /** @var \Illuminate\View\Factory $instance */
  12935. $instance->addLoop($data);
  12936. }
  12937. /**
  12938. * Increment the top loop's indices.
  12939. *
  12940. * @return void
  12941. * @static
  12942. */
  12943. public static function incrementLoopIndices()
  12944. {
  12945. /** @var \Illuminate\View\Factory $instance */
  12946. $instance->incrementLoopIndices();
  12947. }
  12948. /**
  12949. * Pop a loop from the top of the loop stack.
  12950. *
  12951. * @return void
  12952. * @static
  12953. */
  12954. public static function popLoop()
  12955. {
  12956. /** @var \Illuminate\View\Factory $instance */
  12957. $instance->popLoop();
  12958. }
  12959. /**
  12960. * Get an instance of the last loop in the stack.
  12961. *
  12962. * @return \stdClass|null
  12963. * @static
  12964. */
  12965. public static function getLastLoop()
  12966. {
  12967. /** @var \Illuminate\View\Factory $instance */
  12968. return $instance->getLastLoop();
  12969. }
  12970. /**
  12971. * Get the entire loop stack.
  12972. *
  12973. * @return array
  12974. * @static
  12975. */
  12976. public static function getLoopStack()
  12977. {
  12978. /** @var \Illuminate\View\Factory $instance */
  12979. return $instance->getLoopStack();
  12980. }
  12981. /**
  12982. * Start injecting content into a push section.
  12983. *
  12984. * @param string $section
  12985. * @param string $content
  12986. * @return void
  12987. * @static
  12988. */
  12989. public static function startPush($section, $content = '')
  12990. {
  12991. /** @var \Illuminate\View\Factory $instance */
  12992. $instance->startPush($section, $content);
  12993. }
  12994. /**
  12995. * Stop injecting content into a push section.
  12996. *
  12997. * @return string
  12998. * @throws \InvalidArgumentException
  12999. * @static
  13000. */
  13001. public static function stopPush()
  13002. {
  13003. /** @var \Illuminate\View\Factory $instance */
  13004. return $instance->stopPush();
  13005. }
  13006. /**
  13007. * Start prepending content into a push section.
  13008. *
  13009. * @param string $section
  13010. * @param string $content
  13011. * @return void
  13012. * @static
  13013. */
  13014. public static function startPrepend($section, $content = '')
  13015. {
  13016. /** @var \Illuminate\View\Factory $instance */
  13017. $instance->startPrepend($section, $content);
  13018. }
  13019. /**
  13020. * Stop prepending content into a push section.
  13021. *
  13022. * @return string
  13023. * @throws \InvalidArgumentException
  13024. * @static
  13025. */
  13026. public static function stopPrepend()
  13027. {
  13028. /** @var \Illuminate\View\Factory $instance */
  13029. return $instance->stopPrepend();
  13030. }
  13031. /**
  13032. * Get the string contents of a push section.
  13033. *
  13034. * @param string $section
  13035. * @param string $default
  13036. * @return string
  13037. * @static
  13038. */
  13039. public static function yieldPushContent($section, $default = '')
  13040. {
  13041. /** @var \Illuminate\View\Factory $instance */
  13042. return $instance->yieldPushContent($section, $default);
  13043. }
  13044. /**
  13045. * Flush all of the stacks.
  13046. *
  13047. * @return void
  13048. * @static
  13049. */
  13050. public static function flushStacks()
  13051. {
  13052. /** @var \Illuminate\View\Factory $instance */
  13053. $instance->flushStacks();
  13054. }
  13055. /**
  13056. * Start a translation block.
  13057. *
  13058. * @param array $replacements
  13059. * @return void
  13060. * @static
  13061. */
  13062. public static function startTranslation($replacements = array())
  13063. {
  13064. /** @var \Illuminate\View\Factory $instance */
  13065. $instance->startTranslation($replacements);
  13066. }
  13067. /**
  13068. * Render the current translation.
  13069. *
  13070. * @return string
  13071. * @static
  13072. */
  13073. public static function renderTranslation()
  13074. {
  13075. /** @var \Illuminate\View\Factory $instance */
  13076. return $instance->renderTranslation();
  13077. }
  13078. }
  13079. }
  13080. namespace Mews\Captcha\Facades {
  13081. /**
  13082. *
  13083. *
  13084. * @see \Mews\Captcha
  13085. */
  13086. class Captcha {
  13087. /**
  13088. * Create captcha image
  13089. *
  13090. * @param string $config
  13091. * @param boolean $api
  13092. * @return \Mews\Captcha\ImageManager->response
  13093. * @static
  13094. */
  13095. public static function create($config = 'default', $api = false)
  13096. {
  13097. /** @var \Mews\Captcha\Captcha $instance */
  13098. return $instance->create($config, $api);
  13099. }
  13100. /**
  13101. * Captcha check
  13102. *
  13103. * @param $value
  13104. * @return bool
  13105. * @static
  13106. */
  13107. public static function check($value)
  13108. {
  13109. /** @var \Mews\Captcha\Captcha $instance */
  13110. return $instance->check($value);
  13111. }
  13112. /**
  13113. * Captcha check
  13114. *
  13115. * @param $value
  13116. * @return bool
  13117. * @static
  13118. */
  13119. public static function check_api($value, $key)
  13120. {
  13121. /** @var \Mews\Captcha\Captcha $instance */
  13122. return $instance->check_api($value, $key);
  13123. }
  13124. /**
  13125. * Generate captcha image source
  13126. *
  13127. * @param null $config
  13128. * @return string
  13129. * @static
  13130. */
  13131. public static function src($config = null)
  13132. {
  13133. /** @var \Mews\Captcha\Captcha $instance */
  13134. return $instance->src($config);
  13135. }
  13136. /**
  13137. * Generate captcha image html tag
  13138. *
  13139. * @param null $config
  13140. * @param array $attrs HTML attributes supplied to the image tag where key is the attribute
  13141. * and the value is the attribute value
  13142. * @return string
  13143. * @static
  13144. */
  13145. public static function img($config = null, $attrs = array())
  13146. {
  13147. /** @var \Mews\Captcha\Captcha $instance */
  13148. return $instance->img($config, $attrs);
  13149. }
  13150. }
  13151. }
  13152. namespace Jenssegers\Agent\Facades {
  13153. /**
  13154. *
  13155. *
  13156. */
  13157. class Agent {
  13158. /**
  13159. * Get all detection rules. These rules include the additional
  13160. * platforms and browsers and utilities.
  13161. *
  13162. * @return array
  13163. * @static
  13164. */
  13165. public static function getDetectionRulesExtended()
  13166. {
  13167. return \Jenssegers\Agent\Agent::getDetectionRulesExtended();
  13168. }
  13169. /**
  13170. *
  13171. *
  13172. * @static
  13173. */
  13174. public static function getRules()
  13175. {
  13176. /** @var \Jenssegers\Agent\Agent $instance */
  13177. return $instance->getRules();
  13178. }
  13179. /**
  13180. *
  13181. *
  13182. * @return \Jenssegers\Agent\CrawlerDetect
  13183. * @static
  13184. */
  13185. public static function getCrawlerDetect()
  13186. {
  13187. /** @var \Jenssegers\Agent\Agent $instance */
  13188. return $instance->getCrawlerDetect();
  13189. }
  13190. /**
  13191. *
  13192. *
  13193. * @static
  13194. */
  13195. public static function getBrowsers()
  13196. {
  13197. return \Jenssegers\Agent\Agent::getBrowsers();
  13198. }
  13199. /**
  13200. *
  13201. *
  13202. * @static
  13203. */
  13204. public static function getOperatingSystems()
  13205. {
  13206. return \Jenssegers\Agent\Agent::getOperatingSystems();
  13207. }
  13208. /**
  13209. *
  13210. *
  13211. * @static
  13212. */
  13213. public static function getPlatforms()
  13214. {
  13215. return \Jenssegers\Agent\Agent::getPlatforms();
  13216. }
  13217. /**
  13218. *
  13219. *
  13220. * @static
  13221. */
  13222. public static function getDesktopDevices()
  13223. {
  13224. return \Jenssegers\Agent\Agent::getDesktopDevices();
  13225. }
  13226. /**
  13227. *
  13228. *
  13229. * @static
  13230. */
  13231. public static function getProperties()
  13232. {
  13233. return \Jenssegers\Agent\Agent::getProperties();
  13234. }
  13235. /**
  13236. * Get accept languages.
  13237. *
  13238. * @param string $acceptLanguage
  13239. * @return array
  13240. * @static
  13241. */
  13242. public static function languages($acceptLanguage = null)
  13243. {
  13244. /** @var \Jenssegers\Agent\Agent $instance */
  13245. return $instance->languages($acceptLanguage);
  13246. }
  13247. /**
  13248. * Get the browser name.
  13249. *
  13250. * @param string|null $userAgent
  13251. * @return string
  13252. * @static
  13253. */
  13254. public static function browser($userAgent = null)
  13255. {
  13256. /** @var \Jenssegers\Agent\Agent $instance */
  13257. return $instance->browser($userAgent);
  13258. }
  13259. /**
  13260. * Get the platform name.
  13261. *
  13262. * @param string|null $userAgent
  13263. * @return string
  13264. * @static
  13265. */
  13266. public static function platform($userAgent = null)
  13267. {
  13268. /** @var \Jenssegers\Agent\Agent $instance */
  13269. return $instance->platform($userAgent);
  13270. }
  13271. /**
  13272. * Get the device name.
  13273. *
  13274. * @param string|null $userAgent
  13275. * @return string
  13276. * @static
  13277. */
  13278. public static function device($userAgent = null)
  13279. {
  13280. /** @var \Jenssegers\Agent\Agent $instance */
  13281. return $instance->device($userAgent);
  13282. }
  13283. /**
  13284. * Check if the device is a desktop computer.
  13285. *
  13286. * @param string|null $userAgent deprecated
  13287. * @param array $httpHeaders deprecated
  13288. * @return bool
  13289. * @static
  13290. */
  13291. public static function isDesktop($userAgent = null, $httpHeaders = null)
  13292. {
  13293. /** @var \Jenssegers\Agent\Agent $instance */
  13294. return $instance->isDesktop($userAgent, $httpHeaders);
  13295. }
  13296. /**
  13297. * Check if the device is a mobile phone.
  13298. *
  13299. * @param string|null $userAgent deprecated
  13300. * @param array $httpHeaders deprecated
  13301. * @return bool
  13302. * @static
  13303. */
  13304. public static function isPhone($userAgent = null, $httpHeaders = null)
  13305. {
  13306. /** @var \Jenssegers\Agent\Agent $instance */
  13307. return $instance->isPhone($userAgent, $httpHeaders);
  13308. }
  13309. /**
  13310. * Get the robot name.
  13311. *
  13312. * @param string|null $userAgent
  13313. * @return string|bool
  13314. * @static
  13315. */
  13316. public static function robot($userAgent = null)
  13317. {
  13318. /** @var \Jenssegers\Agent\Agent $instance */
  13319. return $instance->robot($userAgent);
  13320. }
  13321. /**
  13322. * Check if device is a robot.
  13323. *
  13324. * @param string|null $userAgent
  13325. * @return bool
  13326. * @static
  13327. */
  13328. public static function isRobot($userAgent = null)
  13329. {
  13330. /** @var \Jenssegers\Agent\Agent $instance */
  13331. return $instance->isRobot($userAgent);
  13332. }
  13333. /**
  13334. *
  13335. *
  13336. * @static
  13337. */
  13338. public static function version($propertyName, $type = 'text')
  13339. {
  13340. /** @var \Jenssegers\Agent\Agent $instance */
  13341. return $instance->version($propertyName, $type);
  13342. }
  13343. /**
  13344. * Get the current script version.
  13345. *
  13346. * This is useful for the demo.php file,
  13347. * so people can check on what version they are testing
  13348. * for mobile devices.
  13349. *
  13350. * @return string The version number in semantic version format.
  13351. * @static
  13352. */
  13353. public static function getScriptVersion()
  13354. {
  13355. //Method inherited from \Mobile_Detect
  13356. return \Jenssegers\Agent\Agent::getScriptVersion();
  13357. }
  13358. /**
  13359. * Set the HTTP Headers. Must be PHP-flavored. This method will reset existing headers.
  13360. *
  13361. * @param array $httpHeaders The headers to set. If null, then using PHP's _SERVER to extract
  13362. * the headers. The default null is left for backwards compatibility.
  13363. * @static
  13364. */
  13365. public static function setHttpHeaders($httpHeaders = null)
  13366. {
  13367. //Method inherited from \Mobile_Detect
  13368. /** @var \Jenssegers\Agent\Agent $instance */
  13369. return $instance->setHttpHeaders($httpHeaders);
  13370. }
  13371. /**
  13372. * Retrieves the HTTP headers.
  13373. *
  13374. * @return array
  13375. * @static
  13376. */
  13377. public static function getHttpHeaders()
  13378. {
  13379. //Method inherited from \Mobile_Detect
  13380. /** @var \Jenssegers\Agent\Agent $instance */
  13381. return $instance->getHttpHeaders();
  13382. }
  13383. /**
  13384. * Retrieves a particular header. If it doesn't exist, no exception/error is caused.
  13385. *
  13386. * Simply null is returned.
  13387. *
  13388. * @param string $header The name of the header to retrieve. Can be HTTP compliant such as
  13389. * "User-Agent" or "X-Device-User-Agent" or can be php-esque with the
  13390. * all-caps, HTTP_ prefixed, underscore seperated awesomeness.
  13391. * @return string|null The value of the header.
  13392. * @static
  13393. */
  13394. public static function getHttpHeader($header)
  13395. {
  13396. //Method inherited from \Mobile_Detect
  13397. /** @var \Jenssegers\Agent\Agent $instance */
  13398. return $instance->getHttpHeader($header);
  13399. }
  13400. /**
  13401. *
  13402. *
  13403. * @static
  13404. */
  13405. public static function getMobileHeaders()
  13406. {
  13407. //Method inherited from \Mobile_Detect
  13408. /** @var \Jenssegers\Agent\Agent $instance */
  13409. return $instance->getMobileHeaders();
  13410. }
  13411. /**
  13412. * Get all possible HTTP headers that
  13413. * can contain the User-Agent string.
  13414. *
  13415. * @return array List of HTTP headers.
  13416. * @static
  13417. */
  13418. public static function getUaHttpHeaders()
  13419. {
  13420. //Method inherited from \Mobile_Detect
  13421. /** @var \Jenssegers\Agent\Agent $instance */
  13422. return $instance->getUaHttpHeaders();
  13423. }
  13424. /**
  13425. * Set CloudFront headers
  13426. * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
  13427. *
  13428. * @param array $cfHeaders List of HTTP headers
  13429. * @return boolean If there were CloudFront headers to be set
  13430. * @static
  13431. */
  13432. public static function setCfHeaders($cfHeaders = null)
  13433. {
  13434. //Method inherited from \Mobile_Detect
  13435. /** @var \Jenssegers\Agent\Agent $instance */
  13436. return $instance->setCfHeaders($cfHeaders);
  13437. }
  13438. /**
  13439. * Retrieves the cloudfront headers.
  13440. *
  13441. * @return array
  13442. * @static
  13443. */
  13444. public static function getCfHeaders()
  13445. {
  13446. //Method inherited from \Mobile_Detect
  13447. /** @var \Jenssegers\Agent\Agent $instance */
  13448. return $instance->getCfHeaders();
  13449. }
  13450. /**
  13451. * Set the User-Agent to be used.
  13452. *
  13453. * @param string $userAgent The user agent string to set.
  13454. * @return string|null
  13455. * @static
  13456. */
  13457. public static function setUserAgent($userAgent = null)
  13458. {
  13459. //Method inherited from \Mobile_Detect
  13460. /** @var \Jenssegers\Agent\Agent $instance */
  13461. return $instance->setUserAgent($userAgent);
  13462. }
  13463. /**
  13464. * Retrieve the User-Agent.
  13465. *
  13466. * @return string|null The user agent if it's set.
  13467. * @static
  13468. */
  13469. public static function getUserAgent()
  13470. {
  13471. //Method inherited from \Mobile_Detect
  13472. /** @var \Jenssegers\Agent\Agent $instance */
  13473. return $instance->getUserAgent();
  13474. }
  13475. /**
  13476. * Set the detection type. Must be one of self::DETECTION_TYPE_MOBILE or
  13477. * self::DETECTION_TYPE_EXTENDED. Otherwise, nothing is set.
  13478. *
  13479. * @deprecated since version 2.6.9
  13480. * @param string $type The type. Must be a self::DETECTION_TYPE_* constant. The default
  13481. * parameter is null which will default to self::DETECTION_TYPE_MOBILE.
  13482. * @static
  13483. */
  13484. public static function setDetectionType($type = null)
  13485. {
  13486. //Method inherited from \Mobile_Detect
  13487. /** @var \Jenssegers\Agent\Agent $instance */
  13488. return $instance->setDetectionType($type);
  13489. }
  13490. /**
  13491. *
  13492. *
  13493. * @static
  13494. */
  13495. public static function getMatchingRegex()
  13496. {
  13497. //Method inherited from \Mobile_Detect
  13498. /** @var \Jenssegers\Agent\Agent $instance */
  13499. return $instance->getMatchingRegex();
  13500. }
  13501. /**
  13502. *
  13503. *
  13504. * @static
  13505. */
  13506. public static function getMatchesArray()
  13507. {
  13508. //Method inherited from \Mobile_Detect
  13509. /** @var \Jenssegers\Agent\Agent $instance */
  13510. return $instance->getMatchesArray();
  13511. }
  13512. /**
  13513. * Retrieve the list of known phone devices.
  13514. *
  13515. * @return array List of phone devices.
  13516. * @static
  13517. */
  13518. public static function getPhoneDevices()
  13519. {
  13520. //Method inherited from \Mobile_Detect
  13521. return \Jenssegers\Agent\Agent::getPhoneDevices();
  13522. }
  13523. /**
  13524. * Retrieve the list of known tablet devices.
  13525. *
  13526. * @return array List of tablet devices.
  13527. * @static
  13528. */
  13529. public static function getTabletDevices()
  13530. {
  13531. //Method inherited from \Mobile_Detect
  13532. return \Jenssegers\Agent\Agent::getTabletDevices();
  13533. }
  13534. /**
  13535. * Alias for getBrowsers() method.
  13536. *
  13537. * @return array List of user agents.
  13538. * @static
  13539. */
  13540. public static function getUserAgents()
  13541. {
  13542. //Method inherited from \Mobile_Detect
  13543. return \Jenssegers\Agent\Agent::getUserAgents();
  13544. }
  13545. /**
  13546. * Retrieve the list of known utilities.
  13547. *
  13548. * @return array List of utilities.
  13549. * @static
  13550. */
  13551. public static function getUtilities()
  13552. {
  13553. //Method inherited from \Mobile_Detect
  13554. return \Jenssegers\Agent\Agent::getUtilities();
  13555. }
  13556. /**
  13557. * Method gets the mobile detection rules. This method is used for the magic methods $detect->is*().
  13558. *
  13559. * @deprecated since version 2.6.9
  13560. * @return array All the rules (but not extended).
  13561. * @static
  13562. */
  13563. public static function getMobileDetectionRules()
  13564. {
  13565. //Method inherited from \Mobile_Detect
  13566. return \Jenssegers\Agent\Agent::getMobileDetectionRules();
  13567. }
  13568. /**
  13569. * Method gets the mobile detection rules + utilities.
  13570. *
  13571. * The reason this is separate is because utilities rules
  13572. * don't necessary imply mobile. This method is used inside
  13573. * the new $detect->is('stuff') method.
  13574. *
  13575. * @deprecated since version 2.6.9
  13576. * @return array All the rules + extended.
  13577. * @static
  13578. */
  13579. public static function getMobileDetectionRulesExtended()
  13580. {
  13581. //Method inherited from \Mobile_Detect
  13582. /** @var \Jenssegers\Agent\Agent $instance */
  13583. return $instance->getMobileDetectionRulesExtended();
  13584. }
  13585. /**
  13586. * Check the HTTP headers for signs of mobile.
  13587. *
  13588. * This is the fastest mobile check possible; it's used
  13589. * inside isMobile() method.
  13590. *
  13591. * @return bool
  13592. * @static
  13593. */
  13594. public static function checkHttpHeadersForMobile()
  13595. {
  13596. //Method inherited from \Mobile_Detect
  13597. /** @var \Jenssegers\Agent\Agent $instance */
  13598. return $instance->checkHttpHeadersForMobile();
  13599. }
  13600. /**
  13601. * Check if the device is mobile.
  13602. *
  13603. * Returns true if any type of mobile device detected, including special ones
  13604. *
  13605. * @param null $userAgent deprecated
  13606. * @param null $httpHeaders deprecated
  13607. * @return bool
  13608. * @static
  13609. */
  13610. public static function isMobile($userAgent = null, $httpHeaders = null)
  13611. {
  13612. //Method inherited from \Mobile_Detect
  13613. /** @var \Jenssegers\Agent\Agent $instance */
  13614. return $instance->isMobile($userAgent, $httpHeaders);
  13615. }
  13616. /**
  13617. * Check if the device is a tablet.
  13618. *
  13619. * Return true if any type of tablet device is detected.
  13620. *
  13621. * @param string $userAgent deprecated
  13622. * @param array $httpHeaders deprecated
  13623. * @return bool
  13624. * @static
  13625. */
  13626. public static function isTablet($userAgent = null, $httpHeaders = null)
  13627. {
  13628. //Method inherited from \Mobile_Detect
  13629. /** @var \Jenssegers\Agent\Agent $instance */
  13630. return $instance->isTablet($userAgent, $httpHeaders);
  13631. }
  13632. /**
  13633. * This method checks for a certain property in the
  13634. * userAgent.
  13635. *
  13636. * @todo : The httpHeaders part is not yet used.
  13637. * @param string $key
  13638. * @param string $userAgent deprecated
  13639. * @param string $httpHeaders deprecated
  13640. * @return bool|int|null
  13641. * @static
  13642. */
  13643. public static function is($key, $userAgent = null, $httpHeaders = null)
  13644. {
  13645. //Method inherited from \Mobile_Detect
  13646. /** @var \Jenssegers\Agent\Agent $instance */
  13647. return $instance->is($key, $userAgent, $httpHeaders);
  13648. }
  13649. /**
  13650. * Some detection rules are relative (not standard),
  13651. * because of the diversity of devices, vendors and
  13652. * their conventions in representing the User-Agent or
  13653. * the HTTP headers.
  13654. *
  13655. * This method will be used to check custom regexes against
  13656. * the User-Agent string.
  13657. *
  13658. * @param $regex
  13659. * @param string $userAgent
  13660. * @return bool
  13661. * @todo : search in the HTTP headers too.
  13662. * @static
  13663. */
  13664. public static function match($regex, $userAgent = null)
  13665. {
  13666. //Method inherited from \Mobile_Detect
  13667. /** @var \Jenssegers\Agent\Agent $instance */
  13668. return $instance->match($regex, $userAgent);
  13669. }
  13670. /**
  13671. * Prepare the version number.
  13672. *
  13673. * @todo Remove the error supression from str_replace() call.
  13674. * @param string $ver The string version, like "2.6.21.2152";
  13675. * @return float
  13676. * @static
  13677. */
  13678. public static function prepareVersionNo($ver)
  13679. {
  13680. //Method inherited from \Mobile_Detect
  13681. /** @var \Jenssegers\Agent\Agent $instance */
  13682. return $instance->prepareVersionNo($ver);
  13683. }
  13684. /**
  13685. * Retrieve the mobile grading, using self::MOBILE_GRADE_* constants.
  13686. *
  13687. * @return string One of the self::MOBILE_GRADE_* constants.
  13688. * @static
  13689. */
  13690. public static function mobileGrade()
  13691. {
  13692. //Method inherited from \Mobile_Detect
  13693. /** @var \Jenssegers\Agent\Agent $instance */
  13694. return $instance->mobileGrade();
  13695. }
  13696. }
  13697. }
  13698. namespace Mews\Purifier\Facades {
  13699. /**
  13700. *
  13701. *
  13702. * @see \Mews\Purifier
  13703. */
  13704. class Purifier {
  13705. /**
  13706. *
  13707. *
  13708. * @param $dirty
  13709. * @param null $config
  13710. * @return mixed
  13711. * @static
  13712. */
  13713. public static function clean($dirty, $config = null)
  13714. {
  13715. /** @var \Mews\Purifier\Purifier $instance */
  13716. return $instance->clean($dirty, $config);
  13717. }
  13718. /**
  13719. * Get HTMLPurifier instance.
  13720. *
  13721. * @return \HTMLPurifier
  13722. * @static
  13723. */
  13724. public static function getInstance()
  13725. {
  13726. /** @var \Mews\Purifier\Purifier $instance */
  13727. return $instance->getInstance();
  13728. }
  13729. }
  13730. }
  13731. namespace Misechow\Geetest {
  13732. /**
  13733. *
  13734. *
  13735. */
  13736. class Geetest {
  13737. /**
  13738. *
  13739. *
  13740. * @return string
  13741. * @static
  13742. */
  13743. public static function getGeetestUrl()
  13744. {
  13745. /** @var \Misechow\Geetest\GeetestLib $instance */
  13746. return $instance->getGeetestUrl();
  13747. }
  13748. /**
  13749. *
  13750. *
  13751. * @param string $geetestUrl
  13752. * @return \Misechow\Geetest\GeetestLib
  13753. * @static
  13754. */
  13755. public static function setGeetestUrl($url)
  13756. {
  13757. /** @var \Misechow\Geetest\GeetestLib $instance */
  13758. return $instance->setGeetestUrl($url);
  13759. }
  13760. /**
  13761. * Check Geetest server is running or not.
  13762. *
  13763. * @param null $user_id
  13764. * @return int
  13765. * @static
  13766. */
  13767. public static function preProcess($param, $new_captcha = 1)
  13768. {
  13769. /** @var \Misechow\Geetest\GeetestLib $instance */
  13770. return $instance->preProcess($param, $new_captcha);
  13771. }
  13772. /**
  13773. *
  13774. *
  13775. * @return mixed
  13776. * @static
  13777. */
  13778. public static function getResponseStr()
  13779. {
  13780. /** @var \Misechow\Geetest\GeetestLib $instance */
  13781. return $instance->getResponseStr();
  13782. }
  13783. /**
  13784. *
  13785. *
  13786. * @return mixed
  13787. * @static
  13788. */
  13789. public static function getResponse()
  13790. {
  13791. /** @var \Misechow\Geetest\GeetestLib $instance */
  13792. return $instance->getResponse();
  13793. }
  13794. /**
  13795. * Get success validate result.
  13796. *
  13797. * @param $challenge
  13798. * @param $validate
  13799. * @param $seccode
  13800. * @param null $user_id
  13801. * @return int
  13802. * @static
  13803. */
  13804. public static function successValidate($challenge, $validate, $seccode, $param, $json_format = 1)
  13805. {
  13806. /** @var \Misechow\Geetest\GeetestLib $instance */
  13807. return $instance->successValidate($challenge, $validate, $seccode, $param, $json_format);
  13808. }
  13809. /**
  13810. * Get fail result.
  13811. *
  13812. * @param $challenge
  13813. * @param $validate
  13814. * @param $seccode
  13815. * @return int
  13816. * @static
  13817. */
  13818. public static function failValidate($challenge, $validate, $seccode)
  13819. {
  13820. /** @var \Misechow\Geetest\GeetestLib $instance */
  13821. return $instance->failValidate($challenge, $validate, $seccode);
  13822. }
  13823. /**
  13824. *
  13825. *
  13826. * @param string $product
  13827. * @static
  13828. */
  13829. public static function render($product = 'float', $captchaId = 'geetest-captcha')
  13830. {
  13831. /** @var \Misechow\Geetest\GeetestLib $instance */
  13832. return $instance->render($product, $captchaId);
  13833. }
  13834. }
  13835. }
  13836. namespace Misechow\NoCaptcha\Facades {
  13837. /**
  13838. *
  13839. *
  13840. */
  13841. class NoCaptcha {
  13842. /**
  13843. * Render HTML captcha.
  13844. *
  13845. * @param array $attributes
  13846. * @return string
  13847. * @static
  13848. */
  13849. public static function display($attributes = array())
  13850. {
  13851. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13852. return $instance->display($attributes);
  13853. }
  13854. /**
  13855. *
  13856. *
  13857. * @see display()
  13858. * @static
  13859. */
  13860. public static function displayWidget($attributes = array())
  13861. {
  13862. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13863. return $instance->displayWidget($attributes);
  13864. }
  13865. /**
  13866. * Display a Invisible reCAPTCHA by embedding a callback into a form submit button.
  13867. *
  13868. * @param string $formIdentifier the html ID of the form that should be submitted.
  13869. * @param string $text the text inside the form button
  13870. * @param array $attributes array of additional html elements
  13871. * @return string
  13872. * @static
  13873. */
  13874. public static function displaySubmit($formIdentifier, $text = 'submit', $attributes = array())
  13875. {
  13876. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13877. return $instance->displaySubmit($formIdentifier, $text, $attributes);
  13878. }
  13879. /**
  13880. * Render js source
  13881. *
  13882. * @param null $lang
  13883. * @param bool $callback
  13884. * @param string $onLoadClass
  13885. * @return string
  13886. * @static
  13887. */
  13888. public static function renderJs($lang = null, $callback = false, $onLoadClass = 'onloadCallBack')
  13889. {
  13890. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13891. return $instance->renderJs($lang, $callback, $onLoadClass);
  13892. }
  13893. /**
  13894. * Verify no-captcha response.
  13895. *
  13896. * @param string $response
  13897. * @param string $clientIp
  13898. * @return bool
  13899. * @static
  13900. */
  13901. public static function verifyResponse($response, $clientIp = null)
  13902. {
  13903. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13904. return $instance->verifyResponse($response, $clientIp);
  13905. }
  13906. /**
  13907. * Verify no-captcha response by Symfony Request.
  13908. *
  13909. * @param \Request $request
  13910. * @return bool
  13911. * @static
  13912. */
  13913. public static function verifyRequest($request)
  13914. {
  13915. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13916. return $instance->verifyRequest($request);
  13917. }
  13918. /**
  13919. * Get recaptcha js link.
  13920. *
  13921. * @param string $lang
  13922. * @param boolean $callback
  13923. * @param string $onLoadClass
  13924. * @return string
  13925. * @static
  13926. */
  13927. public static function getJsLink($lang = null, $callback = false, $onLoadClass = 'onloadCallBack')
  13928. {
  13929. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13930. return $instance->getJsLink($lang, $callback, $onLoadClass);
  13931. }
  13932. }
  13933. }
  13934. namespace Tymon\JWTAuth\Facades {
  13935. /**
  13936. *
  13937. *
  13938. */
  13939. class JWTAuth {
  13940. /**
  13941. * Attempt to authenticate the user and return the token.
  13942. *
  13943. * @param array $credentials
  13944. * @return false|string
  13945. * @static
  13946. */
  13947. public static function attempt($credentials)
  13948. {
  13949. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13950. return $instance->attempt($credentials);
  13951. }
  13952. /**
  13953. * Authenticate a user via a token.
  13954. *
  13955. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  13956. * @static
  13957. */
  13958. public static function authenticate()
  13959. {
  13960. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13961. return $instance->authenticate();
  13962. }
  13963. /**
  13964. * Alias for authenticate().
  13965. *
  13966. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  13967. * @static
  13968. */
  13969. public static function toUser()
  13970. {
  13971. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13972. return $instance->toUser();
  13973. }
  13974. /**
  13975. * Get the authenticated user.
  13976. *
  13977. * @return \Tymon\JWTAuth\Contracts\JWTSubject
  13978. * @static
  13979. */
  13980. public static function user()
  13981. {
  13982. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13983. return $instance->user();
  13984. }
  13985. /**
  13986. * Generate a token for a given subject.
  13987. *
  13988. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  13989. * @return string
  13990. * @static
  13991. */
  13992. public static function fromSubject($subject)
  13993. {
  13994. //Method inherited from \Tymon\JWTAuth\JWT
  13995. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13996. return $instance->fromSubject($subject);
  13997. }
  13998. /**
  13999. * Alias to generate a token for a given user.
  14000. *
  14001. * @param \Tymon\JWTAuth\Contracts\JWTSubject $user
  14002. * @return string
  14003. * @static
  14004. */
  14005. public static function fromUser($user)
  14006. {
  14007. //Method inherited from \Tymon\JWTAuth\JWT
  14008. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14009. return $instance->fromUser($user);
  14010. }
  14011. /**
  14012. * Refresh an expired token.
  14013. *
  14014. * @param bool $forceForever
  14015. * @param bool $resetClaims
  14016. * @return string
  14017. * @static
  14018. */
  14019. public static function refresh($forceForever = false, $resetClaims = false)
  14020. {
  14021. //Method inherited from \Tymon\JWTAuth\JWT
  14022. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14023. return $instance->refresh($forceForever, $resetClaims);
  14024. }
  14025. /**
  14026. * Invalidate a token (add it to the blacklist).
  14027. *
  14028. * @param bool $forceForever
  14029. * @return \Tymon\JWTAuth\JWTAuth
  14030. * @static
  14031. */
  14032. public static function invalidate($forceForever = false)
  14033. {
  14034. //Method inherited from \Tymon\JWTAuth\JWT
  14035. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14036. return $instance->invalidate($forceForever);
  14037. }
  14038. /**
  14039. * Alias to get the payload, and as a result checks that
  14040. * the token is valid i.e. not expired or blacklisted.
  14041. *
  14042. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  14043. * @return \Tymon\JWTAuth\Payload
  14044. * @static
  14045. */
  14046. public static function checkOrFail()
  14047. {
  14048. //Method inherited from \Tymon\JWTAuth\JWT
  14049. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14050. return $instance->checkOrFail();
  14051. }
  14052. /**
  14053. * Check that the token is valid.
  14054. *
  14055. * @param bool $getPayload
  14056. * @return \Tymon\JWTAuth\Payload|bool
  14057. * @static
  14058. */
  14059. public static function check($getPayload = false)
  14060. {
  14061. //Method inherited from \Tymon\JWTAuth\JWT
  14062. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14063. return $instance->check($getPayload);
  14064. }
  14065. /**
  14066. * Get the token.
  14067. *
  14068. * @return \Tymon\JWTAuth\Token|null
  14069. * @static
  14070. */
  14071. public static function getToken()
  14072. {
  14073. //Method inherited from \Tymon\JWTAuth\JWT
  14074. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14075. return $instance->getToken();
  14076. }
  14077. /**
  14078. * Parse the token from the request.
  14079. *
  14080. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  14081. * @return \Tymon\JWTAuth\JWTAuth
  14082. * @static
  14083. */
  14084. public static function parseToken()
  14085. {
  14086. //Method inherited from \Tymon\JWTAuth\JWT
  14087. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14088. return $instance->parseToken();
  14089. }
  14090. /**
  14091. * Get the raw Payload instance.
  14092. *
  14093. * @return \Tymon\JWTAuth\Payload
  14094. * @static
  14095. */
  14096. public static function getPayload()
  14097. {
  14098. //Method inherited from \Tymon\JWTAuth\JWT
  14099. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14100. return $instance->getPayload();
  14101. }
  14102. /**
  14103. * Alias for getPayload().
  14104. *
  14105. * @return \Tymon\JWTAuth\Payload
  14106. * @static
  14107. */
  14108. public static function payload()
  14109. {
  14110. //Method inherited from \Tymon\JWTAuth\JWT
  14111. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14112. return $instance->payload();
  14113. }
  14114. /**
  14115. * Convenience method to get a claim value.
  14116. *
  14117. * @param string $claim
  14118. * @return mixed
  14119. * @static
  14120. */
  14121. public static function getClaim($claim)
  14122. {
  14123. //Method inherited from \Tymon\JWTAuth\JWT
  14124. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14125. return $instance->getClaim($claim);
  14126. }
  14127. /**
  14128. * Create a Payload instance.
  14129. *
  14130. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  14131. * @return \Tymon\JWTAuth\Payload
  14132. * @static
  14133. */
  14134. public static function makePayload($subject)
  14135. {
  14136. //Method inherited from \Tymon\JWTAuth\JWT
  14137. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14138. return $instance->makePayload($subject);
  14139. }
  14140. /**
  14141. * Check if the subject model matches the one saved in the token.
  14142. *
  14143. * @param string|object $model
  14144. * @return bool
  14145. * @static
  14146. */
  14147. public static function checkSubjectModel($model)
  14148. {
  14149. //Method inherited from \Tymon\JWTAuth\JWT
  14150. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14151. return $instance->checkSubjectModel($model);
  14152. }
  14153. /**
  14154. * Set the token.
  14155. *
  14156. * @param \Tymon\JWTAuth\Token|string $token
  14157. * @return \Tymon\JWTAuth\JWTAuth
  14158. * @static
  14159. */
  14160. public static function setToken($token)
  14161. {
  14162. //Method inherited from \Tymon\JWTAuth\JWT
  14163. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14164. return $instance->setToken($token);
  14165. }
  14166. /**
  14167. * Unset the current token.
  14168. *
  14169. * @return \Tymon\JWTAuth\JWTAuth
  14170. * @static
  14171. */
  14172. public static function unsetToken()
  14173. {
  14174. //Method inherited from \Tymon\JWTAuth\JWT
  14175. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14176. return $instance->unsetToken();
  14177. }
  14178. /**
  14179. * Set the request instance.
  14180. *
  14181. * @param \Illuminate\Http\Request $request
  14182. * @return \Tymon\JWTAuth\JWTAuth
  14183. * @static
  14184. */
  14185. public static function setRequest($request)
  14186. {
  14187. //Method inherited from \Tymon\JWTAuth\JWT
  14188. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14189. return $instance->setRequest($request);
  14190. }
  14191. /**
  14192. * Set whether the subject should be "locked".
  14193. *
  14194. * @param bool $lock
  14195. * @return \Tymon\JWTAuth\JWTAuth
  14196. * @static
  14197. */
  14198. public static function lockSubject($lock)
  14199. {
  14200. //Method inherited from \Tymon\JWTAuth\JWT
  14201. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14202. return $instance->lockSubject($lock);
  14203. }
  14204. /**
  14205. * Get the Manager instance.
  14206. *
  14207. * @return \Tymon\JWTAuth\Manager
  14208. * @static
  14209. */
  14210. public static function manager()
  14211. {
  14212. //Method inherited from \Tymon\JWTAuth\JWT
  14213. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14214. return $instance->manager();
  14215. }
  14216. /**
  14217. * Get the Parser instance.
  14218. *
  14219. * @return \Tymon\JWTAuth\Http\Parser\Parser
  14220. * @static
  14221. */
  14222. public static function parser()
  14223. {
  14224. //Method inherited from \Tymon\JWTAuth\JWT
  14225. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14226. return $instance->parser();
  14227. }
  14228. /**
  14229. * Get the Payload Factory.
  14230. *
  14231. * @return \Tymon\JWTAuth\Factory
  14232. * @static
  14233. */
  14234. public static function factory()
  14235. {
  14236. //Method inherited from \Tymon\JWTAuth\JWT
  14237. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14238. return $instance->factory();
  14239. }
  14240. /**
  14241. * Get the Blacklist.
  14242. *
  14243. * @return \Tymon\JWTAuth\Blacklist
  14244. * @static
  14245. */
  14246. public static function blacklist()
  14247. {
  14248. //Method inherited from \Tymon\JWTAuth\JWT
  14249. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14250. return $instance->blacklist();
  14251. }
  14252. /**
  14253. * Set the custom claims.
  14254. *
  14255. * @param array $customClaims
  14256. * @return \Tymon\JWTAuth\JWTAuth
  14257. * @static
  14258. */
  14259. public static function customClaims($customClaims)
  14260. {
  14261. //Method inherited from \Tymon\JWTAuth\JWT
  14262. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14263. return $instance->customClaims($customClaims);
  14264. }
  14265. /**
  14266. * Alias to set the custom claims.
  14267. *
  14268. * @param array $customClaims
  14269. * @return \Tymon\JWTAuth\JWTAuth
  14270. * @static
  14271. */
  14272. public static function claims($customClaims)
  14273. {
  14274. //Method inherited from \Tymon\JWTAuth\JWT
  14275. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14276. return $instance->claims($customClaims);
  14277. }
  14278. /**
  14279. * Get the custom claims.
  14280. *
  14281. * @return array
  14282. * @static
  14283. */
  14284. public static function getCustomClaims()
  14285. {
  14286. //Method inherited from \Tymon\JWTAuth\JWT
  14287. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14288. return $instance->getCustomClaims();
  14289. }
  14290. }
  14291. }
  14292. namespace Telegram\Bot\Laravel\Facades {
  14293. /**
  14294. * Class Telegram.
  14295. *
  14296. */
  14297. class Telegram {
  14298. /**
  14299. * Set the IoC Container.
  14300. *
  14301. * @param $container Container instance
  14302. * @return \Telegram\Bot\BotsManager
  14303. * @static
  14304. */
  14305. public static function setContainer($container)
  14306. {
  14307. /** @var \Telegram\Bot\BotsManager $instance */
  14308. return $instance->setContainer($container);
  14309. }
  14310. /**
  14311. * Get the configuration for a bot.
  14312. *
  14313. * @param string|null $name
  14314. * @throws \InvalidArgumentException
  14315. * @return array
  14316. * @static
  14317. */
  14318. public static function getBotConfig($name = null)
  14319. {
  14320. /** @var \Telegram\Bot\BotsManager $instance */
  14321. return $instance->getBotConfig($name);
  14322. }
  14323. /**
  14324. * Get a bot instance.
  14325. *
  14326. * @param string $name
  14327. * @return \Telegram\Bot\Api
  14328. * @static
  14329. */
  14330. public static function bot($name = null)
  14331. {
  14332. /** @var \Telegram\Bot\BotsManager $instance */
  14333. return $instance->bot($name);
  14334. }
  14335. /**
  14336. * Reconnect to the given bot.
  14337. *
  14338. * @param string $name
  14339. * @return \Telegram\Bot\Api
  14340. * @static
  14341. */
  14342. public static function reconnect($name = null)
  14343. {
  14344. /** @var \Telegram\Bot\BotsManager $instance */
  14345. return $instance->reconnect($name);
  14346. }
  14347. /**
  14348. * Disconnect from the given bot.
  14349. *
  14350. * @param string $name
  14351. * @return \Telegram\Bot\BotsManager
  14352. * @static
  14353. */
  14354. public static function disconnect($name = null)
  14355. {
  14356. /** @var \Telegram\Bot\BotsManager $instance */
  14357. return $instance->disconnect($name);
  14358. }
  14359. /**
  14360. * Get the specified configuration value for Telegram.
  14361. *
  14362. * @param string $key
  14363. * @param mixed $default
  14364. * @return mixed
  14365. * @static
  14366. */
  14367. public static function getConfig($key, $default = null)
  14368. {
  14369. /** @var \Telegram\Bot\BotsManager $instance */
  14370. return $instance->getConfig($key, $default);
  14371. }
  14372. /**
  14373. * Get the default bot name.
  14374. *
  14375. * @throws TelegramSDKException
  14376. * @return string|null
  14377. * @static
  14378. */
  14379. public static function getDefaultBotName()
  14380. {
  14381. /** @var \Telegram\Bot\BotsManager $instance */
  14382. return $instance->getDefaultBotName();
  14383. }
  14384. /**
  14385. * Set the default bot name.
  14386. *
  14387. * @param string $name
  14388. * @return \Telegram\Bot\BotsManager
  14389. * @static
  14390. */
  14391. public static function setDefaultBot($name)
  14392. {
  14393. /** @var \Telegram\Bot\BotsManager $instance */
  14394. return $instance->setDefaultBot($name);
  14395. }
  14396. /**
  14397. * Return all of the created bots.
  14398. *
  14399. * @return \Telegram\Bot\Api[]
  14400. * @static
  14401. */
  14402. public static function getBots()
  14403. {
  14404. /** @var \Telegram\Bot\BotsManager $instance */
  14405. return $instance->getBots();
  14406. }
  14407. /**
  14408. * Builds the list of commands for the given commands array.
  14409. *
  14410. * @param array $commands
  14411. * @return array An array of commands which includes global and bot specific commands.
  14412. * @static
  14413. */
  14414. public static function parseBotCommands($commands)
  14415. {
  14416. /** @var \Telegram\Bot\BotsManager $instance */
  14417. return $instance->parseBotCommands($commands);
  14418. }
  14419. }
  14420. }
  14421. namespace Intervention\Image\Facades {
  14422. /**
  14423. *
  14424. *
  14425. */
  14426. class Image {
  14427. /**
  14428. * Overrides configuration settings
  14429. *
  14430. * @param array $config
  14431. * @return self
  14432. * @static
  14433. */
  14434. public static function configure($config = array())
  14435. {
  14436. /** @var \Intervention\Image\ImageManager $instance */
  14437. return $instance->configure($config);
  14438. }
  14439. /**
  14440. * Initiates an Image instance from different input types
  14441. *
  14442. * @param mixed $data
  14443. * @return \Intervention\Image\Image
  14444. * @static
  14445. */
  14446. public static function make($data)
  14447. {
  14448. /** @var \Intervention\Image\ImageManager $instance */
  14449. return $instance->make($data);
  14450. }
  14451. /**
  14452. * Creates an empty image canvas
  14453. *
  14454. * @param int $width
  14455. * @param int $height
  14456. * @param mixed $background
  14457. * @return \Intervention\Image\Image
  14458. * @static
  14459. */
  14460. public static function canvas($width, $height, $background = null)
  14461. {
  14462. /** @var \Intervention\Image\ImageManager $instance */
  14463. return $instance->canvas($width, $height, $background);
  14464. }
  14465. /**
  14466. * Create new cached image and run callback
  14467. * (requires additional package intervention/imagecache)
  14468. *
  14469. * @param \Closure $callback
  14470. * @param int $lifetime
  14471. * @param boolean $returnObj
  14472. * @return \Image
  14473. * @static
  14474. */
  14475. public static function cache($callback, $lifetime = null, $returnObj = false)
  14476. {
  14477. /** @var \Intervention\Image\ImageManager $instance */
  14478. return $instance->cache($callback, $lifetime, $returnObj);
  14479. }
  14480. }
  14481. }
  14482. namespace {
  14483. class App extends \Illuminate\Support\Facades\App {}
  14484. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  14485. class Auth extends \Illuminate\Support\Facades\Auth {}
  14486. class Blade extends \Illuminate\Support\Facades\Blade {}
  14487. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  14488. class Bus extends \Illuminate\Support\Facades\Bus {}
  14489. class Cache extends \Illuminate\Support\Facades\Cache {}
  14490. class Config extends \Illuminate\Support\Facades\Config {}
  14491. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  14492. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  14493. class DB extends \Illuminate\Support\Facades\DB {}
  14494. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  14495. /**
  14496. * Create and return an un-saved model instance.
  14497. *
  14498. * @param array $attributes
  14499. * @return \Illuminate\Database\Eloquent\Model
  14500. * @static
  14501. */
  14502. public static function make($attributes = array())
  14503. {
  14504. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14505. return $instance->make($attributes);
  14506. }
  14507. /**
  14508. * Register a new global scope.
  14509. *
  14510. * @param string $identifier
  14511. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  14512. * @return \Illuminate\Database\Eloquent\Builder
  14513. * @static
  14514. */
  14515. public static function withGlobalScope($identifier, $scope)
  14516. {
  14517. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14518. return $instance->withGlobalScope($identifier, $scope);
  14519. }
  14520. /**
  14521. * Remove a registered global scope.
  14522. *
  14523. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  14524. * @return \Illuminate\Database\Eloquent\Builder
  14525. * @static
  14526. */
  14527. public static function withoutGlobalScope($scope)
  14528. {
  14529. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14530. return $instance->withoutGlobalScope($scope);
  14531. }
  14532. /**
  14533. * Remove all or passed registered global scopes.
  14534. *
  14535. * @param array|null $scopes
  14536. * @return \Illuminate\Database\Eloquent\Builder
  14537. * @static
  14538. */
  14539. public static function withoutGlobalScopes($scopes = null)
  14540. {
  14541. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14542. return $instance->withoutGlobalScopes($scopes);
  14543. }
  14544. /**
  14545. * Get an array of global scopes that were removed from the query.
  14546. *
  14547. * @return array
  14548. * @static
  14549. */
  14550. public static function removedScopes()
  14551. {
  14552. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14553. return $instance->removedScopes();
  14554. }
  14555. /**
  14556. * Add a where clause on the primary key to the query.
  14557. *
  14558. * @param mixed $id
  14559. * @return \Illuminate\Database\Eloquent\Builder
  14560. * @static
  14561. */
  14562. public static function whereKey($id)
  14563. {
  14564. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14565. return $instance->whereKey($id);
  14566. }
  14567. /**
  14568. * Add a where clause on the primary key to the query.
  14569. *
  14570. * @param mixed $id
  14571. * @return \Illuminate\Database\Eloquent\Builder
  14572. * @static
  14573. */
  14574. public static function whereKeyNot($id)
  14575. {
  14576. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14577. return $instance->whereKeyNot($id);
  14578. }
  14579. /**
  14580. * Add a basic where clause to the query.
  14581. *
  14582. * @param string|array|\Closure $column
  14583. * @param mixed $operator
  14584. * @param mixed $value
  14585. * @param string $boolean
  14586. * @return \Illuminate\Database\Eloquent\Builder
  14587. * @static
  14588. */
  14589. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  14590. {
  14591. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14592. return $instance->where($column, $operator, $value, $boolean);
  14593. }
  14594. /**
  14595. * Add an "or where" clause to the query.
  14596. *
  14597. * @param \Closure|array|string $column
  14598. * @param mixed $operator
  14599. * @param mixed $value
  14600. * @return \Illuminate\Database\Eloquent\Builder|static
  14601. * @static
  14602. */
  14603. public static function orWhere($column, $operator = null, $value = null)
  14604. {
  14605. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14606. return $instance->orWhere($column, $operator, $value);
  14607. }
  14608. /**
  14609. * Create a collection of models from plain arrays.
  14610. *
  14611. * @param array $items
  14612. * @return \Illuminate\Database\Eloquent\Collection
  14613. * @static
  14614. */
  14615. public static function hydrate($items)
  14616. {
  14617. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14618. return $instance->hydrate($items);
  14619. }
  14620. /**
  14621. * Create a collection of models from a raw query.
  14622. *
  14623. * @param string $query
  14624. * @param array $bindings
  14625. * @return \Illuminate\Database\Eloquent\Collection
  14626. * @static
  14627. */
  14628. public static function fromQuery($query, $bindings = array())
  14629. {
  14630. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14631. return $instance->fromQuery($query, $bindings);
  14632. }
  14633. /**
  14634. * Find a model by its primary key.
  14635. *
  14636. * @param mixed $id
  14637. * @param array $columns
  14638. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  14639. * @static
  14640. */
  14641. public static function find($id, $columns = array())
  14642. {
  14643. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14644. return $instance->find($id, $columns);
  14645. }
  14646. /**
  14647. * Find multiple models by their primary keys.
  14648. *
  14649. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  14650. * @param array $columns
  14651. * @return \Illuminate\Database\Eloquent\Collection
  14652. * @static
  14653. */
  14654. public static function findMany($ids, $columns = array())
  14655. {
  14656. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14657. return $instance->findMany($ids, $columns);
  14658. }
  14659. /**
  14660. * Find a model by its primary key or throw an exception.
  14661. *
  14662. * @param mixed $id
  14663. * @param array $columns
  14664. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  14665. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14666. * @static
  14667. */
  14668. public static function findOrFail($id, $columns = array())
  14669. {
  14670. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14671. return $instance->findOrFail($id, $columns);
  14672. }
  14673. /**
  14674. * Find a model by its primary key or return fresh model instance.
  14675. *
  14676. * @param mixed $id
  14677. * @param array $columns
  14678. * @return \Illuminate\Database\Eloquent\Model
  14679. * @static
  14680. */
  14681. public static function findOrNew($id, $columns = array())
  14682. {
  14683. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14684. return $instance->findOrNew($id, $columns);
  14685. }
  14686. /**
  14687. * Get the first record matching the attributes or instantiate it.
  14688. *
  14689. * @param array $attributes
  14690. * @param array $values
  14691. * @return \Illuminate\Database\Eloquent\Model
  14692. * @static
  14693. */
  14694. public static function firstOrNew($attributes, $values = array())
  14695. {
  14696. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14697. return $instance->firstOrNew($attributes, $values);
  14698. }
  14699. /**
  14700. * Get the first record matching the attributes or create it.
  14701. *
  14702. * @param array $attributes
  14703. * @param array $values
  14704. * @return \Illuminate\Database\Eloquent\Model
  14705. * @static
  14706. */
  14707. public static function firstOrCreate($attributes, $values = array())
  14708. {
  14709. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14710. return $instance->firstOrCreate($attributes, $values);
  14711. }
  14712. /**
  14713. * Create or update a record matching the attributes, and fill it with values.
  14714. *
  14715. * @param array $attributes
  14716. * @param array $values
  14717. * @return \Illuminate\Database\Eloquent\Model
  14718. * @static
  14719. */
  14720. public static function updateOrCreate($attributes, $values = array())
  14721. {
  14722. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14723. return $instance->updateOrCreate($attributes, $values);
  14724. }
  14725. /**
  14726. * Execute the query and get the first result or throw an exception.
  14727. *
  14728. * @param array $columns
  14729. * @return \Illuminate\Database\Eloquent\Model|static
  14730. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14731. * @static
  14732. */
  14733. public static function firstOrFail($columns = array())
  14734. {
  14735. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14736. return $instance->firstOrFail($columns);
  14737. }
  14738. /**
  14739. * Execute the query and get the first result or call a callback.
  14740. *
  14741. * @param \Closure|array $columns
  14742. * @param \Closure|null $callback
  14743. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  14744. * @static
  14745. */
  14746. public static function firstOr($columns = array(), $callback = null)
  14747. {
  14748. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14749. return $instance->firstOr($columns, $callback);
  14750. }
  14751. /**
  14752. * Get a single column's value from the first result of a query.
  14753. *
  14754. * @param string $column
  14755. * @return mixed
  14756. * @static
  14757. */
  14758. public static function value($column)
  14759. {
  14760. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14761. return $instance->value($column);
  14762. }
  14763. /**
  14764. * Execute the query as a "select" statement.
  14765. *
  14766. * @param array $columns
  14767. * @return \Illuminate\Database\Eloquent\Collection|static[]
  14768. * @static
  14769. */
  14770. public static function get($columns = array())
  14771. {
  14772. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14773. return $instance->get($columns);
  14774. }
  14775. /**
  14776. * Get the hydrated models without eager loading.
  14777. *
  14778. * @param array $columns
  14779. * @return \Illuminate\Database\Eloquent\Model[]
  14780. * @static
  14781. */
  14782. public static function getModels($columns = array())
  14783. {
  14784. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14785. return $instance->getModels($columns);
  14786. }
  14787. /**
  14788. * Eager load the relationships for the models.
  14789. *
  14790. * @param array $models
  14791. * @return array
  14792. * @static
  14793. */
  14794. public static function eagerLoadRelations($models)
  14795. {
  14796. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14797. return $instance->eagerLoadRelations($models);
  14798. }
  14799. /**
  14800. * Get a generator for the given query.
  14801. *
  14802. * @return \Generator
  14803. * @static
  14804. */
  14805. public static function cursor()
  14806. {
  14807. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14808. return $instance->cursor();
  14809. }
  14810. /**
  14811. * Chunk the results of a query by comparing numeric IDs.
  14812. *
  14813. * @param int $count
  14814. * @param callable $callback
  14815. * @param string|null $column
  14816. * @param string|null $alias
  14817. * @return bool
  14818. * @static
  14819. */
  14820. public static function chunkById($count, $callback, $column = null, $alias = null)
  14821. {
  14822. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14823. return $instance->chunkById($count, $callback, $column, $alias);
  14824. }
  14825. /**
  14826. * Get an array with the values of a given column.
  14827. *
  14828. * @param string $column
  14829. * @param string|null $key
  14830. * @return \Illuminate\Support\Collection
  14831. * @static
  14832. */
  14833. public static function pluck($column, $key = null)
  14834. {
  14835. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14836. return $instance->pluck($column, $key);
  14837. }
  14838. /**
  14839. * Paginate the given query.
  14840. *
  14841. * @param int $perPage
  14842. * @param array $columns
  14843. * @param string $pageName
  14844. * @param int|null $page
  14845. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  14846. * @throws \InvalidArgumentException
  14847. * @static
  14848. */
  14849. public static function paginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  14850. {
  14851. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14852. return $instance->paginate($perPage, $columns, $pageName, $page);
  14853. }
  14854. /**
  14855. * Paginate the given query into a simple paginator.
  14856. *
  14857. * @param int $perPage
  14858. * @param array $columns
  14859. * @param string $pageName
  14860. * @param int|null $page
  14861. * @return \Illuminate\Contracts\Pagination\Paginator
  14862. * @static
  14863. */
  14864. public static function simplePaginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  14865. {
  14866. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14867. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  14868. }
  14869. /**
  14870. * Save a new model and return the instance.
  14871. *
  14872. * @param array $attributes
  14873. * @return \Illuminate\Database\Eloquent\Model|$this
  14874. * @static
  14875. */
  14876. public static function create($attributes = array())
  14877. {
  14878. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14879. return $instance->create($attributes);
  14880. }
  14881. /**
  14882. * Save a new model and return the instance. Allow mass-assignment.
  14883. *
  14884. * @param array $attributes
  14885. * @return \Illuminate\Database\Eloquent\Model|$this
  14886. * @static
  14887. */
  14888. public static function forceCreate($attributes)
  14889. {
  14890. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14891. return $instance->forceCreate($attributes);
  14892. }
  14893. /**
  14894. * Register a replacement for the default delete function.
  14895. *
  14896. * @param \Closure $callback
  14897. * @return void
  14898. * @static
  14899. */
  14900. public static function onDelete($callback)
  14901. {
  14902. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14903. $instance->onDelete($callback);
  14904. }
  14905. /**
  14906. * Call the given local model scopes.
  14907. *
  14908. * @param array $scopes
  14909. * @return mixed
  14910. * @static
  14911. */
  14912. public static function scopes($scopes)
  14913. {
  14914. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14915. return $instance->scopes($scopes);
  14916. }
  14917. /**
  14918. * Apply the scopes to the Eloquent builder instance and return it.
  14919. *
  14920. * @return \Illuminate\Database\Eloquent\Builder|static
  14921. * @static
  14922. */
  14923. public static function applyScopes()
  14924. {
  14925. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14926. return $instance->applyScopes();
  14927. }
  14928. /**
  14929. * Prevent the specified relations from being eager loaded.
  14930. *
  14931. * @param mixed $relations
  14932. * @return \Illuminate\Database\Eloquent\Builder
  14933. * @static
  14934. */
  14935. public static function without($relations)
  14936. {
  14937. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14938. return $instance->without($relations);
  14939. }
  14940. /**
  14941. * Create a new instance of the model being queried.
  14942. *
  14943. * @param array $attributes
  14944. * @return \Illuminate\Database\Eloquent\Model
  14945. * @static
  14946. */
  14947. public static function newModelInstance($attributes = array())
  14948. {
  14949. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14950. return $instance->newModelInstance($attributes);
  14951. }
  14952. /**
  14953. * Get the underlying query builder instance.
  14954. *
  14955. * @return \Illuminate\Database\Query\Builder
  14956. * @static
  14957. */
  14958. public static function getQuery()
  14959. {
  14960. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14961. return $instance->getQuery();
  14962. }
  14963. /**
  14964. * Set the underlying query builder instance.
  14965. *
  14966. * @param \Illuminate\Database\Query\Builder $query
  14967. * @return \Illuminate\Database\Eloquent\Builder
  14968. * @static
  14969. */
  14970. public static function setQuery($query)
  14971. {
  14972. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14973. return $instance->setQuery($query);
  14974. }
  14975. /**
  14976. * Get a base query builder instance.
  14977. *
  14978. * @return \Illuminate\Database\Query\Builder
  14979. * @static
  14980. */
  14981. public static function toBase()
  14982. {
  14983. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14984. return $instance->toBase();
  14985. }
  14986. /**
  14987. * Get the relationships being eagerly loaded.
  14988. *
  14989. * @return array
  14990. * @static
  14991. */
  14992. public static function getEagerLoads()
  14993. {
  14994. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14995. return $instance->getEagerLoads();
  14996. }
  14997. /**
  14998. * Set the relationships being eagerly loaded.
  14999. *
  15000. * @param array $eagerLoad
  15001. * @return \Illuminate\Database\Eloquent\Builder
  15002. * @static
  15003. */
  15004. public static function setEagerLoads($eagerLoad)
  15005. {
  15006. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15007. return $instance->setEagerLoads($eagerLoad);
  15008. }
  15009. /**
  15010. * Get the model instance being queried.
  15011. *
  15012. * @return \Illuminate\Database\Eloquent\Model
  15013. * @static
  15014. */
  15015. public static function getModel()
  15016. {
  15017. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15018. return $instance->getModel();
  15019. }
  15020. /**
  15021. * Set a model instance for the model being queried.
  15022. *
  15023. * @param \Illuminate\Database\Eloquent\Model $model
  15024. * @return \Illuminate\Database\Eloquent\Builder
  15025. * @static
  15026. */
  15027. public static function setModel($model)
  15028. {
  15029. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15030. return $instance->setModel($model);
  15031. }
  15032. /**
  15033. * Get the given macro by name.
  15034. *
  15035. * @param string $name
  15036. * @return \Closure
  15037. * @static
  15038. */
  15039. public static function getMacro($name)
  15040. {
  15041. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15042. return $instance->getMacro($name);
  15043. }
  15044. /**
  15045. * Chunk the results of the query.
  15046. *
  15047. * @param int $count
  15048. * @param callable $callback
  15049. * @return bool
  15050. * @static
  15051. */
  15052. public static function chunk($count, $callback)
  15053. {
  15054. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15055. return $instance->chunk($count, $callback);
  15056. }
  15057. /**
  15058. * Execute a callback over each item while chunking.
  15059. *
  15060. * @param callable $callback
  15061. * @param int $count
  15062. * @return bool
  15063. * @static
  15064. */
  15065. public static function each($callback, $count = 1000)
  15066. {
  15067. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15068. return $instance->each($callback, $count);
  15069. }
  15070. /**
  15071. * Execute the query and get the first result.
  15072. *
  15073. * @param array $columns
  15074. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  15075. * @static
  15076. */
  15077. public static function first($columns = array())
  15078. {
  15079. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15080. return $instance->first($columns);
  15081. }
  15082. /**
  15083. * Apply the callback's query changes if the given "value" is true.
  15084. *
  15085. * @param mixed $value
  15086. * @param callable $callback
  15087. * @param callable $default
  15088. * @return mixed|$this
  15089. * @static
  15090. */
  15091. public static function when($value, $callback, $default = null)
  15092. {
  15093. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15094. return $instance->when($value, $callback, $default);
  15095. }
  15096. /**
  15097. * Pass the query to a given callback.
  15098. *
  15099. * @param \Closure $callback
  15100. * @return \Illuminate\Database\Query\Builder
  15101. * @static
  15102. */
  15103. public static function tap($callback)
  15104. {
  15105. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15106. return $instance->tap($callback);
  15107. }
  15108. /**
  15109. * Apply the callback's query changes if the given "value" is false.
  15110. *
  15111. * @param mixed $value
  15112. * @param callable $callback
  15113. * @param callable $default
  15114. * @return mixed|$this
  15115. * @static
  15116. */
  15117. public static function unless($value, $callback, $default = null)
  15118. {
  15119. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15120. return $instance->unless($value, $callback, $default);
  15121. }
  15122. /**
  15123. * Add a relationship count / exists condition to the query.
  15124. *
  15125. * @param string $relation
  15126. * @param string $operator
  15127. * @param int $count
  15128. * @param string $boolean
  15129. * @param \Closure|null $callback
  15130. * @return \Illuminate\Database\Eloquent\Builder|static
  15131. * @static
  15132. */
  15133. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15134. {
  15135. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15136. return $instance->has($relation, $operator, $count, $boolean, $callback);
  15137. }
  15138. /**
  15139. * Add a relationship count / exists condition to the query with an "or".
  15140. *
  15141. * @param string $relation
  15142. * @param string $operator
  15143. * @param int $count
  15144. * @return \Illuminate\Database\Eloquent\Builder|static
  15145. * @static
  15146. */
  15147. public static function orHas($relation, $operator = '>=', $count = 1)
  15148. {
  15149. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15150. return $instance->orHas($relation, $operator, $count);
  15151. }
  15152. /**
  15153. * Add a relationship count / exists condition to the query.
  15154. *
  15155. * @param string $relation
  15156. * @param string $boolean
  15157. * @param \Closure|null $callback
  15158. * @return \Illuminate\Database\Eloquent\Builder|static
  15159. * @static
  15160. */
  15161. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  15162. {
  15163. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15164. return $instance->doesntHave($relation, $boolean, $callback);
  15165. }
  15166. /**
  15167. * Add a relationship count / exists condition to the query with an "or".
  15168. *
  15169. * @param string $relation
  15170. * @return \Illuminate\Database\Eloquent\Builder|static
  15171. * @static
  15172. */
  15173. public static function orDoesntHave($relation)
  15174. {
  15175. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15176. return $instance->orDoesntHave($relation);
  15177. }
  15178. /**
  15179. * Add a relationship count / exists condition to the query with where clauses.
  15180. *
  15181. * @param string $relation
  15182. * @param \Closure|null $callback
  15183. * @param string $operator
  15184. * @param int $count
  15185. * @return \Illuminate\Database\Eloquent\Builder|static
  15186. * @static
  15187. */
  15188. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15189. {
  15190. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15191. return $instance->whereHas($relation, $callback, $operator, $count);
  15192. }
  15193. /**
  15194. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15195. *
  15196. * @param string $relation
  15197. * @param \Closure $callback
  15198. * @param string $operator
  15199. * @param int $count
  15200. * @return \Illuminate\Database\Eloquent\Builder|static
  15201. * @static
  15202. */
  15203. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15204. {
  15205. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15206. return $instance->orWhereHas($relation, $callback, $operator, $count);
  15207. }
  15208. /**
  15209. * Add a relationship count / exists condition to the query with where clauses.
  15210. *
  15211. * @param string $relation
  15212. * @param \Closure|null $callback
  15213. * @return \Illuminate\Database\Eloquent\Builder|static
  15214. * @static
  15215. */
  15216. public static function whereDoesntHave($relation, $callback = null)
  15217. {
  15218. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15219. return $instance->whereDoesntHave($relation, $callback);
  15220. }
  15221. /**
  15222. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15223. *
  15224. * @param string $relation
  15225. * @param \Closure $callback
  15226. * @return \Illuminate\Database\Eloquent\Builder|static
  15227. * @static
  15228. */
  15229. public static function orWhereDoesntHave($relation, $callback = null)
  15230. {
  15231. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15232. return $instance->orWhereDoesntHave($relation, $callback);
  15233. }
  15234. /**
  15235. * Add subselect queries to count the relations.
  15236. *
  15237. * @param mixed $relations
  15238. * @return \Illuminate\Database\Eloquent\Builder
  15239. * @static
  15240. */
  15241. public static function withCount($relations)
  15242. {
  15243. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15244. return $instance->withCount($relations);
  15245. }
  15246. /**
  15247. * Merge the where constraints from another query to the current query.
  15248. *
  15249. * @param \Illuminate\Database\Eloquent\Builder $from
  15250. * @return \Illuminate\Database\Eloquent\Builder|static
  15251. * @static
  15252. */
  15253. public static function mergeConstraintsFrom($from)
  15254. {
  15255. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15256. return $instance->mergeConstraintsFrom($from);
  15257. }
  15258. /**
  15259. * Set the columns to be selected.
  15260. *
  15261. * @param array|mixed $columns
  15262. * @return \Illuminate\Database\Query\Builder
  15263. * @static
  15264. */
  15265. public static function select($columns = array())
  15266. {
  15267. /** @var \Illuminate\Database\Query\Builder $instance */
  15268. return $instance->select($columns);
  15269. }
  15270. /**
  15271. * Add a subselect expression to the query.
  15272. *
  15273. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15274. * @param string $as
  15275. * @return \Illuminate\Database\Query\Builder|static
  15276. * @throws \InvalidArgumentException
  15277. * @static
  15278. */
  15279. public static function selectSub($query, $as)
  15280. {
  15281. /** @var \Illuminate\Database\Query\Builder $instance */
  15282. return $instance->selectSub($query, $as);
  15283. }
  15284. /**
  15285. * Add a new "raw" select expression to the query.
  15286. *
  15287. * @param string $expression
  15288. * @param array $bindings
  15289. * @return \Illuminate\Database\Query\Builder|static
  15290. * @static
  15291. */
  15292. public static function selectRaw($expression, $bindings = array())
  15293. {
  15294. /** @var \Illuminate\Database\Query\Builder $instance */
  15295. return $instance->selectRaw($expression, $bindings);
  15296. }
  15297. /**
  15298. * Makes "from" fetch from a subquery.
  15299. *
  15300. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15301. * @param string $as
  15302. * @return \Illuminate\Database\Query\Builder|static
  15303. * @throws \InvalidArgumentException
  15304. * @static
  15305. */
  15306. public static function fromSub($query, $as)
  15307. {
  15308. /** @var \Illuminate\Database\Query\Builder $instance */
  15309. return $instance->fromSub($query, $as);
  15310. }
  15311. /**
  15312. * Add a raw from clause to the query.
  15313. *
  15314. * @param string $expression
  15315. * @param mixed $bindings
  15316. * @return \Illuminate\Database\Query\Builder|static
  15317. * @static
  15318. */
  15319. public static function fromRaw($expression, $bindings = array())
  15320. {
  15321. /** @var \Illuminate\Database\Query\Builder $instance */
  15322. return $instance->fromRaw($expression, $bindings);
  15323. }
  15324. /**
  15325. * Add a new select column to the query.
  15326. *
  15327. * @param array|mixed $column
  15328. * @return \Illuminate\Database\Query\Builder
  15329. * @static
  15330. */
  15331. public static function addSelect($column)
  15332. {
  15333. /** @var \Illuminate\Database\Query\Builder $instance */
  15334. return $instance->addSelect($column);
  15335. }
  15336. /**
  15337. * Force the query to only return distinct results.
  15338. *
  15339. * @return \Illuminate\Database\Query\Builder
  15340. * @static
  15341. */
  15342. public static function distinct()
  15343. {
  15344. /** @var \Illuminate\Database\Query\Builder $instance */
  15345. return $instance->distinct();
  15346. }
  15347. /**
  15348. * Set the table which the query is targeting.
  15349. *
  15350. * @param string $table
  15351. * @return \Illuminate\Database\Query\Builder
  15352. * @static
  15353. */
  15354. public static function from($table)
  15355. {
  15356. /** @var \Illuminate\Database\Query\Builder $instance */
  15357. return $instance->from($table);
  15358. }
  15359. /**
  15360. * Add a join clause to the query.
  15361. *
  15362. * @param string $table
  15363. * @param string $first
  15364. * @param string|null $operator
  15365. * @param string|null $second
  15366. * @param string $type
  15367. * @param bool $where
  15368. * @return \Illuminate\Database\Query\Builder
  15369. * @static
  15370. */
  15371. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  15372. {
  15373. /** @var \Illuminate\Database\Query\Builder $instance */
  15374. return $instance->join($table, $first, $operator, $second, $type, $where);
  15375. }
  15376. /**
  15377. * Add a "join where" clause to the query.
  15378. *
  15379. * @param string $table
  15380. * @param string $first
  15381. * @param string $operator
  15382. * @param string $second
  15383. * @param string $type
  15384. * @return \Illuminate\Database\Query\Builder|static
  15385. * @static
  15386. */
  15387. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  15388. {
  15389. /** @var \Illuminate\Database\Query\Builder $instance */
  15390. return $instance->joinWhere($table, $first, $operator, $second, $type);
  15391. }
  15392. /**
  15393. * Add a subquery join clause to the query.
  15394. *
  15395. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15396. * @param string $as
  15397. * @param string $first
  15398. * @param string|null $operator
  15399. * @param string|null $second
  15400. * @param string $type
  15401. * @param bool $where
  15402. * @return \Illuminate\Database\Query\Builder|static
  15403. * @throws \InvalidArgumentException
  15404. * @static
  15405. */
  15406. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  15407. {
  15408. /** @var \Illuminate\Database\Query\Builder $instance */
  15409. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  15410. }
  15411. /**
  15412. * Add a left join to the query.
  15413. *
  15414. * @param string $table
  15415. * @param string $first
  15416. * @param string|null $operator
  15417. * @param string|null $second
  15418. * @return \Illuminate\Database\Query\Builder|static
  15419. * @static
  15420. */
  15421. public static function leftJoin($table, $first, $operator = null, $second = null)
  15422. {
  15423. /** @var \Illuminate\Database\Query\Builder $instance */
  15424. return $instance->leftJoin($table, $first, $operator, $second);
  15425. }
  15426. /**
  15427. * Add a "join where" clause to the query.
  15428. *
  15429. * @param string $table
  15430. * @param string $first
  15431. * @param string $operator
  15432. * @param string $second
  15433. * @return \Illuminate\Database\Query\Builder|static
  15434. * @static
  15435. */
  15436. public static function leftJoinWhere($table, $first, $operator, $second)
  15437. {
  15438. /** @var \Illuminate\Database\Query\Builder $instance */
  15439. return $instance->leftJoinWhere($table, $first, $operator, $second);
  15440. }
  15441. /**
  15442. * Add a subquery left join to the query.
  15443. *
  15444. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15445. * @param string $as
  15446. * @param string $first
  15447. * @param string|null $operator
  15448. * @param string|null $second
  15449. * @return \Illuminate\Database\Query\Builder|static
  15450. * @static
  15451. */
  15452. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  15453. {
  15454. /** @var \Illuminate\Database\Query\Builder $instance */
  15455. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  15456. }
  15457. /**
  15458. * Add a right join to the query.
  15459. *
  15460. * @param string $table
  15461. * @param string $first
  15462. * @param string|null $operator
  15463. * @param string|null $second
  15464. * @return \Illuminate\Database\Query\Builder|static
  15465. * @static
  15466. */
  15467. public static function rightJoin($table, $first, $operator = null, $second = null)
  15468. {
  15469. /** @var \Illuminate\Database\Query\Builder $instance */
  15470. return $instance->rightJoin($table, $first, $operator, $second);
  15471. }
  15472. /**
  15473. * Add a "right join where" clause to the query.
  15474. *
  15475. * @param string $table
  15476. * @param string $first
  15477. * @param string $operator
  15478. * @param string $second
  15479. * @return \Illuminate\Database\Query\Builder|static
  15480. * @static
  15481. */
  15482. public static function rightJoinWhere($table, $first, $operator, $second)
  15483. {
  15484. /** @var \Illuminate\Database\Query\Builder $instance */
  15485. return $instance->rightJoinWhere($table, $first, $operator, $second);
  15486. }
  15487. /**
  15488. * Add a subquery right join to the query.
  15489. *
  15490. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15491. * @param string $as
  15492. * @param string $first
  15493. * @param string|null $operator
  15494. * @param string|null $second
  15495. * @return \Illuminate\Database\Query\Builder|static
  15496. * @static
  15497. */
  15498. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  15499. {
  15500. /** @var \Illuminate\Database\Query\Builder $instance */
  15501. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  15502. }
  15503. /**
  15504. * Add a "cross join" clause to the query.
  15505. *
  15506. * @param string $table
  15507. * @param string|null $first
  15508. * @param string|null $operator
  15509. * @param string|null $second
  15510. * @return \Illuminate\Database\Query\Builder|static
  15511. * @static
  15512. */
  15513. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  15514. {
  15515. /** @var \Illuminate\Database\Query\Builder $instance */
  15516. return $instance->crossJoin($table, $first, $operator, $second);
  15517. }
  15518. /**
  15519. * Merge an array of where clauses and bindings.
  15520. *
  15521. * @param array $wheres
  15522. * @param array $bindings
  15523. * @return void
  15524. * @static
  15525. */
  15526. public static function mergeWheres($wheres, $bindings)
  15527. {
  15528. /** @var \Illuminate\Database\Query\Builder $instance */
  15529. $instance->mergeWheres($wheres, $bindings);
  15530. }
  15531. /**
  15532. * Prepare the value and operator for a where clause.
  15533. *
  15534. * @param string $value
  15535. * @param string $operator
  15536. * @param bool $useDefault
  15537. * @return array
  15538. * @throws \InvalidArgumentException
  15539. * @static
  15540. */
  15541. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  15542. {
  15543. /** @var \Illuminate\Database\Query\Builder $instance */
  15544. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  15545. }
  15546. /**
  15547. * Add a "where" clause comparing two columns to the query.
  15548. *
  15549. * @param string|array $first
  15550. * @param string|null $operator
  15551. * @param string|null $second
  15552. * @param string|null $boolean
  15553. * @return \Illuminate\Database\Query\Builder|static
  15554. * @static
  15555. */
  15556. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  15557. {
  15558. /** @var \Illuminate\Database\Query\Builder $instance */
  15559. return $instance->whereColumn($first, $operator, $second, $boolean);
  15560. }
  15561. /**
  15562. * Add an "or where" clause comparing two columns to the query.
  15563. *
  15564. * @param string|array $first
  15565. * @param string|null $operator
  15566. * @param string|null $second
  15567. * @return \Illuminate\Database\Query\Builder|static
  15568. * @static
  15569. */
  15570. public static function orWhereColumn($first, $operator = null, $second = null)
  15571. {
  15572. /** @var \Illuminate\Database\Query\Builder $instance */
  15573. return $instance->orWhereColumn($first, $operator, $second);
  15574. }
  15575. /**
  15576. * Add a raw where clause to the query.
  15577. *
  15578. * @param string $sql
  15579. * @param mixed $bindings
  15580. * @param string $boolean
  15581. * @return \Illuminate\Database\Query\Builder
  15582. * @static
  15583. */
  15584. public static function whereRaw($sql, $bindings = array(), $boolean = 'and')
  15585. {
  15586. /** @var \Illuminate\Database\Query\Builder $instance */
  15587. return $instance->whereRaw($sql, $bindings, $boolean);
  15588. }
  15589. /**
  15590. * Add a raw or where clause to the query.
  15591. *
  15592. * @param string $sql
  15593. * @param mixed $bindings
  15594. * @return \Illuminate\Database\Query\Builder|static
  15595. * @static
  15596. */
  15597. public static function orWhereRaw($sql, $bindings = array())
  15598. {
  15599. /** @var \Illuminate\Database\Query\Builder $instance */
  15600. return $instance->orWhereRaw($sql, $bindings);
  15601. }
  15602. /**
  15603. * Add a "where in" clause to the query.
  15604. *
  15605. * @param string $column
  15606. * @param mixed $values
  15607. * @param string $boolean
  15608. * @param bool $not
  15609. * @return \Illuminate\Database\Query\Builder
  15610. * @static
  15611. */
  15612. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  15613. {
  15614. /** @var \Illuminate\Database\Query\Builder $instance */
  15615. return $instance->whereIn($column, $values, $boolean, $not);
  15616. }
  15617. /**
  15618. * Add an "or where in" clause to the query.
  15619. *
  15620. * @param string $column
  15621. * @param mixed $values
  15622. * @return \Illuminate\Database\Query\Builder|static
  15623. * @static
  15624. */
  15625. public static function orWhereIn($column, $values)
  15626. {
  15627. /** @var \Illuminate\Database\Query\Builder $instance */
  15628. return $instance->orWhereIn($column, $values);
  15629. }
  15630. /**
  15631. * Add a "where not in" clause to the query.
  15632. *
  15633. * @param string $column
  15634. * @param mixed $values
  15635. * @param string $boolean
  15636. * @return \Illuminate\Database\Query\Builder|static
  15637. * @static
  15638. */
  15639. public static function whereNotIn($column, $values, $boolean = 'and')
  15640. {
  15641. /** @var \Illuminate\Database\Query\Builder $instance */
  15642. return $instance->whereNotIn($column, $values, $boolean);
  15643. }
  15644. /**
  15645. * Add an "or where not in" clause to the query.
  15646. *
  15647. * @param string $column
  15648. * @param mixed $values
  15649. * @return \Illuminate\Database\Query\Builder|static
  15650. * @static
  15651. */
  15652. public static function orWhereNotIn($column, $values)
  15653. {
  15654. /** @var \Illuminate\Database\Query\Builder $instance */
  15655. return $instance->orWhereNotIn($column, $values);
  15656. }
  15657. /**
  15658. * Add a "where null" clause to the query.
  15659. *
  15660. * @param string $column
  15661. * @param string $boolean
  15662. * @param bool $not
  15663. * @return \Illuminate\Database\Query\Builder
  15664. * @static
  15665. */
  15666. public static function whereNull($column, $boolean = 'and', $not = false)
  15667. {
  15668. /** @var \Illuminate\Database\Query\Builder $instance */
  15669. return $instance->whereNull($column, $boolean, $not);
  15670. }
  15671. /**
  15672. * Add an "or where null" clause to the query.
  15673. *
  15674. * @param string $column
  15675. * @return \Illuminate\Database\Query\Builder|static
  15676. * @static
  15677. */
  15678. public static function orWhereNull($column)
  15679. {
  15680. /** @var \Illuminate\Database\Query\Builder $instance */
  15681. return $instance->orWhereNull($column);
  15682. }
  15683. /**
  15684. * Add a "where not null" clause to the query.
  15685. *
  15686. * @param string $column
  15687. * @param string $boolean
  15688. * @return \Illuminate\Database\Query\Builder|static
  15689. * @static
  15690. */
  15691. public static function whereNotNull($column, $boolean = 'and')
  15692. {
  15693. /** @var \Illuminate\Database\Query\Builder $instance */
  15694. return $instance->whereNotNull($column, $boolean);
  15695. }
  15696. /**
  15697. * Add a where between statement to the query.
  15698. *
  15699. * @param string $column
  15700. * @param array $values
  15701. * @param string $boolean
  15702. * @param bool $not
  15703. * @return \Illuminate\Database\Query\Builder
  15704. * @static
  15705. */
  15706. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  15707. {
  15708. /** @var \Illuminate\Database\Query\Builder $instance */
  15709. return $instance->whereBetween($column, $values, $boolean, $not);
  15710. }
  15711. /**
  15712. * Add an or where between statement to the query.
  15713. *
  15714. * @param string $column
  15715. * @param array $values
  15716. * @return \Illuminate\Database\Query\Builder|static
  15717. * @static
  15718. */
  15719. public static function orWhereBetween($column, $values)
  15720. {
  15721. /** @var \Illuminate\Database\Query\Builder $instance */
  15722. return $instance->orWhereBetween($column, $values);
  15723. }
  15724. /**
  15725. * Add a where not between statement to the query.
  15726. *
  15727. * @param string $column
  15728. * @param array $values
  15729. * @param string $boolean
  15730. * @return \Illuminate\Database\Query\Builder|static
  15731. * @static
  15732. */
  15733. public static function whereNotBetween($column, $values, $boolean = 'and')
  15734. {
  15735. /** @var \Illuminate\Database\Query\Builder $instance */
  15736. return $instance->whereNotBetween($column, $values, $boolean);
  15737. }
  15738. /**
  15739. * Add an or where not between statement to the query.
  15740. *
  15741. * @param string $column
  15742. * @param array $values
  15743. * @return \Illuminate\Database\Query\Builder|static
  15744. * @static
  15745. */
  15746. public static function orWhereNotBetween($column, $values)
  15747. {
  15748. /** @var \Illuminate\Database\Query\Builder $instance */
  15749. return $instance->orWhereNotBetween($column, $values);
  15750. }
  15751. /**
  15752. * Add an "or where not null" clause to the query.
  15753. *
  15754. * @param string $column
  15755. * @return \Illuminate\Database\Query\Builder|static
  15756. * @static
  15757. */
  15758. public static function orWhereNotNull($column)
  15759. {
  15760. /** @var \Illuminate\Database\Query\Builder $instance */
  15761. return $instance->orWhereNotNull($column);
  15762. }
  15763. /**
  15764. * Add a "where date" statement to the query.
  15765. *
  15766. * @param string $column
  15767. * @param string $operator
  15768. * @param mixed $value
  15769. * @param string $boolean
  15770. * @return \Illuminate\Database\Query\Builder|static
  15771. * @static
  15772. */
  15773. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  15774. {
  15775. /** @var \Illuminate\Database\Query\Builder $instance */
  15776. return $instance->whereDate($column, $operator, $value, $boolean);
  15777. }
  15778. /**
  15779. * Add an "or where date" statement to the query.
  15780. *
  15781. * @param string $column
  15782. * @param string $operator
  15783. * @param mixed $value
  15784. * @return \Illuminate\Database\Query\Builder|static
  15785. * @static
  15786. */
  15787. public static function orWhereDate($column, $operator, $value = null)
  15788. {
  15789. /** @var \Illuminate\Database\Query\Builder $instance */
  15790. return $instance->orWhereDate($column, $operator, $value);
  15791. }
  15792. /**
  15793. * Add a "where time" statement to the query.
  15794. *
  15795. * @param string $column
  15796. * @param string $operator
  15797. * @param mixed $value
  15798. * @param string $boolean
  15799. * @return \Illuminate\Database\Query\Builder|static
  15800. * @static
  15801. */
  15802. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  15803. {
  15804. /** @var \Illuminate\Database\Query\Builder $instance */
  15805. return $instance->whereTime($column, $operator, $value, $boolean);
  15806. }
  15807. /**
  15808. * Add an "or where time" statement to the query.
  15809. *
  15810. * @param string $column
  15811. * @param string $operator
  15812. * @param mixed $value
  15813. * @return \Illuminate\Database\Query\Builder|static
  15814. * @static
  15815. */
  15816. public static function orWhereTime($column, $operator, $value = null)
  15817. {
  15818. /** @var \Illuminate\Database\Query\Builder $instance */
  15819. return $instance->orWhereTime($column, $operator, $value);
  15820. }
  15821. /**
  15822. * Add a "where day" statement to the query.
  15823. *
  15824. * @param string $column
  15825. * @param string $operator
  15826. * @param mixed $value
  15827. * @param string $boolean
  15828. * @return \Illuminate\Database\Query\Builder|static
  15829. * @static
  15830. */
  15831. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  15832. {
  15833. /** @var \Illuminate\Database\Query\Builder $instance */
  15834. return $instance->whereDay($column, $operator, $value, $boolean);
  15835. }
  15836. /**
  15837. * Add an "or where day" statement to the query.
  15838. *
  15839. * @param string $column
  15840. * @param string $operator
  15841. * @param mixed $value
  15842. * @return \Illuminate\Database\Query\Builder|static
  15843. * @static
  15844. */
  15845. public static function orWhereDay($column, $operator, $value = null)
  15846. {
  15847. /** @var \Illuminate\Database\Query\Builder $instance */
  15848. return $instance->orWhereDay($column, $operator, $value);
  15849. }
  15850. /**
  15851. * Add a "where month" statement to the query.
  15852. *
  15853. * @param string $column
  15854. * @param string $operator
  15855. * @param mixed $value
  15856. * @param string $boolean
  15857. * @return \Illuminate\Database\Query\Builder|static
  15858. * @static
  15859. */
  15860. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  15861. {
  15862. /** @var \Illuminate\Database\Query\Builder $instance */
  15863. return $instance->whereMonth($column, $operator, $value, $boolean);
  15864. }
  15865. /**
  15866. * Add an "or where month" statement to the query.
  15867. *
  15868. * @param string $column
  15869. * @param string $operator
  15870. * @param mixed $value
  15871. * @return \Illuminate\Database\Query\Builder|static
  15872. * @static
  15873. */
  15874. public static function orWhereMonth($column, $operator, $value = null)
  15875. {
  15876. /** @var \Illuminate\Database\Query\Builder $instance */
  15877. return $instance->orWhereMonth($column, $operator, $value);
  15878. }
  15879. /**
  15880. * Add a "where year" statement to the query.
  15881. *
  15882. * @param string $column
  15883. * @param string $operator
  15884. * @param mixed $value
  15885. * @param string $boolean
  15886. * @return \Illuminate\Database\Query\Builder|static
  15887. * @static
  15888. */
  15889. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  15890. {
  15891. /** @var \Illuminate\Database\Query\Builder $instance */
  15892. return $instance->whereYear($column, $operator, $value, $boolean);
  15893. }
  15894. /**
  15895. * Add an "or where year" statement to the query.
  15896. *
  15897. * @param string $column
  15898. * @param string $operator
  15899. * @param mixed $value
  15900. * @return \Illuminate\Database\Query\Builder|static
  15901. * @static
  15902. */
  15903. public static function orWhereYear($column, $operator, $value = null)
  15904. {
  15905. /** @var \Illuminate\Database\Query\Builder $instance */
  15906. return $instance->orWhereYear($column, $operator, $value);
  15907. }
  15908. /**
  15909. * Add a nested where statement to the query.
  15910. *
  15911. * @param \Closure $callback
  15912. * @param string $boolean
  15913. * @return \Illuminate\Database\Query\Builder|static
  15914. * @static
  15915. */
  15916. public static function whereNested($callback, $boolean = 'and')
  15917. {
  15918. /** @var \Illuminate\Database\Query\Builder $instance */
  15919. return $instance->whereNested($callback, $boolean);
  15920. }
  15921. /**
  15922. * Create a new query instance for nested where condition.
  15923. *
  15924. * @return \Illuminate\Database\Query\Builder
  15925. * @static
  15926. */
  15927. public static function forNestedWhere()
  15928. {
  15929. /** @var \Illuminate\Database\Query\Builder $instance */
  15930. return $instance->forNestedWhere();
  15931. }
  15932. /**
  15933. * Add another query builder as a nested where to the query builder.
  15934. *
  15935. * @param \Illuminate\Database\Query\Builder|static $query
  15936. * @param string $boolean
  15937. * @return \Illuminate\Database\Query\Builder
  15938. * @static
  15939. */
  15940. public static function addNestedWhereQuery($query, $boolean = 'and')
  15941. {
  15942. /** @var \Illuminate\Database\Query\Builder $instance */
  15943. return $instance->addNestedWhereQuery($query, $boolean);
  15944. }
  15945. /**
  15946. * Add an exists clause to the query.
  15947. *
  15948. * @param \Closure $callback
  15949. * @param string $boolean
  15950. * @param bool $not
  15951. * @return \Illuminate\Database\Query\Builder
  15952. * @static
  15953. */
  15954. public static function whereExists($callback, $boolean = 'and', $not = false)
  15955. {
  15956. /** @var \Illuminate\Database\Query\Builder $instance */
  15957. return $instance->whereExists($callback, $boolean, $not);
  15958. }
  15959. /**
  15960. * Add an or exists clause to the query.
  15961. *
  15962. * @param \Closure $callback
  15963. * @param bool $not
  15964. * @return \Illuminate\Database\Query\Builder|static
  15965. * @static
  15966. */
  15967. public static function orWhereExists($callback, $not = false)
  15968. {
  15969. /** @var \Illuminate\Database\Query\Builder $instance */
  15970. return $instance->orWhereExists($callback, $not);
  15971. }
  15972. /**
  15973. * Add a where not exists clause to the query.
  15974. *
  15975. * @param \Closure $callback
  15976. * @param string $boolean
  15977. * @return \Illuminate\Database\Query\Builder|static
  15978. * @static
  15979. */
  15980. public static function whereNotExists($callback, $boolean = 'and')
  15981. {
  15982. /** @var \Illuminate\Database\Query\Builder $instance */
  15983. return $instance->whereNotExists($callback, $boolean);
  15984. }
  15985. /**
  15986. * Add a where not exists clause to the query.
  15987. *
  15988. * @param \Closure $callback
  15989. * @return \Illuminate\Database\Query\Builder|static
  15990. * @static
  15991. */
  15992. public static function orWhereNotExists($callback)
  15993. {
  15994. /** @var \Illuminate\Database\Query\Builder $instance */
  15995. return $instance->orWhereNotExists($callback);
  15996. }
  15997. /**
  15998. * Add an exists clause to the query.
  15999. *
  16000. * @param \Illuminate\Database\Query\Builder $query
  16001. * @param string $boolean
  16002. * @param bool $not
  16003. * @return \Illuminate\Database\Query\Builder
  16004. * @static
  16005. */
  16006. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  16007. {
  16008. /** @var \Illuminate\Database\Query\Builder $instance */
  16009. return $instance->addWhereExistsQuery($query, $boolean, $not);
  16010. }
  16011. /**
  16012. * Adds a where condition using row values.
  16013. *
  16014. * @param array $columns
  16015. * @param string $operator
  16016. * @param array $values
  16017. * @param string $boolean
  16018. * @return \Illuminate\Database\Query\Builder
  16019. * @static
  16020. */
  16021. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  16022. {
  16023. /** @var \Illuminate\Database\Query\Builder $instance */
  16024. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  16025. }
  16026. /**
  16027. * Adds a or where condition using row values.
  16028. *
  16029. * @param array $columns
  16030. * @param string $operator
  16031. * @param array $values
  16032. * @return \Illuminate\Database\Query\Builder
  16033. * @static
  16034. */
  16035. public static function orWhereRowValues($columns, $operator, $values)
  16036. {
  16037. /** @var \Illuminate\Database\Query\Builder $instance */
  16038. return $instance->orWhereRowValues($columns, $operator, $values);
  16039. }
  16040. /**
  16041. * Add a "where JSON contains" clause to the query.
  16042. *
  16043. * @param string $column
  16044. * @param mixed $value
  16045. * @param string $boolean
  16046. * @param bool $not
  16047. * @return \Illuminate\Database\Query\Builder
  16048. * @static
  16049. */
  16050. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  16051. {
  16052. /** @var \Illuminate\Database\Query\Builder $instance */
  16053. return $instance->whereJsonContains($column, $value, $boolean, $not);
  16054. }
  16055. /**
  16056. * Add a "or where JSON contains" clause to the query.
  16057. *
  16058. * @param string $column
  16059. * @param mixed $value
  16060. * @return \Illuminate\Database\Query\Builder
  16061. * @static
  16062. */
  16063. public static function orWhereJsonContains($column, $value)
  16064. {
  16065. /** @var \Illuminate\Database\Query\Builder $instance */
  16066. return $instance->orWhereJsonContains($column, $value);
  16067. }
  16068. /**
  16069. * Add a "where JSON not contains" clause to the query.
  16070. *
  16071. * @param string $column
  16072. * @param mixed $value
  16073. * @param string $boolean
  16074. * @return \Illuminate\Database\Query\Builder
  16075. * @static
  16076. */
  16077. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  16078. {
  16079. /** @var \Illuminate\Database\Query\Builder $instance */
  16080. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  16081. }
  16082. /**
  16083. * Add a "or where JSON not contains" clause to the query.
  16084. *
  16085. * @param string $column
  16086. * @param mixed $value
  16087. * @return \Illuminate\Database\Query\Builder
  16088. * @static
  16089. */
  16090. public static function orWhereJsonDoesntContain($column, $value)
  16091. {
  16092. /** @var \Illuminate\Database\Query\Builder $instance */
  16093. return $instance->orWhereJsonDoesntContain($column, $value);
  16094. }
  16095. /**
  16096. * Handles dynamic "where" clauses to the query.
  16097. *
  16098. * @param string $method
  16099. * @param string $parameters
  16100. * @return \Illuminate\Database\Query\Builder
  16101. * @static
  16102. */
  16103. public static function dynamicWhere($method, $parameters)
  16104. {
  16105. /** @var \Illuminate\Database\Query\Builder $instance */
  16106. return $instance->dynamicWhere($method, $parameters);
  16107. }
  16108. /**
  16109. * Add a "group by" clause to the query.
  16110. *
  16111. * @param array $groups
  16112. * @return \Illuminate\Database\Query\Builder
  16113. * @static
  16114. */
  16115. public static function groupBy($groups = null)
  16116. {
  16117. /** @var \Illuminate\Database\Query\Builder $instance */
  16118. return $instance->groupBy($groups);
  16119. }
  16120. /**
  16121. * Add a "having" clause to the query.
  16122. *
  16123. * @param string $column
  16124. * @param string|null $operator
  16125. * @param string|null $value
  16126. * @param string $boolean
  16127. * @return \Illuminate\Database\Query\Builder
  16128. * @static
  16129. */
  16130. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  16131. {
  16132. /** @var \Illuminate\Database\Query\Builder $instance */
  16133. return $instance->having($column, $operator, $value, $boolean);
  16134. }
  16135. /**
  16136. * Add a "or having" clause to the query.
  16137. *
  16138. * @param string $column
  16139. * @param string|null $operator
  16140. * @param string|null $value
  16141. * @return \Illuminate\Database\Query\Builder|static
  16142. * @static
  16143. */
  16144. public static function orHaving($column, $operator = null, $value = null)
  16145. {
  16146. /** @var \Illuminate\Database\Query\Builder $instance */
  16147. return $instance->orHaving($column, $operator, $value);
  16148. }
  16149. /**
  16150. * Add a raw having clause to the query.
  16151. *
  16152. * @param string $sql
  16153. * @param array $bindings
  16154. * @param string $boolean
  16155. * @return \Illuminate\Database\Query\Builder
  16156. * @static
  16157. */
  16158. public static function havingRaw($sql, $bindings = array(), $boolean = 'and')
  16159. {
  16160. /** @var \Illuminate\Database\Query\Builder $instance */
  16161. return $instance->havingRaw($sql, $bindings, $boolean);
  16162. }
  16163. /**
  16164. * Add a raw or having clause to the query.
  16165. *
  16166. * @param string $sql
  16167. * @param array $bindings
  16168. * @return \Illuminate\Database\Query\Builder|static
  16169. * @static
  16170. */
  16171. public static function orHavingRaw($sql, $bindings = array())
  16172. {
  16173. /** @var \Illuminate\Database\Query\Builder $instance */
  16174. return $instance->orHavingRaw($sql, $bindings);
  16175. }
  16176. /**
  16177. * Add an "order by" clause to the query.
  16178. *
  16179. * @param string $column
  16180. * @param string $direction
  16181. * @return \Illuminate\Database\Query\Builder
  16182. * @static
  16183. */
  16184. public static function orderBy($column, $direction = 'asc')
  16185. {
  16186. /** @var \Illuminate\Database\Query\Builder $instance */
  16187. return $instance->orderBy($column, $direction);
  16188. }
  16189. /**
  16190. * Add a descending "order by" clause to the query.
  16191. *
  16192. * @param string $column
  16193. * @return \Illuminate\Database\Query\Builder
  16194. * @static
  16195. */
  16196. public static function orderByDesc($column)
  16197. {
  16198. /** @var \Illuminate\Database\Query\Builder $instance */
  16199. return $instance->orderByDesc($column);
  16200. }
  16201. /**
  16202. * Add an "order by" clause for a timestamp to the query.
  16203. *
  16204. * @param string $column
  16205. * @return \Illuminate\Database\Query\Builder|static
  16206. * @static
  16207. */
  16208. public static function latest($column = 'created_at')
  16209. {
  16210. /** @var \Illuminate\Database\Query\Builder $instance */
  16211. return $instance->latest($column);
  16212. }
  16213. /**
  16214. * Add an "order by" clause for a timestamp to the query.
  16215. *
  16216. * @param string $column
  16217. * @return \Illuminate\Database\Query\Builder|static
  16218. * @static
  16219. */
  16220. public static function oldest($column = 'created_at')
  16221. {
  16222. /** @var \Illuminate\Database\Query\Builder $instance */
  16223. return $instance->oldest($column);
  16224. }
  16225. /**
  16226. * Put the query's results in random order.
  16227. *
  16228. * @param string $seed
  16229. * @return \Illuminate\Database\Query\Builder
  16230. * @static
  16231. */
  16232. public static function inRandomOrder($seed = '')
  16233. {
  16234. /** @var \Illuminate\Database\Query\Builder $instance */
  16235. return $instance->inRandomOrder($seed);
  16236. }
  16237. /**
  16238. * Add a raw "order by" clause to the query.
  16239. *
  16240. * @param string $sql
  16241. * @param array $bindings
  16242. * @return \Illuminate\Database\Query\Builder
  16243. * @static
  16244. */
  16245. public static function orderByRaw($sql, $bindings = array())
  16246. {
  16247. /** @var \Illuminate\Database\Query\Builder $instance */
  16248. return $instance->orderByRaw($sql, $bindings);
  16249. }
  16250. /**
  16251. * Alias to set the "offset" value of the query.
  16252. *
  16253. * @param int $value
  16254. * @return \Illuminate\Database\Query\Builder|static
  16255. * @static
  16256. */
  16257. public static function skip($value)
  16258. {
  16259. /** @var \Illuminate\Database\Query\Builder $instance */
  16260. return $instance->skip($value);
  16261. }
  16262. /**
  16263. * Set the "offset" value of the query.
  16264. *
  16265. * @param int $value
  16266. * @return \Illuminate\Database\Query\Builder
  16267. * @static
  16268. */
  16269. public static function offset($value)
  16270. {
  16271. /** @var \Illuminate\Database\Query\Builder $instance */
  16272. return $instance->offset($value);
  16273. }
  16274. /**
  16275. * Alias to set the "limit" value of the query.
  16276. *
  16277. * @param int $value
  16278. * @return \Illuminate\Database\Query\Builder|static
  16279. * @static
  16280. */
  16281. public static function take($value)
  16282. {
  16283. /** @var \Illuminate\Database\Query\Builder $instance */
  16284. return $instance->take($value);
  16285. }
  16286. /**
  16287. * Set the "limit" value of the query.
  16288. *
  16289. * @param int $value
  16290. * @return \Illuminate\Database\Query\Builder
  16291. * @static
  16292. */
  16293. public static function limit($value)
  16294. {
  16295. /** @var \Illuminate\Database\Query\Builder $instance */
  16296. return $instance->limit($value);
  16297. }
  16298. /**
  16299. * Set the limit and offset for a given page.
  16300. *
  16301. * @param int $page
  16302. * @param int $perPage
  16303. * @return \Illuminate\Database\Query\Builder|static
  16304. * @static
  16305. */
  16306. public static function forPage($page, $perPage = 15)
  16307. {
  16308. /** @var \Illuminate\Database\Query\Builder $instance */
  16309. return $instance->forPage($page, $perPage);
  16310. }
  16311. /**
  16312. * Constrain the query to the next "page" of results after a given ID.
  16313. *
  16314. * @param int $perPage
  16315. * @param int|null $lastId
  16316. * @param string $column
  16317. * @return \Illuminate\Database\Query\Builder|static
  16318. * @static
  16319. */
  16320. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  16321. {
  16322. /** @var \Illuminate\Database\Query\Builder $instance */
  16323. return $instance->forPageAfterId($perPage, $lastId, $column);
  16324. }
  16325. /**
  16326. * Add a union statement to the query.
  16327. *
  16328. * @param \Illuminate\Database\Query\Builder|\Closure $query
  16329. * @param bool $all
  16330. * @return \Illuminate\Database\Query\Builder|static
  16331. * @static
  16332. */
  16333. public static function union($query, $all = false)
  16334. {
  16335. /** @var \Illuminate\Database\Query\Builder $instance */
  16336. return $instance->union($query, $all);
  16337. }
  16338. /**
  16339. * Add a union all statement to the query.
  16340. *
  16341. * @param \Illuminate\Database\Query\Builder|\Closure $query
  16342. * @return \Illuminate\Database\Query\Builder|static
  16343. * @static
  16344. */
  16345. public static function unionAll($query)
  16346. {
  16347. /** @var \Illuminate\Database\Query\Builder $instance */
  16348. return $instance->unionAll($query);
  16349. }
  16350. /**
  16351. * Lock the selected rows in the table.
  16352. *
  16353. * @param string|bool $value
  16354. * @return \Illuminate\Database\Query\Builder
  16355. * @static
  16356. */
  16357. public static function lock($value = true)
  16358. {
  16359. /** @var \Illuminate\Database\Query\Builder $instance */
  16360. return $instance->lock($value);
  16361. }
  16362. /**
  16363. * Lock the selected rows in the table for updating.
  16364. *
  16365. * @return \Illuminate\Database\Query\Builder
  16366. * @static
  16367. */
  16368. public static function lockForUpdate()
  16369. {
  16370. /** @var \Illuminate\Database\Query\Builder $instance */
  16371. return $instance->lockForUpdate();
  16372. }
  16373. /**
  16374. * Share lock the selected rows in the table.
  16375. *
  16376. * @return \Illuminate\Database\Query\Builder
  16377. * @static
  16378. */
  16379. public static function sharedLock()
  16380. {
  16381. /** @var \Illuminate\Database\Query\Builder $instance */
  16382. return $instance->sharedLock();
  16383. }
  16384. /**
  16385. * Get the SQL representation of the query.
  16386. *
  16387. * @return string
  16388. * @static
  16389. */
  16390. public static function toSql()
  16391. {
  16392. /** @var \Illuminate\Database\Query\Builder $instance */
  16393. return $instance->toSql();
  16394. }
  16395. /**
  16396. * Get the count of the total records for the paginator.
  16397. *
  16398. * @param array $columns
  16399. * @return int
  16400. * @static
  16401. */
  16402. public static function getCountForPagination($columns = array())
  16403. {
  16404. /** @var \Illuminate\Database\Query\Builder $instance */
  16405. return $instance->getCountForPagination($columns);
  16406. }
  16407. /**
  16408. * Concatenate values of a given column as a string.
  16409. *
  16410. * @param string $column
  16411. * @param string $glue
  16412. * @return string
  16413. * @static
  16414. */
  16415. public static function implode($column, $glue = '')
  16416. {
  16417. /** @var \Illuminate\Database\Query\Builder $instance */
  16418. return $instance->implode($column, $glue);
  16419. }
  16420. /**
  16421. * Determine if any rows exist for the current query.
  16422. *
  16423. * @return bool
  16424. * @static
  16425. */
  16426. public static function exists()
  16427. {
  16428. /** @var \Illuminate\Database\Query\Builder $instance */
  16429. return $instance->exists();
  16430. }
  16431. /**
  16432. * Determine if no rows exist for the current query.
  16433. *
  16434. * @return bool
  16435. * @static
  16436. */
  16437. public static function doesntExist()
  16438. {
  16439. /** @var \Illuminate\Database\Query\Builder $instance */
  16440. return $instance->doesntExist();
  16441. }
  16442. /**
  16443. * Retrieve the "count" result of the query.
  16444. *
  16445. * @param string $columns
  16446. * @return int
  16447. * @static
  16448. */
  16449. public static function count($columns = '*')
  16450. {
  16451. /** @var \Illuminate\Database\Query\Builder $instance */
  16452. return $instance->count($columns);
  16453. }
  16454. /**
  16455. * Retrieve the minimum value of a given column.
  16456. *
  16457. * @param string $column
  16458. * @return mixed
  16459. * @static
  16460. */
  16461. public static function min($column)
  16462. {
  16463. /** @var \Illuminate\Database\Query\Builder $instance */
  16464. return $instance->min($column);
  16465. }
  16466. /**
  16467. * Retrieve the maximum value of a given column.
  16468. *
  16469. * @param string $column
  16470. * @return mixed
  16471. * @static
  16472. */
  16473. public static function max($column)
  16474. {
  16475. /** @var \Illuminate\Database\Query\Builder $instance */
  16476. return $instance->max($column);
  16477. }
  16478. /**
  16479. * Retrieve the sum of the values of a given column.
  16480. *
  16481. * @param string $column
  16482. * @return mixed
  16483. * @static
  16484. */
  16485. public static function sum($column)
  16486. {
  16487. /** @var \Illuminate\Database\Query\Builder $instance */
  16488. return $instance->sum($column);
  16489. }
  16490. /**
  16491. * Retrieve the average of the values of a given column.
  16492. *
  16493. * @param string $column
  16494. * @return mixed
  16495. * @static
  16496. */
  16497. public static function avg($column)
  16498. {
  16499. /** @var \Illuminate\Database\Query\Builder $instance */
  16500. return $instance->avg($column);
  16501. }
  16502. /**
  16503. * Alias for the "avg" method.
  16504. *
  16505. * @param string $column
  16506. * @return mixed
  16507. * @static
  16508. */
  16509. public static function average($column)
  16510. {
  16511. /** @var \Illuminate\Database\Query\Builder $instance */
  16512. return $instance->average($column);
  16513. }
  16514. /**
  16515. * Execute an aggregate function on the database.
  16516. *
  16517. * @param string $function
  16518. * @param array $columns
  16519. * @return mixed
  16520. * @static
  16521. */
  16522. public static function aggregate($function, $columns = array())
  16523. {
  16524. /** @var \Illuminate\Database\Query\Builder $instance */
  16525. return $instance->aggregate($function, $columns);
  16526. }
  16527. /**
  16528. * Execute a numeric aggregate function on the database.
  16529. *
  16530. * @param string $function
  16531. * @param array $columns
  16532. * @return float|int
  16533. * @static
  16534. */
  16535. public static function numericAggregate($function, $columns = array())
  16536. {
  16537. /** @var \Illuminate\Database\Query\Builder $instance */
  16538. return $instance->numericAggregate($function, $columns);
  16539. }
  16540. /**
  16541. * Insert a new record into the database.
  16542. *
  16543. * @param array $values
  16544. * @return bool
  16545. * @static
  16546. */
  16547. public static function insert($values)
  16548. {
  16549. /** @var \Illuminate\Database\Query\Builder $instance */
  16550. return $instance->insert($values);
  16551. }
  16552. /**
  16553. * Insert a new record and get the value of the primary key.
  16554. *
  16555. * @param array $values
  16556. * @param string|null $sequence
  16557. * @return int
  16558. * @static
  16559. */
  16560. public static function insertGetId($values, $sequence = null)
  16561. {
  16562. /** @var \Illuminate\Database\Query\Builder $instance */
  16563. return $instance->insertGetId($values, $sequence);
  16564. }
  16565. /**
  16566. * Insert or update a record matching the attributes, and fill it with values.
  16567. *
  16568. * @param array $attributes
  16569. * @param array $values
  16570. * @return bool
  16571. * @static
  16572. */
  16573. public static function updateOrInsert($attributes, $values = array())
  16574. {
  16575. /** @var \Illuminate\Database\Query\Builder $instance */
  16576. return $instance->updateOrInsert($attributes, $values);
  16577. }
  16578. /**
  16579. * Run a truncate statement on the table.
  16580. *
  16581. * @return void
  16582. * @static
  16583. */
  16584. public static function truncate()
  16585. {
  16586. /** @var \Illuminate\Database\Query\Builder $instance */
  16587. $instance->truncate();
  16588. }
  16589. /**
  16590. * Create a raw database expression.
  16591. *
  16592. * @param mixed $value
  16593. * @return \Illuminate\Database\Query\Expression
  16594. * @static
  16595. */
  16596. public static function raw($value)
  16597. {
  16598. /** @var \Illuminate\Database\Query\Builder $instance */
  16599. return $instance->raw($value);
  16600. }
  16601. /**
  16602. * Get the current query value bindings in a flattened array.
  16603. *
  16604. * @return array
  16605. * @static
  16606. */
  16607. public static function getBindings()
  16608. {
  16609. /** @var \Illuminate\Database\Query\Builder $instance */
  16610. return $instance->getBindings();
  16611. }
  16612. /**
  16613. * Get the raw array of bindings.
  16614. *
  16615. * @return array
  16616. * @static
  16617. */
  16618. public static function getRawBindings()
  16619. {
  16620. /** @var \Illuminate\Database\Query\Builder $instance */
  16621. return $instance->getRawBindings();
  16622. }
  16623. /**
  16624. * Set the bindings on the query builder.
  16625. *
  16626. * @param array $bindings
  16627. * @param string $type
  16628. * @return \Illuminate\Database\Query\Builder
  16629. * @throws \InvalidArgumentException
  16630. * @static
  16631. */
  16632. public static function setBindings($bindings, $type = 'where')
  16633. {
  16634. /** @var \Illuminate\Database\Query\Builder $instance */
  16635. return $instance->setBindings($bindings, $type);
  16636. }
  16637. /**
  16638. * Add a binding to the query.
  16639. *
  16640. * @param mixed $value
  16641. * @param string $type
  16642. * @return \Illuminate\Database\Query\Builder
  16643. * @throws \InvalidArgumentException
  16644. * @static
  16645. */
  16646. public static function addBinding($value, $type = 'where')
  16647. {
  16648. /** @var \Illuminate\Database\Query\Builder $instance */
  16649. return $instance->addBinding($value, $type);
  16650. }
  16651. /**
  16652. * Merge an array of bindings into our bindings.
  16653. *
  16654. * @param \Illuminate\Database\Query\Builder $query
  16655. * @return \Illuminate\Database\Query\Builder
  16656. * @static
  16657. */
  16658. public static function mergeBindings($query)
  16659. {
  16660. /** @var \Illuminate\Database\Query\Builder $instance */
  16661. return $instance->mergeBindings($query);
  16662. }
  16663. /**
  16664. * Get the database query processor instance.
  16665. *
  16666. * @return \Illuminate\Database\Query\Processors\Processor
  16667. * @static
  16668. */
  16669. public static function getProcessor()
  16670. {
  16671. /** @var \Illuminate\Database\Query\Builder $instance */
  16672. return $instance->getProcessor();
  16673. }
  16674. /**
  16675. * Get the query grammar instance.
  16676. *
  16677. * @return \Illuminate\Database\Query\Grammars\Grammar
  16678. * @static
  16679. */
  16680. public static function getGrammar()
  16681. {
  16682. /** @var \Illuminate\Database\Query\Builder $instance */
  16683. return $instance->getGrammar();
  16684. }
  16685. /**
  16686. * Use the write pdo for query.
  16687. *
  16688. * @return \Illuminate\Database\Query\Builder
  16689. * @static
  16690. */
  16691. public static function useWritePdo()
  16692. {
  16693. /** @var \Illuminate\Database\Query\Builder $instance */
  16694. return $instance->useWritePdo();
  16695. }
  16696. /**
  16697. * Clone the query without the given properties.
  16698. *
  16699. * @param array $properties
  16700. * @return static
  16701. * @static
  16702. */
  16703. public static function cloneWithout($properties)
  16704. {
  16705. /** @var \Illuminate\Database\Query\Builder $instance */
  16706. return $instance->cloneWithout($properties);
  16707. }
  16708. /**
  16709. * Clone the query without the given bindings.
  16710. *
  16711. * @param array $except
  16712. * @return static
  16713. * @static
  16714. */
  16715. public static function cloneWithoutBindings($except)
  16716. {
  16717. /** @var \Illuminate\Database\Query\Builder $instance */
  16718. return $instance->cloneWithoutBindings($except);
  16719. }
  16720. /**
  16721. * Register a custom macro.
  16722. *
  16723. * @param string $name
  16724. * @param object|callable $macro
  16725. * @return void
  16726. * @static
  16727. */
  16728. public static function macro($name, $macro)
  16729. {
  16730. \Illuminate\Database\Query\Builder::macro($name, $macro);
  16731. }
  16732. /**
  16733. * Mix another object into the class.
  16734. *
  16735. * @param object $mixin
  16736. * @return void
  16737. * @throws \ReflectionException
  16738. * @static
  16739. */
  16740. public static function mixin($mixin)
  16741. {
  16742. \Illuminate\Database\Query\Builder::mixin($mixin);
  16743. }
  16744. /**
  16745. * Checks if macro is registered.
  16746. *
  16747. * @param string $name
  16748. * @return bool
  16749. * @static
  16750. */
  16751. public static function hasMacro($name)
  16752. {
  16753. return \Illuminate\Database\Query\Builder::hasMacro($name);
  16754. }
  16755. /**
  16756. * Dynamically handle calls to the class.
  16757. *
  16758. * @param string $method
  16759. * @param array $parameters
  16760. * @return mixed
  16761. * @throws \BadMethodCallException
  16762. * @static
  16763. */
  16764. public static function macroCall($method, $parameters)
  16765. {
  16766. /** @var \Illuminate\Database\Query\Builder $instance */
  16767. return $instance->macroCall($method, $parameters);
  16768. }
  16769. }
  16770. class Event extends \Illuminate\Support\Facades\Event {}
  16771. class File extends \Illuminate\Support\Facades\File {}
  16772. class Gate extends \Illuminate\Support\Facades\Gate {}
  16773. class Hash extends \Illuminate\Support\Facades\Hash {}
  16774. class Lang extends \Illuminate\Support\Facades\Lang {}
  16775. class Log extends \Illuminate\Support\Facades\Log {}
  16776. class Mail extends \Illuminate\Support\Facades\Mail {}
  16777. class Notification extends \Illuminate\Support\Facades\Notification {}
  16778. class Password extends \Illuminate\Support\Facades\Password {}
  16779. class Queue extends \Illuminate\Support\Facades\Queue {}
  16780. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  16781. class Redis extends \Illuminate\Support\Facades\Redis {}
  16782. class Request extends \Illuminate\Support\Facades\Request {}
  16783. class Response extends \Illuminate\Support\Facades\Response {}
  16784. class Route extends \Illuminate\Support\Facades\Route {}
  16785. class Schema extends \Illuminate\Support\Facades\Schema {}
  16786. class Session extends \Illuminate\Support\Facades\Session {}
  16787. class Storage extends \Illuminate\Support\Facades\Storage {}
  16788. class URL extends \Illuminate\Support\Facades\URL {}
  16789. class Validator extends \Illuminate\Support\Facades\Validator {}
  16790. class View extends \Illuminate\Support\Facades\View {}
  16791. class Captcha extends \Mews\Captcha\Facades\Captcha {}
  16792. class Agent extends \Jenssegers\Agent\Facades\Agent {}
  16793. class Purifier extends \Mews\Purifier\Facades\Purifier {}
  16794. class Geetest extends \Misechow\Geetest\Geetest {}
  16795. class NoCaptcha extends \Misechow\NoCaptcha\Facades\NoCaptcha {}
  16796. class JWTAuth extends \Tymon\JWTAuth\Facades\JWTAuth {}
  16797. class Telegram extends \Telegram\Bot\Laravel\Facades\Telegram {}
  16798. class Image extends \Intervention\Image\Facades\Image {}
  16799. }