_ide_helper.php 596 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476
  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-10-07 13:07:42.
  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. * Get a lock instance.
  3048. *
  3049. * @param string $name
  3050. * @param int $seconds
  3051. * @return \Illuminate\Contracts\Cache\Lock
  3052. * @static
  3053. */
  3054. public static function lock($name, $seconds = 0)
  3055. {
  3056. /** @var \Illuminate\Cache\RedisStore $instance */
  3057. return $instance->lock($name, $seconds);
  3058. }
  3059. /**
  3060. * Remove all items from the cache.
  3061. *
  3062. * @return bool
  3063. * @static
  3064. */
  3065. public static function flush()
  3066. {
  3067. /** @var \Illuminate\Cache\RedisStore $instance */
  3068. return $instance->flush();
  3069. }
  3070. /**
  3071. * Get the Redis connection instance.
  3072. *
  3073. * @return \Predis\ClientInterface
  3074. * @static
  3075. */
  3076. public static function connection()
  3077. {
  3078. /** @var \Illuminate\Cache\RedisStore $instance */
  3079. return $instance->connection();
  3080. }
  3081. /**
  3082. * Set the connection name to be used.
  3083. *
  3084. * @param string $connection
  3085. * @return void
  3086. * @static
  3087. */
  3088. public static function setConnection($connection)
  3089. {
  3090. /** @var \Illuminate\Cache\RedisStore $instance */
  3091. $instance->setConnection($connection);
  3092. }
  3093. /**
  3094. * Get the Redis database instance.
  3095. *
  3096. * @return \Illuminate\Contracts\Redis\Factory
  3097. * @static
  3098. */
  3099. public static function getRedis()
  3100. {
  3101. /** @var \Illuminate\Cache\RedisStore $instance */
  3102. return $instance->getRedis();
  3103. }
  3104. /**
  3105. * Get the cache key prefix.
  3106. *
  3107. * @return string
  3108. * @static
  3109. */
  3110. public static function getPrefix()
  3111. {
  3112. /** @var \Illuminate\Cache\RedisStore $instance */
  3113. return $instance->getPrefix();
  3114. }
  3115. /**
  3116. * Set the cache key prefix.
  3117. *
  3118. * @param string $prefix
  3119. * @return void
  3120. * @static
  3121. */
  3122. public static function setPrefix($prefix)
  3123. {
  3124. /** @var \Illuminate\Cache\RedisStore $instance */
  3125. $instance->setPrefix($prefix);
  3126. }
  3127. }
  3128. /**
  3129. *
  3130. *
  3131. * @see \Illuminate\Config\Repository
  3132. */
  3133. class Config {
  3134. /**
  3135. * Determine if the given configuration value exists.
  3136. *
  3137. * @param string $key
  3138. * @return bool
  3139. * @static
  3140. */
  3141. public static function has($key)
  3142. {
  3143. /** @var \Illuminate\Config\Repository $instance */
  3144. return $instance->has($key);
  3145. }
  3146. /**
  3147. * Get the specified configuration value.
  3148. *
  3149. * @param array|string $key
  3150. * @param mixed $default
  3151. * @return mixed
  3152. * @static
  3153. */
  3154. public static function get($key, $default = null)
  3155. {
  3156. /** @var \Illuminate\Config\Repository $instance */
  3157. return $instance->get($key, $default);
  3158. }
  3159. /**
  3160. * Get many configuration values.
  3161. *
  3162. * @param array $keys
  3163. * @return array
  3164. * @static
  3165. */
  3166. public static function getMany($keys)
  3167. {
  3168. /** @var \Illuminate\Config\Repository $instance */
  3169. return $instance->getMany($keys);
  3170. }
  3171. /**
  3172. * Set a given configuration value.
  3173. *
  3174. * @param array|string $key
  3175. * @param mixed $value
  3176. * @return void
  3177. * @static
  3178. */
  3179. public static function set($key, $value = null)
  3180. {
  3181. /** @var \Illuminate\Config\Repository $instance */
  3182. $instance->set($key, $value);
  3183. }
  3184. /**
  3185. * Prepend a value onto an array configuration value.
  3186. *
  3187. * @param string $key
  3188. * @param mixed $value
  3189. * @return void
  3190. * @static
  3191. */
  3192. public static function prepend($key, $value)
  3193. {
  3194. /** @var \Illuminate\Config\Repository $instance */
  3195. $instance->prepend($key, $value);
  3196. }
  3197. /**
  3198. * Push a value onto an array configuration value.
  3199. *
  3200. * @param string $key
  3201. * @param mixed $value
  3202. * @return void
  3203. * @static
  3204. */
  3205. public static function push($key, $value)
  3206. {
  3207. /** @var \Illuminate\Config\Repository $instance */
  3208. $instance->push($key, $value);
  3209. }
  3210. /**
  3211. * Get all of the configuration items for the application.
  3212. *
  3213. * @return array
  3214. * @static
  3215. */
  3216. public static function all()
  3217. {
  3218. /** @var \Illuminate\Config\Repository $instance */
  3219. return $instance->all();
  3220. }
  3221. /**
  3222. * Determine if the given configuration option exists.
  3223. *
  3224. * @param string $key
  3225. * @return bool
  3226. * @static
  3227. */
  3228. public static function offsetExists($key)
  3229. {
  3230. /** @var \Illuminate\Config\Repository $instance */
  3231. return $instance->offsetExists($key);
  3232. }
  3233. /**
  3234. * Get a configuration option.
  3235. *
  3236. * @param string $key
  3237. * @return mixed
  3238. * @static
  3239. */
  3240. public static function offsetGet($key)
  3241. {
  3242. /** @var \Illuminate\Config\Repository $instance */
  3243. return $instance->offsetGet($key);
  3244. }
  3245. /**
  3246. * Set a configuration option.
  3247. *
  3248. * @param string $key
  3249. * @param mixed $value
  3250. * @return void
  3251. * @static
  3252. */
  3253. public static function offsetSet($key, $value)
  3254. {
  3255. /** @var \Illuminate\Config\Repository $instance */
  3256. $instance->offsetSet($key, $value);
  3257. }
  3258. /**
  3259. * Unset a configuration option.
  3260. *
  3261. * @param string $key
  3262. * @return void
  3263. * @static
  3264. */
  3265. public static function offsetUnset($key)
  3266. {
  3267. /** @var \Illuminate\Config\Repository $instance */
  3268. $instance->offsetUnset($key);
  3269. }
  3270. }
  3271. /**
  3272. *
  3273. *
  3274. * @see \Illuminate\Cookie\CookieJar
  3275. */
  3276. class Cookie {
  3277. /**
  3278. * Create a new cookie instance.
  3279. *
  3280. * @param string $name
  3281. * @param string $value
  3282. * @param int $minutes
  3283. * @param string $path
  3284. * @param string $domain
  3285. * @param bool|null $secure
  3286. * @param bool $httpOnly
  3287. * @param bool $raw
  3288. * @param string|null $sameSite
  3289. * @return \Symfony\Component\HttpFoundation\Cookie
  3290. * @static
  3291. */
  3292. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3293. {
  3294. /** @var \Illuminate\Cookie\CookieJar $instance */
  3295. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3296. }
  3297. /**
  3298. * Create a cookie that lasts "forever" (five years).
  3299. *
  3300. * @param string $name
  3301. * @param string $value
  3302. * @param string $path
  3303. * @param string $domain
  3304. * @param bool|null $secure
  3305. * @param bool $httpOnly
  3306. * @param bool $raw
  3307. * @param string|null $sameSite
  3308. * @return \Symfony\Component\HttpFoundation\Cookie
  3309. * @static
  3310. */
  3311. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3312. {
  3313. /** @var \Illuminate\Cookie\CookieJar $instance */
  3314. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3315. }
  3316. /**
  3317. * Expire the given cookie.
  3318. *
  3319. * @param string $name
  3320. * @param string $path
  3321. * @param string $domain
  3322. * @return \Symfony\Component\HttpFoundation\Cookie
  3323. * @static
  3324. */
  3325. public static function forget($name, $path = null, $domain = null)
  3326. {
  3327. /** @var \Illuminate\Cookie\CookieJar $instance */
  3328. return $instance->forget($name, $path, $domain);
  3329. }
  3330. /**
  3331. * Determine if a cookie has been queued.
  3332. *
  3333. * @param string $key
  3334. * @return bool
  3335. * @static
  3336. */
  3337. public static function hasQueued($key)
  3338. {
  3339. /** @var \Illuminate\Cookie\CookieJar $instance */
  3340. return $instance->hasQueued($key);
  3341. }
  3342. /**
  3343. * Get a queued cookie instance.
  3344. *
  3345. * @param string $key
  3346. * @param mixed $default
  3347. * @return \Symfony\Component\HttpFoundation\Cookie
  3348. * @static
  3349. */
  3350. public static function queued($key, $default = null)
  3351. {
  3352. /** @var \Illuminate\Cookie\CookieJar $instance */
  3353. return $instance->queued($key, $default);
  3354. }
  3355. /**
  3356. * Queue a cookie to send with the next response.
  3357. *
  3358. * @param array $parameters
  3359. * @return void
  3360. * @static
  3361. */
  3362. public static function queue($parameters = null)
  3363. {
  3364. /** @var \Illuminate\Cookie\CookieJar $instance */
  3365. $instance->queue($parameters);
  3366. }
  3367. /**
  3368. * Remove a cookie from the queue.
  3369. *
  3370. * @param string $name
  3371. * @return void
  3372. * @static
  3373. */
  3374. public static function unqueue($name)
  3375. {
  3376. /** @var \Illuminate\Cookie\CookieJar $instance */
  3377. $instance->unqueue($name);
  3378. }
  3379. /**
  3380. * Set the default path and domain for the jar.
  3381. *
  3382. * @param string $path
  3383. * @param string $domain
  3384. * @param bool $secure
  3385. * @param string $sameSite
  3386. * @return \Illuminate\Cookie\CookieJar
  3387. * @static
  3388. */
  3389. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3390. {
  3391. /** @var \Illuminate\Cookie\CookieJar $instance */
  3392. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3393. }
  3394. /**
  3395. * Get the cookies which have been queued for the next request.
  3396. *
  3397. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3398. * @static
  3399. */
  3400. public static function getQueuedCookies()
  3401. {
  3402. /** @var \Illuminate\Cookie\CookieJar $instance */
  3403. return $instance->getQueuedCookies();
  3404. }
  3405. }
  3406. /**
  3407. *
  3408. *
  3409. * @see \Illuminate\Encryption\Encrypter
  3410. */
  3411. class Crypt {
  3412. /**
  3413. * Determine if the given key and cipher combination is valid.
  3414. *
  3415. * @param string $key
  3416. * @param string $cipher
  3417. * @return bool
  3418. * @static
  3419. */
  3420. public static function supported($key, $cipher)
  3421. {
  3422. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3423. }
  3424. /**
  3425. * Create a new encryption key for the given cipher.
  3426. *
  3427. * @param string $cipher
  3428. * @return string
  3429. * @static
  3430. */
  3431. public static function generateKey($cipher)
  3432. {
  3433. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3434. }
  3435. /**
  3436. * Encrypt the given value.
  3437. *
  3438. * @param mixed $value
  3439. * @param bool $serialize
  3440. * @return string
  3441. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3442. * @static
  3443. */
  3444. public static function encrypt($value, $serialize = true)
  3445. {
  3446. /** @var \Illuminate\Encryption\Encrypter $instance */
  3447. return $instance->encrypt($value, $serialize);
  3448. }
  3449. /**
  3450. * Encrypt a string without serialization.
  3451. *
  3452. * @param string $value
  3453. * @return string
  3454. * @static
  3455. */
  3456. public static function encryptString($value)
  3457. {
  3458. /** @var \Illuminate\Encryption\Encrypter $instance */
  3459. return $instance->encryptString($value);
  3460. }
  3461. /**
  3462. * Decrypt the given value.
  3463. *
  3464. * @param mixed $payload
  3465. * @param bool $unserialize
  3466. * @return mixed
  3467. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3468. * @static
  3469. */
  3470. public static function decrypt($payload, $unserialize = true)
  3471. {
  3472. /** @var \Illuminate\Encryption\Encrypter $instance */
  3473. return $instance->decrypt($payload, $unserialize);
  3474. }
  3475. /**
  3476. * Decrypt the given string without unserialization.
  3477. *
  3478. * @param string $payload
  3479. * @return string
  3480. * @static
  3481. */
  3482. public static function decryptString($payload)
  3483. {
  3484. /** @var \Illuminate\Encryption\Encrypter $instance */
  3485. return $instance->decryptString($payload);
  3486. }
  3487. /**
  3488. * Get the encryption key.
  3489. *
  3490. * @return string
  3491. * @static
  3492. */
  3493. public static function getKey()
  3494. {
  3495. /** @var \Illuminate\Encryption\Encrypter $instance */
  3496. return $instance->getKey();
  3497. }
  3498. }
  3499. /**
  3500. *
  3501. *
  3502. * @see \Illuminate\Database\DatabaseManager
  3503. * @see \Illuminate\Database\Connection
  3504. */
  3505. class DB {
  3506. /**
  3507. * Get a database connection instance.
  3508. *
  3509. * @param string $name
  3510. * @return \Illuminate\Database\Connection
  3511. * @static
  3512. */
  3513. public static function connection($name = null)
  3514. {
  3515. /** @var \Illuminate\Database\DatabaseManager $instance */
  3516. return $instance->connection($name);
  3517. }
  3518. /**
  3519. * Disconnect from the given database and remove from local cache.
  3520. *
  3521. * @param string $name
  3522. * @return void
  3523. * @static
  3524. */
  3525. public static function purge($name = null)
  3526. {
  3527. /** @var \Illuminate\Database\DatabaseManager $instance */
  3528. $instance->purge($name);
  3529. }
  3530. /**
  3531. * Disconnect from the given database.
  3532. *
  3533. * @param string $name
  3534. * @return void
  3535. * @static
  3536. */
  3537. public static function disconnect($name = null)
  3538. {
  3539. /** @var \Illuminate\Database\DatabaseManager $instance */
  3540. $instance->disconnect($name);
  3541. }
  3542. /**
  3543. * Reconnect to the given database.
  3544. *
  3545. * @param string $name
  3546. * @return \Illuminate\Database\Connection
  3547. * @static
  3548. */
  3549. public static function reconnect($name = null)
  3550. {
  3551. /** @var \Illuminate\Database\DatabaseManager $instance */
  3552. return $instance->reconnect($name);
  3553. }
  3554. /**
  3555. * Get the default connection name.
  3556. *
  3557. * @return string
  3558. * @static
  3559. */
  3560. public static function getDefaultConnection()
  3561. {
  3562. /** @var \Illuminate\Database\DatabaseManager $instance */
  3563. return $instance->getDefaultConnection();
  3564. }
  3565. /**
  3566. * Set the default connection name.
  3567. *
  3568. * @param string $name
  3569. * @return void
  3570. * @static
  3571. */
  3572. public static function setDefaultConnection($name)
  3573. {
  3574. /** @var \Illuminate\Database\DatabaseManager $instance */
  3575. $instance->setDefaultConnection($name);
  3576. }
  3577. /**
  3578. * Get all of the support drivers.
  3579. *
  3580. * @return array
  3581. * @static
  3582. */
  3583. public static function supportedDrivers()
  3584. {
  3585. /** @var \Illuminate\Database\DatabaseManager $instance */
  3586. return $instance->supportedDrivers();
  3587. }
  3588. /**
  3589. * Get all of the drivers that are actually available.
  3590. *
  3591. * @return array
  3592. * @static
  3593. */
  3594. public static function availableDrivers()
  3595. {
  3596. /** @var \Illuminate\Database\DatabaseManager $instance */
  3597. return $instance->availableDrivers();
  3598. }
  3599. /**
  3600. * Register an extension connection resolver.
  3601. *
  3602. * @param string $name
  3603. * @param callable $resolver
  3604. * @return void
  3605. * @static
  3606. */
  3607. public static function extend($name, $resolver)
  3608. {
  3609. /** @var \Illuminate\Database\DatabaseManager $instance */
  3610. $instance->extend($name, $resolver);
  3611. }
  3612. /**
  3613. * Return all of the created connections.
  3614. *
  3615. * @return array
  3616. * @static
  3617. */
  3618. public static function getConnections()
  3619. {
  3620. /** @var \Illuminate\Database\DatabaseManager $instance */
  3621. return $instance->getConnections();
  3622. }
  3623. /**
  3624. * Get a schema builder instance for the connection.
  3625. *
  3626. * @return \Illuminate\Database\Schema\MySqlBuilder
  3627. * @static
  3628. */
  3629. public static function getSchemaBuilder()
  3630. {
  3631. /** @var \Illuminate\Database\MySqlConnection $instance */
  3632. return $instance->getSchemaBuilder();
  3633. }
  3634. /**
  3635. * Bind values to their parameters in the given statement.
  3636. *
  3637. * @param \PDOStatement $statement
  3638. * @param array $bindings
  3639. * @return void
  3640. * @static
  3641. */
  3642. public static function bindValues($statement, $bindings)
  3643. {
  3644. /** @var \Illuminate\Database\MySqlConnection $instance */
  3645. $instance->bindValues($statement, $bindings);
  3646. }
  3647. /**
  3648. * Set the query grammar to the default implementation.
  3649. *
  3650. * @return void
  3651. * @static
  3652. */
  3653. public static function useDefaultQueryGrammar()
  3654. {
  3655. //Method inherited from \Illuminate\Database\Connection
  3656. /** @var \Illuminate\Database\MySqlConnection $instance */
  3657. $instance->useDefaultQueryGrammar();
  3658. }
  3659. /**
  3660. * Set the schema grammar to the default implementation.
  3661. *
  3662. * @return void
  3663. * @static
  3664. */
  3665. public static function useDefaultSchemaGrammar()
  3666. {
  3667. //Method inherited from \Illuminate\Database\Connection
  3668. /** @var \Illuminate\Database\MySqlConnection $instance */
  3669. $instance->useDefaultSchemaGrammar();
  3670. }
  3671. /**
  3672. * Set the query post processor to the default implementation.
  3673. *
  3674. * @return void
  3675. * @static
  3676. */
  3677. public static function useDefaultPostProcessor()
  3678. {
  3679. //Method inherited from \Illuminate\Database\Connection
  3680. /** @var \Illuminate\Database\MySqlConnection $instance */
  3681. $instance->useDefaultPostProcessor();
  3682. }
  3683. /**
  3684. * Begin a fluent query against a database table.
  3685. *
  3686. * @param string $table
  3687. * @return \Illuminate\Database\Query\Builder
  3688. * @static
  3689. */
  3690. public static function table($table)
  3691. {
  3692. //Method inherited from \Illuminate\Database\Connection
  3693. /** @var \Illuminate\Database\MySqlConnection $instance */
  3694. return $instance->table($table);
  3695. }
  3696. /**
  3697. * Get a new query builder instance.
  3698. *
  3699. * @return \Illuminate\Database\Query\Builder
  3700. * @static
  3701. */
  3702. public static function query()
  3703. {
  3704. //Method inherited from \Illuminate\Database\Connection
  3705. /** @var \Illuminate\Database\MySqlConnection $instance */
  3706. return $instance->query();
  3707. }
  3708. /**
  3709. * Run a select statement and return a single result.
  3710. *
  3711. * @param string $query
  3712. * @param array $bindings
  3713. * @param bool $useReadPdo
  3714. * @return mixed
  3715. * @static
  3716. */
  3717. public static function selectOne($query, $bindings = array(), $useReadPdo = true)
  3718. {
  3719. //Method inherited from \Illuminate\Database\Connection
  3720. /** @var \Illuminate\Database\MySqlConnection $instance */
  3721. return $instance->selectOne($query, $bindings, $useReadPdo);
  3722. }
  3723. /**
  3724. * Run a select statement against the database.
  3725. *
  3726. * @param string $query
  3727. * @param array $bindings
  3728. * @return array
  3729. * @static
  3730. */
  3731. public static function selectFromWriteConnection($query, $bindings = array())
  3732. {
  3733. //Method inherited from \Illuminate\Database\Connection
  3734. /** @var \Illuminate\Database\MySqlConnection $instance */
  3735. return $instance->selectFromWriteConnection($query, $bindings);
  3736. }
  3737. /**
  3738. * Run a select statement against the database.
  3739. *
  3740. * @param string $query
  3741. * @param array $bindings
  3742. * @param bool $useReadPdo
  3743. * @return array
  3744. * @static
  3745. */
  3746. public static function select($query, $bindings = array(), $useReadPdo = true)
  3747. {
  3748. //Method inherited from \Illuminate\Database\Connection
  3749. /** @var \Illuminate\Database\MySqlConnection $instance */
  3750. return $instance->select($query, $bindings, $useReadPdo);
  3751. }
  3752. /**
  3753. * Run a select statement against the database and returns a generator.
  3754. *
  3755. * @param string $query
  3756. * @param array $bindings
  3757. * @param bool $useReadPdo
  3758. * @return \Generator
  3759. * @static
  3760. */
  3761. public static function cursor($query, $bindings = array(), $useReadPdo = true)
  3762. {
  3763. //Method inherited from \Illuminate\Database\Connection
  3764. /** @var \Illuminate\Database\MySqlConnection $instance */
  3765. return $instance->cursor($query, $bindings, $useReadPdo);
  3766. }
  3767. /**
  3768. * Run an insert statement against the database.
  3769. *
  3770. * @param string $query
  3771. * @param array $bindings
  3772. * @return bool
  3773. * @static
  3774. */
  3775. public static function insert($query, $bindings = array())
  3776. {
  3777. //Method inherited from \Illuminate\Database\Connection
  3778. /** @var \Illuminate\Database\MySqlConnection $instance */
  3779. return $instance->insert($query, $bindings);
  3780. }
  3781. /**
  3782. * Run an update statement against the database.
  3783. *
  3784. * @param string $query
  3785. * @param array $bindings
  3786. * @return int
  3787. * @static
  3788. */
  3789. public static function update($query, $bindings = array())
  3790. {
  3791. //Method inherited from \Illuminate\Database\Connection
  3792. /** @var \Illuminate\Database\MySqlConnection $instance */
  3793. return $instance->update($query, $bindings);
  3794. }
  3795. /**
  3796. * Run a delete statement against the database.
  3797. *
  3798. * @param string $query
  3799. * @param array $bindings
  3800. * @return int
  3801. * @static
  3802. */
  3803. public static function delete($query, $bindings = array())
  3804. {
  3805. //Method inherited from \Illuminate\Database\Connection
  3806. /** @var \Illuminate\Database\MySqlConnection $instance */
  3807. return $instance->delete($query, $bindings);
  3808. }
  3809. /**
  3810. * Execute an SQL statement and return the boolean result.
  3811. *
  3812. * @param string $query
  3813. * @param array $bindings
  3814. * @return bool
  3815. * @static
  3816. */
  3817. public static function statement($query, $bindings = array())
  3818. {
  3819. //Method inherited from \Illuminate\Database\Connection
  3820. /** @var \Illuminate\Database\MySqlConnection $instance */
  3821. return $instance->statement($query, $bindings);
  3822. }
  3823. /**
  3824. * Run an SQL statement and get the number of rows affected.
  3825. *
  3826. * @param string $query
  3827. * @param array $bindings
  3828. * @return int
  3829. * @static
  3830. */
  3831. public static function affectingStatement($query, $bindings = array())
  3832. {
  3833. //Method inherited from \Illuminate\Database\Connection
  3834. /** @var \Illuminate\Database\MySqlConnection $instance */
  3835. return $instance->affectingStatement($query, $bindings);
  3836. }
  3837. /**
  3838. * Run a raw, unprepared query against the PDO connection.
  3839. *
  3840. * @param string $query
  3841. * @return bool
  3842. * @static
  3843. */
  3844. public static function unprepared($query)
  3845. {
  3846. //Method inherited from \Illuminate\Database\Connection
  3847. /** @var \Illuminate\Database\MySqlConnection $instance */
  3848. return $instance->unprepared($query);
  3849. }
  3850. /**
  3851. * Execute the given callback in "dry run" mode.
  3852. *
  3853. * @param \Closure $callback
  3854. * @return array
  3855. * @static
  3856. */
  3857. public static function pretend($callback)
  3858. {
  3859. //Method inherited from \Illuminate\Database\Connection
  3860. /** @var \Illuminate\Database\MySqlConnection $instance */
  3861. return $instance->pretend($callback);
  3862. }
  3863. /**
  3864. * Prepare the query bindings for execution.
  3865. *
  3866. * @param array $bindings
  3867. * @return array
  3868. * @static
  3869. */
  3870. public static function prepareBindings($bindings)
  3871. {
  3872. //Method inherited from \Illuminate\Database\Connection
  3873. /** @var \Illuminate\Database\MySqlConnection $instance */
  3874. return $instance->prepareBindings($bindings);
  3875. }
  3876. /**
  3877. * Log a query in the connection's query log.
  3878. *
  3879. * @param string $query
  3880. * @param array $bindings
  3881. * @param float|null $time
  3882. * @return void
  3883. * @static
  3884. */
  3885. public static function logQuery($query, $bindings, $time = null)
  3886. {
  3887. //Method inherited from \Illuminate\Database\Connection
  3888. /** @var \Illuminate\Database\MySqlConnection $instance */
  3889. $instance->logQuery($query, $bindings, $time);
  3890. }
  3891. /**
  3892. * Register a database query listener with the connection.
  3893. *
  3894. * @param \Closure $callback
  3895. * @return void
  3896. * @static
  3897. */
  3898. public static function listen($callback)
  3899. {
  3900. //Method inherited from \Illuminate\Database\Connection
  3901. /** @var \Illuminate\Database\MySqlConnection $instance */
  3902. $instance->listen($callback);
  3903. }
  3904. /**
  3905. * Get a new raw query expression.
  3906. *
  3907. * @param mixed $value
  3908. * @return \Illuminate\Database\Query\Expression
  3909. * @static
  3910. */
  3911. public static function raw($value)
  3912. {
  3913. //Method inherited from \Illuminate\Database\Connection
  3914. /** @var \Illuminate\Database\MySqlConnection $instance */
  3915. return $instance->raw($value);
  3916. }
  3917. /**
  3918. * Indicate if any records have been modified.
  3919. *
  3920. * @param bool $value
  3921. * @return void
  3922. * @static
  3923. */
  3924. public static function recordsHaveBeenModified($value = true)
  3925. {
  3926. //Method inherited from \Illuminate\Database\Connection
  3927. /** @var \Illuminate\Database\MySqlConnection $instance */
  3928. $instance->recordsHaveBeenModified($value);
  3929. }
  3930. /**
  3931. * Is Doctrine available?
  3932. *
  3933. * @return bool
  3934. * @static
  3935. */
  3936. public static function isDoctrineAvailable()
  3937. {
  3938. //Method inherited from \Illuminate\Database\Connection
  3939. /** @var \Illuminate\Database\MySqlConnection $instance */
  3940. return $instance->isDoctrineAvailable();
  3941. }
  3942. /**
  3943. * Get a Doctrine Schema Column instance.
  3944. *
  3945. * @param string $table
  3946. * @param string $column
  3947. * @return \Doctrine\DBAL\Schema\Column
  3948. * @static
  3949. */
  3950. public static function getDoctrineColumn($table, $column)
  3951. {
  3952. //Method inherited from \Illuminate\Database\Connection
  3953. /** @var \Illuminate\Database\MySqlConnection $instance */
  3954. return $instance->getDoctrineColumn($table, $column);
  3955. }
  3956. /**
  3957. * Get the Doctrine DBAL schema manager for the connection.
  3958. *
  3959. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3960. * @static
  3961. */
  3962. public static function getDoctrineSchemaManager()
  3963. {
  3964. //Method inherited from \Illuminate\Database\Connection
  3965. /** @var \Illuminate\Database\MySqlConnection $instance */
  3966. return $instance->getDoctrineSchemaManager();
  3967. }
  3968. /**
  3969. * Get the Doctrine DBAL database connection instance.
  3970. *
  3971. * @return \Doctrine\DBAL\Connection
  3972. * @static
  3973. */
  3974. public static function getDoctrineConnection()
  3975. {
  3976. //Method inherited from \Illuminate\Database\Connection
  3977. /** @var \Illuminate\Database\MySqlConnection $instance */
  3978. return $instance->getDoctrineConnection();
  3979. }
  3980. /**
  3981. * Get the current PDO connection.
  3982. *
  3983. * @return \PDO
  3984. * @static
  3985. */
  3986. public static function getPdo()
  3987. {
  3988. //Method inherited from \Illuminate\Database\Connection
  3989. /** @var \Illuminate\Database\MySqlConnection $instance */
  3990. return $instance->getPdo();
  3991. }
  3992. /**
  3993. * Get the current PDO connection used for reading.
  3994. *
  3995. * @return \PDO
  3996. * @static
  3997. */
  3998. public static function getReadPdo()
  3999. {
  4000. //Method inherited from \Illuminate\Database\Connection
  4001. /** @var \Illuminate\Database\MySqlConnection $instance */
  4002. return $instance->getReadPdo();
  4003. }
  4004. /**
  4005. * Set the PDO connection.
  4006. *
  4007. * @param \PDO|\Closure|null $pdo
  4008. * @return \Illuminate\Database\MySqlConnection
  4009. * @static
  4010. */
  4011. public static function setPdo($pdo)
  4012. {
  4013. //Method inherited from \Illuminate\Database\Connection
  4014. /** @var \Illuminate\Database\MySqlConnection $instance */
  4015. return $instance->setPdo($pdo);
  4016. }
  4017. /**
  4018. * Set the PDO connection used for reading.
  4019. *
  4020. * @param \PDO|\Closure|null $pdo
  4021. * @return \Illuminate\Database\MySqlConnection
  4022. * @static
  4023. */
  4024. public static function setReadPdo($pdo)
  4025. {
  4026. //Method inherited from \Illuminate\Database\Connection
  4027. /** @var \Illuminate\Database\MySqlConnection $instance */
  4028. return $instance->setReadPdo($pdo);
  4029. }
  4030. /**
  4031. * Set the reconnect instance on the connection.
  4032. *
  4033. * @param callable $reconnector
  4034. * @return \Illuminate\Database\MySqlConnection
  4035. * @static
  4036. */
  4037. public static function setReconnector($reconnector)
  4038. {
  4039. //Method inherited from \Illuminate\Database\Connection
  4040. /** @var \Illuminate\Database\MySqlConnection $instance */
  4041. return $instance->setReconnector($reconnector);
  4042. }
  4043. /**
  4044. * Get the database connection name.
  4045. *
  4046. * @return string|null
  4047. * @static
  4048. */
  4049. public static function getName()
  4050. {
  4051. //Method inherited from \Illuminate\Database\Connection
  4052. /** @var \Illuminate\Database\MySqlConnection $instance */
  4053. return $instance->getName();
  4054. }
  4055. /**
  4056. * Get an option from the configuration options.
  4057. *
  4058. * @param string|null $option
  4059. * @return mixed
  4060. * @static
  4061. */
  4062. public static function getConfig($option = null)
  4063. {
  4064. //Method inherited from \Illuminate\Database\Connection
  4065. /** @var \Illuminate\Database\MySqlConnection $instance */
  4066. return $instance->getConfig($option);
  4067. }
  4068. /**
  4069. * Get the PDO driver name.
  4070. *
  4071. * @return string
  4072. * @static
  4073. */
  4074. public static function getDriverName()
  4075. {
  4076. //Method inherited from \Illuminate\Database\Connection
  4077. /** @var \Illuminate\Database\MySqlConnection $instance */
  4078. return $instance->getDriverName();
  4079. }
  4080. /**
  4081. * Get the query grammar used by the connection.
  4082. *
  4083. * @return \Illuminate\Database\Query\Grammars\Grammar
  4084. * @static
  4085. */
  4086. public static function getQueryGrammar()
  4087. {
  4088. //Method inherited from \Illuminate\Database\Connection
  4089. /** @var \Illuminate\Database\MySqlConnection $instance */
  4090. return $instance->getQueryGrammar();
  4091. }
  4092. /**
  4093. * Set the query grammar used by the connection.
  4094. *
  4095. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  4096. * @return void
  4097. * @static
  4098. */
  4099. public static function setQueryGrammar($grammar)
  4100. {
  4101. //Method inherited from \Illuminate\Database\Connection
  4102. /** @var \Illuminate\Database\MySqlConnection $instance */
  4103. $instance->setQueryGrammar($grammar);
  4104. }
  4105. /**
  4106. * Get the schema grammar used by the connection.
  4107. *
  4108. * @return \Illuminate\Database\Schema\Grammars\Grammar
  4109. * @static
  4110. */
  4111. public static function getSchemaGrammar()
  4112. {
  4113. //Method inherited from \Illuminate\Database\Connection
  4114. /** @var \Illuminate\Database\MySqlConnection $instance */
  4115. return $instance->getSchemaGrammar();
  4116. }
  4117. /**
  4118. * Set the schema grammar used by the connection.
  4119. *
  4120. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  4121. * @return void
  4122. * @static
  4123. */
  4124. public static function setSchemaGrammar($grammar)
  4125. {
  4126. //Method inherited from \Illuminate\Database\Connection
  4127. /** @var \Illuminate\Database\MySqlConnection $instance */
  4128. $instance->setSchemaGrammar($grammar);
  4129. }
  4130. /**
  4131. * Get the query post processor used by the connection.
  4132. *
  4133. * @return \Illuminate\Database\Query\Processors\Processor
  4134. * @static
  4135. */
  4136. public static function getPostProcessor()
  4137. {
  4138. //Method inherited from \Illuminate\Database\Connection
  4139. /** @var \Illuminate\Database\MySqlConnection $instance */
  4140. return $instance->getPostProcessor();
  4141. }
  4142. /**
  4143. * Set the query post processor used by the connection.
  4144. *
  4145. * @param \Illuminate\Database\Query\Processors\Processor $processor
  4146. * @return void
  4147. * @static
  4148. */
  4149. public static function setPostProcessor($processor)
  4150. {
  4151. //Method inherited from \Illuminate\Database\Connection
  4152. /** @var \Illuminate\Database\MySqlConnection $instance */
  4153. $instance->setPostProcessor($processor);
  4154. }
  4155. /**
  4156. * Get the event dispatcher used by the connection.
  4157. *
  4158. * @return \Illuminate\Contracts\Events\Dispatcher
  4159. * @static
  4160. */
  4161. public static function getEventDispatcher()
  4162. {
  4163. //Method inherited from \Illuminate\Database\Connection
  4164. /** @var \Illuminate\Database\MySqlConnection $instance */
  4165. return $instance->getEventDispatcher();
  4166. }
  4167. /**
  4168. * Set the event dispatcher instance on the connection.
  4169. *
  4170. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4171. * @return void
  4172. * @static
  4173. */
  4174. public static function setEventDispatcher($events)
  4175. {
  4176. //Method inherited from \Illuminate\Database\Connection
  4177. /** @var \Illuminate\Database\MySqlConnection $instance */
  4178. $instance->setEventDispatcher($events);
  4179. }
  4180. /**
  4181. * Unset the event dispatcher for this connection.
  4182. *
  4183. * @return void
  4184. * @static
  4185. */
  4186. public static function unsetEventDispatcher()
  4187. {
  4188. //Method inherited from \Illuminate\Database\Connection
  4189. /** @var \Illuminate\Database\MySqlConnection $instance */
  4190. $instance->unsetEventDispatcher();
  4191. }
  4192. /**
  4193. * Determine if the connection in a "dry run".
  4194. *
  4195. * @return bool
  4196. * @static
  4197. */
  4198. public static function pretending()
  4199. {
  4200. //Method inherited from \Illuminate\Database\Connection
  4201. /** @var \Illuminate\Database\MySqlConnection $instance */
  4202. return $instance->pretending();
  4203. }
  4204. /**
  4205. * Get the connection query log.
  4206. *
  4207. * @return array
  4208. * @static
  4209. */
  4210. public static function getQueryLog()
  4211. {
  4212. //Method inherited from \Illuminate\Database\Connection
  4213. /** @var \Illuminate\Database\MySqlConnection $instance */
  4214. return $instance->getQueryLog();
  4215. }
  4216. /**
  4217. * Clear the query log.
  4218. *
  4219. * @return void
  4220. * @static
  4221. */
  4222. public static function flushQueryLog()
  4223. {
  4224. //Method inherited from \Illuminate\Database\Connection
  4225. /** @var \Illuminate\Database\MySqlConnection $instance */
  4226. $instance->flushQueryLog();
  4227. }
  4228. /**
  4229. * Enable the query log on the connection.
  4230. *
  4231. * @return void
  4232. * @static
  4233. */
  4234. public static function enableQueryLog()
  4235. {
  4236. //Method inherited from \Illuminate\Database\Connection
  4237. /** @var \Illuminate\Database\MySqlConnection $instance */
  4238. $instance->enableQueryLog();
  4239. }
  4240. /**
  4241. * Disable the query log on the connection.
  4242. *
  4243. * @return void
  4244. * @static
  4245. */
  4246. public static function disableQueryLog()
  4247. {
  4248. //Method inherited from \Illuminate\Database\Connection
  4249. /** @var \Illuminate\Database\MySqlConnection $instance */
  4250. $instance->disableQueryLog();
  4251. }
  4252. /**
  4253. * Determine whether we're logging queries.
  4254. *
  4255. * @return bool
  4256. * @static
  4257. */
  4258. public static function logging()
  4259. {
  4260. //Method inherited from \Illuminate\Database\Connection
  4261. /** @var \Illuminate\Database\MySqlConnection $instance */
  4262. return $instance->logging();
  4263. }
  4264. /**
  4265. * Get the name of the connected database.
  4266. *
  4267. * @return string
  4268. * @static
  4269. */
  4270. public static function getDatabaseName()
  4271. {
  4272. //Method inherited from \Illuminate\Database\Connection
  4273. /** @var \Illuminate\Database\MySqlConnection $instance */
  4274. return $instance->getDatabaseName();
  4275. }
  4276. /**
  4277. * Set the name of the connected database.
  4278. *
  4279. * @param string $database
  4280. * @return string
  4281. * @static
  4282. */
  4283. public static function setDatabaseName($database)
  4284. {
  4285. //Method inherited from \Illuminate\Database\Connection
  4286. /** @var \Illuminate\Database\MySqlConnection $instance */
  4287. return $instance->setDatabaseName($database);
  4288. }
  4289. /**
  4290. * Get the table prefix for the connection.
  4291. *
  4292. * @return string
  4293. * @static
  4294. */
  4295. public static function getTablePrefix()
  4296. {
  4297. //Method inherited from \Illuminate\Database\Connection
  4298. /** @var \Illuminate\Database\MySqlConnection $instance */
  4299. return $instance->getTablePrefix();
  4300. }
  4301. /**
  4302. * Set the table prefix in use by the connection.
  4303. *
  4304. * @param string $prefix
  4305. * @return void
  4306. * @static
  4307. */
  4308. public static function setTablePrefix($prefix)
  4309. {
  4310. //Method inherited from \Illuminate\Database\Connection
  4311. /** @var \Illuminate\Database\MySqlConnection $instance */
  4312. $instance->setTablePrefix($prefix);
  4313. }
  4314. /**
  4315. * Set the table prefix and return the grammar.
  4316. *
  4317. * @param \Illuminate\Database\Grammar $grammar
  4318. * @return \Illuminate\Database\Grammar
  4319. * @static
  4320. */
  4321. public static function withTablePrefix($grammar)
  4322. {
  4323. //Method inherited from \Illuminate\Database\Connection
  4324. /** @var \Illuminate\Database\MySqlConnection $instance */
  4325. return $instance->withTablePrefix($grammar);
  4326. }
  4327. /**
  4328. * Register a connection resolver.
  4329. *
  4330. * @param string $driver
  4331. * @param \Closure $callback
  4332. * @return void
  4333. * @static
  4334. */
  4335. public static function resolverFor($driver, $callback)
  4336. {
  4337. //Method inherited from \Illuminate\Database\Connection
  4338. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  4339. }
  4340. /**
  4341. * Get the connection resolver for the given driver.
  4342. *
  4343. * @param string $driver
  4344. * @return mixed
  4345. * @static
  4346. */
  4347. public static function getResolver($driver)
  4348. {
  4349. //Method inherited from \Illuminate\Database\Connection
  4350. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  4351. }
  4352. /**
  4353. * Execute a Closure within a transaction.
  4354. *
  4355. * @param \Closure $callback
  4356. * @param int $attempts
  4357. * @return mixed
  4358. * @throws \Exception|\Throwable
  4359. * @static
  4360. */
  4361. public static function transaction($callback, $attempts = 1)
  4362. {
  4363. //Method inherited from \Illuminate\Database\Connection
  4364. /** @var \Illuminate\Database\MySqlConnection $instance */
  4365. return $instance->transaction($callback, $attempts);
  4366. }
  4367. /**
  4368. * Start a new database transaction.
  4369. *
  4370. * @return void
  4371. * @throws \Exception
  4372. * @static
  4373. */
  4374. public static function beginTransaction()
  4375. {
  4376. //Method inherited from \Illuminate\Database\Connection
  4377. /** @var \Illuminate\Database\MySqlConnection $instance */
  4378. $instance->beginTransaction();
  4379. }
  4380. /**
  4381. * Commit the active database transaction.
  4382. *
  4383. * @return void
  4384. * @static
  4385. */
  4386. public static function commit()
  4387. {
  4388. //Method inherited from \Illuminate\Database\Connection
  4389. /** @var \Illuminate\Database\MySqlConnection $instance */
  4390. $instance->commit();
  4391. }
  4392. /**
  4393. * Rollback the active database transaction.
  4394. *
  4395. * @param int|null $toLevel
  4396. * @return void
  4397. * @throws \Exception
  4398. * @static
  4399. */
  4400. public static function rollBack($toLevel = null)
  4401. {
  4402. //Method inherited from \Illuminate\Database\Connection
  4403. /** @var \Illuminate\Database\MySqlConnection $instance */
  4404. $instance->rollBack($toLevel);
  4405. }
  4406. /**
  4407. * Get the number of active transactions.
  4408. *
  4409. * @return int
  4410. * @static
  4411. */
  4412. public static function transactionLevel()
  4413. {
  4414. //Method inherited from \Illuminate\Database\Connection
  4415. /** @var \Illuminate\Database\MySqlConnection $instance */
  4416. return $instance->transactionLevel();
  4417. }
  4418. }
  4419. /**
  4420. *
  4421. *
  4422. * @see \Illuminate\Events\Dispatcher
  4423. */
  4424. class Event {
  4425. /**
  4426. * Register an event listener with the dispatcher.
  4427. *
  4428. * @param string|array $events
  4429. * @param mixed $listener
  4430. * @return void
  4431. * @static
  4432. */
  4433. public static function listen($events, $listener)
  4434. {
  4435. /** @var \Illuminate\Events\Dispatcher $instance */
  4436. $instance->listen($events, $listener);
  4437. }
  4438. /**
  4439. * Determine if a given event has listeners.
  4440. *
  4441. * @param string $eventName
  4442. * @return bool
  4443. * @static
  4444. */
  4445. public static function hasListeners($eventName)
  4446. {
  4447. /** @var \Illuminate\Events\Dispatcher $instance */
  4448. return $instance->hasListeners($eventName);
  4449. }
  4450. /**
  4451. * Register an event and payload to be fired later.
  4452. *
  4453. * @param string $event
  4454. * @param array $payload
  4455. * @return void
  4456. * @static
  4457. */
  4458. public static function push($event, $payload = array())
  4459. {
  4460. /** @var \Illuminate\Events\Dispatcher $instance */
  4461. $instance->push($event, $payload);
  4462. }
  4463. /**
  4464. * Flush a set of pushed events.
  4465. *
  4466. * @param string $event
  4467. * @return void
  4468. * @static
  4469. */
  4470. public static function flush($event)
  4471. {
  4472. /** @var \Illuminate\Events\Dispatcher $instance */
  4473. $instance->flush($event);
  4474. }
  4475. /**
  4476. * Register an event subscriber with the dispatcher.
  4477. *
  4478. * @param object|string $subscriber
  4479. * @return void
  4480. * @static
  4481. */
  4482. public static function subscribe($subscriber)
  4483. {
  4484. /** @var \Illuminate\Events\Dispatcher $instance */
  4485. $instance->subscribe($subscriber);
  4486. }
  4487. /**
  4488. * Fire an event until the first non-null response is returned.
  4489. *
  4490. * @param string|object $event
  4491. * @param mixed $payload
  4492. * @return array|null
  4493. * @static
  4494. */
  4495. public static function until($event, $payload = array())
  4496. {
  4497. /** @var \Illuminate\Events\Dispatcher $instance */
  4498. return $instance->until($event, $payload);
  4499. }
  4500. /**
  4501. * Fire an event and call the listeners.
  4502. *
  4503. * @param string|object $event
  4504. * @param mixed $payload
  4505. * @param bool $halt
  4506. * @return array|null
  4507. * @static
  4508. */
  4509. public static function fire($event, $payload = array(), $halt = false)
  4510. {
  4511. /** @var \Illuminate\Events\Dispatcher $instance */
  4512. return $instance->fire($event, $payload, $halt);
  4513. }
  4514. /**
  4515. * Fire an event and call the listeners.
  4516. *
  4517. * @param string|object $event
  4518. * @param mixed $payload
  4519. * @param bool $halt
  4520. * @return array|null
  4521. * @static
  4522. */
  4523. public static function dispatch($event, $payload = array(), $halt = false)
  4524. {
  4525. /** @var \Illuminate\Events\Dispatcher $instance */
  4526. return $instance->dispatch($event, $payload, $halt);
  4527. }
  4528. /**
  4529. * Get all of the listeners for a given event name.
  4530. *
  4531. * @param string $eventName
  4532. * @return array
  4533. * @static
  4534. */
  4535. public static function getListeners($eventName)
  4536. {
  4537. /** @var \Illuminate\Events\Dispatcher $instance */
  4538. return $instance->getListeners($eventName);
  4539. }
  4540. /**
  4541. * Register an event listener with the dispatcher.
  4542. *
  4543. * @param \Closure|string $listener
  4544. * @param bool $wildcard
  4545. * @return \Closure
  4546. * @static
  4547. */
  4548. public static function makeListener($listener, $wildcard = false)
  4549. {
  4550. /** @var \Illuminate\Events\Dispatcher $instance */
  4551. return $instance->makeListener($listener, $wildcard);
  4552. }
  4553. /**
  4554. * Create a class based listener using the IoC container.
  4555. *
  4556. * @param string $listener
  4557. * @param bool $wildcard
  4558. * @return \Closure
  4559. * @static
  4560. */
  4561. public static function createClassListener($listener, $wildcard = false)
  4562. {
  4563. /** @var \Illuminate\Events\Dispatcher $instance */
  4564. return $instance->createClassListener($listener, $wildcard);
  4565. }
  4566. /**
  4567. * Remove a set of listeners from the dispatcher.
  4568. *
  4569. * @param string $event
  4570. * @return void
  4571. * @static
  4572. */
  4573. public static function forget($event)
  4574. {
  4575. /** @var \Illuminate\Events\Dispatcher $instance */
  4576. $instance->forget($event);
  4577. }
  4578. /**
  4579. * Forget all of the pushed listeners.
  4580. *
  4581. * @return void
  4582. * @static
  4583. */
  4584. public static function forgetPushed()
  4585. {
  4586. /** @var \Illuminate\Events\Dispatcher $instance */
  4587. $instance->forgetPushed();
  4588. }
  4589. /**
  4590. * Set the queue resolver implementation.
  4591. *
  4592. * @param callable $resolver
  4593. * @return \Illuminate\Events\Dispatcher
  4594. * @static
  4595. */
  4596. public static function setQueueResolver($resolver)
  4597. {
  4598. /** @var \Illuminate\Events\Dispatcher $instance */
  4599. return $instance->setQueueResolver($resolver);
  4600. }
  4601. /**
  4602. * Assert if an event was dispatched based on a truth-test callback.
  4603. *
  4604. * @param string $event
  4605. * @param callable|int|null $callback
  4606. * @return void
  4607. * @static
  4608. */
  4609. public static function assertDispatched($event, $callback = null)
  4610. {
  4611. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4612. $instance->assertDispatched($event, $callback);
  4613. }
  4614. /**
  4615. * Assert if a event was dispatched a number of times.
  4616. *
  4617. * @param string $event
  4618. * @param int $times
  4619. * @return void
  4620. * @static
  4621. */
  4622. public static function assertDispatchedTimes($event, $times = 1)
  4623. {
  4624. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4625. $instance->assertDispatchedTimes($event, $times);
  4626. }
  4627. /**
  4628. * Determine if an event was dispatched based on a truth-test callback.
  4629. *
  4630. * @param string $event
  4631. * @param callable|null $callback
  4632. * @return void
  4633. * @static
  4634. */
  4635. public static function assertNotDispatched($event, $callback = null)
  4636. {
  4637. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4638. $instance->assertNotDispatched($event, $callback);
  4639. }
  4640. /**
  4641. * Get all of the events matching a truth-test callback.
  4642. *
  4643. * @param string $event
  4644. * @param callable|null $callback
  4645. * @return \Illuminate\Support\Collection
  4646. * @static
  4647. */
  4648. public static function dispatched($event, $callback = null)
  4649. {
  4650. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4651. return $instance->dispatched($event, $callback);
  4652. }
  4653. /**
  4654. * Determine if the given event has been dispatched.
  4655. *
  4656. * @param string $event
  4657. * @return bool
  4658. * @static
  4659. */
  4660. public static function hasDispatched($event)
  4661. {
  4662. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4663. return $instance->hasDispatched($event);
  4664. }
  4665. }
  4666. /**
  4667. *
  4668. *
  4669. * @see \Illuminate\Filesystem\Filesystem
  4670. */
  4671. class File {
  4672. /**
  4673. * Determine if a file or directory exists.
  4674. *
  4675. * @param string $path
  4676. * @return bool
  4677. * @static
  4678. */
  4679. public static function exists($path)
  4680. {
  4681. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4682. return $instance->exists($path);
  4683. }
  4684. /**
  4685. * Get the contents of a file.
  4686. *
  4687. * @param string $path
  4688. * @param bool $lock
  4689. * @return string
  4690. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4691. * @static
  4692. */
  4693. public static function get($path, $lock = false)
  4694. {
  4695. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4696. return $instance->get($path, $lock);
  4697. }
  4698. /**
  4699. * Get contents of a file with shared access.
  4700. *
  4701. * @param string $path
  4702. * @return string
  4703. * @static
  4704. */
  4705. public static function sharedGet($path)
  4706. {
  4707. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4708. return $instance->sharedGet($path);
  4709. }
  4710. /**
  4711. * Get the returned value of a file.
  4712. *
  4713. * @param string $path
  4714. * @return mixed
  4715. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4716. * @static
  4717. */
  4718. public static function getRequire($path)
  4719. {
  4720. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4721. return $instance->getRequire($path);
  4722. }
  4723. /**
  4724. * Require the given file once.
  4725. *
  4726. * @param string $file
  4727. * @return mixed
  4728. * @static
  4729. */
  4730. public static function requireOnce($file)
  4731. {
  4732. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4733. return $instance->requireOnce($file);
  4734. }
  4735. /**
  4736. * Get the MD5 hash of the file at the given path.
  4737. *
  4738. * @param string $path
  4739. * @return string
  4740. * @static
  4741. */
  4742. public static function hash($path)
  4743. {
  4744. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4745. return $instance->hash($path);
  4746. }
  4747. /**
  4748. * Write the contents of a file.
  4749. *
  4750. * @param string $path
  4751. * @param string $contents
  4752. * @param bool $lock
  4753. * @return int
  4754. * @static
  4755. */
  4756. public static function put($path, $contents, $lock = false)
  4757. {
  4758. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4759. return $instance->put($path, $contents, $lock);
  4760. }
  4761. /**
  4762. * Prepend to a file.
  4763. *
  4764. * @param string $path
  4765. * @param string $data
  4766. * @return int
  4767. * @static
  4768. */
  4769. public static function prepend($path, $data)
  4770. {
  4771. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4772. return $instance->prepend($path, $data);
  4773. }
  4774. /**
  4775. * Append to a file.
  4776. *
  4777. * @param string $path
  4778. * @param string $data
  4779. * @return int
  4780. * @static
  4781. */
  4782. public static function append($path, $data)
  4783. {
  4784. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4785. return $instance->append($path, $data);
  4786. }
  4787. /**
  4788. * Get or set UNIX mode of a file or directory.
  4789. *
  4790. * @param string $path
  4791. * @param int $mode
  4792. * @return mixed
  4793. * @static
  4794. */
  4795. public static function chmod($path, $mode = null)
  4796. {
  4797. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4798. return $instance->chmod($path, $mode);
  4799. }
  4800. /**
  4801. * Delete the file at a given path.
  4802. *
  4803. * @param string|array $paths
  4804. * @return bool
  4805. * @static
  4806. */
  4807. public static function delete($paths)
  4808. {
  4809. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4810. return $instance->delete($paths);
  4811. }
  4812. /**
  4813. * Move a file to a new location.
  4814. *
  4815. * @param string $path
  4816. * @param string $target
  4817. * @return bool
  4818. * @static
  4819. */
  4820. public static function move($path, $target)
  4821. {
  4822. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4823. return $instance->move($path, $target);
  4824. }
  4825. /**
  4826. * Copy a file to a new location.
  4827. *
  4828. * @param string $path
  4829. * @param string $target
  4830. * @return bool
  4831. * @static
  4832. */
  4833. public static function copy($path, $target)
  4834. {
  4835. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4836. return $instance->copy($path, $target);
  4837. }
  4838. /**
  4839. * Create a hard link to the target file or directory.
  4840. *
  4841. * @param string $target
  4842. * @param string $link
  4843. * @return void
  4844. * @static
  4845. */
  4846. public static function link($target, $link)
  4847. {
  4848. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4849. $instance->link($target, $link);
  4850. }
  4851. /**
  4852. * Extract the file name from a file path.
  4853. *
  4854. * @param string $path
  4855. * @return string
  4856. * @static
  4857. */
  4858. public static function name($path)
  4859. {
  4860. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4861. return $instance->name($path);
  4862. }
  4863. /**
  4864. * Extract the trailing name component from a file path.
  4865. *
  4866. * @param string $path
  4867. * @return string
  4868. * @static
  4869. */
  4870. public static function basename($path)
  4871. {
  4872. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4873. return $instance->basename($path);
  4874. }
  4875. /**
  4876. * Extract the parent directory from a file path.
  4877. *
  4878. * @param string $path
  4879. * @return string
  4880. * @static
  4881. */
  4882. public static function dirname($path)
  4883. {
  4884. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4885. return $instance->dirname($path);
  4886. }
  4887. /**
  4888. * Extract the file extension from a file path.
  4889. *
  4890. * @param string $path
  4891. * @return string
  4892. * @static
  4893. */
  4894. public static function extension($path)
  4895. {
  4896. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4897. return $instance->extension($path);
  4898. }
  4899. /**
  4900. * Get the file type of a given file.
  4901. *
  4902. * @param string $path
  4903. * @return string
  4904. * @static
  4905. */
  4906. public static function type($path)
  4907. {
  4908. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4909. return $instance->type($path);
  4910. }
  4911. /**
  4912. * Get the mime-type of a given file.
  4913. *
  4914. * @param string $path
  4915. * @return string|false
  4916. * @static
  4917. */
  4918. public static function mimeType($path)
  4919. {
  4920. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4921. return $instance->mimeType($path);
  4922. }
  4923. /**
  4924. * Get the file size of a given file.
  4925. *
  4926. * @param string $path
  4927. * @return int
  4928. * @static
  4929. */
  4930. public static function size($path)
  4931. {
  4932. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4933. return $instance->size($path);
  4934. }
  4935. /**
  4936. * Get the file's last modification time.
  4937. *
  4938. * @param string $path
  4939. * @return int
  4940. * @static
  4941. */
  4942. public static function lastModified($path)
  4943. {
  4944. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4945. return $instance->lastModified($path);
  4946. }
  4947. /**
  4948. * Determine if the given path is a directory.
  4949. *
  4950. * @param string $directory
  4951. * @return bool
  4952. * @static
  4953. */
  4954. public static function isDirectory($directory)
  4955. {
  4956. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4957. return $instance->isDirectory($directory);
  4958. }
  4959. /**
  4960. * Determine if the given path is readable.
  4961. *
  4962. * @param string $path
  4963. * @return bool
  4964. * @static
  4965. */
  4966. public static function isReadable($path)
  4967. {
  4968. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4969. return $instance->isReadable($path);
  4970. }
  4971. /**
  4972. * Determine if the given path is writable.
  4973. *
  4974. * @param string $path
  4975. * @return bool
  4976. * @static
  4977. */
  4978. public static function isWritable($path)
  4979. {
  4980. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4981. return $instance->isWritable($path);
  4982. }
  4983. /**
  4984. * Determine if the given path is a file.
  4985. *
  4986. * @param string $file
  4987. * @return bool
  4988. * @static
  4989. */
  4990. public static function isFile($file)
  4991. {
  4992. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4993. return $instance->isFile($file);
  4994. }
  4995. /**
  4996. * Find path names matching a given pattern.
  4997. *
  4998. * @param string $pattern
  4999. * @param int $flags
  5000. * @return array
  5001. * @static
  5002. */
  5003. public static function glob($pattern, $flags = 0)
  5004. {
  5005. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5006. return $instance->glob($pattern, $flags);
  5007. }
  5008. /**
  5009. * Get an array of all files in a directory.
  5010. *
  5011. * @param string $directory
  5012. * @param bool $hidden
  5013. * @return \Symfony\Component\Finder\SplFileInfo[]
  5014. * @static
  5015. */
  5016. public static function files($directory, $hidden = false)
  5017. {
  5018. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5019. return $instance->files($directory, $hidden);
  5020. }
  5021. /**
  5022. * Get all of the files from the given directory (recursive).
  5023. *
  5024. * @param string $directory
  5025. * @param bool $hidden
  5026. * @return \Symfony\Component\Finder\SplFileInfo[]
  5027. * @static
  5028. */
  5029. public static function allFiles($directory, $hidden = false)
  5030. {
  5031. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5032. return $instance->allFiles($directory, $hidden);
  5033. }
  5034. /**
  5035. * Get all of the directories within a given directory.
  5036. *
  5037. * @param string $directory
  5038. * @return array
  5039. * @static
  5040. */
  5041. public static function directories($directory)
  5042. {
  5043. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5044. return $instance->directories($directory);
  5045. }
  5046. /**
  5047. * Create a directory.
  5048. *
  5049. * @param string $path
  5050. * @param int $mode
  5051. * @param bool $recursive
  5052. * @param bool $force
  5053. * @return bool
  5054. * @static
  5055. */
  5056. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  5057. {
  5058. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5059. return $instance->makeDirectory($path, $mode, $recursive, $force);
  5060. }
  5061. /**
  5062. * Move a directory.
  5063. *
  5064. * @param string $from
  5065. * @param string $to
  5066. * @param bool $overwrite
  5067. * @return bool
  5068. * @static
  5069. */
  5070. public static function moveDirectory($from, $to, $overwrite = false)
  5071. {
  5072. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5073. return $instance->moveDirectory($from, $to, $overwrite);
  5074. }
  5075. /**
  5076. * Copy a directory from one location to another.
  5077. *
  5078. * @param string $directory
  5079. * @param string $destination
  5080. * @param int $options
  5081. * @return bool
  5082. * @static
  5083. */
  5084. public static function copyDirectory($directory, $destination, $options = null)
  5085. {
  5086. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5087. return $instance->copyDirectory($directory, $destination, $options);
  5088. }
  5089. /**
  5090. * Recursively delete a directory.
  5091. *
  5092. * The directory itself may be optionally preserved.
  5093. *
  5094. * @param string $directory
  5095. * @param bool $preserve
  5096. * @return bool
  5097. * @static
  5098. */
  5099. public static function deleteDirectory($directory, $preserve = false)
  5100. {
  5101. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5102. return $instance->deleteDirectory($directory, $preserve);
  5103. }
  5104. /**
  5105. * Remove all of the directories within a given directory.
  5106. *
  5107. * @param string $directory
  5108. * @return bool
  5109. * @static
  5110. */
  5111. public static function deleteDirectories($directory)
  5112. {
  5113. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5114. return $instance->deleteDirectories($directory);
  5115. }
  5116. /**
  5117. * Empty the specified directory of all files and folders.
  5118. *
  5119. * @param string $directory
  5120. * @return bool
  5121. * @static
  5122. */
  5123. public static function cleanDirectory($directory)
  5124. {
  5125. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5126. return $instance->cleanDirectory($directory);
  5127. }
  5128. /**
  5129. * Register a custom macro.
  5130. *
  5131. * @param string $name
  5132. * @param object|callable $macro
  5133. * @return void
  5134. * @static
  5135. */
  5136. public static function macro($name, $macro)
  5137. {
  5138. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  5139. }
  5140. /**
  5141. * Mix another object into the class.
  5142. *
  5143. * @param object $mixin
  5144. * @return void
  5145. * @throws \ReflectionException
  5146. * @static
  5147. */
  5148. public static function mixin($mixin)
  5149. {
  5150. \Illuminate\Filesystem\Filesystem::mixin($mixin);
  5151. }
  5152. /**
  5153. * Checks if macro is registered.
  5154. *
  5155. * @param string $name
  5156. * @return bool
  5157. * @static
  5158. */
  5159. public static function hasMacro($name)
  5160. {
  5161. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  5162. }
  5163. }
  5164. /**
  5165. *
  5166. *
  5167. * @see \Illuminate\Contracts\Auth\Access\Gate
  5168. */
  5169. class Gate {
  5170. /**
  5171. * Determine if a given ability has been defined.
  5172. *
  5173. * @param string|array $ability
  5174. * @return bool
  5175. * @static
  5176. */
  5177. public static function has($ability)
  5178. {
  5179. /** @var \Illuminate\Auth\Access\Gate $instance */
  5180. return $instance->has($ability);
  5181. }
  5182. /**
  5183. * Define a new ability.
  5184. *
  5185. * @param string $ability
  5186. * @param callable|string $callback
  5187. * @return \Illuminate\Auth\Access\Gate
  5188. * @throws \InvalidArgumentException
  5189. * @static
  5190. */
  5191. public static function define($ability, $callback)
  5192. {
  5193. /** @var \Illuminate\Auth\Access\Gate $instance */
  5194. return $instance->define($ability, $callback);
  5195. }
  5196. /**
  5197. * Define abilities for a resource.
  5198. *
  5199. * @param string $name
  5200. * @param string $class
  5201. * @param array|null $abilities
  5202. * @return \Illuminate\Auth\Access\Gate
  5203. * @static
  5204. */
  5205. public static function resource($name, $class, $abilities = null)
  5206. {
  5207. /** @var \Illuminate\Auth\Access\Gate $instance */
  5208. return $instance->resource($name, $class, $abilities);
  5209. }
  5210. /**
  5211. * Define a policy class for a given class type.
  5212. *
  5213. * @param string $class
  5214. * @param string $policy
  5215. * @return \Illuminate\Auth\Access\Gate
  5216. * @static
  5217. */
  5218. public static function policy($class, $policy)
  5219. {
  5220. /** @var \Illuminate\Auth\Access\Gate $instance */
  5221. return $instance->policy($class, $policy);
  5222. }
  5223. /**
  5224. * Register a callback to run before all Gate checks.
  5225. *
  5226. * @param callable $callback
  5227. * @return \Illuminate\Auth\Access\Gate
  5228. * @static
  5229. */
  5230. public static function before($callback)
  5231. {
  5232. /** @var \Illuminate\Auth\Access\Gate $instance */
  5233. return $instance->before($callback);
  5234. }
  5235. /**
  5236. * Register a callback to run after all Gate checks.
  5237. *
  5238. * @param callable $callback
  5239. * @return \Illuminate\Auth\Access\Gate
  5240. * @static
  5241. */
  5242. public static function after($callback)
  5243. {
  5244. /** @var \Illuminate\Auth\Access\Gate $instance */
  5245. return $instance->after($callback);
  5246. }
  5247. /**
  5248. * Determine if the given ability should be granted for the current user.
  5249. *
  5250. * @param string $ability
  5251. * @param array|mixed $arguments
  5252. * @return bool
  5253. * @static
  5254. */
  5255. public static function allows($ability, $arguments = array())
  5256. {
  5257. /** @var \Illuminate\Auth\Access\Gate $instance */
  5258. return $instance->allows($ability, $arguments);
  5259. }
  5260. /**
  5261. * Determine if the given ability should be denied for the current user.
  5262. *
  5263. * @param string $ability
  5264. * @param array|mixed $arguments
  5265. * @return bool
  5266. * @static
  5267. */
  5268. public static function denies($ability, $arguments = array())
  5269. {
  5270. /** @var \Illuminate\Auth\Access\Gate $instance */
  5271. return $instance->denies($ability, $arguments);
  5272. }
  5273. /**
  5274. * Determine if all of the given abilities should be granted for the current user.
  5275. *
  5276. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5277. * @param array|mixed $arguments
  5278. * @return bool
  5279. * @static
  5280. */
  5281. public static function check($abilities, $arguments = array())
  5282. {
  5283. /** @var \Illuminate\Auth\Access\Gate $instance */
  5284. return $instance->check($abilities, $arguments);
  5285. }
  5286. /**
  5287. * Determine if any one of the given abilities should be granted for the current user.
  5288. *
  5289. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5290. * @param array|mixed $arguments
  5291. * @return bool
  5292. * @static
  5293. */
  5294. public static function any($abilities, $arguments = array())
  5295. {
  5296. /** @var \Illuminate\Auth\Access\Gate $instance */
  5297. return $instance->any($abilities, $arguments);
  5298. }
  5299. /**
  5300. * Determine if the given ability should be granted for the current user.
  5301. *
  5302. * @param string $ability
  5303. * @param array|mixed $arguments
  5304. * @return \Illuminate\Auth\Access\Response
  5305. * @throws \Illuminate\Auth\Access\AuthorizationException
  5306. * @static
  5307. */
  5308. public static function authorize($ability, $arguments = array())
  5309. {
  5310. /** @var \Illuminate\Auth\Access\Gate $instance */
  5311. return $instance->authorize($ability, $arguments);
  5312. }
  5313. /**
  5314. * Get a policy instance for a given class.
  5315. *
  5316. * @param object|string $class
  5317. * @return mixed
  5318. * @static
  5319. */
  5320. public static function getPolicyFor($class)
  5321. {
  5322. /** @var \Illuminate\Auth\Access\Gate $instance */
  5323. return $instance->getPolicyFor($class);
  5324. }
  5325. /**
  5326. * Build a policy class instance of the given type.
  5327. *
  5328. * @param object|string $class
  5329. * @return mixed
  5330. * @static
  5331. */
  5332. public static function resolvePolicy($class)
  5333. {
  5334. /** @var \Illuminate\Auth\Access\Gate $instance */
  5335. return $instance->resolvePolicy($class);
  5336. }
  5337. /**
  5338. * Get a gate instance for the given user.
  5339. *
  5340. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  5341. * @return static
  5342. * @static
  5343. */
  5344. public static function forUser($user)
  5345. {
  5346. /** @var \Illuminate\Auth\Access\Gate $instance */
  5347. return $instance->forUser($user);
  5348. }
  5349. /**
  5350. * Get all of the defined abilities.
  5351. *
  5352. * @return array
  5353. * @static
  5354. */
  5355. public static function abilities()
  5356. {
  5357. /** @var \Illuminate\Auth\Access\Gate $instance */
  5358. return $instance->abilities();
  5359. }
  5360. /**
  5361. * Get all of the defined policies.
  5362. *
  5363. * @return array
  5364. * @static
  5365. */
  5366. public static function policies()
  5367. {
  5368. /** @var \Illuminate\Auth\Access\Gate $instance */
  5369. return $instance->policies();
  5370. }
  5371. }
  5372. /**
  5373. *
  5374. *
  5375. * @see \Illuminate\Hashing\HashManager
  5376. */
  5377. class Hash {
  5378. /**
  5379. * Create an instance of the Bcrypt hash Driver.
  5380. *
  5381. * @return \Illuminate\Hashing\BcryptHasher
  5382. * @static
  5383. */
  5384. public static function createBcryptDriver()
  5385. {
  5386. /** @var \Illuminate\Hashing\HashManager $instance */
  5387. return $instance->createBcryptDriver();
  5388. }
  5389. /**
  5390. * Create an instance of the Argon2 hash Driver.
  5391. *
  5392. * @return \Illuminate\Hashing\ArgonHasher
  5393. * @static
  5394. */
  5395. public static function createArgonDriver()
  5396. {
  5397. /** @var \Illuminate\Hashing\HashManager $instance */
  5398. return $instance->createArgonDriver();
  5399. }
  5400. /**
  5401. * Get information about the given hashed value.
  5402. *
  5403. * @param string $hashedValue
  5404. * @return array
  5405. * @static
  5406. */
  5407. public static function info($hashedValue)
  5408. {
  5409. /** @var \Illuminate\Hashing\HashManager $instance */
  5410. return $instance->info($hashedValue);
  5411. }
  5412. /**
  5413. * Hash the given value.
  5414. *
  5415. * @param string $value
  5416. * @param array $options
  5417. * @return string
  5418. * @static
  5419. */
  5420. public static function make($value, $options = array())
  5421. {
  5422. /** @var \Illuminate\Hashing\HashManager $instance */
  5423. return $instance->make($value, $options);
  5424. }
  5425. /**
  5426. * Check the given plain value against a hash.
  5427. *
  5428. * @param string $value
  5429. * @param string $hashedValue
  5430. * @param array $options
  5431. * @return bool
  5432. * @static
  5433. */
  5434. public static function check($value, $hashedValue, $options = array())
  5435. {
  5436. /** @var \Illuminate\Hashing\HashManager $instance */
  5437. return $instance->check($value, $hashedValue, $options);
  5438. }
  5439. /**
  5440. * Check if the given hash has been hashed using the given options.
  5441. *
  5442. * @param string $hashedValue
  5443. * @param array $options
  5444. * @return bool
  5445. * @static
  5446. */
  5447. public static function needsRehash($hashedValue, $options = array())
  5448. {
  5449. /** @var \Illuminate\Hashing\HashManager $instance */
  5450. return $instance->needsRehash($hashedValue, $options);
  5451. }
  5452. /**
  5453. * Get the default driver name.
  5454. *
  5455. * @return string
  5456. * @static
  5457. */
  5458. public static function getDefaultDriver()
  5459. {
  5460. /** @var \Illuminate\Hashing\HashManager $instance */
  5461. return $instance->getDefaultDriver();
  5462. }
  5463. /**
  5464. * Get a driver instance.
  5465. *
  5466. * @param string $driver
  5467. * @return mixed
  5468. * @throws \InvalidArgumentException
  5469. * @static
  5470. */
  5471. public static function driver($driver = null)
  5472. {
  5473. //Method inherited from \Illuminate\Support\Manager
  5474. /** @var \Illuminate\Hashing\HashManager $instance */
  5475. return $instance->driver($driver);
  5476. }
  5477. /**
  5478. * Register a custom driver creator Closure.
  5479. *
  5480. * @param string $driver
  5481. * @param \Closure $callback
  5482. * @return \Illuminate\Hashing\HashManager
  5483. * @static
  5484. */
  5485. public static function extend($driver, $callback)
  5486. {
  5487. //Method inherited from \Illuminate\Support\Manager
  5488. /** @var \Illuminate\Hashing\HashManager $instance */
  5489. return $instance->extend($driver, $callback);
  5490. }
  5491. /**
  5492. * Get all of the created "drivers".
  5493. *
  5494. * @return array
  5495. * @static
  5496. */
  5497. public static function getDrivers()
  5498. {
  5499. //Method inherited from \Illuminate\Support\Manager
  5500. /** @var \Illuminate\Hashing\HashManager $instance */
  5501. return $instance->getDrivers();
  5502. }
  5503. }
  5504. /**
  5505. *
  5506. *
  5507. * @see \Illuminate\Translation\Translator
  5508. */
  5509. class Lang {
  5510. /**
  5511. * Determine if a translation exists for a given locale.
  5512. *
  5513. * @param string $key
  5514. * @param string|null $locale
  5515. * @return bool
  5516. * @static
  5517. */
  5518. public static function hasForLocale($key, $locale = null)
  5519. {
  5520. /** @var \Illuminate\Translation\Translator $instance */
  5521. return $instance->hasForLocale($key, $locale);
  5522. }
  5523. /**
  5524. * Determine if a translation exists.
  5525. *
  5526. * @param string $key
  5527. * @param string|null $locale
  5528. * @param bool $fallback
  5529. * @return bool
  5530. * @static
  5531. */
  5532. public static function has($key, $locale = null, $fallback = true)
  5533. {
  5534. /** @var \Illuminate\Translation\Translator $instance */
  5535. return $instance->has($key, $locale, $fallback);
  5536. }
  5537. /**
  5538. * Get the translation for a given key.
  5539. *
  5540. * @param string $key
  5541. * @param array $replace
  5542. * @param string $locale
  5543. * @return string|array|null
  5544. * @static
  5545. */
  5546. public static function trans($key, $replace = array(), $locale = null)
  5547. {
  5548. /** @var \Illuminate\Translation\Translator $instance */
  5549. return $instance->trans($key, $replace, $locale);
  5550. }
  5551. /**
  5552. * Get the translation for the given key.
  5553. *
  5554. * @param string $key
  5555. * @param array $replace
  5556. * @param string|null $locale
  5557. * @param bool $fallback
  5558. * @return string|array|null
  5559. * @static
  5560. */
  5561. public static function get($key, $replace = array(), $locale = null, $fallback = true)
  5562. {
  5563. /** @var \Illuminate\Translation\Translator $instance */
  5564. return $instance->get($key, $replace, $locale, $fallback);
  5565. }
  5566. /**
  5567. * Get the translation for a given key from the JSON translation files.
  5568. *
  5569. * @param string $key
  5570. * @param array $replace
  5571. * @param string $locale
  5572. * @return string|array|null
  5573. * @static
  5574. */
  5575. public static function getFromJson($key, $replace = array(), $locale = null)
  5576. {
  5577. /** @var \Illuminate\Translation\Translator $instance */
  5578. return $instance->getFromJson($key, $replace, $locale);
  5579. }
  5580. /**
  5581. * Get a translation according to an integer value.
  5582. *
  5583. * @param string $key
  5584. * @param int|array|\Countable $number
  5585. * @param array $replace
  5586. * @param string $locale
  5587. * @return string
  5588. * @static
  5589. */
  5590. public static function transChoice($key, $number, $replace = array(), $locale = null)
  5591. {
  5592. /** @var \Illuminate\Translation\Translator $instance */
  5593. return $instance->transChoice($key, $number, $replace, $locale);
  5594. }
  5595. /**
  5596. * Get a translation according to an integer value.
  5597. *
  5598. * @param string $key
  5599. * @param int|array|\Countable $number
  5600. * @param array $replace
  5601. * @param string $locale
  5602. * @return string
  5603. * @static
  5604. */
  5605. public static function choice($key, $number, $replace = array(), $locale = null)
  5606. {
  5607. /** @var \Illuminate\Translation\Translator $instance */
  5608. return $instance->choice($key, $number, $replace, $locale);
  5609. }
  5610. /**
  5611. * Add translation lines to the given locale.
  5612. *
  5613. * @param array $lines
  5614. * @param string $locale
  5615. * @param string $namespace
  5616. * @return void
  5617. * @static
  5618. */
  5619. public static function addLines($lines, $locale, $namespace = '*')
  5620. {
  5621. /** @var \Illuminate\Translation\Translator $instance */
  5622. $instance->addLines($lines, $locale, $namespace);
  5623. }
  5624. /**
  5625. * Load the specified language group.
  5626. *
  5627. * @param string $namespace
  5628. * @param string $group
  5629. * @param string $locale
  5630. * @return void
  5631. * @static
  5632. */
  5633. public static function load($namespace, $group, $locale)
  5634. {
  5635. /** @var \Illuminate\Translation\Translator $instance */
  5636. $instance->load($namespace, $group, $locale);
  5637. }
  5638. /**
  5639. * Add a new namespace to the loader.
  5640. *
  5641. * @param string $namespace
  5642. * @param string $hint
  5643. * @return void
  5644. * @static
  5645. */
  5646. public static function addNamespace($namespace, $hint)
  5647. {
  5648. /** @var \Illuminate\Translation\Translator $instance */
  5649. $instance->addNamespace($namespace, $hint);
  5650. }
  5651. /**
  5652. * Add a new JSON path to the loader.
  5653. *
  5654. * @param string $path
  5655. * @return void
  5656. * @static
  5657. */
  5658. public static function addJsonPath($path)
  5659. {
  5660. /** @var \Illuminate\Translation\Translator $instance */
  5661. $instance->addJsonPath($path);
  5662. }
  5663. /**
  5664. * Parse a key into namespace, group, and item.
  5665. *
  5666. * @param string $key
  5667. * @return array
  5668. * @static
  5669. */
  5670. public static function parseKey($key)
  5671. {
  5672. /** @var \Illuminate\Translation\Translator $instance */
  5673. return $instance->parseKey($key);
  5674. }
  5675. /**
  5676. * Get the message selector instance.
  5677. *
  5678. * @return \Illuminate\Translation\MessageSelector
  5679. * @static
  5680. */
  5681. public static function getSelector()
  5682. {
  5683. /** @var \Illuminate\Translation\Translator $instance */
  5684. return $instance->getSelector();
  5685. }
  5686. /**
  5687. * Set the message selector instance.
  5688. *
  5689. * @param \Illuminate\Translation\MessageSelector $selector
  5690. * @return void
  5691. * @static
  5692. */
  5693. public static function setSelector($selector)
  5694. {
  5695. /** @var \Illuminate\Translation\Translator $instance */
  5696. $instance->setSelector($selector);
  5697. }
  5698. /**
  5699. * Get the language line loader implementation.
  5700. *
  5701. * @return \Illuminate\Contracts\Translation\Loader
  5702. * @static
  5703. */
  5704. public static function getLoader()
  5705. {
  5706. /** @var \Illuminate\Translation\Translator $instance */
  5707. return $instance->getLoader();
  5708. }
  5709. /**
  5710. * Get the default locale being used.
  5711. *
  5712. * @return string
  5713. * @static
  5714. */
  5715. public static function locale()
  5716. {
  5717. /** @var \Illuminate\Translation\Translator $instance */
  5718. return $instance->locale();
  5719. }
  5720. /**
  5721. * Get the default locale being used.
  5722. *
  5723. * @return string
  5724. * @static
  5725. */
  5726. public static function getLocale()
  5727. {
  5728. /** @var \Illuminate\Translation\Translator $instance */
  5729. return $instance->getLocale();
  5730. }
  5731. /**
  5732. * Set the default locale.
  5733. *
  5734. * @param string $locale
  5735. * @return void
  5736. * @static
  5737. */
  5738. public static function setLocale($locale)
  5739. {
  5740. /** @var \Illuminate\Translation\Translator $instance */
  5741. $instance->setLocale($locale);
  5742. }
  5743. /**
  5744. * Get the fallback locale being used.
  5745. *
  5746. * @return string
  5747. * @static
  5748. */
  5749. public static function getFallback()
  5750. {
  5751. /** @var \Illuminate\Translation\Translator $instance */
  5752. return $instance->getFallback();
  5753. }
  5754. /**
  5755. * Set the fallback locale being used.
  5756. *
  5757. * @param string $fallback
  5758. * @return void
  5759. * @static
  5760. */
  5761. public static function setFallback($fallback)
  5762. {
  5763. /** @var \Illuminate\Translation\Translator $instance */
  5764. $instance->setFallback($fallback);
  5765. }
  5766. /**
  5767. * Set the loaded translation groups.
  5768. *
  5769. * @param array $loaded
  5770. * @return void
  5771. * @static
  5772. */
  5773. public static function setLoaded($loaded)
  5774. {
  5775. /** @var \Illuminate\Translation\Translator $instance */
  5776. $instance->setLoaded($loaded);
  5777. }
  5778. /**
  5779. * Set the parsed value of a key.
  5780. *
  5781. * @param string $key
  5782. * @param array $parsed
  5783. * @return void
  5784. * @static
  5785. */
  5786. public static function setParsedKey($key, $parsed)
  5787. {
  5788. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  5789. /** @var \Illuminate\Translation\Translator $instance */
  5790. $instance->setParsedKey($key, $parsed);
  5791. }
  5792. /**
  5793. * Register a custom macro.
  5794. *
  5795. * @param string $name
  5796. * @param object|callable $macro
  5797. * @return void
  5798. * @static
  5799. */
  5800. public static function macro($name, $macro)
  5801. {
  5802. \Illuminate\Translation\Translator::macro($name, $macro);
  5803. }
  5804. /**
  5805. * Mix another object into the class.
  5806. *
  5807. * @param object $mixin
  5808. * @return void
  5809. * @throws \ReflectionException
  5810. * @static
  5811. */
  5812. public static function mixin($mixin)
  5813. {
  5814. \Illuminate\Translation\Translator::mixin($mixin);
  5815. }
  5816. /**
  5817. * Checks if macro is registered.
  5818. *
  5819. * @param string $name
  5820. * @return bool
  5821. * @static
  5822. */
  5823. public static function hasMacro($name)
  5824. {
  5825. return \Illuminate\Translation\Translator::hasMacro($name);
  5826. }
  5827. }
  5828. /**
  5829. *
  5830. *
  5831. * @see \Illuminate\Log\Logger
  5832. */
  5833. class Log {
  5834. /**
  5835. * Adds a log record at the DEBUG level.
  5836. *
  5837. * @param string $message The log message
  5838. * @param array $context The log context
  5839. * @return bool Whether the record has been processed
  5840. * @static
  5841. */
  5842. public static function debug($message, $context = array())
  5843. {
  5844. /** @var \Monolog\Logger $instance */
  5845. return $instance->addDebug($message, $context);
  5846. }
  5847. /**
  5848. * Adds a log record at the INFO level.
  5849. *
  5850. * @param string $message The log message
  5851. * @param array $context The log context
  5852. * @return bool Whether the record has been processed
  5853. * @static
  5854. */
  5855. public static function info($message, $context = array())
  5856. {
  5857. /** @var \Monolog\Logger $instance */
  5858. return $instance->addInfo($message, $context);
  5859. }
  5860. /**
  5861. * Adds a log record at the NOTICE level.
  5862. *
  5863. * @param string $message The log message
  5864. * @param array $context The log context
  5865. * @return bool Whether the record has been processed
  5866. * @static
  5867. */
  5868. public static function notice($message, $context = array())
  5869. {
  5870. /** @var \Monolog\Logger $instance */
  5871. return $instance->addNotice($message, $context);
  5872. }
  5873. /**
  5874. * Adds a log record at the WARNING level.
  5875. *
  5876. * @param string $message The log message
  5877. * @param array $context The log context
  5878. * @return bool Whether the record has been processed
  5879. * @static
  5880. */
  5881. public static function warning($message, $context = array())
  5882. {
  5883. /** @var \Monolog\Logger $instance */
  5884. return $instance->addWarning($message, $context);
  5885. }
  5886. /**
  5887. * Adds a log record at the ERROR level.
  5888. *
  5889. * @param string $message The log message
  5890. * @param array $context The log context
  5891. * @return bool Whether the record has been processed
  5892. * @static
  5893. */
  5894. public static function error($message, $context = array())
  5895. {
  5896. /** @var \Monolog\Logger $instance */
  5897. return $instance->addError($message, $context);
  5898. }
  5899. /**
  5900. * Adds a log record at the CRITICAL level.
  5901. *
  5902. * @param string $message The log message
  5903. * @param array $context The log context
  5904. * @return bool Whether the record has been processed
  5905. * @static
  5906. */
  5907. public static function critical($message, $context = array())
  5908. {
  5909. /** @var \Monolog\Logger $instance */
  5910. return $instance->addCritical($message, $context);
  5911. }
  5912. /**
  5913. * Adds a log record at the ALERT level.
  5914. *
  5915. * @param string $message The log message
  5916. * @param array $context The log context
  5917. * @return bool Whether the record has been processed
  5918. * @static
  5919. */
  5920. public static function alert($message, $context = array())
  5921. {
  5922. /** @var \Monolog\Logger $instance */
  5923. return $instance->addAlert($message, $context);
  5924. }
  5925. /**
  5926. * Adds a log record at the EMERGENCY level.
  5927. *
  5928. * @param string $message The log message
  5929. * @param array $context The log context
  5930. * @return bool Whether the record has been processed
  5931. * @static
  5932. */
  5933. public static function emergency($message, $context = array())
  5934. {
  5935. /** @var \Monolog\Logger $instance */
  5936. return $instance->addEmergency($message, $context);
  5937. }
  5938. /**
  5939. * Create a new, on-demand aggregate logger instance.
  5940. *
  5941. * @param array $channels
  5942. * @param string|null $channel
  5943. * @return \Psr\Log\LoggerInterface
  5944. * @static
  5945. */
  5946. public static function stack($channels, $channel = null)
  5947. {
  5948. /** @var \Illuminate\Log\LogManager $instance */
  5949. return $instance->stack($channels, $channel);
  5950. }
  5951. /**
  5952. * Get a log channel instance.
  5953. *
  5954. * @param string|null $channel
  5955. * @return mixed
  5956. * @static
  5957. */
  5958. public static function channel($channel = null)
  5959. {
  5960. /** @var \Illuminate\Log\LogManager $instance */
  5961. return $instance->channel($channel);
  5962. }
  5963. /**
  5964. * Get a log driver instance.
  5965. *
  5966. * @param string|null $driver
  5967. * @return mixed
  5968. * @static
  5969. */
  5970. public static function driver($driver = null)
  5971. {
  5972. /** @var \Illuminate\Log\LogManager $instance */
  5973. return $instance->driver($driver);
  5974. }
  5975. /**
  5976. * Get the default log driver name.
  5977. *
  5978. * @return string
  5979. * @static
  5980. */
  5981. public static function getDefaultDriver()
  5982. {
  5983. /** @var \Illuminate\Log\LogManager $instance */
  5984. return $instance->getDefaultDriver();
  5985. }
  5986. /**
  5987. * Set the default log driver name.
  5988. *
  5989. * @param string $name
  5990. * @return void
  5991. * @static
  5992. */
  5993. public static function setDefaultDriver($name)
  5994. {
  5995. /** @var \Illuminate\Log\LogManager $instance */
  5996. $instance->setDefaultDriver($name);
  5997. }
  5998. /**
  5999. * Register a custom driver creator Closure.
  6000. *
  6001. * @param string $driver
  6002. * @param \Closure $callback
  6003. * @return \Illuminate\Log\LogManager
  6004. * @static
  6005. */
  6006. public static function extend($driver, $callback)
  6007. {
  6008. /** @var \Illuminate\Log\LogManager $instance */
  6009. return $instance->extend($driver, $callback);
  6010. }
  6011. /**
  6012. * Logs with an arbitrary level.
  6013. *
  6014. * @param mixed $level
  6015. * @param string $message
  6016. * @param array $context
  6017. * @return void
  6018. * @static
  6019. */
  6020. public static function log($level, $message, $context = array())
  6021. {
  6022. /** @var \Illuminate\Log\LogManager $instance */
  6023. $instance->log($level, $message, $context);
  6024. }
  6025. }
  6026. /**
  6027. *
  6028. *
  6029. * @see \Illuminate\Mail\Mailer
  6030. */
  6031. class Mail {
  6032. /**
  6033. * Set the global from address and name.
  6034. *
  6035. * @param string $address
  6036. * @param string|null $name
  6037. * @return void
  6038. * @static
  6039. */
  6040. public static function alwaysFrom($address, $name = null)
  6041. {
  6042. /** @var \Illuminate\Mail\Mailer $instance */
  6043. $instance->alwaysFrom($address, $name);
  6044. }
  6045. /**
  6046. * Set the global reply-to address and name.
  6047. *
  6048. * @param string $address
  6049. * @param string|null $name
  6050. * @return void
  6051. * @static
  6052. */
  6053. public static function alwaysReplyTo($address, $name = null)
  6054. {
  6055. /** @var \Illuminate\Mail\Mailer $instance */
  6056. $instance->alwaysReplyTo($address, $name);
  6057. }
  6058. /**
  6059. * Set the global to address and name.
  6060. *
  6061. * @param string $address
  6062. * @param string|null $name
  6063. * @return void
  6064. * @static
  6065. */
  6066. public static function alwaysTo($address, $name = null)
  6067. {
  6068. /** @var \Illuminate\Mail\Mailer $instance */
  6069. $instance->alwaysTo($address, $name);
  6070. }
  6071. /**
  6072. * Begin the process of mailing a mailable class instance.
  6073. *
  6074. * @param mixed $users
  6075. * @return \Illuminate\Mail\PendingMail
  6076. * @static
  6077. */
  6078. public static function to($users)
  6079. {
  6080. /** @var \Illuminate\Mail\Mailer $instance */
  6081. return $instance->to($users);
  6082. }
  6083. /**
  6084. * Begin the process of mailing a mailable class instance.
  6085. *
  6086. * @param mixed $users
  6087. * @return \Illuminate\Mail\PendingMail
  6088. * @static
  6089. */
  6090. public static function bcc($users)
  6091. {
  6092. /** @var \Illuminate\Mail\Mailer $instance */
  6093. return $instance->bcc($users);
  6094. }
  6095. /**
  6096. * Send a new message with only an HTML part.
  6097. *
  6098. * @param string $html
  6099. * @param mixed $callback
  6100. * @return void
  6101. * @static
  6102. */
  6103. public static function html($html, $callback)
  6104. {
  6105. /** @var \Illuminate\Mail\Mailer $instance */
  6106. $instance->html($html, $callback);
  6107. }
  6108. /**
  6109. * Send a new message when only a raw text part.
  6110. *
  6111. * @param string $text
  6112. * @param mixed $callback
  6113. * @return void
  6114. * @static
  6115. */
  6116. public static function raw($text, $callback)
  6117. {
  6118. /** @var \Illuminate\Mail\Mailer $instance */
  6119. $instance->raw($text, $callback);
  6120. }
  6121. /**
  6122. * Send a new message when only a plain part.
  6123. *
  6124. * @param string $view
  6125. * @param array $data
  6126. * @param mixed $callback
  6127. * @return void
  6128. * @static
  6129. */
  6130. public static function plain($view, $data, $callback)
  6131. {
  6132. /** @var \Illuminate\Mail\Mailer $instance */
  6133. $instance->plain($view, $data, $callback);
  6134. }
  6135. /**
  6136. * Render the given message as a view.
  6137. *
  6138. * @param string|array $view
  6139. * @param array $data
  6140. * @return string
  6141. * @static
  6142. */
  6143. public static function render($view, $data = array())
  6144. {
  6145. /** @var \Illuminate\Mail\Mailer $instance */
  6146. return $instance->render($view, $data);
  6147. }
  6148. /**
  6149. * Send a new message using a view.
  6150. *
  6151. * @param string|array|\Illuminate\Mail\MailableContract $view
  6152. * @param array $data
  6153. * @param \Closure|string $callback
  6154. * @return void
  6155. * @static
  6156. */
  6157. public static function send($view, $data = array(), $callback = null)
  6158. {
  6159. /** @var \Illuminate\Mail\Mailer $instance */
  6160. $instance->send($view, $data, $callback);
  6161. }
  6162. /**
  6163. * Queue a new e-mail message for sending.
  6164. *
  6165. * @param string|array|\Illuminate\Mail\MailableContract $view
  6166. * @param string|null $queue
  6167. * @return mixed
  6168. * @static
  6169. */
  6170. public static function queue($view, $queue = null)
  6171. {
  6172. /** @var \Illuminate\Mail\Mailer $instance */
  6173. return $instance->queue($view, $queue);
  6174. }
  6175. /**
  6176. * Queue a new e-mail message for sending on the given queue.
  6177. *
  6178. * @param string $queue
  6179. * @param string|array $view
  6180. * @return mixed
  6181. * @static
  6182. */
  6183. public static function onQueue($queue, $view)
  6184. {
  6185. /** @var \Illuminate\Mail\Mailer $instance */
  6186. return $instance->onQueue($queue, $view);
  6187. }
  6188. /**
  6189. * Queue a new e-mail message for sending on the given queue.
  6190. *
  6191. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  6192. *
  6193. * @param string $queue
  6194. * @param string|array $view
  6195. * @return mixed
  6196. * @static
  6197. */
  6198. public static function queueOn($queue, $view)
  6199. {
  6200. /** @var \Illuminate\Mail\Mailer $instance */
  6201. return $instance->queueOn($queue, $view);
  6202. }
  6203. /**
  6204. * Queue a new e-mail message for sending after (n) seconds.
  6205. *
  6206. * @param \DateTimeInterface|\DateInterval|int $delay
  6207. * @param string|array|\Illuminate\Mail\MailableContract $view
  6208. * @param string|null $queue
  6209. * @return mixed
  6210. * @static
  6211. */
  6212. public static function later($delay, $view, $queue = null)
  6213. {
  6214. /** @var \Illuminate\Mail\Mailer $instance */
  6215. return $instance->later($delay, $view, $queue);
  6216. }
  6217. /**
  6218. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  6219. *
  6220. * @param string $queue
  6221. * @param \DateTimeInterface|\DateInterval|int $delay
  6222. * @param string|array $view
  6223. * @return mixed
  6224. * @static
  6225. */
  6226. public static function laterOn($queue, $delay, $view)
  6227. {
  6228. /** @var \Illuminate\Mail\Mailer $instance */
  6229. return $instance->laterOn($queue, $delay, $view);
  6230. }
  6231. /**
  6232. * Get the view factory instance.
  6233. *
  6234. * @return \Illuminate\Contracts\View\Factory
  6235. * @static
  6236. */
  6237. public static function getViewFactory()
  6238. {
  6239. /** @var \Illuminate\Mail\Mailer $instance */
  6240. return $instance->getViewFactory();
  6241. }
  6242. /**
  6243. * Get the Swift Mailer instance.
  6244. *
  6245. * @return \Swift_Mailer
  6246. * @static
  6247. */
  6248. public static function getSwiftMailer()
  6249. {
  6250. /** @var \Illuminate\Mail\Mailer $instance */
  6251. return $instance->getSwiftMailer();
  6252. }
  6253. /**
  6254. * Get the array of failed recipients.
  6255. *
  6256. * @return array
  6257. * @static
  6258. */
  6259. public static function failures()
  6260. {
  6261. /** @var \Illuminate\Mail\Mailer $instance */
  6262. return $instance->failures();
  6263. }
  6264. /**
  6265. * Set the Swift Mailer instance.
  6266. *
  6267. * @param \Swift_Mailer $swift
  6268. * @return void
  6269. * @static
  6270. */
  6271. public static function setSwiftMailer($swift)
  6272. {
  6273. /** @var \Illuminate\Mail\Mailer $instance */
  6274. $instance->setSwiftMailer($swift);
  6275. }
  6276. /**
  6277. * Set the queue manager instance.
  6278. *
  6279. * @param \Illuminate\Contracts\Queue\Factory $queue
  6280. * @return \Illuminate\Mail\Mailer
  6281. * @static
  6282. */
  6283. public static function setQueue($queue)
  6284. {
  6285. /** @var \Illuminate\Mail\Mailer $instance */
  6286. return $instance->setQueue($queue);
  6287. }
  6288. /**
  6289. * Register a custom macro.
  6290. *
  6291. * @param string $name
  6292. * @param object|callable $macro
  6293. * @return void
  6294. * @static
  6295. */
  6296. public static function macro($name, $macro)
  6297. {
  6298. \Illuminate\Mail\Mailer::macro($name, $macro);
  6299. }
  6300. /**
  6301. * Mix another object into the class.
  6302. *
  6303. * @param object $mixin
  6304. * @return void
  6305. * @throws \ReflectionException
  6306. * @static
  6307. */
  6308. public static function mixin($mixin)
  6309. {
  6310. \Illuminate\Mail\Mailer::mixin($mixin);
  6311. }
  6312. /**
  6313. * Checks if macro is registered.
  6314. *
  6315. * @param string $name
  6316. * @return bool
  6317. * @static
  6318. */
  6319. public static function hasMacro($name)
  6320. {
  6321. return \Illuminate\Mail\Mailer::hasMacro($name);
  6322. }
  6323. /**
  6324. * Assert if a mailable was sent 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 assertSent($mailable, $callback = null)
  6332. {
  6333. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6334. $instance->assertSent($mailable, $callback);
  6335. }
  6336. /**
  6337. * Determine if a mailable was not sent 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 assertNotSent($mailable, $callback = null)
  6345. {
  6346. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6347. $instance->assertNotSent($mailable, $callback);
  6348. }
  6349. /**
  6350. * Assert that no mailables were sent.
  6351. *
  6352. * @return void
  6353. * @static
  6354. */
  6355. public static function assertNothingSent()
  6356. {
  6357. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6358. $instance->assertNothingSent();
  6359. }
  6360. /**
  6361. * Assert if a mailable was queued based on a truth-test callback.
  6362. *
  6363. * @param string $mailable
  6364. * @param callable|int|null $callback
  6365. * @return void
  6366. * @static
  6367. */
  6368. public static function assertQueued($mailable, $callback = null)
  6369. {
  6370. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6371. $instance->assertQueued($mailable, $callback);
  6372. }
  6373. /**
  6374. * Determine if a mailable was not queued based on a truth-test callback.
  6375. *
  6376. * @param string $mailable
  6377. * @param callable|null $callback
  6378. * @return void
  6379. * @static
  6380. */
  6381. public static function assertNotQueued($mailable, $callback = null)
  6382. {
  6383. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6384. $instance->assertNotQueued($mailable, $callback);
  6385. }
  6386. /**
  6387. * Assert that no mailables were queued.
  6388. *
  6389. * @return void
  6390. * @static
  6391. */
  6392. public static function assertNothingQueued()
  6393. {
  6394. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6395. $instance->assertNothingQueued();
  6396. }
  6397. /**
  6398. * Get all of the mailables matching a truth-test callback.
  6399. *
  6400. * @param string $mailable
  6401. * @param callable|null $callback
  6402. * @return \Illuminate\Support\Collection
  6403. * @static
  6404. */
  6405. public static function sent($mailable, $callback = null)
  6406. {
  6407. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6408. return $instance->sent($mailable, $callback);
  6409. }
  6410. /**
  6411. * Determine if the given mailable has been sent.
  6412. *
  6413. * @param string $mailable
  6414. * @return bool
  6415. * @static
  6416. */
  6417. public static function hasSent($mailable)
  6418. {
  6419. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6420. return $instance->hasSent($mailable);
  6421. }
  6422. /**
  6423. * Get all of the queued mailables matching a truth-test callback.
  6424. *
  6425. * @param string $mailable
  6426. * @param callable|null $callback
  6427. * @return \Illuminate\Support\Collection
  6428. * @static
  6429. */
  6430. public static function queued($mailable, $callback = null)
  6431. {
  6432. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6433. return $instance->queued($mailable, $callback);
  6434. }
  6435. /**
  6436. * Determine if the given mailable has been queued.
  6437. *
  6438. * @param string $mailable
  6439. * @return bool
  6440. * @static
  6441. */
  6442. public static function hasQueued($mailable)
  6443. {
  6444. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6445. return $instance->hasQueued($mailable);
  6446. }
  6447. }
  6448. /**
  6449. *
  6450. *
  6451. * @see \Illuminate\Notifications\ChannelManager
  6452. */
  6453. class Notification {
  6454. /**
  6455. * Send the given notification to the given notifiable entities.
  6456. *
  6457. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6458. * @param mixed $notification
  6459. * @return void
  6460. * @static
  6461. */
  6462. public static function send($notifiables, $notification)
  6463. {
  6464. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6465. $instance->send($notifiables, $notification);
  6466. }
  6467. /**
  6468. * Send the given notification immediately.
  6469. *
  6470. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6471. * @param mixed $notification
  6472. * @param array|null $channels
  6473. * @return void
  6474. * @static
  6475. */
  6476. public static function sendNow($notifiables, $notification, $channels = null)
  6477. {
  6478. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6479. $instance->sendNow($notifiables, $notification, $channels);
  6480. }
  6481. /**
  6482. * Get a channel instance.
  6483. *
  6484. * @param string|null $name
  6485. * @return mixed
  6486. * @static
  6487. */
  6488. public static function channel($name = null)
  6489. {
  6490. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6491. return $instance->channel($name);
  6492. }
  6493. /**
  6494. * Get the default channel driver name.
  6495. *
  6496. * @return string
  6497. * @static
  6498. */
  6499. public static function getDefaultDriver()
  6500. {
  6501. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6502. return $instance->getDefaultDriver();
  6503. }
  6504. /**
  6505. * Get the default channel driver name.
  6506. *
  6507. * @return string
  6508. * @static
  6509. */
  6510. public static function deliversVia()
  6511. {
  6512. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6513. return $instance->deliversVia();
  6514. }
  6515. /**
  6516. * Set the default channel driver name.
  6517. *
  6518. * @param string $channel
  6519. * @return void
  6520. * @static
  6521. */
  6522. public static function deliverVia($channel)
  6523. {
  6524. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6525. $instance->deliverVia($channel);
  6526. }
  6527. /**
  6528. * Get a driver instance.
  6529. *
  6530. * @param string $driver
  6531. * @return mixed
  6532. * @throws \InvalidArgumentException
  6533. * @static
  6534. */
  6535. public static function driver($driver = null)
  6536. {
  6537. //Method inherited from \Illuminate\Support\Manager
  6538. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6539. return $instance->driver($driver);
  6540. }
  6541. /**
  6542. * Register a custom driver creator Closure.
  6543. *
  6544. * @param string $driver
  6545. * @param \Closure $callback
  6546. * @return \Illuminate\Notifications\ChannelManager
  6547. * @static
  6548. */
  6549. public static function extend($driver, $callback)
  6550. {
  6551. //Method inherited from \Illuminate\Support\Manager
  6552. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6553. return $instance->extend($driver, $callback);
  6554. }
  6555. /**
  6556. * Get all of the created "drivers".
  6557. *
  6558. * @return array
  6559. * @static
  6560. */
  6561. public static function getDrivers()
  6562. {
  6563. //Method inherited from \Illuminate\Support\Manager
  6564. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6565. return $instance->getDrivers();
  6566. }
  6567. /**
  6568. * Assert if a notification was sent based on a truth-test callback.
  6569. *
  6570. * @param mixed $notifiable
  6571. * @param string $notification
  6572. * @param callable|null $callback
  6573. * @return void
  6574. * @static
  6575. */
  6576. public static function assertSentTo($notifiable, $notification, $callback = null)
  6577. {
  6578. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6579. $instance->assertSentTo($notifiable, $notification, $callback);
  6580. }
  6581. /**
  6582. * Assert if a notification was sent a number of times.
  6583. *
  6584. * @param mixed $notifiable
  6585. * @param string $notification
  6586. * @param int $times
  6587. * @return void
  6588. * @static
  6589. */
  6590. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  6591. {
  6592. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6593. $instance->assertSentToTimes($notifiable, $notification, $times);
  6594. }
  6595. /**
  6596. * Determine if a notification was sent based on a truth-test callback.
  6597. *
  6598. * @param mixed $notifiable
  6599. * @param string $notification
  6600. * @param callable|null $callback
  6601. * @return void
  6602. * @static
  6603. */
  6604. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  6605. {
  6606. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6607. $instance->assertNotSentTo($notifiable, $notification, $callback);
  6608. }
  6609. /**
  6610. * Assert that no notifications were sent.
  6611. *
  6612. * @return void
  6613. * @static
  6614. */
  6615. public static function assertNothingSent()
  6616. {
  6617. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6618. $instance->assertNothingSent();
  6619. }
  6620. /**
  6621. * Assert the total amount of times a notification was sent.
  6622. *
  6623. * @param int $expectedCount
  6624. * @param string $notification
  6625. * @return void
  6626. * @static
  6627. */
  6628. public static function assertTimesSent($expectedCount, $notification)
  6629. {
  6630. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6631. $instance->assertTimesSent($expectedCount, $notification);
  6632. }
  6633. /**
  6634. * Get all of the notifications matching a truth-test callback.
  6635. *
  6636. * @param mixed $notifiable
  6637. * @param string $notification
  6638. * @param callable|null $callback
  6639. * @return \Illuminate\Support\Collection
  6640. * @static
  6641. */
  6642. public static function sent($notifiable, $notification, $callback = null)
  6643. {
  6644. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6645. return $instance->sent($notifiable, $notification, $callback);
  6646. }
  6647. /**
  6648. * Determine if there are more notifications left to inspect.
  6649. *
  6650. * @param mixed $notifiable
  6651. * @param string $notification
  6652. * @return bool
  6653. * @static
  6654. */
  6655. public static function hasSent($notifiable, $notification)
  6656. {
  6657. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6658. return $instance->hasSent($notifiable, $notification);
  6659. }
  6660. }
  6661. /**
  6662. *
  6663. *
  6664. * @method static string sendResetLink(array $credentials)
  6665. * @method static mixed reset(array $credentials, \Closure $callback)
  6666. * @method static void validator(\Closure $callback)
  6667. * @method static bool validateNewPassword(array $credentials)
  6668. * @see \Illuminate\Auth\Passwords\PasswordBroker
  6669. */
  6670. class Password {
  6671. /**
  6672. * Attempt to get the broker from the local cache.
  6673. *
  6674. * @param string|null $name
  6675. * @return \Illuminate\Contracts\Auth\PasswordBroker
  6676. * @static
  6677. */
  6678. public static function broker($name = null)
  6679. {
  6680. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6681. return $instance->broker($name);
  6682. }
  6683. /**
  6684. * Get the default password broker name.
  6685. *
  6686. * @return string
  6687. * @static
  6688. */
  6689. public static function getDefaultDriver()
  6690. {
  6691. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6692. return $instance->getDefaultDriver();
  6693. }
  6694. /**
  6695. * Set the default password broker name.
  6696. *
  6697. * @param string $name
  6698. * @return void
  6699. * @static
  6700. */
  6701. public static function setDefaultDriver($name)
  6702. {
  6703. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6704. $instance->setDefaultDriver($name);
  6705. }
  6706. }
  6707. /**
  6708. *
  6709. *
  6710. * @see \Illuminate\Queue\QueueManager
  6711. * @see \Illuminate\Queue\Queue
  6712. */
  6713. class Queue {
  6714. /**
  6715. * Register an event listener for the before job event.
  6716. *
  6717. * @param mixed $callback
  6718. * @return void
  6719. * @static
  6720. */
  6721. public static function before($callback)
  6722. {
  6723. /** @var \Illuminate\Queue\QueueManager $instance */
  6724. $instance->before($callback);
  6725. }
  6726. /**
  6727. * Register an event listener for the after job event.
  6728. *
  6729. * @param mixed $callback
  6730. * @return void
  6731. * @static
  6732. */
  6733. public static function after($callback)
  6734. {
  6735. /** @var \Illuminate\Queue\QueueManager $instance */
  6736. $instance->after($callback);
  6737. }
  6738. /**
  6739. * Register an event listener for the exception occurred job event.
  6740. *
  6741. * @param mixed $callback
  6742. * @return void
  6743. * @static
  6744. */
  6745. public static function exceptionOccurred($callback)
  6746. {
  6747. /** @var \Illuminate\Queue\QueueManager $instance */
  6748. $instance->exceptionOccurred($callback);
  6749. }
  6750. /**
  6751. * Register an event listener for the daemon queue loop.
  6752. *
  6753. * @param mixed $callback
  6754. * @return void
  6755. * @static
  6756. */
  6757. public static function looping($callback)
  6758. {
  6759. /** @var \Illuminate\Queue\QueueManager $instance */
  6760. $instance->looping($callback);
  6761. }
  6762. /**
  6763. * Register an event listener for the failed job event.
  6764. *
  6765. * @param mixed $callback
  6766. * @return void
  6767. * @static
  6768. */
  6769. public static function failing($callback)
  6770. {
  6771. /** @var \Illuminate\Queue\QueueManager $instance */
  6772. $instance->failing($callback);
  6773. }
  6774. /**
  6775. * Register an event listener for the daemon queue stopping.
  6776. *
  6777. * @param mixed $callback
  6778. * @return void
  6779. * @static
  6780. */
  6781. public static function stopping($callback)
  6782. {
  6783. /** @var \Illuminate\Queue\QueueManager $instance */
  6784. $instance->stopping($callback);
  6785. }
  6786. /**
  6787. * Determine if the driver is connected.
  6788. *
  6789. * @param string $name
  6790. * @return bool
  6791. * @static
  6792. */
  6793. public static function connected($name = null)
  6794. {
  6795. /** @var \Illuminate\Queue\QueueManager $instance */
  6796. return $instance->connected($name);
  6797. }
  6798. /**
  6799. * Resolve a queue connection instance.
  6800. *
  6801. * @param string $name
  6802. * @return \Illuminate\Contracts\Queue\Queue
  6803. * @static
  6804. */
  6805. public static function connection($name = null)
  6806. {
  6807. /** @var \Illuminate\Queue\QueueManager $instance */
  6808. return $instance->connection($name);
  6809. }
  6810. /**
  6811. * Add a queue connection resolver.
  6812. *
  6813. * @param string $driver
  6814. * @param \Closure $resolver
  6815. * @return void
  6816. * @static
  6817. */
  6818. public static function extend($driver, $resolver)
  6819. {
  6820. /** @var \Illuminate\Queue\QueueManager $instance */
  6821. $instance->extend($driver, $resolver);
  6822. }
  6823. /**
  6824. * Add a queue connection resolver.
  6825. *
  6826. * @param string $driver
  6827. * @param \Closure $resolver
  6828. * @return void
  6829. * @static
  6830. */
  6831. public static function addConnector($driver, $resolver)
  6832. {
  6833. /** @var \Illuminate\Queue\QueueManager $instance */
  6834. $instance->addConnector($driver, $resolver);
  6835. }
  6836. /**
  6837. * Get the name of the default queue connection.
  6838. *
  6839. * @return string
  6840. * @static
  6841. */
  6842. public static function getDefaultDriver()
  6843. {
  6844. /** @var \Illuminate\Queue\QueueManager $instance */
  6845. return $instance->getDefaultDriver();
  6846. }
  6847. /**
  6848. * Set the name of the default queue connection.
  6849. *
  6850. * @param string $name
  6851. * @return void
  6852. * @static
  6853. */
  6854. public static function setDefaultDriver($name)
  6855. {
  6856. /** @var \Illuminate\Queue\QueueManager $instance */
  6857. $instance->setDefaultDriver($name);
  6858. }
  6859. /**
  6860. * Get the full name for the given connection.
  6861. *
  6862. * @param string $connection
  6863. * @return string
  6864. * @static
  6865. */
  6866. public static function getName($connection = null)
  6867. {
  6868. /** @var \Illuminate\Queue\QueueManager $instance */
  6869. return $instance->getName($connection);
  6870. }
  6871. /**
  6872. * Determine if the application is in maintenance mode.
  6873. *
  6874. * @return bool
  6875. * @static
  6876. */
  6877. public static function isDownForMaintenance()
  6878. {
  6879. /** @var \Illuminate\Queue\QueueManager $instance */
  6880. return $instance->isDownForMaintenance();
  6881. }
  6882. /**
  6883. * Assert if a job was pushed based on a truth-test callback.
  6884. *
  6885. * @param string $job
  6886. * @param callable|int|null $callback
  6887. * @return void
  6888. * @static
  6889. */
  6890. public static function assertPushed($job, $callback = null)
  6891. {
  6892. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6893. $instance->assertPushed($job, $callback);
  6894. }
  6895. /**
  6896. * Assert if a job was pushed based on a truth-test callback.
  6897. *
  6898. * @param string $queue
  6899. * @param string $job
  6900. * @param callable|null $callback
  6901. * @return void
  6902. * @static
  6903. */
  6904. public static function assertPushedOn($queue, $job, $callback = null)
  6905. {
  6906. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6907. $instance->assertPushedOn($queue, $job, $callback);
  6908. }
  6909. /**
  6910. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  6911. *
  6912. * @param string $job
  6913. * @param array $expectedChain
  6914. * @param callable|null $callback
  6915. * @return void
  6916. * @static
  6917. */
  6918. public static function assertPushedWithChain($job, $expectedChain = array(), $callback = null)
  6919. {
  6920. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6921. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  6922. }
  6923. /**
  6924. * Determine if a job was pushed based on a truth-test callback.
  6925. *
  6926. * @param string $job
  6927. * @param callable|null $callback
  6928. * @return void
  6929. * @static
  6930. */
  6931. public static function assertNotPushed($job, $callback = null)
  6932. {
  6933. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6934. $instance->assertNotPushed($job, $callback);
  6935. }
  6936. /**
  6937. * Assert that no jobs were pushed.
  6938. *
  6939. * @return void
  6940. * @static
  6941. */
  6942. public static function assertNothingPushed()
  6943. {
  6944. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6945. $instance->assertNothingPushed();
  6946. }
  6947. /**
  6948. * Get all of the jobs matching a truth-test callback.
  6949. *
  6950. * @param string $job
  6951. * @param callable|null $callback
  6952. * @return \Illuminate\Support\Collection
  6953. * @static
  6954. */
  6955. public static function pushed($job, $callback = null)
  6956. {
  6957. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6958. return $instance->pushed($job, $callback);
  6959. }
  6960. /**
  6961. * Determine if there are any stored jobs for a given class.
  6962. *
  6963. * @param string $job
  6964. * @return bool
  6965. * @static
  6966. */
  6967. public static function hasPushed($job)
  6968. {
  6969. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6970. return $instance->hasPushed($job);
  6971. }
  6972. /**
  6973. * Get the size of the queue.
  6974. *
  6975. * @param string $queue
  6976. * @return int
  6977. * @static
  6978. */
  6979. public static function size($queue = null)
  6980. {
  6981. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6982. return $instance->size($queue);
  6983. }
  6984. /**
  6985. * Push a new job onto the queue.
  6986. *
  6987. * @param string $job
  6988. * @param mixed $data
  6989. * @param string $queue
  6990. * @return mixed
  6991. * @static
  6992. */
  6993. public static function push($job, $data = '', $queue = null)
  6994. {
  6995. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6996. return $instance->push($job, $data, $queue);
  6997. }
  6998. /**
  6999. * Push a raw payload onto the queue.
  7000. *
  7001. * @param string $payload
  7002. * @param string $queue
  7003. * @param array $options
  7004. * @return mixed
  7005. * @static
  7006. */
  7007. public static function pushRaw($payload, $queue = null, $options = array())
  7008. {
  7009. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7010. return $instance->pushRaw($payload, $queue, $options);
  7011. }
  7012. /**
  7013. * Push a new job onto the queue after a delay.
  7014. *
  7015. * @param \DateTime|int $delay
  7016. * @param string $job
  7017. * @param mixed $data
  7018. * @param string $queue
  7019. * @return mixed
  7020. * @static
  7021. */
  7022. public static function later($delay, $job, $data = '', $queue = null)
  7023. {
  7024. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7025. return $instance->later($delay, $job, $data, $queue);
  7026. }
  7027. /**
  7028. * Push a new job onto the queue.
  7029. *
  7030. * @param string $queue
  7031. * @param string $job
  7032. * @param mixed $data
  7033. * @return mixed
  7034. * @static
  7035. */
  7036. public static function pushOn($queue, $job, $data = '')
  7037. {
  7038. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7039. return $instance->pushOn($queue, $job, $data);
  7040. }
  7041. /**
  7042. * Push a new job onto the queue after a delay.
  7043. *
  7044. * @param string $queue
  7045. * @param \DateTime|int $delay
  7046. * @param string $job
  7047. * @param mixed $data
  7048. * @return mixed
  7049. * @static
  7050. */
  7051. public static function laterOn($queue, $delay, $job, $data = '')
  7052. {
  7053. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7054. return $instance->laterOn($queue, $delay, $job, $data);
  7055. }
  7056. /**
  7057. * Pop the next job off of the queue.
  7058. *
  7059. * @param string $queue
  7060. * @return \Illuminate\Contracts\Queue\Job|null
  7061. * @static
  7062. */
  7063. public static function pop($queue = null)
  7064. {
  7065. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7066. return $instance->pop($queue);
  7067. }
  7068. /**
  7069. * Push an array of jobs onto the queue.
  7070. *
  7071. * @param array $jobs
  7072. * @param mixed $data
  7073. * @param string $queue
  7074. * @return mixed
  7075. * @static
  7076. */
  7077. public static function bulk($jobs, $data = '', $queue = null)
  7078. {
  7079. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7080. return $instance->bulk($jobs, $data, $queue);
  7081. }
  7082. /**
  7083. * Get the connection name for the queue.
  7084. *
  7085. * @return string
  7086. * @static
  7087. */
  7088. public static function getConnectionName()
  7089. {
  7090. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7091. return $instance->getConnectionName();
  7092. }
  7093. /**
  7094. * Set the connection name for the queue.
  7095. *
  7096. * @param string $name
  7097. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  7098. * @static
  7099. */
  7100. public static function setConnectionName($name)
  7101. {
  7102. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7103. return $instance->setConnectionName($name);
  7104. }
  7105. /**
  7106. * Migrate the delayed jobs that are ready to the regular queue.
  7107. *
  7108. * @param string $from
  7109. * @param string $to
  7110. * @return array
  7111. * @static
  7112. */
  7113. public static function migrateExpiredJobs($from, $to)
  7114. {
  7115. /** @var \Illuminate\Queue\RedisQueue $instance */
  7116. return $instance->migrateExpiredJobs($from, $to);
  7117. }
  7118. /**
  7119. * Delete a reserved job from the queue.
  7120. *
  7121. * @param string $queue
  7122. * @param \Illuminate\Queue\Jobs\RedisJob $job
  7123. * @return void
  7124. * @static
  7125. */
  7126. public static function deleteReserved($queue, $job)
  7127. {
  7128. /** @var \Illuminate\Queue\RedisQueue $instance */
  7129. $instance->deleteReserved($queue, $job);
  7130. }
  7131. /**
  7132. * Delete a reserved job from the reserved queue and release it.
  7133. *
  7134. * @param string $queue
  7135. * @param \Illuminate\Queue\Jobs\RedisJob $job
  7136. * @param int $delay
  7137. * @return void
  7138. * @static
  7139. */
  7140. public static function deleteAndRelease($queue, $job, $delay)
  7141. {
  7142. /** @var \Illuminate\Queue\RedisQueue $instance */
  7143. $instance->deleteAndRelease($queue, $job, $delay);
  7144. }
  7145. /**
  7146. * Get the queue or return the default.
  7147. *
  7148. * @param string|null $queue
  7149. * @return string
  7150. * @static
  7151. */
  7152. public static function getQueue($queue)
  7153. {
  7154. /** @var \Illuminate\Queue\RedisQueue $instance */
  7155. return $instance->getQueue($queue);
  7156. }
  7157. /**
  7158. * Get the underlying Redis instance.
  7159. *
  7160. * @return \Illuminate\Contracts\Redis\Factory
  7161. * @static
  7162. */
  7163. public static function getRedis()
  7164. {
  7165. /** @var \Illuminate\Queue\RedisQueue $instance */
  7166. return $instance->getRedis();
  7167. }
  7168. /**
  7169. * Get the expiration timestamp for an object-based queue handler.
  7170. *
  7171. * @param mixed $job
  7172. * @return mixed
  7173. * @static
  7174. */
  7175. public static function getJobExpiration($job)
  7176. {
  7177. //Method inherited from \Illuminate\Queue\Queue
  7178. /** @var \Illuminate\Queue\RedisQueue $instance */
  7179. return $instance->getJobExpiration($job);
  7180. }
  7181. /**
  7182. * Set the IoC container instance.
  7183. *
  7184. * @param \Illuminate\Container\Container $container
  7185. * @return void
  7186. * @static
  7187. */
  7188. public static function setContainer($container)
  7189. {
  7190. //Method inherited from \Illuminate\Queue\Queue
  7191. /** @var \Illuminate\Queue\RedisQueue $instance */
  7192. $instance->setContainer($container);
  7193. }
  7194. }
  7195. /**
  7196. *
  7197. *
  7198. * @see \Illuminate\Routing\Redirector
  7199. */
  7200. class Redirect {
  7201. /**
  7202. * Create a new redirect response to the "home" route.
  7203. *
  7204. * @param int $status
  7205. * @return \Illuminate\Http\RedirectResponse
  7206. * @static
  7207. */
  7208. public static function home($status = 302)
  7209. {
  7210. /** @var \Illuminate\Routing\Redirector $instance */
  7211. return $instance->home($status);
  7212. }
  7213. /**
  7214. * Create a new redirect response to the previous location.
  7215. *
  7216. * @param int $status
  7217. * @param array $headers
  7218. * @param mixed $fallback
  7219. * @return \Illuminate\Http\RedirectResponse
  7220. * @static
  7221. */
  7222. public static function back($status = 302, $headers = array(), $fallback = false)
  7223. {
  7224. /** @var \Illuminate\Routing\Redirector $instance */
  7225. return $instance->back($status, $headers, $fallback);
  7226. }
  7227. /**
  7228. * Create a new redirect response to the current URI.
  7229. *
  7230. * @param int $status
  7231. * @param array $headers
  7232. * @return \Illuminate\Http\RedirectResponse
  7233. * @static
  7234. */
  7235. public static function refresh($status = 302, $headers = array())
  7236. {
  7237. /** @var \Illuminate\Routing\Redirector $instance */
  7238. return $instance->refresh($status, $headers);
  7239. }
  7240. /**
  7241. * Create a new redirect response, while putting the current URL in the session.
  7242. *
  7243. * @param string $path
  7244. * @param int $status
  7245. * @param array $headers
  7246. * @param bool $secure
  7247. * @return \Illuminate\Http\RedirectResponse
  7248. * @static
  7249. */
  7250. public static function guest($path, $status = 302, $headers = array(), $secure = null)
  7251. {
  7252. /** @var \Illuminate\Routing\Redirector $instance */
  7253. return $instance->guest($path, $status, $headers, $secure);
  7254. }
  7255. /**
  7256. * Create a new redirect response to the previously intended location.
  7257. *
  7258. * @param string $default
  7259. * @param int $status
  7260. * @param array $headers
  7261. * @param bool $secure
  7262. * @return \Illuminate\Http\RedirectResponse
  7263. * @static
  7264. */
  7265. public static function intended($default = '/', $status = 302, $headers = array(), $secure = null)
  7266. {
  7267. /** @var \Illuminate\Routing\Redirector $instance */
  7268. return $instance->intended($default, $status, $headers, $secure);
  7269. }
  7270. /**
  7271. * Create a new redirect response to the given path.
  7272. *
  7273. * @param string $path
  7274. * @param int $status
  7275. * @param array $headers
  7276. * @param bool $secure
  7277. * @return \Illuminate\Http\RedirectResponse
  7278. * @static
  7279. */
  7280. public static function to($path, $status = 302, $headers = array(), $secure = null)
  7281. {
  7282. /** @var \Illuminate\Routing\Redirector $instance */
  7283. return $instance->to($path, $status, $headers, $secure);
  7284. }
  7285. /**
  7286. * Create a new redirect response to an external URL (no validation).
  7287. *
  7288. * @param string $path
  7289. * @param int $status
  7290. * @param array $headers
  7291. * @return \Illuminate\Http\RedirectResponse
  7292. * @static
  7293. */
  7294. public static function away($path, $status = 302, $headers = array())
  7295. {
  7296. /** @var \Illuminate\Routing\Redirector $instance */
  7297. return $instance->away($path, $status, $headers);
  7298. }
  7299. /**
  7300. * Create a new redirect response to the given HTTPS path.
  7301. *
  7302. * @param string $path
  7303. * @param int $status
  7304. * @param array $headers
  7305. * @return \Illuminate\Http\RedirectResponse
  7306. * @static
  7307. */
  7308. public static function secure($path, $status = 302, $headers = array())
  7309. {
  7310. /** @var \Illuminate\Routing\Redirector $instance */
  7311. return $instance->secure($path, $status, $headers);
  7312. }
  7313. /**
  7314. * Create a new redirect response to a named route.
  7315. *
  7316. * @param string $route
  7317. * @param mixed $parameters
  7318. * @param int $status
  7319. * @param array $headers
  7320. * @return \Illuminate\Http\RedirectResponse
  7321. * @static
  7322. */
  7323. public static function route($route, $parameters = array(), $status = 302, $headers = array())
  7324. {
  7325. /** @var \Illuminate\Routing\Redirector $instance */
  7326. return $instance->route($route, $parameters, $status, $headers);
  7327. }
  7328. /**
  7329. * Create a new redirect response to a controller action.
  7330. *
  7331. * @param string $action
  7332. * @param mixed $parameters
  7333. * @param int $status
  7334. * @param array $headers
  7335. * @return \Illuminate\Http\RedirectResponse
  7336. * @static
  7337. */
  7338. public static function action($action, $parameters = array(), $status = 302, $headers = array())
  7339. {
  7340. /** @var \Illuminate\Routing\Redirector $instance */
  7341. return $instance->action($action, $parameters, $status, $headers);
  7342. }
  7343. /**
  7344. * Get the URL generator instance.
  7345. *
  7346. * @return \Illuminate\Routing\UrlGenerator
  7347. * @static
  7348. */
  7349. public static function getUrlGenerator()
  7350. {
  7351. /** @var \Illuminate\Routing\Redirector $instance */
  7352. return $instance->getUrlGenerator();
  7353. }
  7354. /**
  7355. * Set the active session store.
  7356. *
  7357. * @param \Illuminate\Session\Store $session
  7358. * @return void
  7359. * @static
  7360. */
  7361. public static function setSession($session)
  7362. {
  7363. /** @var \Illuminate\Routing\Redirector $instance */
  7364. $instance->setSession($session);
  7365. }
  7366. /**
  7367. * Register a custom macro.
  7368. *
  7369. * @param string $name
  7370. * @param object|callable $macro
  7371. * @return void
  7372. * @static
  7373. */
  7374. public static function macro($name, $macro)
  7375. {
  7376. \Illuminate\Routing\Redirector::macro($name, $macro);
  7377. }
  7378. /**
  7379. * Mix another object into the class.
  7380. *
  7381. * @param object $mixin
  7382. * @return void
  7383. * @throws \ReflectionException
  7384. * @static
  7385. */
  7386. public static function mixin($mixin)
  7387. {
  7388. \Illuminate\Routing\Redirector::mixin($mixin);
  7389. }
  7390. /**
  7391. * Checks if macro is registered.
  7392. *
  7393. * @param string $name
  7394. * @return bool
  7395. * @static
  7396. */
  7397. public static function hasMacro($name)
  7398. {
  7399. return \Illuminate\Routing\Redirector::hasMacro($name);
  7400. }
  7401. }
  7402. /**
  7403. *
  7404. *
  7405. * @see \Illuminate\Redis\RedisManager
  7406. * @see \Illuminate\Contracts\Redis\Factory
  7407. */
  7408. class Redis {
  7409. /**
  7410. * Get a Redis connection by name.
  7411. *
  7412. * @param string|null $name
  7413. * @return \Illuminate\Redis\Connections\Connection
  7414. * @static
  7415. */
  7416. public static function connection($name = null)
  7417. {
  7418. /** @var \Illuminate\Redis\RedisManager $instance */
  7419. return $instance->connection($name);
  7420. }
  7421. /**
  7422. * Resolve the given connection by name.
  7423. *
  7424. * @param string|null $name
  7425. * @return \Illuminate\Redis\Connections\Connection
  7426. * @throws \InvalidArgumentException
  7427. * @static
  7428. */
  7429. public static function resolve($name = null)
  7430. {
  7431. /** @var \Illuminate\Redis\RedisManager $instance */
  7432. return $instance->resolve($name);
  7433. }
  7434. /**
  7435. * Return all of the created connections.
  7436. *
  7437. * @return array
  7438. * @static
  7439. */
  7440. public static function connections()
  7441. {
  7442. /** @var \Illuminate\Redis\RedisManager $instance */
  7443. return $instance->connections();
  7444. }
  7445. }
  7446. /**
  7447. *
  7448. *
  7449. * @see \Illuminate\Http\Request
  7450. */
  7451. class Request {
  7452. /**
  7453. * Create a new Illuminate HTTP request from server variables.
  7454. *
  7455. * @return static
  7456. * @static
  7457. */
  7458. public static function capture()
  7459. {
  7460. return \Illuminate\Http\Request::capture();
  7461. }
  7462. /**
  7463. * Return the Request instance.
  7464. *
  7465. * @return \Illuminate\Http\Request
  7466. * @static
  7467. */
  7468. public static function instance()
  7469. {
  7470. /** @var \Illuminate\Http\Request $instance */
  7471. return $instance->instance();
  7472. }
  7473. /**
  7474. * Get the request method.
  7475. *
  7476. * @return string
  7477. * @static
  7478. */
  7479. public static function method()
  7480. {
  7481. /** @var \Illuminate\Http\Request $instance */
  7482. return $instance->method();
  7483. }
  7484. /**
  7485. * Get the root URL for the application.
  7486. *
  7487. * @return string
  7488. * @static
  7489. */
  7490. public static function root()
  7491. {
  7492. /** @var \Illuminate\Http\Request $instance */
  7493. return $instance->root();
  7494. }
  7495. /**
  7496. * Get the URL (no query string) for the request.
  7497. *
  7498. * @return string
  7499. * @static
  7500. */
  7501. public static function url()
  7502. {
  7503. /** @var \Illuminate\Http\Request $instance */
  7504. return $instance->url();
  7505. }
  7506. /**
  7507. * Get the full URL for the request.
  7508. *
  7509. * @return string
  7510. * @static
  7511. */
  7512. public static function fullUrl()
  7513. {
  7514. /** @var \Illuminate\Http\Request $instance */
  7515. return $instance->fullUrl();
  7516. }
  7517. /**
  7518. * Get the full URL for the request with the added query string parameters.
  7519. *
  7520. * @param array $query
  7521. * @return string
  7522. * @static
  7523. */
  7524. public static function fullUrlWithQuery($query)
  7525. {
  7526. /** @var \Illuminate\Http\Request $instance */
  7527. return $instance->fullUrlWithQuery($query);
  7528. }
  7529. /**
  7530. * Get the current path info for the request.
  7531. *
  7532. * @return string
  7533. * @static
  7534. */
  7535. public static function path()
  7536. {
  7537. /** @var \Illuminate\Http\Request $instance */
  7538. return $instance->path();
  7539. }
  7540. /**
  7541. * Get the current decoded path info for the request.
  7542. *
  7543. * @return string
  7544. * @static
  7545. */
  7546. public static function decodedPath()
  7547. {
  7548. /** @var \Illuminate\Http\Request $instance */
  7549. return $instance->decodedPath();
  7550. }
  7551. /**
  7552. * Get a segment from the URI (1 based index).
  7553. *
  7554. * @param int $index
  7555. * @param string|null $default
  7556. * @return string|null
  7557. * @static
  7558. */
  7559. public static function segment($index, $default = null)
  7560. {
  7561. /** @var \Illuminate\Http\Request $instance */
  7562. return $instance->segment($index, $default);
  7563. }
  7564. /**
  7565. * Get all of the segments for the request path.
  7566. *
  7567. * @return array
  7568. * @static
  7569. */
  7570. public static function segments()
  7571. {
  7572. /** @var \Illuminate\Http\Request $instance */
  7573. return $instance->segments();
  7574. }
  7575. /**
  7576. * Determine if the current request URI matches a pattern.
  7577. *
  7578. * @param mixed $patterns
  7579. * @return bool
  7580. * @static
  7581. */
  7582. public static function is($patterns = null)
  7583. {
  7584. /** @var \Illuminate\Http\Request $instance */
  7585. return $instance->is($patterns);
  7586. }
  7587. /**
  7588. * Determine if the route name matches a given pattern.
  7589. *
  7590. * @param mixed $patterns
  7591. * @return bool
  7592. * @static
  7593. */
  7594. public static function routeIs($patterns = null)
  7595. {
  7596. /** @var \Illuminate\Http\Request $instance */
  7597. return $instance->routeIs($patterns);
  7598. }
  7599. /**
  7600. * Determine if the current request URL and query string matches a pattern.
  7601. *
  7602. * @param mixed $patterns
  7603. * @return bool
  7604. * @static
  7605. */
  7606. public static function fullUrlIs($patterns = null)
  7607. {
  7608. /** @var \Illuminate\Http\Request $instance */
  7609. return $instance->fullUrlIs($patterns);
  7610. }
  7611. /**
  7612. * Determine if the request is the result of an AJAX call.
  7613. *
  7614. * @return bool
  7615. * @static
  7616. */
  7617. public static function ajax()
  7618. {
  7619. /** @var \Illuminate\Http\Request $instance */
  7620. return $instance->ajax();
  7621. }
  7622. /**
  7623. * Determine if the request is the result of an PJAX call.
  7624. *
  7625. * @return bool
  7626. * @static
  7627. */
  7628. public static function pjax()
  7629. {
  7630. /** @var \Illuminate\Http\Request $instance */
  7631. return $instance->pjax();
  7632. }
  7633. /**
  7634. * Determine if the request is over HTTPS.
  7635. *
  7636. * @return bool
  7637. * @static
  7638. */
  7639. public static function secure()
  7640. {
  7641. /** @var \Illuminate\Http\Request $instance */
  7642. return $instance->secure();
  7643. }
  7644. /**
  7645. * Get the client IP address.
  7646. *
  7647. * @return string
  7648. * @static
  7649. */
  7650. public static function ip()
  7651. {
  7652. /** @var \Illuminate\Http\Request $instance */
  7653. return $instance->ip();
  7654. }
  7655. /**
  7656. * Get the client IP addresses.
  7657. *
  7658. * @return array
  7659. * @static
  7660. */
  7661. public static function ips()
  7662. {
  7663. /** @var \Illuminate\Http\Request $instance */
  7664. return $instance->ips();
  7665. }
  7666. /**
  7667. * Get the client user agent.
  7668. *
  7669. * @return string
  7670. * @static
  7671. */
  7672. public static function userAgent()
  7673. {
  7674. /** @var \Illuminate\Http\Request $instance */
  7675. return $instance->userAgent();
  7676. }
  7677. /**
  7678. * Merge new input into the current request's input array.
  7679. *
  7680. * @param array $input
  7681. * @return \Illuminate\Http\Request
  7682. * @static
  7683. */
  7684. public static function merge($input)
  7685. {
  7686. /** @var \Illuminate\Http\Request $instance */
  7687. return $instance->merge($input);
  7688. }
  7689. /**
  7690. * Replace the input for the current request.
  7691. *
  7692. * @param array $input
  7693. * @return \Illuminate\Http\Request
  7694. * @static
  7695. */
  7696. public static function replace($input)
  7697. {
  7698. /** @var \Illuminate\Http\Request $instance */
  7699. return $instance->replace($input);
  7700. }
  7701. /**
  7702. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  7703. *
  7704. * Instead, you may use the "input" method.
  7705. *
  7706. * @param string $key
  7707. * @param mixed $default
  7708. * @return mixed
  7709. * @static
  7710. */
  7711. public static function get($key, $default = null)
  7712. {
  7713. /** @var \Illuminate\Http\Request $instance */
  7714. return $instance->get($key, $default);
  7715. }
  7716. /**
  7717. * Get the JSON payload for the request.
  7718. *
  7719. * @param string $key
  7720. * @param mixed $default
  7721. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  7722. * @static
  7723. */
  7724. public static function json($key = null, $default = null)
  7725. {
  7726. /** @var \Illuminate\Http\Request $instance */
  7727. return $instance->json($key, $default);
  7728. }
  7729. /**
  7730. * Create a new request instance from the given Laravel request.
  7731. *
  7732. * @param \Illuminate\Http\Request $from
  7733. * @param \Illuminate\Http\Request|null $to
  7734. * @return static
  7735. * @static
  7736. */
  7737. public static function createFrom($from, $to = null)
  7738. {
  7739. return \Illuminate\Http\Request::createFrom($from, $to);
  7740. }
  7741. /**
  7742. * Create an Illuminate request from a Symfony instance.
  7743. *
  7744. * @param \Symfony\Component\HttpFoundation\Request $request
  7745. * @return \Illuminate\Http\Request
  7746. * @static
  7747. */
  7748. public static function createFromBase($request)
  7749. {
  7750. return \Illuminate\Http\Request::createFromBase($request);
  7751. }
  7752. /**
  7753. * Clones a request and overrides some of its parameters.
  7754. *
  7755. * @param array $query The GET parameters
  7756. * @param array $request The POST parameters
  7757. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7758. * @param array $cookies The COOKIE parameters
  7759. * @param array $files The FILES parameters
  7760. * @param array $server The SERVER parameters
  7761. * @return static
  7762. * @static
  7763. */
  7764. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  7765. {
  7766. /** @var \Illuminate\Http\Request $instance */
  7767. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  7768. }
  7769. /**
  7770. * Get the session associated with the request.
  7771. *
  7772. * @return \Illuminate\Session\Store
  7773. * @throws \RuntimeException
  7774. * @static
  7775. */
  7776. public static function session()
  7777. {
  7778. /** @var \Illuminate\Http\Request $instance */
  7779. return $instance->session();
  7780. }
  7781. /**
  7782. * Get the session associated with the request.
  7783. *
  7784. * @return \Illuminate\Session\Store|null
  7785. * @static
  7786. */
  7787. public static function getSession()
  7788. {
  7789. /** @var \Illuminate\Http\Request $instance */
  7790. return $instance->getSession();
  7791. }
  7792. /**
  7793. * Set the session instance on the request.
  7794. *
  7795. * @param \Illuminate\Contracts\Session\Session $session
  7796. * @return void
  7797. * @static
  7798. */
  7799. public static function setLaravelSession($session)
  7800. {
  7801. /** @var \Illuminate\Http\Request $instance */
  7802. $instance->setLaravelSession($session);
  7803. }
  7804. /**
  7805. * Get the user making the request.
  7806. *
  7807. * @param string|null $guard
  7808. * @return mixed
  7809. * @static
  7810. */
  7811. public static function user($guard = null)
  7812. {
  7813. /** @var \Illuminate\Http\Request $instance */
  7814. return $instance->user($guard);
  7815. }
  7816. /**
  7817. * Get the route handling the request.
  7818. *
  7819. * @param string|null $param
  7820. * @return \Illuminate\Routing\Route|object|string
  7821. * @static
  7822. */
  7823. public static function route($param = null)
  7824. {
  7825. /** @var \Illuminate\Http\Request $instance */
  7826. return $instance->route($param);
  7827. }
  7828. /**
  7829. * Get a unique fingerprint for the request / route / IP address.
  7830. *
  7831. * @return string
  7832. * @throws \RuntimeException
  7833. * @static
  7834. */
  7835. public static function fingerprint()
  7836. {
  7837. /** @var \Illuminate\Http\Request $instance */
  7838. return $instance->fingerprint();
  7839. }
  7840. /**
  7841. * Set the JSON payload for the request.
  7842. *
  7843. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  7844. * @return \Illuminate\Http\Request
  7845. * @static
  7846. */
  7847. public static function setJson($json)
  7848. {
  7849. /** @var \Illuminate\Http\Request $instance */
  7850. return $instance->setJson($json);
  7851. }
  7852. /**
  7853. * Get the user resolver callback.
  7854. *
  7855. * @return \Closure
  7856. * @static
  7857. */
  7858. public static function getUserResolver()
  7859. {
  7860. /** @var \Illuminate\Http\Request $instance */
  7861. return $instance->getUserResolver();
  7862. }
  7863. /**
  7864. * Set the user resolver callback.
  7865. *
  7866. * @param \Closure $callback
  7867. * @return \Illuminate\Http\Request
  7868. * @static
  7869. */
  7870. public static function setUserResolver($callback)
  7871. {
  7872. /** @var \Illuminate\Http\Request $instance */
  7873. return $instance->setUserResolver($callback);
  7874. }
  7875. /**
  7876. * Get the route resolver callback.
  7877. *
  7878. * @return \Closure
  7879. * @static
  7880. */
  7881. public static function getRouteResolver()
  7882. {
  7883. /** @var \Illuminate\Http\Request $instance */
  7884. return $instance->getRouteResolver();
  7885. }
  7886. /**
  7887. * Set the route resolver callback.
  7888. *
  7889. * @param \Closure $callback
  7890. * @return \Illuminate\Http\Request
  7891. * @static
  7892. */
  7893. public static function setRouteResolver($callback)
  7894. {
  7895. /** @var \Illuminate\Http\Request $instance */
  7896. return $instance->setRouteResolver($callback);
  7897. }
  7898. /**
  7899. * Get all of the input and files for the request.
  7900. *
  7901. * @return array
  7902. * @static
  7903. */
  7904. public static function toArray()
  7905. {
  7906. /** @var \Illuminate\Http\Request $instance */
  7907. return $instance->toArray();
  7908. }
  7909. /**
  7910. * Determine if the given offset exists.
  7911. *
  7912. * @param string $offset
  7913. * @return bool
  7914. * @static
  7915. */
  7916. public static function offsetExists($offset)
  7917. {
  7918. /** @var \Illuminate\Http\Request $instance */
  7919. return $instance->offsetExists($offset);
  7920. }
  7921. /**
  7922. * Get the value at the given offset.
  7923. *
  7924. * @param string $offset
  7925. * @return mixed
  7926. * @static
  7927. */
  7928. public static function offsetGet($offset)
  7929. {
  7930. /** @var \Illuminate\Http\Request $instance */
  7931. return $instance->offsetGet($offset);
  7932. }
  7933. /**
  7934. * Set the value at the given offset.
  7935. *
  7936. * @param string $offset
  7937. * @param mixed $value
  7938. * @return void
  7939. * @static
  7940. */
  7941. public static function offsetSet($offset, $value)
  7942. {
  7943. /** @var \Illuminate\Http\Request $instance */
  7944. $instance->offsetSet($offset, $value);
  7945. }
  7946. /**
  7947. * Remove the value at the given offset.
  7948. *
  7949. * @param string $offset
  7950. * @return void
  7951. * @static
  7952. */
  7953. public static function offsetUnset($offset)
  7954. {
  7955. /** @var \Illuminate\Http\Request $instance */
  7956. $instance->offsetUnset($offset);
  7957. }
  7958. /**
  7959. * Sets the parameters for this request.
  7960. *
  7961. * This method also re-initializes all properties.
  7962. *
  7963. * @param array $query The GET parameters
  7964. * @param array $request The POST parameters
  7965. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7966. * @param array $cookies The COOKIE parameters
  7967. * @param array $files The FILES parameters
  7968. * @param array $server The SERVER parameters
  7969. * @param string|resource|null $content The raw body data
  7970. * @static
  7971. */
  7972. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  7973. {
  7974. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7975. /** @var \Illuminate\Http\Request $instance */
  7976. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  7977. }
  7978. /**
  7979. * Creates a new request with values from PHP's super globals.
  7980. *
  7981. * @return static
  7982. * @static
  7983. */
  7984. public static function createFromGlobals()
  7985. {
  7986. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7987. return \Illuminate\Http\Request::createFromGlobals();
  7988. }
  7989. /**
  7990. * Creates a Request based on a given URI and configuration.
  7991. *
  7992. * The information contained in the URI always take precedence
  7993. * over the other information (server and parameters).
  7994. *
  7995. * @param string $uri The URI
  7996. * @param string $method The HTTP method
  7997. * @param array $parameters The query (GET) or request (POST) parameters
  7998. * @param array $cookies The request cookies ($_COOKIE)
  7999. * @param array $files The request files ($_FILES)
  8000. * @param array $server The server parameters ($_SERVER)
  8001. * @param string|resource|null $content The raw body data
  8002. * @return static
  8003. * @static
  8004. */
  8005. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  8006. {
  8007. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8008. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  8009. }
  8010. /**
  8011. * Sets a callable able to create a Request instance.
  8012. *
  8013. * This is mainly useful when you need to override the Request class
  8014. * to keep BC with an existing system. It should not be used for any
  8015. * other purpose.
  8016. *
  8017. * @param callable|null $callable A PHP callable
  8018. * @static
  8019. */
  8020. public static function setFactory($callable)
  8021. {
  8022. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8023. return \Illuminate\Http\Request::setFactory($callable);
  8024. }
  8025. /**
  8026. * Overrides the PHP global variables according to this request instance.
  8027. *
  8028. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  8029. * $_FILES is never overridden, see rfc1867
  8030. *
  8031. * @static
  8032. */
  8033. public static function overrideGlobals()
  8034. {
  8035. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8036. /** @var \Illuminate\Http\Request $instance */
  8037. return $instance->overrideGlobals();
  8038. }
  8039. /**
  8040. * Sets a list of trusted proxies.
  8041. *
  8042. * You should only list the reverse proxies that you manage directly.
  8043. *
  8044. * @param array $proxies A list of trusted proxies
  8045. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  8046. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  8047. * @static
  8048. */
  8049. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  8050. {
  8051. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8052. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  8053. }
  8054. /**
  8055. * Gets the list of trusted proxies.
  8056. *
  8057. * @return array An array of trusted proxies
  8058. * @static
  8059. */
  8060. public static function getTrustedProxies()
  8061. {
  8062. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8063. return \Illuminate\Http\Request::getTrustedProxies();
  8064. }
  8065. /**
  8066. * Gets the set of trusted headers from trusted proxies.
  8067. *
  8068. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  8069. * @static
  8070. */
  8071. public static function getTrustedHeaderSet()
  8072. {
  8073. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8074. return \Illuminate\Http\Request::getTrustedHeaderSet();
  8075. }
  8076. /**
  8077. * Sets a list of trusted host patterns.
  8078. *
  8079. * You should only list the hosts you manage using regexs.
  8080. *
  8081. * @param array $hostPatterns A list of trusted host patterns
  8082. * @static
  8083. */
  8084. public static function setTrustedHosts($hostPatterns)
  8085. {
  8086. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8087. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  8088. }
  8089. /**
  8090. * Gets the list of trusted host patterns.
  8091. *
  8092. * @return array An array of trusted host patterns
  8093. * @static
  8094. */
  8095. public static function getTrustedHosts()
  8096. {
  8097. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8098. return \Illuminate\Http\Request::getTrustedHosts();
  8099. }
  8100. /**
  8101. * Normalizes a query string.
  8102. *
  8103. * It builds a normalized query string, where keys/value pairs are alphabetized,
  8104. * have consistent escaping and unneeded delimiters are removed.
  8105. *
  8106. * @param string $qs Query string
  8107. * @return string A normalized query string for the Request
  8108. * @static
  8109. */
  8110. public static function normalizeQueryString($qs)
  8111. {
  8112. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8113. return \Illuminate\Http\Request::normalizeQueryString($qs);
  8114. }
  8115. /**
  8116. * Enables support for the _method request parameter to determine the intended HTTP method.
  8117. *
  8118. * Be warned that enabling this feature might lead to CSRF issues in your code.
  8119. * Check that you are using CSRF tokens when required.
  8120. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  8121. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  8122. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  8123. *
  8124. * The HTTP method can only be overridden when the real HTTP method is POST.
  8125. *
  8126. * @static
  8127. */
  8128. public static function enableHttpMethodParameterOverride()
  8129. {
  8130. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8131. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  8132. }
  8133. /**
  8134. * Checks whether support for the _method request parameter is enabled.
  8135. *
  8136. * @return bool True when the _method request parameter is enabled, false otherwise
  8137. * @static
  8138. */
  8139. public static function getHttpMethodParameterOverride()
  8140. {
  8141. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8142. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  8143. }
  8144. /**
  8145. * Whether the request contains a Session which was started in one of the
  8146. * previous requests.
  8147. *
  8148. * @return bool
  8149. * @static
  8150. */
  8151. public static function hasPreviousSession()
  8152. {
  8153. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8154. /** @var \Illuminate\Http\Request $instance */
  8155. return $instance->hasPreviousSession();
  8156. }
  8157. /**
  8158. * Whether the request contains a Session object.
  8159. *
  8160. * This method does not give any information about the state of the session object,
  8161. * like whether the session is started or not. It is just a way to check if this Request
  8162. * is associated with a Session instance.
  8163. *
  8164. * @return bool true when the Request contains a Session object, false otherwise
  8165. * @static
  8166. */
  8167. public static function hasSession()
  8168. {
  8169. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8170. /** @var \Illuminate\Http\Request $instance */
  8171. return $instance->hasSession();
  8172. }
  8173. /**
  8174. * Sets the Session.
  8175. *
  8176. * @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
  8177. * @static
  8178. */
  8179. public static function setSession($session)
  8180. {
  8181. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8182. /** @var \Illuminate\Http\Request $instance */
  8183. return $instance->setSession($session);
  8184. }
  8185. /**
  8186. *
  8187. *
  8188. * @internal
  8189. * @static
  8190. */
  8191. public static function setSessionFactory($factory)
  8192. {
  8193. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8194. /** @var \Illuminate\Http\Request $instance */
  8195. return $instance->setSessionFactory($factory);
  8196. }
  8197. /**
  8198. * Returns the client IP addresses.
  8199. *
  8200. * In the returned array the most trusted IP address is first, and the
  8201. * least trusted one last. The "real" client IP address is the last one,
  8202. * but this is also the least trusted one. Trusted proxies are stripped.
  8203. *
  8204. * Use this method carefully; you should use getClientIp() instead.
  8205. *
  8206. * @return array The client IP addresses
  8207. * @see getClientIp()
  8208. * @static
  8209. */
  8210. public static function getClientIps()
  8211. {
  8212. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8213. /** @var \Illuminate\Http\Request $instance */
  8214. return $instance->getClientIps();
  8215. }
  8216. /**
  8217. * Returns the client IP address.
  8218. *
  8219. * This method can read the client IP address from the "X-Forwarded-For" header
  8220. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  8221. * header value is a comma+space separated list of IP addresses, the left-most
  8222. * being the original client, and each successive proxy that passed the request
  8223. * adding the IP address where it received the request from.
  8224. *
  8225. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  8226. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  8227. * argument of the Request::setTrustedProxies() method instead.
  8228. *
  8229. * @return string|null The client IP address
  8230. * @see getClientIps()
  8231. * @see https://wikipedia.org/wiki/X-Forwarded-For
  8232. * @static
  8233. */
  8234. public static function getClientIp()
  8235. {
  8236. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8237. /** @var \Illuminate\Http\Request $instance */
  8238. return $instance->getClientIp();
  8239. }
  8240. /**
  8241. * Returns current script name.
  8242. *
  8243. * @return string
  8244. * @static
  8245. */
  8246. public static function getScriptName()
  8247. {
  8248. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8249. /** @var \Illuminate\Http\Request $instance */
  8250. return $instance->getScriptName();
  8251. }
  8252. /**
  8253. * Returns the path being requested relative to the executed script.
  8254. *
  8255. * The path info always starts with a /.
  8256. *
  8257. * Suppose this request is instantiated from /mysite on localhost:
  8258. *
  8259. * * http://localhost/mysite returns an empty string
  8260. * * http://localhost/mysite/about returns '/about'
  8261. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  8262. * * http://localhost/mysite/about?var=1 returns '/about'
  8263. *
  8264. * @return string The raw path (i.e. not urldecoded)
  8265. * @static
  8266. */
  8267. public static function getPathInfo()
  8268. {
  8269. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8270. /** @var \Illuminate\Http\Request $instance */
  8271. return $instance->getPathInfo();
  8272. }
  8273. /**
  8274. * Returns the root path from which this request is executed.
  8275. *
  8276. * Suppose that an index.php file instantiates this request object:
  8277. *
  8278. * * http://localhost/index.php returns an empty string
  8279. * * http://localhost/index.php/page returns an empty string
  8280. * * http://localhost/web/index.php returns '/web'
  8281. * * http://localhost/we%20b/index.php returns '/we%20b'
  8282. *
  8283. * @return string The raw path (i.e. not urldecoded)
  8284. * @static
  8285. */
  8286. public static function getBasePath()
  8287. {
  8288. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8289. /** @var \Illuminate\Http\Request $instance */
  8290. return $instance->getBasePath();
  8291. }
  8292. /**
  8293. * Returns the root URL from which this request is executed.
  8294. *
  8295. * The base URL never ends with a /.
  8296. *
  8297. * This is similar to getBasePath(), except that it also includes the
  8298. * script filename (e.g. index.php) if one exists.
  8299. *
  8300. * @return string The raw URL (i.e. not urldecoded)
  8301. * @static
  8302. */
  8303. public static function getBaseUrl()
  8304. {
  8305. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8306. /** @var \Illuminate\Http\Request $instance */
  8307. return $instance->getBaseUrl();
  8308. }
  8309. /**
  8310. * Gets the request's scheme.
  8311. *
  8312. * @return string
  8313. * @static
  8314. */
  8315. public static function getScheme()
  8316. {
  8317. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8318. /** @var \Illuminate\Http\Request $instance */
  8319. return $instance->getScheme();
  8320. }
  8321. /**
  8322. * Returns the port on which the request is made.
  8323. *
  8324. * This method can read the client port from the "X-Forwarded-Port" header
  8325. * when trusted proxies were set via "setTrustedProxies()".
  8326. *
  8327. * The "X-Forwarded-Port" header must contain the client port.
  8328. *
  8329. * @return int|string can be a string if fetched from the server bag
  8330. * @static
  8331. */
  8332. public static function getPort()
  8333. {
  8334. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8335. /** @var \Illuminate\Http\Request $instance */
  8336. return $instance->getPort();
  8337. }
  8338. /**
  8339. * Returns the user.
  8340. *
  8341. * @return string|null
  8342. * @static
  8343. */
  8344. public static function getUser()
  8345. {
  8346. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8347. /** @var \Illuminate\Http\Request $instance */
  8348. return $instance->getUser();
  8349. }
  8350. /**
  8351. * Returns the password.
  8352. *
  8353. * @return string|null
  8354. * @static
  8355. */
  8356. public static function getPassword()
  8357. {
  8358. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8359. /** @var \Illuminate\Http\Request $instance */
  8360. return $instance->getPassword();
  8361. }
  8362. /**
  8363. * Gets the user info.
  8364. *
  8365. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  8366. * @static
  8367. */
  8368. public static function getUserInfo()
  8369. {
  8370. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8371. /** @var \Illuminate\Http\Request $instance */
  8372. return $instance->getUserInfo();
  8373. }
  8374. /**
  8375. * Returns the HTTP host being requested.
  8376. *
  8377. * The port name will be appended to the host if it's non-standard.
  8378. *
  8379. * @return string
  8380. * @static
  8381. */
  8382. public static function getHttpHost()
  8383. {
  8384. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8385. /** @var \Illuminate\Http\Request $instance */
  8386. return $instance->getHttpHost();
  8387. }
  8388. /**
  8389. * Returns the requested URI (path and query string).
  8390. *
  8391. * @return string The raw URI (i.e. not URI decoded)
  8392. * @static
  8393. */
  8394. public static function getRequestUri()
  8395. {
  8396. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8397. /** @var \Illuminate\Http\Request $instance */
  8398. return $instance->getRequestUri();
  8399. }
  8400. /**
  8401. * Gets the scheme and HTTP host.
  8402. *
  8403. * If the URL was called with basic authentication, the user
  8404. * and the password are not added to the generated string.
  8405. *
  8406. * @return string The scheme and HTTP host
  8407. * @static
  8408. */
  8409. public static function getSchemeAndHttpHost()
  8410. {
  8411. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8412. /** @var \Illuminate\Http\Request $instance */
  8413. return $instance->getSchemeAndHttpHost();
  8414. }
  8415. /**
  8416. * Generates a normalized URI (URL) for the Request.
  8417. *
  8418. * @return string A normalized URI (URL) for the Request
  8419. * @see getQueryString()
  8420. * @static
  8421. */
  8422. public static function getUri()
  8423. {
  8424. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8425. /** @var \Illuminate\Http\Request $instance */
  8426. return $instance->getUri();
  8427. }
  8428. /**
  8429. * Generates a normalized URI for the given path.
  8430. *
  8431. * @param string $path A path to use instead of the current one
  8432. * @return string The normalized URI for the path
  8433. * @static
  8434. */
  8435. public static function getUriForPath($path)
  8436. {
  8437. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8438. /** @var \Illuminate\Http\Request $instance */
  8439. return $instance->getUriForPath($path);
  8440. }
  8441. /**
  8442. * Returns the path as relative reference from the current Request path.
  8443. *
  8444. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  8445. * Both paths must be absolute and not contain relative parts.
  8446. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  8447. * Furthermore, they can be used to reduce the link size in documents.
  8448. *
  8449. * Example target paths, given a base path of "/a/b/c/d":
  8450. * - "/a/b/c/d" -> ""
  8451. * - "/a/b/c/" -> "./"
  8452. * - "/a/b/" -> "../"
  8453. * - "/a/b/c/other" -> "other"
  8454. * - "/a/x/y" -> "../../x/y"
  8455. *
  8456. * @param string $path The target path
  8457. * @return string The relative target path
  8458. * @static
  8459. */
  8460. public static function getRelativeUriForPath($path)
  8461. {
  8462. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8463. /** @var \Illuminate\Http\Request $instance */
  8464. return $instance->getRelativeUriForPath($path);
  8465. }
  8466. /**
  8467. * Generates the normalized query string for the Request.
  8468. *
  8469. * It builds a normalized query string, where keys/value pairs are alphabetized
  8470. * and have consistent escaping.
  8471. *
  8472. * @return string|null A normalized query string for the Request
  8473. * @static
  8474. */
  8475. public static function getQueryString()
  8476. {
  8477. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8478. /** @var \Illuminate\Http\Request $instance */
  8479. return $instance->getQueryString();
  8480. }
  8481. /**
  8482. * Checks whether the request is secure or not.
  8483. *
  8484. * This method can read the client protocol from the "X-Forwarded-Proto" header
  8485. * when trusted proxies were set via "setTrustedProxies()".
  8486. *
  8487. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  8488. *
  8489. * @return bool
  8490. * @static
  8491. */
  8492. public static function isSecure()
  8493. {
  8494. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8495. /** @var \Illuminate\Http\Request $instance */
  8496. return $instance->isSecure();
  8497. }
  8498. /**
  8499. * Returns the host name.
  8500. *
  8501. * This method can read the client host name from the "X-Forwarded-Host" header
  8502. * when trusted proxies were set via "setTrustedProxies()".
  8503. *
  8504. * The "X-Forwarded-Host" header must contain the client host name.
  8505. *
  8506. * @return string
  8507. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  8508. * @static
  8509. */
  8510. public static function getHost()
  8511. {
  8512. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8513. /** @var \Illuminate\Http\Request $instance */
  8514. return $instance->getHost();
  8515. }
  8516. /**
  8517. * Sets the request method.
  8518. *
  8519. * @param string $method
  8520. * @static
  8521. */
  8522. public static function setMethod($method)
  8523. {
  8524. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8525. /** @var \Illuminate\Http\Request $instance */
  8526. return $instance->setMethod($method);
  8527. }
  8528. /**
  8529. * Gets the request "intended" method.
  8530. *
  8531. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  8532. * then it is used to determine the "real" intended HTTP method.
  8533. *
  8534. * The _method request parameter can also be used to determine the HTTP method,
  8535. * but only if enableHttpMethodParameterOverride() has been called.
  8536. *
  8537. * The method is always an uppercased string.
  8538. *
  8539. * @return string The request method
  8540. * @see getRealMethod()
  8541. * @static
  8542. */
  8543. public static function getMethod()
  8544. {
  8545. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8546. /** @var \Illuminate\Http\Request $instance */
  8547. return $instance->getMethod();
  8548. }
  8549. /**
  8550. * Gets the "real" request method.
  8551. *
  8552. * @return string The request method
  8553. * @see getMethod()
  8554. * @static
  8555. */
  8556. public static function getRealMethod()
  8557. {
  8558. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8559. /** @var \Illuminate\Http\Request $instance */
  8560. return $instance->getRealMethod();
  8561. }
  8562. /**
  8563. * Gets the mime type associated with the format.
  8564. *
  8565. * @param string $format The format
  8566. * @return string|null The associated mime type (null if not found)
  8567. * @static
  8568. */
  8569. public static function getMimeType($format)
  8570. {
  8571. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8572. /** @var \Illuminate\Http\Request $instance */
  8573. return $instance->getMimeType($format);
  8574. }
  8575. /**
  8576. * Gets the mime types associated with the format.
  8577. *
  8578. * @param string $format The format
  8579. * @return array The associated mime types
  8580. * @static
  8581. */
  8582. public static function getMimeTypes($format)
  8583. {
  8584. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8585. return \Illuminate\Http\Request::getMimeTypes($format);
  8586. }
  8587. /**
  8588. * Gets the format associated with the mime type.
  8589. *
  8590. * @param string $mimeType The associated mime type
  8591. * @return string|null The format (null if not found)
  8592. * @static
  8593. */
  8594. public static function getFormat($mimeType)
  8595. {
  8596. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8597. /** @var \Illuminate\Http\Request $instance */
  8598. return $instance->getFormat($mimeType);
  8599. }
  8600. /**
  8601. * Associates a format with mime types.
  8602. *
  8603. * @param string $format The format
  8604. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  8605. * @static
  8606. */
  8607. public static function setFormat($format, $mimeTypes)
  8608. {
  8609. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8610. /** @var \Illuminate\Http\Request $instance */
  8611. return $instance->setFormat($format, $mimeTypes);
  8612. }
  8613. /**
  8614. * Gets the request format.
  8615. *
  8616. * Here is the process to determine the format:
  8617. *
  8618. * * format defined by the user (with setRequestFormat())
  8619. * * _format request attribute
  8620. * * $default
  8621. *
  8622. * @param string|null $default The default format
  8623. * @return string|null The request format
  8624. * @static
  8625. */
  8626. public static function getRequestFormat($default = 'html')
  8627. {
  8628. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8629. /** @var \Illuminate\Http\Request $instance */
  8630. return $instance->getRequestFormat($default);
  8631. }
  8632. /**
  8633. * Sets the request format.
  8634. *
  8635. * @param string $format The request format
  8636. * @static
  8637. */
  8638. public static function setRequestFormat($format)
  8639. {
  8640. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8641. /** @var \Illuminate\Http\Request $instance */
  8642. return $instance->setRequestFormat($format);
  8643. }
  8644. /**
  8645. * Gets the format associated with the request.
  8646. *
  8647. * @return string|null The format (null if no content type is present)
  8648. * @static
  8649. */
  8650. public static function getContentType()
  8651. {
  8652. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8653. /** @var \Illuminate\Http\Request $instance */
  8654. return $instance->getContentType();
  8655. }
  8656. /**
  8657. * Sets the default locale.
  8658. *
  8659. * @param string $locale
  8660. * @static
  8661. */
  8662. public static function setDefaultLocale($locale)
  8663. {
  8664. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8665. /** @var \Illuminate\Http\Request $instance */
  8666. return $instance->setDefaultLocale($locale);
  8667. }
  8668. /**
  8669. * Get the default locale.
  8670. *
  8671. * @return string
  8672. * @static
  8673. */
  8674. public static function getDefaultLocale()
  8675. {
  8676. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8677. /** @var \Illuminate\Http\Request $instance */
  8678. return $instance->getDefaultLocale();
  8679. }
  8680. /**
  8681. * Sets the locale.
  8682. *
  8683. * @param string $locale
  8684. * @static
  8685. */
  8686. public static function setLocale($locale)
  8687. {
  8688. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8689. /** @var \Illuminate\Http\Request $instance */
  8690. return $instance->setLocale($locale);
  8691. }
  8692. /**
  8693. * Get the locale.
  8694. *
  8695. * @return string
  8696. * @static
  8697. */
  8698. public static function getLocale()
  8699. {
  8700. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8701. /** @var \Illuminate\Http\Request $instance */
  8702. return $instance->getLocale();
  8703. }
  8704. /**
  8705. * Checks if the request method is of specified type.
  8706. *
  8707. * @param string $method Uppercase request method (GET, POST etc)
  8708. * @return bool
  8709. * @static
  8710. */
  8711. public static function isMethod($method)
  8712. {
  8713. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8714. /** @var \Illuminate\Http\Request $instance */
  8715. return $instance->isMethod($method);
  8716. }
  8717. /**
  8718. * Checks whether or not the method is safe.
  8719. *
  8720. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  8721. * @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default.
  8722. * @return bool
  8723. * @static
  8724. */
  8725. public static function isMethodSafe()
  8726. {
  8727. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8728. /** @var \Illuminate\Http\Request $instance */
  8729. return $instance->isMethodSafe();
  8730. }
  8731. /**
  8732. * Checks whether or not the method is idempotent.
  8733. *
  8734. * @return bool
  8735. * @static
  8736. */
  8737. public static function isMethodIdempotent()
  8738. {
  8739. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8740. /** @var \Illuminate\Http\Request $instance */
  8741. return $instance->isMethodIdempotent();
  8742. }
  8743. /**
  8744. * Checks whether the method is cacheable or not.
  8745. *
  8746. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  8747. * @return bool True for GET and HEAD, false otherwise
  8748. * @static
  8749. */
  8750. public static function isMethodCacheable()
  8751. {
  8752. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8753. /** @var \Illuminate\Http\Request $instance */
  8754. return $instance->isMethodCacheable();
  8755. }
  8756. /**
  8757. * Returns the protocol version.
  8758. *
  8759. * If the application is behind a proxy, the protocol version used in the
  8760. * requests between the client and the proxy and between the proxy and the
  8761. * server might be different. This returns the former (from the "Via" header)
  8762. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  8763. * the latter (from the "SERVER_PROTOCOL" server parameter).
  8764. *
  8765. * @return string
  8766. * @static
  8767. */
  8768. public static function getProtocolVersion()
  8769. {
  8770. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8771. /** @var \Illuminate\Http\Request $instance */
  8772. return $instance->getProtocolVersion();
  8773. }
  8774. /**
  8775. * Returns the request body content.
  8776. *
  8777. * @param bool $asResource If true, a resource will be returned
  8778. * @return string|resource The request body content or a resource to read the body stream
  8779. * @throws \LogicException
  8780. * @static
  8781. */
  8782. public static function getContent($asResource = false)
  8783. {
  8784. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8785. /** @var \Illuminate\Http\Request $instance */
  8786. return $instance->getContent($asResource);
  8787. }
  8788. /**
  8789. * Gets the Etags.
  8790. *
  8791. * @return array The entity tags
  8792. * @static
  8793. */
  8794. public static function getETags()
  8795. {
  8796. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8797. /** @var \Illuminate\Http\Request $instance */
  8798. return $instance->getETags();
  8799. }
  8800. /**
  8801. *
  8802. *
  8803. * @return bool
  8804. * @static
  8805. */
  8806. public static function isNoCache()
  8807. {
  8808. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8809. /** @var \Illuminate\Http\Request $instance */
  8810. return $instance->isNoCache();
  8811. }
  8812. /**
  8813. * Returns the preferred language.
  8814. *
  8815. * @param array $locales An array of ordered available locales
  8816. * @return string|null The preferred locale
  8817. * @static
  8818. */
  8819. public static function getPreferredLanguage($locales = null)
  8820. {
  8821. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8822. /** @var \Illuminate\Http\Request $instance */
  8823. return $instance->getPreferredLanguage($locales);
  8824. }
  8825. /**
  8826. * Gets a list of languages acceptable by the client browser.
  8827. *
  8828. * @return array Languages ordered in the user browser preferences
  8829. * @static
  8830. */
  8831. public static function getLanguages()
  8832. {
  8833. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8834. /** @var \Illuminate\Http\Request $instance */
  8835. return $instance->getLanguages();
  8836. }
  8837. /**
  8838. * Gets a list of charsets acceptable by the client browser.
  8839. *
  8840. * @return array List of charsets in preferable order
  8841. * @static
  8842. */
  8843. public static function getCharsets()
  8844. {
  8845. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8846. /** @var \Illuminate\Http\Request $instance */
  8847. return $instance->getCharsets();
  8848. }
  8849. /**
  8850. * Gets a list of encodings acceptable by the client browser.
  8851. *
  8852. * @return array List of encodings in preferable order
  8853. * @static
  8854. */
  8855. public static function getEncodings()
  8856. {
  8857. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8858. /** @var \Illuminate\Http\Request $instance */
  8859. return $instance->getEncodings();
  8860. }
  8861. /**
  8862. * Gets a list of content types acceptable by the client browser.
  8863. *
  8864. * @return array List of content types in preferable order
  8865. * @static
  8866. */
  8867. public static function getAcceptableContentTypes()
  8868. {
  8869. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8870. /** @var \Illuminate\Http\Request $instance */
  8871. return $instance->getAcceptableContentTypes();
  8872. }
  8873. /**
  8874. * Returns true if the request is a XMLHttpRequest.
  8875. *
  8876. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  8877. * It is known to work with common JavaScript frameworks:
  8878. *
  8879. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  8880. * @return bool true if the request is an XMLHttpRequest, false otherwise
  8881. * @static
  8882. */
  8883. public static function isXmlHttpRequest()
  8884. {
  8885. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8886. /** @var \Illuminate\Http\Request $instance */
  8887. return $instance->isXmlHttpRequest();
  8888. }
  8889. /**
  8890. * Indicates whether this request originated from a trusted proxy.
  8891. *
  8892. * This can be useful to determine whether or not to trust the
  8893. * contents of a proxy-specific header.
  8894. *
  8895. * @return bool true if the request came from a trusted proxy, false otherwise
  8896. * @static
  8897. */
  8898. public static function isFromTrustedProxy()
  8899. {
  8900. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8901. /** @var \Illuminate\Http\Request $instance */
  8902. return $instance->isFromTrustedProxy();
  8903. }
  8904. /**
  8905. * Determine if the given content types match.
  8906. *
  8907. * @param string $actual
  8908. * @param string $type
  8909. * @return bool
  8910. * @static
  8911. */
  8912. public static function matchesType($actual, $type)
  8913. {
  8914. return \Illuminate\Http\Request::matchesType($actual, $type);
  8915. }
  8916. /**
  8917. * Determine if the request is sending JSON.
  8918. *
  8919. * @return bool
  8920. * @static
  8921. */
  8922. public static function isJson()
  8923. {
  8924. /** @var \Illuminate\Http\Request $instance */
  8925. return $instance->isJson();
  8926. }
  8927. /**
  8928. * Determine if the current request probably expects a JSON response.
  8929. *
  8930. * @return bool
  8931. * @static
  8932. */
  8933. public static function expectsJson()
  8934. {
  8935. /** @var \Illuminate\Http\Request $instance */
  8936. return $instance->expectsJson();
  8937. }
  8938. /**
  8939. * Determine if the current request is asking for JSON.
  8940. *
  8941. * @return bool
  8942. * @static
  8943. */
  8944. public static function wantsJson()
  8945. {
  8946. /** @var \Illuminate\Http\Request $instance */
  8947. return $instance->wantsJson();
  8948. }
  8949. /**
  8950. * Determines whether the current requests accepts a given content type.
  8951. *
  8952. * @param string|array $contentTypes
  8953. * @return bool
  8954. * @static
  8955. */
  8956. public static function accepts($contentTypes)
  8957. {
  8958. /** @var \Illuminate\Http\Request $instance */
  8959. return $instance->accepts($contentTypes);
  8960. }
  8961. /**
  8962. * Return the most suitable content type from the given array based on content negotiation.
  8963. *
  8964. * @param string|array $contentTypes
  8965. * @return string|null
  8966. * @static
  8967. */
  8968. public static function prefers($contentTypes)
  8969. {
  8970. /** @var \Illuminate\Http\Request $instance */
  8971. return $instance->prefers($contentTypes);
  8972. }
  8973. /**
  8974. * Determine if the current request accepts any content type.
  8975. *
  8976. * @return bool
  8977. * @static
  8978. */
  8979. public static function acceptsAnyContentType()
  8980. {
  8981. /** @var \Illuminate\Http\Request $instance */
  8982. return $instance->acceptsAnyContentType();
  8983. }
  8984. /**
  8985. * Determines whether a request accepts JSON.
  8986. *
  8987. * @return bool
  8988. * @static
  8989. */
  8990. public static function acceptsJson()
  8991. {
  8992. /** @var \Illuminate\Http\Request $instance */
  8993. return $instance->acceptsJson();
  8994. }
  8995. /**
  8996. * Determines whether a request accepts HTML.
  8997. *
  8998. * @return bool
  8999. * @static
  9000. */
  9001. public static function acceptsHtml()
  9002. {
  9003. /** @var \Illuminate\Http\Request $instance */
  9004. return $instance->acceptsHtml();
  9005. }
  9006. /**
  9007. * Get the data format expected in the response.
  9008. *
  9009. * @param string $default
  9010. * @return string
  9011. * @static
  9012. */
  9013. public static function format($default = 'html')
  9014. {
  9015. /** @var \Illuminate\Http\Request $instance */
  9016. return $instance->format($default);
  9017. }
  9018. /**
  9019. * Retrieve an old input item.
  9020. *
  9021. * @param string $key
  9022. * @param string|array|null $default
  9023. * @return string|array
  9024. * @static
  9025. */
  9026. public static function old($key = null, $default = null)
  9027. {
  9028. /** @var \Illuminate\Http\Request $instance */
  9029. return $instance->old($key, $default);
  9030. }
  9031. /**
  9032. * Flash the input for the current request to the session.
  9033. *
  9034. * @return void
  9035. * @static
  9036. */
  9037. public static function flash()
  9038. {
  9039. /** @var \Illuminate\Http\Request $instance */
  9040. $instance->flash();
  9041. }
  9042. /**
  9043. * Flash only some of the input to the session.
  9044. *
  9045. * @param array|mixed $keys
  9046. * @return void
  9047. * @static
  9048. */
  9049. public static function flashOnly($keys)
  9050. {
  9051. /** @var \Illuminate\Http\Request $instance */
  9052. $instance->flashOnly($keys);
  9053. }
  9054. /**
  9055. * Flash only some of the input to the session.
  9056. *
  9057. * @param array|mixed $keys
  9058. * @return void
  9059. * @static
  9060. */
  9061. public static function flashExcept($keys)
  9062. {
  9063. /** @var \Illuminate\Http\Request $instance */
  9064. $instance->flashExcept($keys);
  9065. }
  9066. /**
  9067. * Flush all of the old input from the session.
  9068. *
  9069. * @return void
  9070. * @static
  9071. */
  9072. public static function flush()
  9073. {
  9074. /** @var \Illuminate\Http\Request $instance */
  9075. $instance->flush();
  9076. }
  9077. /**
  9078. * Retrieve a server variable from the request.
  9079. *
  9080. * @param string $key
  9081. * @param string|array|null $default
  9082. * @return string|array
  9083. * @static
  9084. */
  9085. public static function server($key = null, $default = null)
  9086. {
  9087. /** @var \Illuminate\Http\Request $instance */
  9088. return $instance->server($key, $default);
  9089. }
  9090. /**
  9091. * Determine if a header is set on the request.
  9092. *
  9093. * @param string $key
  9094. * @return bool
  9095. * @static
  9096. */
  9097. public static function hasHeader($key)
  9098. {
  9099. /** @var \Illuminate\Http\Request $instance */
  9100. return $instance->hasHeader($key);
  9101. }
  9102. /**
  9103. * Retrieve a header from the request.
  9104. *
  9105. * @param string $key
  9106. * @param string|array|null $default
  9107. * @return string|array
  9108. * @static
  9109. */
  9110. public static function header($key = null, $default = null)
  9111. {
  9112. /** @var \Illuminate\Http\Request $instance */
  9113. return $instance->header($key, $default);
  9114. }
  9115. /**
  9116. * Get the bearer token from the request headers.
  9117. *
  9118. * @return string|null
  9119. * @static
  9120. */
  9121. public static function bearerToken()
  9122. {
  9123. /** @var \Illuminate\Http\Request $instance */
  9124. return $instance->bearerToken();
  9125. }
  9126. /**
  9127. * Determine if the request contains a given input item key.
  9128. *
  9129. * @param string|array $key
  9130. * @return bool
  9131. * @static
  9132. */
  9133. public static function exists($key)
  9134. {
  9135. /** @var \Illuminate\Http\Request $instance */
  9136. return $instance->exists($key);
  9137. }
  9138. /**
  9139. * Determine if the request contains a given input item key.
  9140. *
  9141. * @param string|array $key
  9142. * @return bool
  9143. * @static
  9144. */
  9145. public static function has($key)
  9146. {
  9147. /** @var \Illuminate\Http\Request $instance */
  9148. return $instance->has($key);
  9149. }
  9150. /**
  9151. * Determine if the request contains any of the given inputs.
  9152. *
  9153. * @param string|array $keys
  9154. * @return bool
  9155. * @static
  9156. */
  9157. public static function hasAny($keys)
  9158. {
  9159. /** @var \Illuminate\Http\Request $instance */
  9160. return $instance->hasAny($keys);
  9161. }
  9162. /**
  9163. * Determine if the request contains a non-empty value for an input item.
  9164. *
  9165. * @param string|array $key
  9166. * @return bool
  9167. * @static
  9168. */
  9169. public static function filled($key)
  9170. {
  9171. /** @var \Illuminate\Http\Request $instance */
  9172. return $instance->filled($key);
  9173. }
  9174. /**
  9175. * Determine if the request contains a non-empty value for any of the given inputs.
  9176. *
  9177. * @param string|array $keys
  9178. * @return bool
  9179. * @static
  9180. */
  9181. public static function anyFilled($keys)
  9182. {
  9183. /** @var \Illuminate\Http\Request $instance */
  9184. return $instance->anyFilled($keys);
  9185. }
  9186. /**
  9187. * Get the keys for all of the input and files.
  9188. *
  9189. * @return array
  9190. * @static
  9191. */
  9192. public static function keys()
  9193. {
  9194. /** @var \Illuminate\Http\Request $instance */
  9195. return $instance->keys();
  9196. }
  9197. /**
  9198. * Get all of the input and files for the request.
  9199. *
  9200. * @param array|mixed $keys
  9201. * @return array
  9202. * @static
  9203. */
  9204. public static function all($keys = null)
  9205. {
  9206. /** @var \Illuminate\Http\Request $instance */
  9207. return $instance->all($keys);
  9208. }
  9209. /**
  9210. * Retrieve an input item from the request.
  9211. *
  9212. * @param string|null $key
  9213. * @param string|array|null $default
  9214. * @return string|array|null
  9215. * @static
  9216. */
  9217. public static function input($key = null, $default = null)
  9218. {
  9219. /** @var \Illuminate\Http\Request $instance */
  9220. return $instance->input($key, $default);
  9221. }
  9222. /**
  9223. * Get a subset containing the provided keys with values from the input data.
  9224. *
  9225. * @param array|mixed $keys
  9226. * @return array
  9227. * @static
  9228. */
  9229. public static function only($keys)
  9230. {
  9231. /** @var \Illuminate\Http\Request $instance */
  9232. return $instance->only($keys);
  9233. }
  9234. /**
  9235. * Get all of the input except for a specified array of items.
  9236. *
  9237. * @param array|mixed $keys
  9238. * @return array
  9239. * @static
  9240. */
  9241. public static function except($keys)
  9242. {
  9243. /** @var \Illuminate\Http\Request $instance */
  9244. return $instance->except($keys);
  9245. }
  9246. /**
  9247. * Retrieve a query string item from the request.
  9248. *
  9249. * @param string $key
  9250. * @param string|array|null $default
  9251. * @return string|array
  9252. * @static
  9253. */
  9254. public static function query($key = null, $default = null)
  9255. {
  9256. /** @var \Illuminate\Http\Request $instance */
  9257. return $instance->query($key, $default);
  9258. }
  9259. /**
  9260. * Retrieve a request payload item from the request.
  9261. *
  9262. * @param string $key
  9263. * @param string|array|null $default
  9264. * @return string|array
  9265. * @static
  9266. */
  9267. public static function post($key = null, $default = null)
  9268. {
  9269. /** @var \Illuminate\Http\Request $instance */
  9270. return $instance->post($key, $default);
  9271. }
  9272. /**
  9273. * Determine if a cookie is set on the request.
  9274. *
  9275. * @param string $key
  9276. * @return bool
  9277. * @static
  9278. */
  9279. public static function hasCookie($key)
  9280. {
  9281. /** @var \Illuminate\Http\Request $instance */
  9282. return $instance->hasCookie($key);
  9283. }
  9284. /**
  9285. * Retrieve a cookie from the request.
  9286. *
  9287. * @param string $key
  9288. * @param string|array|null $default
  9289. * @return string|array
  9290. * @static
  9291. */
  9292. public static function cookie($key = null, $default = null)
  9293. {
  9294. /** @var \Illuminate\Http\Request $instance */
  9295. return $instance->cookie($key, $default);
  9296. }
  9297. /**
  9298. * Get an array of all of the files on the request.
  9299. *
  9300. * @return array
  9301. * @static
  9302. */
  9303. public static function allFiles()
  9304. {
  9305. /** @var \Illuminate\Http\Request $instance */
  9306. return $instance->allFiles();
  9307. }
  9308. /**
  9309. * Determine if the uploaded data contains a file.
  9310. *
  9311. * @param string $key
  9312. * @return bool
  9313. * @static
  9314. */
  9315. public static function hasFile($key)
  9316. {
  9317. /** @var \Illuminate\Http\Request $instance */
  9318. return $instance->hasFile($key);
  9319. }
  9320. /**
  9321. * Retrieve a file from the request.
  9322. *
  9323. * @param string $key
  9324. * @param mixed $default
  9325. * @return \Illuminate\Http\UploadedFile|array|null
  9326. * @static
  9327. */
  9328. public static function file($key = null, $default = null)
  9329. {
  9330. /** @var \Illuminate\Http\Request $instance */
  9331. return $instance->file($key, $default);
  9332. }
  9333. /**
  9334. * Register a custom macro.
  9335. *
  9336. * @param string $name
  9337. * @param object|callable $macro
  9338. * @return void
  9339. * @static
  9340. */
  9341. public static function macro($name, $macro)
  9342. {
  9343. \Illuminate\Http\Request::macro($name, $macro);
  9344. }
  9345. /**
  9346. * Mix another object into the class.
  9347. *
  9348. * @param object $mixin
  9349. * @return void
  9350. * @throws \ReflectionException
  9351. * @static
  9352. */
  9353. public static function mixin($mixin)
  9354. {
  9355. \Illuminate\Http\Request::mixin($mixin);
  9356. }
  9357. /**
  9358. * Checks if macro is registered.
  9359. *
  9360. * @param string $name
  9361. * @return bool
  9362. * @static
  9363. */
  9364. public static function hasMacro($name)
  9365. {
  9366. return \Illuminate\Http\Request::hasMacro($name);
  9367. }
  9368. /**
  9369. *
  9370. *
  9371. * @static
  9372. */
  9373. public static function validate($rules, $params = null)
  9374. {
  9375. return \Illuminate\Http\Request::validate($rules, $params);
  9376. }
  9377. /**
  9378. *
  9379. *
  9380. * @static
  9381. */
  9382. public static function hasValidSignature()
  9383. {
  9384. return \Illuminate\Http\Request::hasValidSignature();
  9385. }
  9386. }
  9387. /**
  9388. *
  9389. *
  9390. * @see \Illuminate\Contracts\Routing\ResponseFactory
  9391. */
  9392. class Response {
  9393. /**
  9394. * Return a new response from the application.
  9395. *
  9396. * @param string $content
  9397. * @param int $status
  9398. * @param array $headers
  9399. * @return \Illuminate\Http\Response
  9400. * @static
  9401. */
  9402. public static function make($content = '', $status = 200, $headers = array())
  9403. {
  9404. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9405. return $instance->make($content, $status, $headers);
  9406. }
  9407. /**
  9408. * Return a new view response from the application.
  9409. *
  9410. * @param string $view
  9411. * @param array $data
  9412. * @param int $status
  9413. * @param array $headers
  9414. * @return \Illuminate\Http\Response
  9415. * @static
  9416. */
  9417. public static function view($view, $data = array(), $status = 200, $headers = array())
  9418. {
  9419. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9420. return $instance->view($view, $data, $status, $headers);
  9421. }
  9422. /**
  9423. * Return a new JSON response from the application.
  9424. *
  9425. * @param mixed $data
  9426. * @param int $status
  9427. * @param array $headers
  9428. * @param int $options
  9429. * @return \Illuminate\Http\JsonResponse
  9430. * @static
  9431. */
  9432. public static function json($data = array(), $status = 200, $headers = array(), $options = 0)
  9433. {
  9434. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9435. return $instance->json($data, $status, $headers, $options);
  9436. }
  9437. /**
  9438. * Return a new JSONP response from the application.
  9439. *
  9440. * @param string $callback
  9441. * @param mixed $data
  9442. * @param int $status
  9443. * @param array $headers
  9444. * @param int $options
  9445. * @return \Illuminate\Http\JsonResponse
  9446. * @static
  9447. */
  9448. public static function jsonp($callback, $data = array(), $status = 200, $headers = array(), $options = 0)
  9449. {
  9450. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9451. return $instance->jsonp($callback, $data, $status, $headers, $options);
  9452. }
  9453. /**
  9454. * Return a new streamed response from the application.
  9455. *
  9456. * @param \Closure $callback
  9457. * @param int $status
  9458. * @param array $headers
  9459. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9460. * @static
  9461. */
  9462. public static function stream($callback, $status = 200, $headers = array())
  9463. {
  9464. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9465. return $instance->stream($callback, $status, $headers);
  9466. }
  9467. /**
  9468. * Return a new streamed response as a file download from the application.
  9469. *
  9470. * @param \Closure $callback
  9471. * @param string|null $name
  9472. * @param array $headers
  9473. * @param string|null $disposition
  9474. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9475. * @static
  9476. */
  9477. public static function streamDownload($callback, $name = null, $headers = array(), $disposition = 'attachment')
  9478. {
  9479. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9480. return $instance->streamDownload($callback, $name, $headers, $disposition);
  9481. }
  9482. /**
  9483. * Create a new file download response.
  9484. *
  9485. * @param \SplFileInfo|string $file
  9486. * @param string|null $name
  9487. * @param array $headers
  9488. * @param string|null $disposition
  9489. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9490. * @static
  9491. */
  9492. public static function download($file, $name = null, $headers = array(), $disposition = 'attachment')
  9493. {
  9494. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9495. return $instance->download($file, $name, $headers, $disposition);
  9496. }
  9497. /**
  9498. * Return the raw contents of a binary file.
  9499. *
  9500. * @param \SplFileInfo|string $file
  9501. * @param array $headers
  9502. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9503. * @static
  9504. */
  9505. public static function file($file, $headers = array())
  9506. {
  9507. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9508. return $instance->file($file, $headers);
  9509. }
  9510. /**
  9511. * Create a new redirect response to the given path.
  9512. *
  9513. * @param string $path
  9514. * @param int $status
  9515. * @param array $headers
  9516. * @param bool|null $secure
  9517. * @return \Illuminate\Http\RedirectResponse
  9518. * @static
  9519. */
  9520. public static function redirectTo($path, $status = 302, $headers = array(), $secure = null)
  9521. {
  9522. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9523. return $instance->redirectTo($path, $status, $headers, $secure);
  9524. }
  9525. /**
  9526. * Create a new redirect response to a named route.
  9527. *
  9528. * @param string $route
  9529. * @param array $parameters
  9530. * @param int $status
  9531. * @param array $headers
  9532. * @return \Illuminate\Http\RedirectResponse
  9533. * @static
  9534. */
  9535. public static function redirectToRoute($route, $parameters = array(), $status = 302, $headers = array())
  9536. {
  9537. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9538. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  9539. }
  9540. /**
  9541. * Create a new redirect response to a controller action.
  9542. *
  9543. * @param string $action
  9544. * @param array $parameters
  9545. * @param int $status
  9546. * @param array $headers
  9547. * @return \Illuminate\Http\RedirectResponse
  9548. * @static
  9549. */
  9550. public static function redirectToAction($action, $parameters = array(), $status = 302, $headers = array())
  9551. {
  9552. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9553. return $instance->redirectToAction($action, $parameters, $status, $headers);
  9554. }
  9555. /**
  9556. * Create a new redirect response, while putting the current URL in the session.
  9557. *
  9558. * @param string $path
  9559. * @param int $status
  9560. * @param array $headers
  9561. * @param bool|null $secure
  9562. * @return \Illuminate\Http\RedirectResponse
  9563. * @static
  9564. */
  9565. public static function redirectGuest($path, $status = 302, $headers = array(), $secure = null)
  9566. {
  9567. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9568. return $instance->redirectGuest($path, $status, $headers, $secure);
  9569. }
  9570. /**
  9571. * Create a new redirect response to the previously intended location.
  9572. *
  9573. * @param string $default
  9574. * @param int $status
  9575. * @param array $headers
  9576. * @param bool|null $secure
  9577. * @return \Illuminate\Http\RedirectResponse
  9578. * @static
  9579. */
  9580. public static function redirectToIntended($default = '/', $status = 302, $headers = array(), $secure = null)
  9581. {
  9582. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9583. return $instance->redirectToIntended($default, $status, $headers, $secure);
  9584. }
  9585. /**
  9586. * Register a custom macro.
  9587. *
  9588. * @param string $name
  9589. * @param object|callable $macro
  9590. * @return void
  9591. * @static
  9592. */
  9593. public static function macro($name, $macro)
  9594. {
  9595. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  9596. }
  9597. /**
  9598. * Mix another object into the class.
  9599. *
  9600. * @param object $mixin
  9601. * @return void
  9602. * @throws \ReflectionException
  9603. * @static
  9604. */
  9605. public static function mixin($mixin)
  9606. {
  9607. \Illuminate\Routing\ResponseFactory::mixin($mixin);
  9608. }
  9609. /**
  9610. * Checks if macro is registered.
  9611. *
  9612. * @param string $name
  9613. * @return bool
  9614. * @static
  9615. */
  9616. public static function hasMacro($name)
  9617. {
  9618. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  9619. }
  9620. }
  9621. /**
  9622. *
  9623. *
  9624. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  9625. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  9626. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  9627. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  9628. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  9629. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  9630. * @method static \Illuminate\Routing\RouteRegistrar namespace(string $value)
  9631. * @see \Illuminate\Routing\Router
  9632. */
  9633. class Route {
  9634. /**
  9635. * Register a new GET route with the router.
  9636. *
  9637. * @param string $uri
  9638. * @param \Closure|array|string|null $action
  9639. * @return \Illuminate\Routing\Route
  9640. * @static
  9641. */
  9642. public static function get($uri, $action = null)
  9643. {
  9644. /** @var \Illuminate\Routing\Router $instance */
  9645. return $instance->get($uri, $action);
  9646. }
  9647. /**
  9648. * Register a new POST route with the router.
  9649. *
  9650. * @param string $uri
  9651. * @param \Closure|array|string|null $action
  9652. * @return \Illuminate\Routing\Route
  9653. * @static
  9654. */
  9655. public static function post($uri, $action = null)
  9656. {
  9657. /** @var \Illuminate\Routing\Router $instance */
  9658. return $instance->post($uri, $action);
  9659. }
  9660. /**
  9661. * Register a new PUT route with the router.
  9662. *
  9663. * @param string $uri
  9664. * @param \Closure|array|string|null $action
  9665. * @return \Illuminate\Routing\Route
  9666. * @static
  9667. */
  9668. public static function put($uri, $action = null)
  9669. {
  9670. /** @var \Illuminate\Routing\Router $instance */
  9671. return $instance->put($uri, $action);
  9672. }
  9673. /**
  9674. * Register a new PATCH route with the router.
  9675. *
  9676. * @param string $uri
  9677. * @param \Closure|array|string|null $action
  9678. * @return \Illuminate\Routing\Route
  9679. * @static
  9680. */
  9681. public static function patch($uri, $action = null)
  9682. {
  9683. /** @var \Illuminate\Routing\Router $instance */
  9684. return $instance->patch($uri, $action);
  9685. }
  9686. /**
  9687. * Register a new DELETE route with the router.
  9688. *
  9689. * @param string $uri
  9690. * @param \Closure|array|string|null $action
  9691. * @return \Illuminate\Routing\Route
  9692. * @static
  9693. */
  9694. public static function delete($uri, $action = null)
  9695. {
  9696. /** @var \Illuminate\Routing\Router $instance */
  9697. return $instance->delete($uri, $action);
  9698. }
  9699. /**
  9700. * Register a new OPTIONS route with the router.
  9701. *
  9702. * @param string $uri
  9703. * @param \Closure|array|string|null $action
  9704. * @return \Illuminate\Routing\Route
  9705. * @static
  9706. */
  9707. public static function options($uri, $action = null)
  9708. {
  9709. /** @var \Illuminate\Routing\Router $instance */
  9710. return $instance->options($uri, $action);
  9711. }
  9712. /**
  9713. * Register a new route responding to all verbs.
  9714. *
  9715. * @param string $uri
  9716. * @param \Closure|array|string|null $action
  9717. * @return \Illuminate\Routing\Route
  9718. * @static
  9719. */
  9720. public static function any($uri, $action = null)
  9721. {
  9722. /** @var \Illuminate\Routing\Router $instance */
  9723. return $instance->any($uri, $action);
  9724. }
  9725. /**
  9726. * Register a new Fallback route with the router.
  9727. *
  9728. * @param \Closure|array|string|null $action
  9729. * @return \Illuminate\Routing\Route
  9730. * @static
  9731. */
  9732. public static function fallback($action)
  9733. {
  9734. /** @var \Illuminate\Routing\Router $instance */
  9735. return $instance->fallback($action);
  9736. }
  9737. /**
  9738. * Create a redirect from one URI to another.
  9739. *
  9740. * @param string $uri
  9741. * @param string $destination
  9742. * @param int $status
  9743. * @return \Illuminate\Routing\Route
  9744. * @static
  9745. */
  9746. public static function redirect($uri, $destination, $status = 301)
  9747. {
  9748. /** @var \Illuminate\Routing\Router $instance */
  9749. return $instance->redirect($uri, $destination, $status);
  9750. }
  9751. /**
  9752. * Register a new route that returns a view.
  9753. *
  9754. * @param string $uri
  9755. * @param string $view
  9756. * @param array $data
  9757. * @return \Illuminate\Routing\Route
  9758. * @static
  9759. */
  9760. public static function view($uri, $view, $data = array())
  9761. {
  9762. /** @var \Illuminate\Routing\Router $instance */
  9763. return $instance->view($uri, $view, $data);
  9764. }
  9765. /**
  9766. * Register a new route with the given verbs.
  9767. *
  9768. * @param array|string $methods
  9769. * @param string $uri
  9770. * @param \Closure|array|string|null $action
  9771. * @return \Illuminate\Routing\Route
  9772. * @static
  9773. */
  9774. public static function match($methods, $uri, $action = null)
  9775. {
  9776. /** @var \Illuminate\Routing\Router $instance */
  9777. return $instance->match($methods, $uri, $action);
  9778. }
  9779. /**
  9780. * Register an array of resource controllers.
  9781. *
  9782. * @param array $resources
  9783. * @return void
  9784. * @static
  9785. */
  9786. public static function resources($resources)
  9787. {
  9788. /** @var \Illuminate\Routing\Router $instance */
  9789. $instance->resources($resources);
  9790. }
  9791. /**
  9792. * Route a resource to a controller.
  9793. *
  9794. * @param string $name
  9795. * @param string $controller
  9796. * @param array $options
  9797. * @return \Illuminate\Routing\PendingResourceRegistration
  9798. * @static
  9799. */
  9800. public static function resource($name, $controller, $options = array())
  9801. {
  9802. /** @var \Illuminate\Routing\Router $instance */
  9803. return $instance->resource($name, $controller, $options);
  9804. }
  9805. /**
  9806. * Register an array of API resource controllers.
  9807. *
  9808. * @param array $resources
  9809. * @return void
  9810. * @static
  9811. */
  9812. public static function apiResources($resources)
  9813. {
  9814. /** @var \Illuminate\Routing\Router $instance */
  9815. $instance->apiResources($resources);
  9816. }
  9817. /**
  9818. * Route an API resource to a controller.
  9819. *
  9820. * @param string $name
  9821. * @param string $controller
  9822. * @param array $options
  9823. * @return \Illuminate\Routing\PendingResourceRegistration
  9824. * @static
  9825. */
  9826. public static function apiResource($name, $controller, $options = array())
  9827. {
  9828. /** @var \Illuminate\Routing\Router $instance */
  9829. return $instance->apiResource($name, $controller, $options);
  9830. }
  9831. /**
  9832. * Create a route group with shared attributes.
  9833. *
  9834. * @param array $attributes
  9835. * @param \Closure|string $routes
  9836. * @return void
  9837. * @static
  9838. */
  9839. public static function group($attributes, $routes)
  9840. {
  9841. /** @var \Illuminate\Routing\Router $instance */
  9842. $instance->group($attributes, $routes);
  9843. }
  9844. /**
  9845. * Merge the given array with the last group stack.
  9846. *
  9847. * @param array $new
  9848. * @return array
  9849. * @static
  9850. */
  9851. public static function mergeWithLastGroup($new)
  9852. {
  9853. /** @var \Illuminate\Routing\Router $instance */
  9854. return $instance->mergeWithLastGroup($new);
  9855. }
  9856. /**
  9857. * Get the prefix from the last group on the stack.
  9858. *
  9859. * @return string
  9860. * @static
  9861. */
  9862. public static function getLastGroupPrefix()
  9863. {
  9864. /** @var \Illuminate\Routing\Router $instance */
  9865. return $instance->getLastGroupPrefix();
  9866. }
  9867. /**
  9868. * Add a route to the underlying route collection.
  9869. *
  9870. * @param array|string $methods
  9871. * @param string $uri
  9872. * @param \Closure|array|string|null $action
  9873. * @return \Illuminate\Routing\Route
  9874. * @static
  9875. */
  9876. public static function addRoute($methods, $uri, $action)
  9877. {
  9878. /** @var \Illuminate\Routing\Router $instance */
  9879. return $instance->addRoute($methods, $uri, $action);
  9880. }
  9881. /**
  9882. * Return the response returned by the given route.
  9883. *
  9884. * @param string $name
  9885. * @return mixed
  9886. * @static
  9887. */
  9888. public static function respondWithRoute($name)
  9889. {
  9890. /** @var \Illuminate\Routing\Router $instance */
  9891. return $instance->respondWithRoute($name);
  9892. }
  9893. /**
  9894. * Dispatch the request to the application.
  9895. *
  9896. * @param \Illuminate\Http\Request $request
  9897. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9898. * @static
  9899. */
  9900. public static function dispatch($request)
  9901. {
  9902. /** @var \Illuminate\Routing\Router $instance */
  9903. return $instance->dispatch($request);
  9904. }
  9905. /**
  9906. * Dispatch the request to a route and return the response.
  9907. *
  9908. * @param \Illuminate\Http\Request $request
  9909. * @return mixed
  9910. * @static
  9911. */
  9912. public static function dispatchToRoute($request)
  9913. {
  9914. /** @var \Illuminate\Routing\Router $instance */
  9915. return $instance->dispatchToRoute($request);
  9916. }
  9917. /**
  9918. * Gather the middleware for the given route with resolved class names.
  9919. *
  9920. * @param \Illuminate\Routing\Route $route
  9921. * @return array
  9922. * @static
  9923. */
  9924. public static function gatherRouteMiddleware($route)
  9925. {
  9926. /** @var \Illuminate\Routing\Router $instance */
  9927. return $instance->gatherRouteMiddleware($route);
  9928. }
  9929. /**
  9930. * Create a response instance from the given value.
  9931. *
  9932. * @param \Symfony\Component\HttpFoundation\Request $request
  9933. * @param mixed $response
  9934. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9935. * @static
  9936. */
  9937. public static function prepareResponse($request, $response)
  9938. {
  9939. /** @var \Illuminate\Routing\Router $instance */
  9940. return $instance->prepareResponse($request, $response);
  9941. }
  9942. /**
  9943. * Static version of prepareResponse.
  9944. *
  9945. * @param \Symfony\Component\HttpFoundation\Request $request
  9946. * @param mixed $response
  9947. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9948. * @static
  9949. */
  9950. public static function toResponse($request, $response)
  9951. {
  9952. return \Illuminate\Routing\Router::toResponse($request, $response);
  9953. }
  9954. /**
  9955. * Substitute the route bindings onto the route.
  9956. *
  9957. * @param \Illuminate\Routing\Route $route
  9958. * @return \Illuminate\Routing\Route
  9959. * @static
  9960. */
  9961. public static function substituteBindings($route)
  9962. {
  9963. /** @var \Illuminate\Routing\Router $instance */
  9964. return $instance->substituteBindings($route);
  9965. }
  9966. /**
  9967. * Substitute the implicit Eloquent model bindings for the route.
  9968. *
  9969. * @param \Illuminate\Routing\Route $route
  9970. * @return void
  9971. * @static
  9972. */
  9973. public static function substituteImplicitBindings($route)
  9974. {
  9975. /** @var \Illuminate\Routing\Router $instance */
  9976. $instance->substituteImplicitBindings($route);
  9977. }
  9978. /**
  9979. * Register a route matched event listener.
  9980. *
  9981. * @param string|callable $callback
  9982. * @return void
  9983. * @static
  9984. */
  9985. public static function matched($callback)
  9986. {
  9987. /** @var \Illuminate\Routing\Router $instance */
  9988. $instance->matched($callback);
  9989. }
  9990. /**
  9991. * Get all of the defined middleware short-hand names.
  9992. *
  9993. * @return array
  9994. * @static
  9995. */
  9996. public static function getMiddleware()
  9997. {
  9998. /** @var \Illuminate\Routing\Router $instance */
  9999. return $instance->getMiddleware();
  10000. }
  10001. /**
  10002. * Register a short-hand name for a middleware.
  10003. *
  10004. * @param string $name
  10005. * @param string $class
  10006. * @return \Illuminate\Routing\Router
  10007. * @static
  10008. */
  10009. public static function aliasMiddleware($name, $class)
  10010. {
  10011. /** @var \Illuminate\Routing\Router $instance */
  10012. return $instance->aliasMiddleware($name, $class);
  10013. }
  10014. /**
  10015. * Check if a middlewareGroup with the given name exists.
  10016. *
  10017. * @param string $name
  10018. * @return bool
  10019. * @static
  10020. */
  10021. public static function hasMiddlewareGroup($name)
  10022. {
  10023. /** @var \Illuminate\Routing\Router $instance */
  10024. return $instance->hasMiddlewareGroup($name);
  10025. }
  10026. /**
  10027. * Get all of the defined middleware groups.
  10028. *
  10029. * @return array
  10030. * @static
  10031. */
  10032. public static function getMiddlewareGroups()
  10033. {
  10034. /** @var \Illuminate\Routing\Router $instance */
  10035. return $instance->getMiddlewareGroups();
  10036. }
  10037. /**
  10038. * Register a group of middleware.
  10039. *
  10040. * @param string $name
  10041. * @param array $middleware
  10042. * @return \Illuminate\Routing\Router
  10043. * @static
  10044. */
  10045. public static function middlewareGroup($name, $middleware)
  10046. {
  10047. /** @var \Illuminate\Routing\Router $instance */
  10048. return $instance->middlewareGroup($name, $middleware);
  10049. }
  10050. /**
  10051. * Add a middleware to the beginning of a middleware group.
  10052. *
  10053. * If the middleware is already in the group, it will not be added again.
  10054. *
  10055. * @param string $group
  10056. * @param string $middleware
  10057. * @return \Illuminate\Routing\Router
  10058. * @static
  10059. */
  10060. public static function prependMiddlewareToGroup($group, $middleware)
  10061. {
  10062. /** @var \Illuminate\Routing\Router $instance */
  10063. return $instance->prependMiddlewareToGroup($group, $middleware);
  10064. }
  10065. /**
  10066. * Add a middleware to the end of a middleware group.
  10067. *
  10068. * If the middleware is already in the group, it will not be added again.
  10069. *
  10070. * @param string $group
  10071. * @param string $middleware
  10072. * @return \Illuminate\Routing\Router
  10073. * @static
  10074. */
  10075. public static function pushMiddlewareToGroup($group, $middleware)
  10076. {
  10077. /** @var \Illuminate\Routing\Router $instance */
  10078. return $instance->pushMiddlewareToGroup($group, $middleware);
  10079. }
  10080. /**
  10081. * Add a new route parameter binder.
  10082. *
  10083. * @param string $key
  10084. * @param string|callable $binder
  10085. * @return void
  10086. * @static
  10087. */
  10088. public static function bind($key, $binder)
  10089. {
  10090. /** @var \Illuminate\Routing\Router $instance */
  10091. $instance->bind($key, $binder);
  10092. }
  10093. /**
  10094. * Register a model binder for a wildcard.
  10095. *
  10096. * @param string $key
  10097. * @param string $class
  10098. * @param \Closure|null $callback
  10099. * @return void
  10100. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10101. * @static
  10102. */
  10103. public static function model($key, $class, $callback = null)
  10104. {
  10105. /** @var \Illuminate\Routing\Router $instance */
  10106. $instance->model($key, $class, $callback);
  10107. }
  10108. /**
  10109. * Get the binding callback for a given binding.
  10110. *
  10111. * @param string $key
  10112. * @return \Closure|null
  10113. * @static
  10114. */
  10115. public static function getBindingCallback($key)
  10116. {
  10117. /** @var \Illuminate\Routing\Router $instance */
  10118. return $instance->getBindingCallback($key);
  10119. }
  10120. /**
  10121. * Get the global "where" patterns.
  10122. *
  10123. * @return array
  10124. * @static
  10125. */
  10126. public static function getPatterns()
  10127. {
  10128. /** @var \Illuminate\Routing\Router $instance */
  10129. return $instance->getPatterns();
  10130. }
  10131. /**
  10132. * Set a global where pattern on all routes.
  10133. *
  10134. * @param string $key
  10135. * @param string $pattern
  10136. * @return void
  10137. * @static
  10138. */
  10139. public static function pattern($key, $pattern)
  10140. {
  10141. /** @var \Illuminate\Routing\Router $instance */
  10142. $instance->pattern($key, $pattern);
  10143. }
  10144. /**
  10145. * Set a group of global where patterns on all routes.
  10146. *
  10147. * @param array $patterns
  10148. * @return void
  10149. * @static
  10150. */
  10151. public static function patterns($patterns)
  10152. {
  10153. /** @var \Illuminate\Routing\Router $instance */
  10154. $instance->patterns($patterns);
  10155. }
  10156. /**
  10157. * Determine if the router currently has a group stack.
  10158. *
  10159. * @return bool
  10160. * @static
  10161. */
  10162. public static function hasGroupStack()
  10163. {
  10164. /** @var \Illuminate\Routing\Router $instance */
  10165. return $instance->hasGroupStack();
  10166. }
  10167. /**
  10168. * Get the current group stack for the router.
  10169. *
  10170. * @return array
  10171. * @static
  10172. */
  10173. public static function getGroupStack()
  10174. {
  10175. /** @var \Illuminate\Routing\Router $instance */
  10176. return $instance->getGroupStack();
  10177. }
  10178. /**
  10179. * Get a route parameter for the current route.
  10180. *
  10181. * @param string $key
  10182. * @param string $default
  10183. * @return mixed
  10184. * @static
  10185. */
  10186. public static function input($key, $default = null)
  10187. {
  10188. /** @var \Illuminate\Routing\Router $instance */
  10189. return $instance->input($key, $default);
  10190. }
  10191. /**
  10192. * Get the request currently being dispatched.
  10193. *
  10194. * @return \Illuminate\Http\Request
  10195. * @static
  10196. */
  10197. public static function getCurrentRequest()
  10198. {
  10199. /** @var \Illuminate\Routing\Router $instance */
  10200. return $instance->getCurrentRequest();
  10201. }
  10202. /**
  10203. * Get the currently dispatched route instance.
  10204. *
  10205. * @return \Illuminate\Routing\Route
  10206. * @static
  10207. */
  10208. public static function getCurrentRoute()
  10209. {
  10210. /** @var \Illuminate\Routing\Router $instance */
  10211. return $instance->getCurrentRoute();
  10212. }
  10213. /**
  10214. * Get the currently dispatched route instance.
  10215. *
  10216. * @return \Illuminate\Routing\Route
  10217. * @static
  10218. */
  10219. public static function current()
  10220. {
  10221. /** @var \Illuminate\Routing\Router $instance */
  10222. return $instance->current();
  10223. }
  10224. /**
  10225. * Check if a route with the given name exists.
  10226. *
  10227. * @param string $name
  10228. * @return bool
  10229. * @static
  10230. */
  10231. public static function has($name)
  10232. {
  10233. /** @var \Illuminate\Routing\Router $instance */
  10234. return $instance->has($name);
  10235. }
  10236. /**
  10237. * Get the current route name.
  10238. *
  10239. * @return string|null
  10240. * @static
  10241. */
  10242. public static function currentRouteName()
  10243. {
  10244. /** @var \Illuminate\Routing\Router $instance */
  10245. return $instance->currentRouteName();
  10246. }
  10247. /**
  10248. * Alias for the "currentRouteNamed" method.
  10249. *
  10250. * @param mixed $patterns
  10251. * @return bool
  10252. * @static
  10253. */
  10254. public static function is($patterns = null)
  10255. {
  10256. /** @var \Illuminate\Routing\Router $instance */
  10257. return $instance->is($patterns);
  10258. }
  10259. /**
  10260. * Determine if the current route matches a pattern.
  10261. *
  10262. * @param mixed $patterns
  10263. * @return bool
  10264. * @static
  10265. */
  10266. public static function currentRouteNamed($patterns = null)
  10267. {
  10268. /** @var \Illuminate\Routing\Router $instance */
  10269. return $instance->currentRouteNamed($patterns);
  10270. }
  10271. /**
  10272. * Get the current route action.
  10273. *
  10274. * @return string|null
  10275. * @static
  10276. */
  10277. public static function currentRouteAction()
  10278. {
  10279. /** @var \Illuminate\Routing\Router $instance */
  10280. return $instance->currentRouteAction();
  10281. }
  10282. /**
  10283. * Alias for the "currentRouteUses" method.
  10284. *
  10285. * @param array $patterns
  10286. * @return bool
  10287. * @static
  10288. */
  10289. public static function uses($patterns = null)
  10290. {
  10291. /** @var \Illuminate\Routing\Router $instance */
  10292. return $instance->uses($patterns);
  10293. }
  10294. /**
  10295. * Determine if the current route action matches a given action.
  10296. *
  10297. * @param string $action
  10298. * @return bool
  10299. * @static
  10300. */
  10301. public static function currentRouteUses($action)
  10302. {
  10303. /** @var \Illuminate\Routing\Router $instance */
  10304. return $instance->currentRouteUses($action);
  10305. }
  10306. /**
  10307. * Register the typical authentication routes for an application.
  10308. *
  10309. * @return void
  10310. * @static
  10311. */
  10312. public static function auth()
  10313. {
  10314. /** @var \Illuminate\Routing\Router $instance */
  10315. $instance->auth();
  10316. }
  10317. /**
  10318. * Set the unmapped global resource parameters to singular.
  10319. *
  10320. * @param bool $singular
  10321. * @return void
  10322. * @static
  10323. */
  10324. public static function singularResourceParameters($singular = true)
  10325. {
  10326. /** @var \Illuminate\Routing\Router $instance */
  10327. $instance->singularResourceParameters($singular);
  10328. }
  10329. /**
  10330. * Set the global resource parameter mapping.
  10331. *
  10332. * @param array $parameters
  10333. * @return void
  10334. * @static
  10335. */
  10336. public static function resourceParameters($parameters = array())
  10337. {
  10338. /** @var \Illuminate\Routing\Router $instance */
  10339. $instance->resourceParameters($parameters);
  10340. }
  10341. /**
  10342. * Get or set the verbs used in the resource URIs.
  10343. *
  10344. * @param array $verbs
  10345. * @return array|null
  10346. * @static
  10347. */
  10348. public static function resourceVerbs($verbs = array())
  10349. {
  10350. /** @var \Illuminate\Routing\Router $instance */
  10351. return $instance->resourceVerbs($verbs);
  10352. }
  10353. /**
  10354. * Get the underlying route collection.
  10355. *
  10356. * @return \Illuminate\Routing\RouteCollection
  10357. * @static
  10358. */
  10359. public static function getRoutes()
  10360. {
  10361. /** @var \Illuminate\Routing\Router $instance */
  10362. return $instance->getRoutes();
  10363. }
  10364. /**
  10365. * Set the route collection instance.
  10366. *
  10367. * @param \Illuminate\Routing\RouteCollection $routes
  10368. * @return void
  10369. * @static
  10370. */
  10371. public static function setRoutes($routes)
  10372. {
  10373. /** @var \Illuminate\Routing\Router $instance */
  10374. $instance->setRoutes($routes);
  10375. }
  10376. /**
  10377. * Register a custom macro.
  10378. *
  10379. * @param string $name
  10380. * @param object|callable $macro
  10381. * @return void
  10382. * @static
  10383. */
  10384. public static function macro($name, $macro)
  10385. {
  10386. \Illuminate\Routing\Router::macro($name, $macro);
  10387. }
  10388. /**
  10389. * Mix another object into the class.
  10390. *
  10391. * @param object $mixin
  10392. * @return void
  10393. * @throws \ReflectionException
  10394. * @static
  10395. */
  10396. public static function mixin($mixin)
  10397. {
  10398. \Illuminate\Routing\Router::mixin($mixin);
  10399. }
  10400. /**
  10401. * Checks if macro is registered.
  10402. *
  10403. * @param string $name
  10404. * @return bool
  10405. * @static
  10406. */
  10407. public static function hasMacro($name)
  10408. {
  10409. return \Illuminate\Routing\Router::hasMacro($name);
  10410. }
  10411. /**
  10412. * Dynamically handle calls to the class.
  10413. *
  10414. * @param string $method
  10415. * @param array $parameters
  10416. * @return mixed
  10417. * @throws \BadMethodCallException
  10418. * @static
  10419. */
  10420. public static function macroCall($method, $parameters)
  10421. {
  10422. /** @var \Illuminate\Routing\Router $instance */
  10423. return $instance->macroCall($method, $parameters);
  10424. }
  10425. }
  10426. /**
  10427. *
  10428. *
  10429. * @see \Illuminate\Database\Schema\Builder
  10430. */
  10431. class Schema {
  10432. /**
  10433. * Determine if the given table exists.
  10434. *
  10435. * @param string $table
  10436. * @return bool
  10437. * @static
  10438. */
  10439. public static function hasTable($table)
  10440. {
  10441. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10442. return $instance->hasTable($table);
  10443. }
  10444. /**
  10445. * Get the column listing for a given table.
  10446. *
  10447. * @param string $table
  10448. * @return array
  10449. * @static
  10450. */
  10451. public static function getColumnListing($table)
  10452. {
  10453. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10454. return $instance->getColumnListing($table);
  10455. }
  10456. /**
  10457. * Drop all tables from the database.
  10458. *
  10459. * @return void
  10460. * @static
  10461. */
  10462. public static function dropAllTables()
  10463. {
  10464. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10465. $instance->dropAllTables();
  10466. }
  10467. /**
  10468. * Drop all views from the database.
  10469. *
  10470. * @return void
  10471. * @static
  10472. */
  10473. public static function dropAllViews()
  10474. {
  10475. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10476. $instance->dropAllViews();
  10477. }
  10478. /**
  10479. * Set the default string length for migrations.
  10480. *
  10481. * @param int $length
  10482. * @return void
  10483. * @static
  10484. */
  10485. public static function defaultStringLength($length)
  10486. {
  10487. //Method inherited from \Illuminate\Database\Schema\Builder
  10488. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  10489. }
  10490. /**
  10491. * Determine if the given table has a given column.
  10492. *
  10493. * @param string $table
  10494. * @param string $column
  10495. * @return bool
  10496. * @static
  10497. */
  10498. public static function hasColumn($table, $column)
  10499. {
  10500. //Method inherited from \Illuminate\Database\Schema\Builder
  10501. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10502. return $instance->hasColumn($table, $column);
  10503. }
  10504. /**
  10505. * Determine if the given table has given columns.
  10506. *
  10507. * @param string $table
  10508. * @param array $columns
  10509. * @return bool
  10510. * @static
  10511. */
  10512. public static function hasColumns($table, $columns)
  10513. {
  10514. //Method inherited from \Illuminate\Database\Schema\Builder
  10515. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10516. return $instance->hasColumns($table, $columns);
  10517. }
  10518. /**
  10519. * Get the data type for the given column name.
  10520. *
  10521. * @param string $table
  10522. * @param string $column
  10523. * @return string
  10524. * @static
  10525. */
  10526. public static function getColumnType($table, $column)
  10527. {
  10528. //Method inherited from \Illuminate\Database\Schema\Builder
  10529. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10530. return $instance->getColumnType($table, $column);
  10531. }
  10532. /**
  10533. * Modify a table on the schema.
  10534. *
  10535. * @param string $table
  10536. * @param \Closure $callback
  10537. * @return void
  10538. * @static
  10539. */
  10540. public static function table($table, $callback)
  10541. {
  10542. //Method inherited from \Illuminate\Database\Schema\Builder
  10543. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10544. $instance->table($table, $callback);
  10545. }
  10546. /**
  10547. * Create a new table on the schema.
  10548. *
  10549. * @param string $table
  10550. * @param \Closure $callback
  10551. * @return void
  10552. * @static
  10553. */
  10554. public static function create($table, $callback)
  10555. {
  10556. //Method inherited from \Illuminate\Database\Schema\Builder
  10557. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10558. $instance->create($table, $callback);
  10559. }
  10560. /**
  10561. * Drop a table from the schema.
  10562. *
  10563. * @param string $table
  10564. * @return void
  10565. * @static
  10566. */
  10567. public static function drop($table)
  10568. {
  10569. //Method inherited from \Illuminate\Database\Schema\Builder
  10570. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10571. $instance->drop($table);
  10572. }
  10573. /**
  10574. * Drop a table from the schema if it exists.
  10575. *
  10576. * @param string $table
  10577. * @return void
  10578. * @static
  10579. */
  10580. public static function dropIfExists($table)
  10581. {
  10582. //Method inherited from \Illuminate\Database\Schema\Builder
  10583. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10584. $instance->dropIfExists($table);
  10585. }
  10586. /**
  10587. * Rename a table on the schema.
  10588. *
  10589. * @param string $from
  10590. * @param string $to
  10591. * @return void
  10592. * @static
  10593. */
  10594. public static function rename($from, $to)
  10595. {
  10596. //Method inherited from \Illuminate\Database\Schema\Builder
  10597. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10598. $instance->rename($from, $to);
  10599. }
  10600. /**
  10601. * Enable foreign key constraints.
  10602. *
  10603. * @return bool
  10604. * @static
  10605. */
  10606. public static function enableForeignKeyConstraints()
  10607. {
  10608. //Method inherited from \Illuminate\Database\Schema\Builder
  10609. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10610. return $instance->enableForeignKeyConstraints();
  10611. }
  10612. /**
  10613. * Disable foreign key constraints.
  10614. *
  10615. * @return bool
  10616. * @static
  10617. */
  10618. public static function disableForeignKeyConstraints()
  10619. {
  10620. //Method inherited from \Illuminate\Database\Schema\Builder
  10621. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10622. return $instance->disableForeignKeyConstraints();
  10623. }
  10624. /**
  10625. * Get the database connection instance.
  10626. *
  10627. * @return \Illuminate\Database\Connection
  10628. * @static
  10629. */
  10630. public static function getConnection()
  10631. {
  10632. //Method inherited from \Illuminate\Database\Schema\Builder
  10633. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10634. return $instance->getConnection();
  10635. }
  10636. /**
  10637. * Set the database connection instance.
  10638. *
  10639. * @param \Illuminate\Database\Connection $connection
  10640. * @return \Illuminate\Database\Schema\MySqlBuilder
  10641. * @static
  10642. */
  10643. public static function setConnection($connection)
  10644. {
  10645. //Method inherited from \Illuminate\Database\Schema\Builder
  10646. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10647. return $instance->setConnection($connection);
  10648. }
  10649. /**
  10650. * Set the Schema Blueprint resolver callback.
  10651. *
  10652. * @param \Closure $resolver
  10653. * @return void
  10654. * @static
  10655. */
  10656. public static function blueprintResolver($resolver)
  10657. {
  10658. //Method inherited from \Illuminate\Database\Schema\Builder
  10659. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10660. $instance->blueprintResolver($resolver);
  10661. }
  10662. }
  10663. /**
  10664. *
  10665. *
  10666. * @see \Illuminate\Session\SessionManager
  10667. * @see \Illuminate\Session\Store
  10668. */
  10669. class Session {
  10670. /**
  10671. * Get the session configuration.
  10672. *
  10673. * @return array
  10674. * @static
  10675. */
  10676. public static function getSessionConfig()
  10677. {
  10678. /** @var \Illuminate\Session\SessionManager $instance */
  10679. return $instance->getSessionConfig();
  10680. }
  10681. /**
  10682. * Get the default session driver name.
  10683. *
  10684. * @return string
  10685. * @static
  10686. */
  10687. public static function getDefaultDriver()
  10688. {
  10689. /** @var \Illuminate\Session\SessionManager $instance */
  10690. return $instance->getDefaultDriver();
  10691. }
  10692. /**
  10693. * Set the default session driver name.
  10694. *
  10695. * @param string $name
  10696. * @return void
  10697. * @static
  10698. */
  10699. public static function setDefaultDriver($name)
  10700. {
  10701. /** @var \Illuminate\Session\SessionManager $instance */
  10702. $instance->setDefaultDriver($name);
  10703. }
  10704. /**
  10705. * Get a driver instance.
  10706. *
  10707. * @param string $driver
  10708. * @return mixed
  10709. * @throws \InvalidArgumentException
  10710. * @static
  10711. */
  10712. public static function driver($driver = null)
  10713. {
  10714. //Method inherited from \Illuminate\Support\Manager
  10715. /** @var \Illuminate\Session\SessionManager $instance */
  10716. return $instance->driver($driver);
  10717. }
  10718. /**
  10719. * Register a custom driver creator Closure.
  10720. *
  10721. * @param string $driver
  10722. * @param \Closure $callback
  10723. * @return \Illuminate\Session\SessionManager
  10724. * @static
  10725. */
  10726. public static function extend($driver, $callback)
  10727. {
  10728. //Method inherited from \Illuminate\Support\Manager
  10729. /** @var \Illuminate\Session\SessionManager $instance */
  10730. return $instance->extend($driver, $callback);
  10731. }
  10732. /**
  10733. * Get all of the created "drivers".
  10734. *
  10735. * @return array
  10736. * @static
  10737. */
  10738. public static function getDrivers()
  10739. {
  10740. //Method inherited from \Illuminate\Support\Manager
  10741. /** @var \Illuminate\Session\SessionManager $instance */
  10742. return $instance->getDrivers();
  10743. }
  10744. /**
  10745. * Start the session, reading the data from a handler.
  10746. *
  10747. * @return bool
  10748. * @static
  10749. */
  10750. public static function start()
  10751. {
  10752. /** @var \Illuminate\Session\Store $instance */
  10753. return $instance->start();
  10754. }
  10755. /**
  10756. * Save the session data to storage.
  10757. *
  10758. * @return bool
  10759. * @static
  10760. */
  10761. public static function save()
  10762. {
  10763. /** @var \Illuminate\Session\Store $instance */
  10764. return $instance->save();
  10765. }
  10766. /**
  10767. * Age the flash data for the session.
  10768. *
  10769. * @return void
  10770. * @static
  10771. */
  10772. public static function ageFlashData()
  10773. {
  10774. /** @var \Illuminate\Session\Store $instance */
  10775. $instance->ageFlashData();
  10776. }
  10777. /**
  10778. * Get all of the session data.
  10779. *
  10780. * @return array
  10781. * @static
  10782. */
  10783. public static function all()
  10784. {
  10785. /** @var \Illuminate\Session\Store $instance */
  10786. return $instance->all();
  10787. }
  10788. /**
  10789. * Checks if a key exists.
  10790. *
  10791. * @param string|array $key
  10792. * @return bool
  10793. * @static
  10794. */
  10795. public static function exists($key)
  10796. {
  10797. /** @var \Illuminate\Session\Store $instance */
  10798. return $instance->exists($key);
  10799. }
  10800. /**
  10801. * Checks if a key is present and not null.
  10802. *
  10803. * @param string|array $key
  10804. * @return bool
  10805. * @static
  10806. */
  10807. public static function has($key)
  10808. {
  10809. /** @var \Illuminate\Session\Store $instance */
  10810. return $instance->has($key);
  10811. }
  10812. /**
  10813. * Get an item from the session.
  10814. *
  10815. * @param string $key
  10816. * @param mixed $default
  10817. * @return mixed
  10818. * @static
  10819. */
  10820. public static function get($key, $default = null)
  10821. {
  10822. /** @var \Illuminate\Session\Store $instance */
  10823. return $instance->get($key, $default);
  10824. }
  10825. /**
  10826. * Get the value of a given key and then forget it.
  10827. *
  10828. * @param string $key
  10829. * @param string $default
  10830. * @return mixed
  10831. * @static
  10832. */
  10833. public static function pull($key, $default = null)
  10834. {
  10835. /** @var \Illuminate\Session\Store $instance */
  10836. return $instance->pull($key, $default);
  10837. }
  10838. /**
  10839. * Determine if the session contains old input.
  10840. *
  10841. * @param string $key
  10842. * @return bool
  10843. * @static
  10844. */
  10845. public static function hasOldInput($key = null)
  10846. {
  10847. /** @var \Illuminate\Session\Store $instance */
  10848. return $instance->hasOldInput($key);
  10849. }
  10850. /**
  10851. * Get the requested item from the flashed input array.
  10852. *
  10853. * @param string $key
  10854. * @param mixed $default
  10855. * @return mixed
  10856. * @static
  10857. */
  10858. public static function getOldInput($key = null, $default = null)
  10859. {
  10860. /** @var \Illuminate\Session\Store $instance */
  10861. return $instance->getOldInput($key, $default);
  10862. }
  10863. /**
  10864. * Replace the given session attributes entirely.
  10865. *
  10866. * @param array $attributes
  10867. * @return void
  10868. * @static
  10869. */
  10870. public static function replace($attributes)
  10871. {
  10872. /** @var \Illuminate\Session\Store $instance */
  10873. $instance->replace($attributes);
  10874. }
  10875. /**
  10876. * Put a key / value pair or array of key / value pairs in the session.
  10877. *
  10878. * @param string|array $key
  10879. * @param mixed $value
  10880. * @return void
  10881. * @static
  10882. */
  10883. public static function put($key, $value = null)
  10884. {
  10885. /** @var \Illuminate\Session\Store $instance */
  10886. $instance->put($key, $value);
  10887. }
  10888. /**
  10889. * Get an item from the session, or store the default value.
  10890. *
  10891. * @param string $key
  10892. * @param \Closure $callback
  10893. * @return mixed
  10894. * @static
  10895. */
  10896. public static function remember($key, $callback)
  10897. {
  10898. /** @var \Illuminate\Session\Store $instance */
  10899. return $instance->remember($key, $callback);
  10900. }
  10901. /**
  10902. * Push a value onto a session array.
  10903. *
  10904. * @param string $key
  10905. * @param mixed $value
  10906. * @return void
  10907. * @static
  10908. */
  10909. public static function push($key, $value)
  10910. {
  10911. /** @var \Illuminate\Session\Store $instance */
  10912. $instance->push($key, $value);
  10913. }
  10914. /**
  10915. * Increment the value of an item in the session.
  10916. *
  10917. * @param string $key
  10918. * @param int $amount
  10919. * @return mixed
  10920. * @static
  10921. */
  10922. public static function increment($key, $amount = 1)
  10923. {
  10924. /** @var \Illuminate\Session\Store $instance */
  10925. return $instance->increment($key, $amount);
  10926. }
  10927. /**
  10928. * Decrement the value of an item in the session.
  10929. *
  10930. * @param string $key
  10931. * @param int $amount
  10932. * @return int
  10933. * @static
  10934. */
  10935. public static function decrement($key, $amount = 1)
  10936. {
  10937. /** @var \Illuminate\Session\Store $instance */
  10938. return $instance->decrement($key, $amount);
  10939. }
  10940. /**
  10941. * Flash a key / value pair to the session.
  10942. *
  10943. * @param string $key
  10944. * @param mixed $value
  10945. * @return void
  10946. * @static
  10947. */
  10948. public static function flash($key, $value = true)
  10949. {
  10950. /** @var \Illuminate\Session\Store $instance */
  10951. $instance->flash($key, $value);
  10952. }
  10953. /**
  10954. * Flash a key / value pair to the session for immediate use.
  10955. *
  10956. * @param string $key
  10957. * @param mixed $value
  10958. * @return void
  10959. * @static
  10960. */
  10961. public static function now($key, $value)
  10962. {
  10963. /** @var \Illuminate\Session\Store $instance */
  10964. $instance->now($key, $value);
  10965. }
  10966. /**
  10967. * Reflash all of the session flash data.
  10968. *
  10969. * @return void
  10970. * @static
  10971. */
  10972. public static function reflash()
  10973. {
  10974. /** @var \Illuminate\Session\Store $instance */
  10975. $instance->reflash();
  10976. }
  10977. /**
  10978. * Reflash a subset of the current flash data.
  10979. *
  10980. * @param array|mixed $keys
  10981. * @return void
  10982. * @static
  10983. */
  10984. public static function keep($keys = null)
  10985. {
  10986. /** @var \Illuminate\Session\Store $instance */
  10987. $instance->keep($keys);
  10988. }
  10989. /**
  10990. * Flash an input array to the session.
  10991. *
  10992. * @param array $value
  10993. * @return void
  10994. * @static
  10995. */
  10996. public static function flashInput($value)
  10997. {
  10998. /** @var \Illuminate\Session\Store $instance */
  10999. $instance->flashInput($value);
  11000. }
  11001. /**
  11002. * Remove an item from the session, returning its value.
  11003. *
  11004. * @param string $key
  11005. * @return mixed
  11006. * @static
  11007. */
  11008. public static function remove($key)
  11009. {
  11010. /** @var \Illuminate\Session\Store $instance */
  11011. return $instance->remove($key);
  11012. }
  11013. /**
  11014. * Remove one or many items from the session.
  11015. *
  11016. * @param string|array $keys
  11017. * @return void
  11018. * @static
  11019. */
  11020. public static function forget($keys)
  11021. {
  11022. /** @var \Illuminate\Session\Store $instance */
  11023. $instance->forget($keys);
  11024. }
  11025. /**
  11026. * Remove all of the items from the session.
  11027. *
  11028. * @return void
  11029. * @static
  11030. */
  11031. public static function flush()
  11032. {
  11033. /** @var \Illuminate\Session\Store $instance */
  11034. $instance->flush();
  11035. }
  11036. /**
  11037. * Flush the session data and regenerate the ID.
  11038. *
  11039. * @return bool
  11040. * @static
  11041. */
  11042. public static function invalidate()
  11043. {
  11044. /** @var \Illuminate\Session\Store $instance */
  11045. return $instance->invalidate();
  11046. }
  11047. /**
  11048. * Generate a new session identifier.
  11049. *
  11050. * @param bool $destroy
  11051. * @return bool
  11052. * @static
  11053. */
  11054. public static function regenerate($destroy = false)
  11055. {
  11056. /** @var \Illuminate\Session\Store $instance */
  11057. return $instance->regenerate($destroy);
  11058. }
  11059. /**
  11060. * Generate a new session ID for the session.
  11061. *
  11062. * @param bool $destroy
  11063. * @return bool
  11064. * @static
  11065. */
  11066. public static function migrate($destroy = false)
  11067. {
  11068. /** @var \Illuminate\Session\Store $instance */
  11069. return $instance->migrate($destroy);
  11070. }
  11071. /**
  11072. * Determine if the session has been started.
  11073. *
  11074. * @return bool
  11075. * @static
  11076. */
  11077. public static function isStarted()
  11078. {
  11079. /** @var \Illuminate\Session\Store $instance */
  11080. return $instance->isStarted();
  11081. }
  11082. /**
  11083. * Get the name of the session.
  11084. *
  11085. * @return string
  11086. * @static
  11087. */
  11088. public static function getName()
  11089. {
  11090. /** @var \Illuminate\Session\Store $instance */
  11091. return $instance->getName();
  11092. }
  11093. /**
  11094. * Set the name of the session.
  11095. *
  11096. * @param string $name
  11097. * @return void
  11098. * @static
  11099. */
  11100. public static function setName($name)
  11101. {
  11102. /** @var \Illuminate\Session\Store $instance */
  11103. $instance->setName($name);
  11104. }
  11105. /**
  11106. * Get the current session ID.
  11107. *
  11108. * @return string
  11109. * @static
  11110. */
  11111. public static function getId()
  11112. {
  11113. /** @var \Illuminate\Session\Store $instance */
  11114. return $instance->getId();
  11115. }
  11116. /**
  11117. * Set the session ID.
  11118. *
  11119. * @param string $id
  11120. * @return void
  11121. * @static
  11122. */
  11123. public static function setId($id)
  11124. {
  11125. /** @var \Illuminate\Session\Store $instance */
  11126. $instance->setId($id);
  11127. }
  11128. /**
  11129. * Determine if this is a valid session ID.
  11130. *
  11131. * @param string $id
  11132. * @return bool
  11133. * @static
  11134. */
  11135. public static function isValidId($id)
  11136. {
  11137. /** @var \Illuminate\Session\Store $instance */
  11138. return $instance->isValidId($id);
  11139. }
  11140. /**
  11141. * Set the existence of the session on the handler if applicable.
  11142. *
  11143. * @param bool $value
  11144. * @return void
  11145. * @static
  11146. */
  11147. public static function setExists($value)
  11148. {
  11149. /** @var \Illuminate\Session\Store $instance */
  11150. $instance->setExists($value);
  11151. }
  11152. /**
  11153. * Get the CSRF token value.
  11154. *
  11155. * @return string
  11156. * @static
  11157. */
  11158. public static function token()
  11159. {
  11160. /** @var \Illuminate\Session\Store $instance */
  11161. return $instance->token();
  11162. }
  11163. /**
  11164. * Regenerate the CSRF token value.
  11165. *
  11166. * @return void
  11167. * @static
  11168. */
  11169. public static function regenerateToken()
  11170. {
  11171. /** @var \Illuminate\Session\Store $instance */
  11172. $instance->regenerateToken();
  11173. }
  11174. /**
  11175. * Get the previous URL from the session.
  11176. *
  11177. * @return string|null
  11178. * @static
  11179. */
  11180. public static function previousUrl()
  11181. {
  11182. /** @var \Illuminate\Session\Store $instance */
  11183. return $instance->previousUrl();
  11184. }
  11185. /**
  11186. * Set the "previous" URL in the session.
  11187. *
  11188. * @param string $url
  11189. * @return void
  11190. * @static
  11191. */
  11192. public static function setPreviousUrl($url)
  11193. {
  11194. /** @var \Illuminate\Session\Store $instance */
  11195. $instance->setPreviousUrl($url);
  11196. }
  11197. /**
  11198. * Get the underlying session handler implementation.
  11199. *
  11200. * @return \SessionHandlerInterface
  11201. * @static
  11202. */
  11203. public static function getHandler()
  11204. {
  11205. /** @var \Illuminate\Session\Store $instance */
  11206. return $instance->getHandler();
  11207. }
  11208. /**
  11209. * Determine if the session handler needs a request.
  11210. *
  11211. * @return bool
  11212. * @static
  11213. */
  11214. public static function handlerNeedsRequest()
  11215. {
  11216. /** @var \Illuminate\Session\Store $instance */
  11217. return $instance->handlerNeedsRequest();
  11218. }
  11219. /**
  11220. * Set the request on the handler instance.
  11221. *
  11222. * @param \Illuminate\Http\Request $request
  11223. * @return void
  11224. * @static
  11225. */
  11226. public static function setRequestOnHandler($request)
  11227. {
  11228. /** @var \Illuminate\Session\Store $instance */
  11229. $instance->setRequestOnHandler($request);
  11230. }
  11231. }
  11232. /**
  11233. *
  11234. *
  11235. * @see \Illuminate\Filesystem\FilesystemManager
  11236. */
  11237. class Storage {
  11238. /**
  11239. * Get a filesystem instance.
  11240. *
  11241. * @param string $name
  11242. * @return \Illuminate\Filesystem\FilesystemAdapter
  11243. * @static
  11244. */
  11245. public static function drive($name = null)
  11246. {
  11247. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11248. return $instance->drive($name);
  11249. }
  11250. /**
  11251. * Get a filesystem instance.
  11252. *
  11253. * @param string $name
  11254. * @return \Illuminate\Filesystem\FilesystemAdapter
  11255. * @static
  11256. */
  11257. public static function disk($name = null)
  11258. {
  11259. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11260. return $instance->disk($name);
  11261. }
  11262. /**
  11263. * Get a default cloud filesystem instance.
  11264. *
  11265. * @return \Illuminate\Filesystem\FilesystemAdapter
  11266. * @static
  11267. */
  11268. public static function cloud()
  11269. {
  11270. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11271. return $instance->cloud();
  11272. }
  11273. /**
  11274. * Create an instance of the local driver.
  11275. *
  11276. * @param array $config
  11277. * @return \Illuminate\Filesystem\FilesystemAdapter
  11278. * @static
  11279. */
  11280. public static function createLocalDriver($config)
  11281. {
  11282. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11283. return $instance->createLocalDriver($config);
  11284. }
  11285. /**
  11286. * Create an instance of the ftp driver.
  11287. *
  11288. * @param array $config
  11289. * @return \Illuminate\Filesystem\FilesystemAdapter
  11290. * @static
  11291. */
  11292. public static function createFtpDriver($config)
  11293. {
  11294. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11295. return $instance->createFtpDriver($config);
  11296. }
  11297. /**
  11298. * Create an instance of the sftp driver.
  11299. *
  11300. * @param array $config
  11301. * @return \Illuminate\Filesystem\FilesystemAdapter
  11302. * @static
  11303. */
  11304. public static function createSftpDriver($config)
  11305. {
  11306. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11307. return $instance->createSftpDriver($config);
  11308. }
  11309. /**
  11310. * Create an instance of the Amazon S3 driver.
  11311. *
  11312. * @param array $config
  11313. * @return \Illuminate\Contracts\Filesystem\Cloud
  11314. * @static
  11315. */
  11316. public static function createS3Driver($config)
  11317. {
  11318. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11319. return $instance->createS3Driver($config);
  11320. }
  11321. /**
  11322. * Create an instance of the Rackspace driver.
  11323. *
  11324. * @param array $config
  11325. * @return \Illuminate\Contracts\Filesystem\Cloud
  11326. * @static
  11327. */
  11328. public static function createRackspaceDriver($config)
  11329. {
  11330. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11331. return $instance->createRackspaceDriver($config);
  11332. }
  11333. /**
  11334. * Set the given disk instance.
  11335. *
  11336. * @param string $name
  11337. * @param mixed $disk
  11338. * @return \Illuminate\Filesystem\FilesystemManager
  11339. * @static
  11340. */
  11341. public static function set($name, $disk)
  11342. {
  11343. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11344. return $instance->set($name, $disk);
  11345. }
  11346. /**
  11347. * Get the default driver name.
  11348. *
  11349. * @return string
  11350. * @static
  11351. */
  11352. public static function getDefaultDriver()
  11353. {
  11354. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11355. return $instance->getDefaultDriver();
  11356. }
  11357. /**
  11358. * Get the default cloud driver name.
  11359. *
  11360. * @return string
  11361. * @static
  11362. */
  11363. public static function getDefaultCloudDriver()
  11364. {
  11365. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11366. return $instance->getDefaultCloudDriver();
  11367. }
  11368. /**
  11369. * Unset the given disk instances.
  11370. *
  11371. * @param array|string $disk
  11372. * @return \Illuminate\Filesystem\FilesystemManager
  11373. * @static
  11374. */
  11375. public static function forgetDisk($disk)
  11376. {
  11377. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11378. return $instance->forgetDisk($disk);
  11379. }
  11380. /**
  11381. * Register a custom driver creator Closure.
  11382. *
  11383. * @param string $driver
  11384. * @param \Closure $callback
  11385. * @return \Illuminate\Filesystem\FilesystemManager
  11386. * @static
  11387. */
  11388. public static function extend($driver, $callback)
  11389. {
  11390. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11391. return $instance->extend($driver, $callback);
  11392. }
  11393. /**
  11394. * Assert that the given file exists.
  11395. *
  11396. * @param string $path
  11397. * @return void
  11398. * @static
  11399. */
  11400. public static function assertExists($path)
  11401. {
  11402. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11403. $instance->assertExists($path);
  11404. }
  11405. /**
  11406. * Assert that the given file does not exist.
  11407. *
  11408. * @param string $path
  11409. * @return void
  11410. * @static
  11411. */
  11412. public static function assertMissing($path)
  11413. {
  11414. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11415. $instance->assertMissing($path);
  11416. }
  11417. /**
  11418. * Determine if a file exists.
  11419. *
  11420. * @param string $path
  11421. * @return bool
  11422. * @static
  11423. */
  11424. public static function exists($path)
  11425. {
  11426. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11427. return $instance->exists($path);
  11428. }
  11429. /**
  11430. * Get the full path for the file at the given "short" path.
  11431. *
  11432. * @param string $path
  11433. * @return string
  11434. * @static
  11435. */
  11436. public static function path($path)
  11437. {
  11438. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11439. return $instance->path($path);
  11440. }
  11441. /**
  11442. * Get the contents of a file.
  11443. *
  11444. * @param string $path
  11445. * @return string
  11446. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  11447. * @static
  11448. */
  11449. public static function get($path)
  11450. {
  11451. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11452. return $instance->get($path);
  11453. }
  11454. /**
  11455. * Create a streamed response for a given file.
  11456. *
  11457. * @param string $path
  11458. * @param string|null $name
  11459. * @param array|null $headers
  11460. * @param string|null $disposition
  11461. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11462. * @static
  11463. */
  11464. public static function response($path, $name = null, $headers = array(), $disposition = 'inline')
  11465. {
  11466. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11467. return $instance->response($path, $name, $headers, $disposition);
  11468. }
  11469. /**
  11470. * Create a streamed download response for a given file.
  11471. *
  11472. * @param string $path
  11473. * @param string|null $name
  11474. * @param array|null $headers
  11475. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11476. * @static
  11477. */
  11478. public static function download($path, $name = null, $headers = array())
  11479. {
  11480. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11481. return $instance->download($path, $name, $headers);
  11482. }
  11483. /**
  11484. * Write the contents of a file.
  11485. *
  11486. * @param string $path
  11487. * @param string|resource $contents
  11488. * @param mixed $options
  11489. * @return bool
  11490. * @static
  11491. */
  11492. public static function put($path, $contents, $options = array())
  11493. {
  11494. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11495. return $instance->put($path, $contents, $options);
  11496. }
  11497. /**
  11498. * Store the uploaded file on the disk.
  11499. *
  11500. * @param string $path
  11501. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11502. * @param array $options
  11503. * @return string|false
  11504. * @static
  11505. */
  11506. public static function putFile($path, $file, $options = array())
  11507. {
  11508. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11509. return $instance->putFile($path, $file, $options);
  11510. }
  11511. /**
  11512. * Store the uploaded file on the disk with a given name.
  11513. *
  11514. * @param string $path
  11515. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11516. * @param string $name
  11517. * @param array $options
  11518. * @return string|false
  11519. * @static
  11520. */
  11521. public static function putFileAs($path, $file, $name, $options = array())
  11522. {
  11523. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11524. return $instance->putFileAs($path, $file, $name, $options);
  11525. }
  11526. /**
  11527. * Get the visibility for the given path.
  11528. *
  11529. * @param string $path
  11530. * @return string
  11531. * @static
  11532. */
  11533. public static function getVisibility($path)
  11534. {
  11535. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11536. return $instance->getVisibility($path);
  11537. }
  11538. /**
  11539. * Set the visibility for the given path.
  11540. *
  11541. * @param string $path
  11542. * @param string $visibility
  11543. * @return void
  11544. * @static
  11545. */
  11546. public static function setVisibility($path, $visibility)
  11547. {
  11548. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11549. $instance->setVisibility($path, $visibility);
  11550. }
  11551. /**
  11552. * Prepend to a file.
  11553. *
  11554. * @param string $path
  11555. * @param string $data
  11556. * @param string $separator
  11557. * @return int
  11558. * @static
  11559. */
  11560. public static function prepend($path, $data, $separator = '')
  11561. {
  11562. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11563. return $instance->prepend($path, $data, $separator);
  11564. }
  11565. /**
  11566. * Append to a file.
  11567. *
  11568. * @param string $path
  11569. * @param string $data
  11570. * @param string $separator
  11571. * @return int
  11572. * @static
  11573. */
  11574. public static function append($path, $data, $separator = '')
  11575. {
  11576. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11577. return $instance->append($path, $data, $separator);
  11578. }
  11579. /**
  11580. * Delete the file at a given path.
  11581. *
  11582. * @param string|array $paths
  11583. * @return bool
  11584. * @static
  11585. */
  11586. public static function delete($paths)
  11587. {
  11588. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11589. return $instance->delete($paths);
  11590. }
  11591. /**
  11592. * Copy a file to a new location.
  11593. *
  11594. * @param string $from
  11595. * @param string $to
  11596. * @return bool
  11597. * @static
  11598. */
  11599. public static function copy($from, $to)
  11600. {
  11601. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11602. return $instance->copy($from, $to);
  11603. }
  11604. /**
  11605. * Move a file to a new location.
  11606. *
  11607. * @param string $from
  11608. * @param string $to
  11609. * @return bool
  11610. * @static
  11611. */
  11612. public static function move($from, $to)
  11613. {
  11614. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11615. return $instance->move($from, $to);
  11616. }
  11617. /**
  11618. * Get the file size of a given file.
  11619. *
  11620. * @param string $path
  11621. * @return int
  11622. * @static
  11623. */
  11624. public static function size($path)
  11625. {
  11626. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11627. return $instance->size($path);
  11628. }
  11629. /**
  11630. * Get the mime-type of a given file.
  11631. *
  11632. * @param string $path
  11633. * @return string|false
  11634. * @static
  11635. */
  11636. public static function mimeType($path)
  11637. {
  11638. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11639. return $instance->mimeType($path);
  11640. }
  11641. /**
  11642. * Get the file's last modification time.
  11643. *
  11644. * @param string $path
  11645. * @return int
  11646. * @static
  11647. */
  11648. public static function lastModified($path)
  11649. {
  11650. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11651. return $instance->lastModified($path);
  11652. }
  11653. /**
  11654. * Get the URL for the file at the given path.
  11655. *
  11656. * @param string $path
  11657. * @return string
  11658. * @static
  11659. */
  11660. public static function url($path)
  11661. {
  11662. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11663. return $instance->url($path);
  11664. }
  11665. /**
  11666. * Get a temporary URL for the file at the given path.
  11667. *
  11668. * @param string $path
  11669. * @param \DateTimeInterface $expiration
  11670. * @param array $options
  11671. * @return string
  11672. * @static
  11673. */
  11674. public static function temporaryUrl($path, $expiration, $options = array())
  11675. {
  11676. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11677. return $instance->temporaryUrl($path, $expiration, $options);
  11678. }
  11679. /**
  11680. * Get a temporary URL for the file at the given path.
  11681. *
  11682. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  11683. * @param string $path
  11684. * @param \DateTimeInterface $expiration
  11685. * @param array $options
  11686. * @return string
  11687. * @static
  11688. */
  11689. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  11690. {
  11691. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11692. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  11693. }
  11694. /**
  11695. * Get a temporary URL for the file at the given path.
  11696. *
  11697. * @param \League\Flysystem\Rackspace\RackspaceAdapter $adapter
  11698. * @param string $path
  11699. * @param \DateTimeInterface $expiration
  11700. * @param array $options
  11701. * @return string
  11702. * @static
  11703. */
  11704. public static function getRackspaceTemporaryUrl($adapter, $path, $expiration, $options)
  11705. {
  11706. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11707. return $instance->getRackspaceTemporaryUrl($adapter, $path, $expiration, $options);
  11708. }
  11709. /**
  11710. * Get an array of all files in a directory.
  11711. *
  11712. * @param string|null $directory
  11713. * @param bool $recursive
  11714. * @return array
  11715. * @static
  11716. */
  11717. public static function files($directory = null, $recursive = false)
  11718. {
  11719. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11720. return $instance->files($directory, $recursive);
  11721. }
  11722. /**
  11723. * Get all of the files from the given directory (recursive).
  11724. *
  11725. * @param string|null $directory
  11726. * @return array
  11727. * @static
  11728. */
  11729. public static function allFiles($directory = null)
  11730. {
  11731. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11732. return $instance->allFiles($directory);
  11733. }
  11734. /**
  11735. * Get all of the directories within a given directory.
  11736. *
  11737. * @param string|null $directory
  11738. * @param bool $recursive
  11739. * @return array
  11740. * @static
  11741. */
  11742. public static function directories($directory = null, $recursive = false)
  11743. {
  11744. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11745. return $instance->directories($directory, $recursive);
  11746. }
  11747. /**
  11748. * Get all (recursive) of the directories within a given directory.
  11749. *
  11750. * @param string|null $directory
  11751. * @return array
  11752. * @static
  11753. */
  11754. public static function allDirectories($directory = null)
  11755. {
  11756. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11757. return $instance->allDirectories($directory);
  11758. }
  11759. /**
  11760. * Create a directory.
  11761. *
  11762. * @param string $path
  11763. * @return bool
  11764. * @static
  11765. */
  11766. public static function makeDirectory($path)
  11767. {
  11768. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11769. return $instance->makeDirectory($path);
  11770. }
  11771. /**
  11772. * Recursively delete a directory.
  11773. *
  11774. * @param string $directory
  11775. * @return bool
  11776. * @static
  11777. */
  11778. public static function deleteDirectory($directory)
  11779. {
  11780. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11781. return $instance->deleteDirectory($directory);
  11782. }
  11783. /**
  11784. * Flush the Flysystem cache.
  11785. *
  11786. * @return void
  11787. * @static
  11788. */
  11789. public static function flushCache()
  11790. {
  11791. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11792. $instance->flushCache();
  11793. }
  11794. /**
  11795. * Get the Flysystem driver.
  11796. *
  11797. * @return \League\Flysystem\FilesystemInterface
  11798. * @static
  11799. */
  11800. public static function getDriver()
  11801. {
  11802. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11803. return $instance->getDriver();
  11804. }
  11805. }
  11806. /**
  11807. *
  11808. *
  11809. * @see \Illuminate\Routing\UrlGenerator
  11810. */
  11811. class URL {
  11812. /**
  11813. * Get the full URL for the current request.
  11814. *
  11815. * @return string
  11816. * @static
  11817. */
  11818. public static function full()
  11819. {
  11820. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11821. return $instance->full();
  11822. }
  11823. /**
  11824. * Get the current URL for the request.
  11825. *
  11826. * @return string
  11827. * @static
  11828. */
  11829. public static function current()
  11830. {
  11831. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11832. return $instance->current();
  11833. }
  11834. /**
  11835. * Get the URL for the previous request.
  11836. *
  11837. * @param mixed $fallback
  11838. * @return string
  11839. * @static
  11840. */
  11841. public static function previous($fallback = false)
  11842. {
  11843. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11844. return $instance->previous($fallback);
  11845. }
  11846. /**
  11847. * Generate an absolute URL to the given path.
  11848. *
  11849. * @param string $path
  11850. * @param mixed $extra
  11851. * @param bool|null $secure
  11852. * @return string
  11853. * @static
  11854. */
  11855. public static function to($path, $extra = array(), $secure = null)
  11856. {
  11857. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11858. return $instance->to($path, $extra, $secure);
  11859. }
  11860. /**
  11861. * Generate a secure, absolute URL to the given path.
  11862. *
  11863. * @param string $path
  11864. * @param array $parameters
  11865. * @return string
  11866. * @static
  11867. */
  11868. public static function secure($path, $parameters = array())
  11869. {
  11870. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11871. return $instance->secure($path, $parameters);
  11872. }
  11873. /**
  11874. * Generate the URL to an application asset.
  11875. *
  11876. * @param string $path
  11877. * @param bool|null $secure
  11878. * @return string
  11879. * @static
  11880. */
  11881. public static function asset($path, $secure = null)
  11882. {
  11883. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11884. return $instance->asset($path, $secure);
  11885. }
  11886. /**
  11887. * Generate the URL to a secure asset.
  11888. *
  11889. * @param string $path
  11890. * @return string
  11891. * @static
  11892. */
  11893. public static function secureAsset($path)
  11894. {
  11895. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11896. return $instance->secureAsset($path);
  11897. }
  11898. /**
  11899. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  11900. *
  11901. * @param string $root
  11902. * @param string $path
  11903. * @param bool|null $secure
  11904. * @return string
  11905. * @static
  11906. */
  11907. public static function assetFrom($root, $path, $secure = null)
  11908. {
  11909. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11910. return $instance->assetFrom($root, $path, $secure);
  11911. }
  11912. /**
  11913. * Get the default scheme for a raw URL.
  11914. *
  11915. * @param bool|null $secure
  11916. * @return string
  11917. * @static
  11918. */
  11919. public static function formatScheme($secure)
  11920. {
  11921. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11922. return $instance->formatScheme($secure);
  11923. }
  11924. /**
  11925. * Create a signed route URL for a named route.
  11926. *
  11927. * @param string $name
  11928. * @param array $parameters
  11929. * @param \DateTimeInterface|int $expiration
  11930. * @return string
  11931. * @static
  11932. */
  11933. public static function signedRoute($name, $parameters = array(), $expiration = null)
  11934. {
  11935. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11936. return $instance->signedRoute($name, $parameters, $expiration);
  11937. }
  11938. /**
  11939. * Create a temporary signed route URL for a named route.
  11940. *
  11941. * @param string $name
  11942. * @param \DateTimeInterface|int $expiration
  11943. * @param array $parameters
  11944. * @return string
  11945. * @static
  11946. */
  11947. public static function temporarySignedRoute($name, $expiration, $parameters = array())
  11948. {
  11949. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11950. return $instance->temporarySignedRoute($name, $expiration, $parameters);
  11951. }
  11952. /**
  11953. * Determine if the given request has a valid signature.
  11954. *
  11955. * @param \Illuminate\Http\Request $request
  11956. * @return bool
  11957. * @static
  11958. */
  11959. public static function hasValidSignature($request)
  11960. {
  11961. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11962. return $instance->hasValidSignature($request);
  11963. }
  11964. /**
  11965. * Get the URL to a named route.
  11966. *
  11967. * @param string $name
  11968. * @param mixed $parameters
  11969. * @param bool $absolute
  11970. * @return string
  11971. * @throws \InvalidArgumentException
  11972. * @static
  11973. */
  11974. public static function route($name, $parameters = array(), $absolute = true)
  11975. {
  11976. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11977. return $instance->route($name, $parameters, $absolute);
  11978. }
  11979. /**
  11980. * Get the URL to a controller action.
  11981. *
  11982. * @param string $action
  11983. * @param mixed $parameters
  11984. * @param bool $absolute
  11985. * @return string
  11986. * @throws \InvalidArgumentException
  11987. * @static
  11988. */
  11989. public static function action($action, $parameters = array(), $absolute = true)
  11990. {
  11991. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11992. return $instance->action($action, $parameters, $absolute);
  11993. }
  11994. /**
  11995. * Format the array of URL parameters.
  11996. *
  11997. * @param mixed|array $parameters
  11998. * @return array
  11999. * @static
  12000. */
  12001. public static function formatParameters($parameters)
  12002. {
  12003. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12004. return $instance->formatParameters($parameters);
  12005. }
  12006. /**
  12007. * Get the base URL for the request.
  12008. *
  12009. * @param string $scheme
  12010. * @param string $root
  12011. * @return string
  12012. * @static
  12013. */
  12014. public static function formatRoot($scheme, $root = null)
  12015. {
  12016. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12017. return $instance->formatRoot($scheme, $root);
  12018. }
  12019. /**
  12020. * Format the given URL segments into a single URL.
  12021. *
  12022. * @param string $root
  12023. * @param string $path
  12024. * @return string
  12025. * @static
  12026. */
  12027. public static function format($root, $path)
  12028. {
  12029. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12030. return $instance->format($root, $path);
  12031. }
  12032. /**
  12033. * Determine if the given path is a valid URL.
  12034. *
  12035. * @param string $path
  12036. * @return bool
  12037. * @static
  12038. */
  12039. public static function isValidUrl($path)
  12040. {
  12041. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12042. return $instance->isValidUrl($path);
  12043. }
  12044. /**
  12045. * Set the default named parameters used by the URL generator.
  12046. *
  12047. * @param array $defaults
  12048. * @return void
  12049. * @static
  12050. */
  12051. public static function defaults($defaults)
  12052. {
  12053. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12054. $instance->defaults($defaults);
  12055. }
  12056. /**
  12057. * Get the default named parameters used by the URL generator.
  12058. *
  12059. * @return array
  12060. * @static
  12061. */
  12062. public static function getDefaultParameters()
  12063. {
  12064. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12065. return $instance->getDefaultParameters();
  12066. }
  12067. /**
  12068. * Force the scheme for URLs.
  12069. *
  12070. * @param string $schema
  12071. * @return void
  12072. * @static
  12073. */
  12074. public static function forceScheme($schema)
  12075. {
  12076. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12077. $instance->forceScheme($schema);
  12078. }
  12079. /**
  12080. * Set the forced root URL.
  12081. *
  12082. * @param string $root
  12083. * @return void
  12084. * @static
  12085. */
  12086. public static function forceRootUrl($root)
  12087. {
  12088. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12089. $instance->forceRootUrl($root);
  12090. }
  12091. /**
  12092. * Set a callback to be used to format the host of generated URLs.
  12093. *
  12094. * @param \Closure $callback
  12095. * @return \Illuminate\Routing\UrlGenerator
  12096. * @static
  12097. */
  12098. public static function formatHostUsing($callback)
  12099. {
  12100. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12101. return $instance->formatHostUsing($callback);
  12102. }
  12103. /**
  12104. * Set a callback to be used to format the path of generated URLs.
  12105. *
  12106. * @param \Closure $callback
  12107. * @return \Illuminate\Routing\UrlGenerator
  12108. * @static
  12109. */
  12110. public static function formatPathUsing($callback)
  12111. {
  12112. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12113. return $instance->formatPathUsing($callback);
  12114. }
  12115. /**
  12116. * Get the path formatter being used by the URL generator.
  12117. *
  12118. * @return \Closure
  12119. * @static
  12120. */
  12121. public static function pathFormatter()
  12122. {
  12123. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12124. return $instance->pathFormatter();
  12125. }
  12126. /**
  12127. * Get the request instance.
  12128. *
  12129. * @return \Illuminate\Http\Request
  12130. * @static
  12131. */
  12132. public static function getRequest()
  12133. {
  12134. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12135. return $instance->getRequest();
  12136. }
  12137. /**
  12138. * Set the current request instance.
  12139. *
  12140. * @param \Illuminate\Http\Request $request
  12141. * @return void
  12142. * @static
  12143. */
  12144. public static function setRequest($request)
  12145. {
  12146. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12147. $instance->setRequest($request);
  12148. }
  12149. /**
  12150. * Set the route collection.
  12151. *
  12152. * @param \Illuminate\Routing\RouteCollection $routes
  12153. * @return \Illuminate\Routing\UrlGenerator
  12154. * @static
  12155. */
  12156. public static function setRoutes($routes)
  12157. {
  12158. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12159. return $instance->setRoutes($routes);
  12160. }
  12161. /**
  12162. * Set the session resolver for the generator.
  12163. *
  12164. * @param callable $sessionResolver
  12165. * @return \Illuminate\Routing\UrlGenerator
  12166. * @static
  12167. */
  12168. public static function setSessionResolver($sessionResolver)
  12169. {
  12170. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12171. return $instance->setSessionResolver($sessionResolver);
  12172. }
  12173. /**
  12174. * Set the encryption key resolver.
  12175. *
  12176. * @param callable $keyResolver
  12177. * @return \Illuminate\Routing\UrlGenerator
  12178. * @static
  12179. */
  12180. public static function setKeyResolver($keyResolver)
  12181. {
  12182. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12183. return $instance->setKeyResolver($keyResolver);
  12184. }
  12185. /**
  12186. * Set the root controller namespace.
  12187. *
  12188. * @param string $rootNamespace
  12189. * @return \Illuminate\Routing\UrlGenerator
  12190. * @static
  12191. */
  12192. public static function setRootControllerNamespace($rootNamespace)
  12193. {
  12194. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12195. return $instance->setRootControllerNamespace($rootNamespace);
  12196. }
  12197. /**
  12198. * Register a custom macro.
  12199. *
  12200. * @param string $name
  12201. * @param object|callable $macro
  12202. * @return void
  12203. * @static
  12204. */
  12205. public static function macro($name, $macro)
  12206. {
  12207. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  12208. }
  12209. /**
  12210. * Mix another object into the class.
  12211. *
  12212. * @param object $mixin
  12213. * @return void
  12214. * @throws \ReflectionException
  12215. * @static
  12216. */
  12217. public static function mixin($mixin)
  12218. {
  12219. \Illuminate\Routing\UrlGenerator::mixin($mixin);
  12220. }
  12221. /**
  12222. * Checks if macro is registered.
  12223. *
  12224. * @param string $name
  12225. * @return bool
  12226. * @static
  12227. */
  12228. public static function hasMacro($name)
  12229. {
  12230. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  12231. }
  12232. }
  12233. /**
  12234. *
  12235. *
  12236. * @see \Illuminate\Validation\Factory
  12237. */
  12238. class Validator {
  12239. /**
  12240. * Create a new Validator instance.
  12241. *
  12242. * @param array $data
  12243. * @param array $rules
  12244. * @param array $messages
  12245. * @param array $customAttributes
  12246. * @return \Illuminate\Validation\Validator
  12247. * @static
  12248. */
  12249. public static function make($data, $rules, $messages = array(), $customAttributes = array())
  12250. {
  12251. /** @var \Illuminate\Validation\Factory $instance */
  12252. return $instance->make($data, $rules, $messages, $customAttributes);
  12253. }
  12254. /**
  12255. * Validate the given data against the provided rules.
  12256. *
  12257. * @param array $data
  12258. * @param array $rules
  12259. * @param array $messages
  12260. * @param array $customAttributes
  12261. * @return array
  12262. * @throws \Illuminate\Validation\ValidationException
  12263. * @static
  12264. */
  12265. public static function validate($data, $rules, $messages = array(), $customAttributes = array())
  12266. {
  12267. /** @var \Illuminate\Validation\Factory $instance */
  12268. return $instance->validate($data, $rules, $messages, $customAttributes);
  12269. }
  12270. /**
  12271. * Register a custom validator extension.
  12272. *
  12273. * @param string $rule
  12274. * @param \Closure|string $extension
  12275. * @param string $message
  12276. * @return void
  12277. * @static
  12278. */
  12279. public static function extend($rule, $extension, $message = null)
  12280. {
  12281. /** @var \Illuminate\Validation\Factory $instance */
  12282. $instance->extend($rule, $extension, $message);
  12283. }
  12284. /**
  12285. * Register a custom implicit validator extension.
  12286. *
  12287. * @param string $rule
  12288. * @param \Closure|string $extension
  12289. * @param string $message
  12290. * @return void
  12291. * @static
  12292. */
  12293. public static function extendImplicit($rule, $extension, $message = null)
  12294. {
  12295. /** @var \Illuminate\Validation\Factory $instance */
  12296. $instance->extendImplicit($rule, $extension, $message);
  12297. }
  12298. /**
  12299. * Register a custom dependent validator extension.
  12300. *
  12301. * @param string $rule
  12302. * @param \Closure|string $extension
  12303. * @param string $message
  12304. * @return void
  12305. * @static
  12306. */
  12307. public static function extendDependent($rule, $extension, $message = null)
  12308. {
  12309. /** @var \Illuminate\Validation\Factory $instance */
  12310. $instance->extendDependent($rule, $extension, $message);
  12311. }
  12312. /**
  12313. * Register a custom validator message replacer.
  12314. *
  12315. * @param string $rule
  12316. * @param \Closure|string $replacer
  12317. * @return void
  12318. * @static
  12319. */
  12320. public static function replacer($rule, $replacer)
  12321. {
  12322. /** @var \Illuminate\Validation\Factory $instance */
  12323. $instance->replacer($rule, $replacer);
  12324. }
  12325. /**
  12326. * Set the Validator instance resolver.
  12327. *
  12328. * @param \Closure $resolver
  12329. * @return void
  12330. * @static
  12331. */
  12332. public static function resolver($resolver)
  12333. {
  12334. /** @var \Illuminate\Validation\Factory $instance */
  12335. $instance->resolver($resolver);
  12336. }
  12337. /**
  12338. * Get the Translator implementation.
  12339. *
  12340. * @return \Illuminate\Contracts\Translation\Translator
  12341. * @static
  12342. */
  12343. public static function getTranslator()
  12344. {
  12345. /** @var \Illuminate\Validation\Factory $instance */
  12346. return $instance->getTranslator();
  12347. }
  12348. /**
  12349. * Get the Presence Verifier implementation.
  12350. *
  12351. * @return \Illuminate\Validation\PresenceVerifierInterface
  12352. * @static
  12353. */
  12354. public static function getPresenceVerifier()
  12355. {
  12356. /** @var \Illuminate\Validation\Factory $instance */
  12357. return $instance->getPresenceVerifier();
  12358. }
  12359. /**
  12360. * Set the Presence Verifier implementation.
  12361. *
  12362. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  12363. * @return void
  12364. * @static
  12365. */
  12366. public static function setPresenceVerifier($presenceVerifier)
  12367. {
  12368. /** @var \Illuminate\Validation\Factory $instance */
  12369. $instance->setPresenceVerifier($presenceVerifier);
  12370. }
  12371. }
  12372. /**
  12373. *
  12374. *
  12375. * @see \Illuminate\View\Factory
  12376. */
  12377. class View {
  12378. /**
  12379. * Get the evaluated view contents for the given view.
  12380. *
  12381. * @param string $path
  12382. * @param array $data
  12383. * @param array $mergeData
  12384. * @return \Illuminate\Contracts\View\View
  12385. * @static
  12386. */
  12387. public static function file($path, $data = array(), $mergeData = array())
  12388. {
  12389. /** @var \Illuminate\View\Factory $instance */
  12390. return $instance->file($path, $data, $mergeData);
  12391. }
  12392. /**
  12393. * Get the evaluated view contents for the given view.
  12394. *
  12395. * @param string $view
  12396. * @param array $data
  12397. * @param array $mergeData
  12398. * @return \Illuminate\Contracts\View\View
  12399. * @static
  12400. */
  12401. public static function make($view, $data = array(), $mergeData = array())
  12402. {
  12403. /** @var \Illuminate\View\Factory $instance */
  12404. return $instance->make($view, $data, $mergeData);
  12405. }
  12406. /**
  12407. * Get the first view that actually exists from the given list.
  12408. *
  12409. * @param array $views
  12410. * @param array $data
  12411. * @param array $mergeData
  12412. * @return \Illuminate\Contracts\View\View
  12413. * @throws \InvalidArgumentException
  12414. * @static
  12415. */
  12416. public static function first($views, $data = array(), $mergeData = array())
  12417. {
  12418. /** @var \Illuminate\View\Factory $instance */
  12419. return $instance->first($views, $data, $mergeData);
  12420. }
  12421. /**
  12422. * Get the rendered content of the view based on a given condition.
  12423. *
  12424. * @param bool $condition
  12425. * @param string $view
  12426. * @param array $data
  12427. * @param array $mergeData
  12428. * @return string
  12429. * @static
  12430. */
  12431. public static function renderWhen($condition, $view, $data = array(), $mergeData = array())
  12432. {
  12433. /** @var \Illuminate\View\Factory $instance */
  12434. return $instance->renderWhen($condition, $view, $data, $mergeData);
  12435. }
  12436. /**
  12437. * Get the rendered contents of a partial from a loop.
  12438. *
  12439. * @param string $view
  12440. * @param array $data
  12441. * @param string $iterator
  12442. * @param string $empty
  12443. * @return string
  12444. * @static
  12445. */
  12446. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  12447. {
  12448. /** @var \Illuminate\View\Factory $instance */
  12449. return $instance->renderEach($view, $data, $iterator, $empty);
  12450. }
  12451. /**
  12452. * Determine if a given view exists.
  12453. *
  12454. * @param string $view
  12455. * @return bool
  12456. * @static
  12457. */
  12458. public static function exists($view)
  12459. {
  12460. /** @var \Illuminate\View\Factory $instance */
  12461. return $instance->exists($view);
  12462. }
  12463. /**
  12464. * Get the appropriate view engine for the given path.
  12465. *
  12466. * @param string $path
  12467. * @return \Illuminate\Contracts\View\Engine
  12468. * @throws \InvalidArgumentException
  12469. * @static
  12470. */
  12471. public static function getEngineFromPath($path)
  12472. {
  12473. /** @var \Illuminate\View\Factory $instance */
  12474. return $instance->getEngineFromPath($path);
  12475. }
  12476. /**
  12477. * Add a piece of shared data to the environment.
  12478. *
  12479. * @param array|string $key
  12480. * @param mixed $value
  12481. * @return mixed
  12482. * @static
  12483. */
  12484. public static function share($key, $value = null)
  12485. {
  12486. /** @var \Illuminate\View\Factory $instance */
  12487. return $instance->share($key, $value);
  12488. }
  12489. /**
  12490. * Increment the rendering counter.
  12491. *
  12492. * @return void
  12493. * @static
  12494. */
  12495. public static function incrementRender()
  12496. {
  12497. /** @var \Illuminate\View\Factory $instance */
  12498. $instance->incrementRender();
  12499. }
  12500. /**
  12501. * Decrement the rendering counter.
  12502. *
  12503. * @return void
  12504. * @static
  12505. */
  12506. public static function decrementRender()
  12507. {
  12508. /** @var \Illuminate\View\Factory $instance */
  12509. $instance->decrementRender();
  12510. }
  12511. /**
  12512. * Check if there are no active render operations.
  12513. *
  12514. * @return bool
  12515. * @static
  12516. */
  12517. public static function doneRendering()
  12518. {
  12519. /** @var \Illuminate\View\Factory $instance */
  12520. return $instance->doneRendering();
  12521. }
  12522. /**
  12523. * Add a location to the array of view locations.
  12524. *
  12525. * @param string $location
  12526. * @return void
  12527. * @static
  12528. */
  12529. public static function addLocation($location)
  12530. {
  12531. /** @var \Illuminate\View\Factory $instance */
  12532. $instance->addLocation($location);
  12533. }
  12534. /**
  12535. * Add a new namespace to the loader.
  12536. *
  12537. * @param string $namespace
  12538. * @param string|array $hints
  12539. * @return \Illuminate\View\Factory
  12540. * @static
  12541. */
  12542. public static function addNamespace($namespace, $hints)
  12543. {
  12544. /** @var \Illuminate\View\Factory $instance */
  12545. return $instance->addNamespace($namespace, $hints);
  12546. }
  12547. /**
  12548. * Prepend a new namespace to the loader.
  12549. *
  12550. * @param string $namespace
  12551. * @param string|array $hints
  12552. * @return \Illuminate\View\Factory
  12553. * @static
  12554. */
  12555. public static function prependNamespace($namespace, $hints)
  12556. {
  12557. /** @var \Illuminate\View\Factory $instance */
  12558. return $instance->prependNamespace($namespace, $hints);
  12559. }
  12560. /**
  12561. * Replace the namespace hints for the given namespace.
  12562. *
  12563. * @param string $namespace
  12564. * @param string|array $hints
  12565. * @return \Illuminate\View\Factory
  12566. * @static
  12567. */
  12568. public static function replaceNamespace($namespace, $hints)
  12569. {
  12570. /** @var \Illuminate\View\Factory $instance */
  12571. return $instance->replaceNamespace($namespace, $hints);
  12572. }
  12573. /**
  12574. * Register a valid view extension and its engine.
  12575. *
  12576. * @param string $extension
  12577. * @param string $engine
  12578. * @param \Closure $resolver
  12579. * @return void
  12580. * @static
  12581. */
  12582. public static function addExtension($extension, $engine, $resolver = null)
  12583. {
  12584. /** @var \Illuminate\View\Factory $instance */
  12585. $instance->addExtension($extension, $engine, $resolver);
  12586. }
  12587. /**
  12588. * Flush all of the factory state like sections and stacks.
  12589. *
  12590. * @return void
  12591. * @static
  12592. */
  12593. public static function flushState()
  12594. {
  12595. /** @var \Illuminate\View\Factory $instance */
  12596. $instance->flushState();
  12597. }
  12598. /**
  12599. * Flush all of the section contents if done rendering.
  12600. *
  12601. * @return void
  12602. * @static
  12603. */
  12604. public static function flushStateIfDoneRendering()
  12605. {
  12606. /** @var \Illuminate\View\Factory $instance */
  12607. $instance->flushStateIfDoneRendering();
  12608. }
  12609. /**
  12610. * Get the extension to engine bindings.
  12611. *
  12612. * @return array
  12613. * @static
  12614. */
  12615. public static function getExtensions()
  12616. {
  12617. /** @var \Illuminate\View\Factory $instance */
  12618. return $instance->getExtensions();
  12619. }
  12620. /**
  12621. * Get the engine resolver instance.
  12622. *
  12623. * @return \Illuminate\View\Engines\EngineResolver
  12624. * @static
  12625. */
  12626. public static function getEngineResolver()
  12627. {
  12628. /** @var \Illuminate\View\Factory $instance */
  12629. return $instance->getEngineResolver();
  12630. }
  12631. /**
  12632. * Get the view finder instance.
  12633. *
  12634. * @return \Illuminate\View\ViewFinderInterface
  12635. * @static
  12636. */
  12637. public static function getFinder()
  12638. {
  12639. /** @var \Illuminate\View\Factory $instance */
  12640. return $instance->getFinder();
  12641. }
  12642. /**
  12643. * Set the view finder instance.
  12644. *
  12645. * @param \Illuminate\View\ViewFinderInterface $finder
  12646. * @return void
  12647. * @static
  12648. */
  12649. public static function setFinder($finder)
  12650. {
  12651. /** @var \Illuminate\View\Factory $instance */
  12652. $instance->setFinder($finder);
  12653. }
  12654. /**
  12655. * Flush the cache of views located by the finder.
  12656. *
  12657. * @return void
  12658. * @static
  12659. */
  12660. public static function flushFinderCache()
  12661. {
  12662. /** @var \Illuminate\View\Factory $instance */
  12663. $instance->flushFinderCache();
  12664. }
  12665. /**
  12666. * Get the event dispatcher instance.
  12667. *
  12668. * @return \Illuminate\Contracts\Events\Dispatcher
  12669. * @static
  12670. */
  12671. public static function getDispatcher()
  12672. {
  12673. /** @var \Illuminate\View\Factory $instance */
  12674. return $instance->getDispatcher();
  12675. }
  12676. /**
  12677. * Set the event dispatcher instance.
  12678. *
  12679. * @param \Illuminate\Contracts\Events\Dispatcher $events
  12680. * @return void
  12681. * @static
  12682. */
  12683. public static function setDispatcher($events)
  12684. {
  12685. /** @var \Illuminate\View\Factory $instance */
  12686. $instance->setDispatcher($events);
  12687. }
  12688. /**
  12689. * Get the IoC container instance.
  12690. *
  12691. * @return \Illuminate\Contracts\Container\Container
  12692. * @static
  12693. */
  12694. public static function getContainer()
  12695. {
  12696. /** @var \Illuminate\View\Factory $instance */
  12697. return $instance->getContainer();
  12698. }
  12699. /**
  12700. * Set the IoC container instance.
  12701. *
  12702. * @param \Illuminate\Contracts\Container\Container $container
  12703. * @return void
  12704. * @static
  12705. */
  12706. public static function setContainer($container)
  12707. {
  12708. /** @var \Illuminate\View\Factory $instance */
  12709. $instance->setContainer($container);
  12710. }
  12711. /**
  12712. * Get an item from the shared data.
  12713. *
  12714. * @param string $key
  12715. * @param mixed $default
  12716. * @return mixed
  12717. * @static
  12718. */
  12719. public static function shared($key, $default = null)
  12720. {
  12721. /** @var \Illuminate\View\Factory $instance */
  12722. return $instance->shared($key, $default);
  12723. }
  12724. /**
  12725. * Get all of the shared data for the environment.
  12726. *
  12727. * @return array
  12728. * @static
  12729. */
  12730. public static function getShared()
  12731. {
  12732. /** @var \Illuminate\View\Factory $instance */
  12733. return $instance->getShared();
  12734. }
  12735. /**
  12736. * Start a component rendering process.
  12737. *
  12738. * @param string $name
  12739. * @param array $data
  12740. * @return void
  12741. * @static
  12742. */
  12743. public static function startComponent($name, $data = array())
  12744. {
  12745. /** @var \Illuminate\View\Factory $instance */
  12746. $instance->startComponent($name, $data);
  12747. }
  12748. /**
  12749. * Render the current component.
  12750. *
  12751. * @return string
  12752. * @static
  12753. */
  12754. public static function renderComponent()
  12755. {
  12756. /** @var \Illuminate\View\Factory $instance */
  12757. return $instance->renderComponent();
  12758. }
  12759. /**
  12760. * Start the slot rendering process.
  12761. *
  12762. * @param string $name
  12763. * @param string|null $content
  12764. * @return void
  12765. * @static
  12766. */
  12767. public static function slot($name, $content = null)
  12768. {
  12769. /** @var \Illuminate\View\Factory $instance */
  12770. $instance->slot($name, $content);
  12771. }
  12772. /**
  12773. * Save the slot content for rendering.
  12774. *
  12775. * @return void
  12776. * @static
  12777. */
  12778. public static function endSlot()
  12779. {
  12780. /** @var \Illuminate\View\Factory $instance */
  12781. $instance->endSlot();
  12782. }
  12783. /**
  12784. * Register a view creator event.
  12785. *
  12786. * @param array|string $views
  12787. * @param \Closure|string $callback
  12788. * @return array
  12789. * @static
  12790. */
  12791. public static function creator($views, $callback)
  12792. {
  12793. /** @var \Illuminate\View\Factory $instance */
  12794. return $instance->creator($views, $callback);
  12795. }
  12796. /**
  12797. * Register multiple view composers via an array.
  12798. *
  12799. * @param array $composers
  12800. * @return array
  12801. * @static
  12802. */
  12803. public static function composers($composers)
  12804. {
  12805. /** @var \Illuminate\View\Factory $instance */
  12806. return $instance->composers($composers);
  12807. }
  12808. /**
  12809. * Register a view composer event.
  12810. *
  12811. * @param array|string $views
  12812. * @param \Closure|string $callback
  12813. * @return array
  12814. * @static
  12815. */
  12816. public static function composer($views, $callback)
  12817. {
  12818. /** @var \Illuminate\View\Factory $instance */
  12819. return $instance->composer($views, $callback);
  12820. }
  12821. /**
  12822. * Call the composer for a given view.
  12823. *
  12824. * @param \Illuminate\Contracts\View\View $view
  12825. * @return void
  12826. * @static
  12827. */
  12828. public static function callComposer($view)
  12829. {
  12830. /** @var \Illuminate\View\Factory $instance */
  12831. $instance->callComposer($view);
  12832. }
  12833. /**
  12834. * Call the creator for a given view.
  12835. *
  12836. * @param \Illuminate\Contracts\View\View $view
  12837. * @return void
  12838. * @static
  12839. */
  12840. public static function callCreator($view)
  12841. {
  12842. /** @var \Illuminate\View\Factory $instance */
  12843. $instance->callCreator($view);
  12844. }
  12845. /**
  12846. * Start injecting content into a section.
  12847. *
  12848. * @param string $section
  12849. * @param string|null $content
  12850. * @return void
  12851. * @static
  12852. */
  12853. public static function startSection($section, $content = null)
  12854. {
  12855. /** @var \Illuminate\View\Factory $instance */
  12856. $instance->startSection($section, $content);
  12857. }
  12858. /**
  12859. * Inject inline content into a section.
  12860. *
  12861. * @param string $section
  12862. * @param string $content
  12863. * @return void
  12864. * @static
  12865. */
  12866. public static function inject($section, $content)
  12867. {
  12868. /** @var \Illuminate\View\Factory $instance */
  12869. $instance->inject($section, $content);
  12870. }
  12871. /**
  12872. * Stop injecting content into a section and return its contents.
  12873. *
  12874. * @return string
  12875. * @static
  12876. */
  12877. public static function yieldSection()
  12878. {
  12879. /** @var \Illuminate\View\Factory $instance */
  12880. return $instance->yieldSection();
  12881. }
  12882. /**
  12883. * Stop injecting content into a section.
  12884. *
  12885. * @param bool $overwrite
  12886. * @return string
  12887. * @throws \InvalidArgumentException
  12888. * @static
  12889. */
  12890. public static function stopSection($overwrite = false)
  12891. {
  12892. /** @var \Illuminate\View\Factory $instance */
  12893. return $instance->stopSection($overwrite);
  12894. }
  12895. /**
  12896. * Stop injecting content into a section and append it.
  12897. *
  12898. * @return string
  12899. * @throws \InvalidArgumentException
  12900. * @static
  12901. */
  12902. public static function appendSection()
  12903. {
  12904. /** @var \Illuminate\View\Factory $instance */
  12905. return $instance->appendSection();
  12906. }
  12907. /**
  12908. * Get the string contents of a section.
  12909. *
  12910. * @param string $section
  12911. * @param string $default
  12912. * @return string
  12913. * @static
  12914. */
  12915. public static function yieldContent($section, $default = '')
  12916. {
  12917. /** @var \Illuminate\View\Factory $instance */
  12918. return $instance->yieldContent($section, $default);
  12919. }
  12920. /**
  12921. * Get the parent placeholder for the current request.
  12922. *
  12923. * @param string $section
  12924. * @return string
  12925. * @static
  12926. */
  12927. public static function parentPlaceholder($section = '')
  12928. {
  12929. return \Illuminate\View\Factory::parentPlaceholder($section);
  12930. }
  12931. /**
  12932. * Check if section exists.
  12933. *
  12934. * @param string $name
  12935. * @return bool
  12936. * @static
  12937. */
  12938. public static function hasSection($name)
  12939. {
  12940. /** @var \Illuminate\View\Factory $instance */
  12941. return $instance->hasSection($name);
  12942. }
  12943. /**
  12944. * Get the contents of a section.
  12945. *
  12946. * @param string $name
  12947. * @param string $default
  12948. * @return mixed
  12949. * @static
  12950. */
  12951. public static function getSection($name, $default = null)
  12952. {
  12953. /** @var \Illuminate\View\Factory $instance */
  12954. return $instance->getSection($name, $default);
  12955. }
  12956. /**
  12957. * Get the entire array of sections.
  12958. *
  12959. * @return array
  12960. * @static
  12961. */
  12962. public static function getSections()
  12963. {
  12964. /** @var \Illuminate\View\Factory $instance */
  12965. return $instance->getSections();
  12966. }
  12967. /**
  12968. * Flush all of the sections.
  12969. *
  12970. * @return void
  12971. * @static
  12972. */
  12973. public static function flushSections()
  12974. {
  12975. /** @var \Illuminate\View\Factory $instance */
  12976. $instance->flushSections();
  12977. }
  12978. /**
  12979. * Add new loop to the stack.
  12980. *
  12981. * @param \Countable|array $data
  12982. * @return void
  12983. * @static
  12984. */
  12985. public static function addLoop($data)
  12986. {
  12987. /** @var \Illuminate\View\Factory $instance */
  12988. $instance->addLoop($data);
  12989. }
  12990. /**
  12991. * Increment the top loop's indices.
  12992. *
  12993. * @return void
  12994. * @static
  12995. */
  12996. public static function incrementLoopIndices()
  12997. {
  12998. /** @var \Illuminate\View\Factory $instance */
  12999. $instance->incrementLoopIndices();
  13000. }
  13001. /**
  13002. * Pop a loop from the top of the loop stack.
  13003. *
  13004. * @return void
  13005. * @static
  13006. */
  13007. public static function popLoop()
  13008. {
  13009. /** @var \Illuminate\View\Factory $instance */
  13010. $instance->popLoop();
  13011. }
  13012. /**
  13013. * Get an instance of the last loop in the stack.
  13014. *
  13015. * @return \stdClass|null
  13016. * @static
  13017. */
  13018. public static function getLastLoop()
  13019. {
  13020. /** @var \Illuminate\View\Factory $instance */
  13021. return $instance->getLastLoop();
  13022. }
  13023. /**
  13024. * Get the entire loop stack.
  13025. *
  13026. * @return array
  13027. * @static
  13028. */
  13029. public static function getLoopStack()
  13030. {
  13031. /** @var \Illuminate\View\Factory $instance */
  13032. return $instance->getLoopStack();
  13033. }
  13034. /**
  13035. * Start injecting content into a push section.
  13036. *
  13037. * @param string $section
  13038. * @param string $content
  13039. * @return void
  13040. * @static
  13041. */
  13042. public static function startPush($section, $content = '')
  13043. {
  13044. /** @var \Illuminate\View\Factory $instance */
  13045. $instance->startPush($section, $content);
  13046. }
  13047. /**
  13048. * Stop injecting content into a push section.
  13049. *
  13050. * @return string
  13051. * @throws \InvalidArgumentException
  13052. * @static
  13053. */
  13054. public static function stopPush()
  13055. {
  13056. /** @var \Illuminate\View\Factory $instance */
  13057. return $instance->stopPush();
  13058. }
  13059. /**
  13060. * Start prepending content into a push section.
  13061. *
  13062. * @param string $section
  13063. * @param string $content
  13064. * @return void
  13065. * @static
  13066. */
  13067. public static function startPrepend($section, $content = '')
  13068. {
  13069. /** @var \Illuminate\View\Factory $instance */
  13070. $instance->startPrepend($section, $content);
  13071. }
  13072. /**
  13073. * Stop prepending content into a push section.
  13074. *
  13075. * @return string
  13076. * @throws \InvalidArgumentException
  13077. * @static
  13078. */
  13079. public static function stopPrepend()
  13080. {
  13081. /** @var \Illuminate\View\Factory $instance */
  13082. return $instance->stopPrepend();
  13083. }
  13084. /**
  13085. * Get the string contents of a push section.
  13086. *
  13087. * @param string $section
  13088. * @param string $default
  13089. * @return string
  13090. * @static
  13091. */
  13092. public static function yieldPushContent($section, $default = '')
  13093. {
  13094. /** @var \Illuminate\View\Factory $instance */
  13095. return $instance->yieldPushContent($section, $default);
  13096. }
  13097. /**
  13098. * Flush all of the stacks.
  13099. *
  13100. * @return void
  13101. * @static
  13102. */
  13103. public static function flushStacks()
  13104. {
  13105. /** @var \Illuminate\View\Factory $instance */
  13106. $instance->flushStacks();
  13107. }
  13108. /**
  13109. * Start a translation block.
  13110. *
  13111. * @param array $replacements
  13112. * @return void
  13113. * @static
  13114. */
  13115. public static function startTranslation($replacements = array())
  13116. {
  13117. /** @var \Illuminate\View\Factory $instance */
  13118. $instance->startTranslation($replacements);
  13119. }
  13120. /**
  13121. * Render the current translation.
  13122. *
  13123. * @return string
  13124. * @static
  13125. */
  13126. public static function renderTranslation()
  13127. {
  13128. /** @var \Illuminate\View\Factory $instance */
  13129. return $instance->renderTranslation();
  13130. }
  13131. }
  13132. }
  13133. namespace Mews\Captcha\Facades {
  13134. /**
  13135. *
  13136. *
  13137. * @see \Mews\Captcha
  13138. */
  13139. class Captcha {
  13140. /**
  13141. * Create captcha image
  13142. *
  13143. * @param string $config
  13144. * @param boolean $api
  13145. * @return \Mews\Captcha\ImageManager->response
  13146. * @static
  13147. */
  13148. public static function create($config = 'default', $api = false)
  13149. {
  13150. /** @var \Mews\Captcha\Captcha $instance */
  13151. return $instance->create($config, $api);
  13152. }
  13153. /**
  13154. * Captcha check
  13155. *
  13156. * @param $value
  13157. * @return bool
  13158. * @static
  13159. */
  13160. public static function check($value)
  13161. {
  13162. /** @var \Mews\Captcha\Captcha $instance */
  13163. return $instance->check($value);
  13164. }
  13165. /**
  13166. * Captcha check
  13167. *
  13168. * @param $value
  13169. * @return bool
  13170. * @static
  13171. */
  13172. public static function check_api($value, $key)
  13173. {
  13174. /** @var \Mews\Captcha\Captcha $instance */
  13175. return $instance->check_api($value, $key);
  13176. }
  13177. /**
  13178. * Generate captcha image source
  13179. *
  13180. * @param null $config
  13181. * @return string
  13182. * @static
  13183. */
  13184. public static function src($config = null)
  13185. {
  13186. /** @var \Mews\Captcha\Captcha $instance */
  13187. return $instance->src($config);
  13188. }
  13189. /**
  13190. * Generate captcha image html tag
  13191. *
  13192. * @param null $config
  13193. * @param array $attrs HTML attributes supplied to the image tag where key is the attribute
  13194. * and the value is the attribute value
  13195. * @return string
  13196. * @static
  13197. */
  13198. public static function img($config = null, $attrs = array())
  13199. {
  13200. /** @var \Mews\Captcha\Captcha $instance */
  13201. return $instance->img($config, $attrs);
  13202. }
  13203. }
  13204. }
  13205. namespace Jenssegers\Agent\Facades {
  13206. /**
  13207. *
  13208. *
  13209. */
  13210. class Agent {
  13211. /**
  13212. * Get all detection rules. These rules include the additional
  13213. * platforms and browsers and utilities.
  13214. *
  13215. * @return array
  13216. * @static
  13217. */
  13218. public static function getDetectionRulesExtended()
  13219. {
  13220. return \Jenssegers\Agent\Agent::getDetectionRulesExtended();
  13221. }
  13222. /**
  13223. *
  13224. *
  13225. * @static
  13226. */
  13227. public static function getRules()
  13228. {
  13229. /** @var \Jenssegers\Agent\Agent $instance */
  13230. return $instance->getRules();
  13231. }
  13232. /**
  13233. *
  13234. *
  13235. * @return \Jenssegers\Agent\CrawlerDetect
  13236. * @static
  13237. */
  13238. public static function getCrawlerDetect()
  13239. {
  13240. /** @var \Jenssegers\Agent\Agent $instance */
  13241. return $instance->getCrawlerDetect();
  13242. }
  13243. /**
  13244. *
  13245. *
  13246. * @static
  13247. */
  13248. public static function getBrowsers()
  13249. {
  13250. return \Jenssegers\Agent\Agent::getBrowsers();
  13251. }
  13252. /**
  13253. *
  13254. *
  13255. * @static
  13256. */
  13257. public static function getOperatingSystems()
  13258. {
  13259. return \Jenssegers\Agent\Agent::getOperatingSystems();
  13260. }
  13261. /**
  13262. *
  13263. *
  13264. * @static
  13265. */
  13266. public static function getPlatforms()
  13267. {
  13268. return \Jenssegers\Agent\Agent::getPlatforms();
  13269. }
  13270. /**
  13271. *
  13272. *
  13273. * @static
  13274. */
  13275. public static function getDesktopDevices()
  13276. {
  13277. return \Jenssegers\Agent\Agent::getDesktopDevices();
  13278. }
  13279. /**
  13280. *
  13281. *
  13282. * @static
  13283. */
  13284. public static function getProperties()
  13285. {
  13286. return \Jenssegers\Agent\Agent::getProperties();
  13287. }
  13288. /**
  13289. * Get accept languages.
  13290. *
  13291. * @param string $acceptLanguage
  13292. * @return array
  13293. * @static
  13294. */
  13295. public static function languages($acceptLanguage = null)
  13296. {
  13297. /** @var \Jenssegers\Agent\Agent $instance */
  13298. return $instance->languages($acceptLanguage);
  13299. }
  13300. /**
  13301. * Get the browser name.
  13302. *
  13303. * @param string|null $userAgent
  13304. * @return string
  13305. * @static
  13306. */
  13307. public static function browser($userAgent = null)
  13308. {
  13309. /** @var \Jenssegers\Agent\Agent $instance */
  13310. return $instance->browser($userAgent);
  13311. }
  13312. /**
  13313. * Get the platform name.
  13314. *
  13315. * @param string|null $userAgent
  13316. * @return string
  13317. * @static
  13318. */
  13319. public static function platform($userAgent = null)
  13320. {
  13321. /** @var \Jenssegers\Agent\Agent $instance */
  13322. return $instance->platform($userAgent);
  13323. }
  13324. /**
  13325. * Get the device name.
  13326. *
  13327. * @param string|null $userAgent
  13328. * @return string
  13329. * @static
  13330. */
  13331. public static function device($userAgent = null)
  13332. {
  13333. /** @var \Jenssegers\Agent\Agent $instance */
  13334. return $instance->device($userAgent);
  13335. }
  13336. /**
  13337. * Check if the device is a desktop computer.
  13338. *
  13339. * @param string|null $userAgent deprecated
  13340. * @param array $httpHeaders deprecated
  13341. * @return bool
  13342. * @static
  13343. */
  13344. public static function isDesktop($userAgent = null, $httpHeaders = null)
  13345. {
  13346. /** @var \Jenssegers\Agent\Agent $instance */
  13347. return $instance->isDesktop($userAgent, $httpHeaders);
  13348. }
  13349. /**
  13350. * Check if the device is a mobile phone.
  13351. *
  13352. * @param string|null $userAgent deprecated
  13353. * @param array $httpHeaders deprecated
  13354. * @return bool
  13355. * @static
  13356. */
  13357. public static function isPhone($userAgent = null, $httpHeaders = null)
  13358. {
  13359. /** @var \Jenssegers\Agent\Agent $instance */
  13360. return $instance->isPhone($userAgent, $httpHeaders);
  13361. }
  13362. /**
  13363. * Get the robot name.
  13364. *
  13365. * @param string|null $userAgent
  13366. * @return string|bool
  13367. * @static
  13368. */
  13369. public static function robot($userAgent = null)
  13370. {
  13371. /** @var \Jenssegers\Agent\Agent $instance */
  13372. return $instance->robot($userAgent);
  13373. }
  13374. /**
  13375. * Check if device is a robot.
  13376. *
  13377. * @param string|null $userAgent
  13378. * @return bool
  13379. * @static
  13380. */
  13381. public static function isRobot($userAgent = null)
  13382. {
  13383. /** @var \Jenssegers\Agent\Agent $instance */
  13384. return $instance->isRobot($userAgent);
  13385. }
  13386. /**
  13387. *
  13388. *
  13389. * @static
  13390. */
  13391. public static function version($propertyName, $type = 'text')
  13392. {
  13393. /** @var \Jenssegers\Agent\Agent $instance */
  13394. return $instance->version($propertyName, $type);
  13395. }
  13396. /**
  13397. * Get the current script version.
  13398. *
  13399. * This is useful for the demo.php file,
  13400. * so people can check on what version they are testing
  13401. * for mobile devices.
  13402. *
  13403. * @return string The version number in semantic version format.
  13404. * @static
  13405. */
  13406. public static function getScriptVersion()
  13407. {
  13408. //Method inherited from \Mobile_Detect
  13409. return \Jenssegers\Agent\Agent::getScriptVersion();
  13410. }
  13411. /**
  13412. * Set the HTTP Headers. Must be PHP-flavored. This method will reset existing headers.
  13413. *
  13414. * @param array $httpHeaders The headers to set. If null, then using PHP's _SERVER to extract
  13415. * the headers. The default null is left for backwards compatibility.
  13416. * @static
  13417. */
  13418. public static function setHttpHeaders($httpHeaders = null)
  13419. {
  13420. //Method inherited from \Mobile_Detect
  13421. /** @var \Jenssegers\Agent\Agent $instance */
  13422. return $instance->setHttpHeaders($httpHeaders);
  13423. }
  13424. /**
  13425. * Retrieves the HTTP headers.
  13426. *
  13427. * @return array
  13428. * @static
  13429. */
  13430. public static function getHttpHeaders()
  13431. {
  13432. //Method inherited from \Mobile_Detect
  13433. /** @var \Jenssegers\Agent\Agent $instance */
  13434. return $instance->getHttpHeaders();
  13435. }
  13436. /**
  13437. * Retrieves a particular header. If it doesn't exist, no exception/error is caused.
  13438. *
  13439. * Simply null is returned.
  13440. *
  13441. * @param string $header The name of the header to retrieve. Can be HTTP compliant such as
  13442. * "User-Agent" or "X-Device-User-Agent" or can be php-esque with the
  13443. * all-caps, HTTP_ prefixed, underscore seperated awesomeness.
  13444. * @return string|null The value of the header.
  13445. * @static
  13446. */
  13447. public static function getHttpHeader($header)
  13448. {
  13449. //Method inherited from \Mobile_Detect
  13450. /** @var \Jenssegers\Agent\Agent $instance */
  13451. return $instance->getHttpHeader($header);
  13452. }
  13453. /**
  13454. *
  13455. *
  13456. * @static
  13457. */
  13458. public static function getMobileHeaders()
  13459. {
  13460. //Method inherited from \Mobile_Detect
  13461. /** @var \Jenssegers\Agent\Agent $instance */
  13462. return $instance->getMobileHeaders();
  13463. }
  13464. /**
  13465. * Get all possible HTTP headers that
  13466. * can contain the User-Agent string.
  13467. *
  13468. * @return array List of HTTP headers.
  13469. * @static
  13470. */
  13471. public static function getUaHttpHeaders()
  13472. {
  13473. //Method inherited from \Mobile_Detect
  13474. /** @var \Jenssegers\Agent\Agent $instance */
  13475. return $instance->getUaHttpHeaders();
  13476. }
  13477. /**
  13478. * Set CloudFront headers
  13479. * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
  13480. *
  13481. * @param array $cfHeaders List of HTTP headers
  13482. * @return boolean If there were CloudFront headers to be set
  13483. * @static
  13484. */
  13485. public static function setCfHeaders($cfHeaders = null)
  13486. {
  13487. //Method inherited from \Mobile_Detect
  13488. /** @var \Jenssegers\Agent\Agent $instance */
  13489. return $instance->setCfHeaders($cfHeaders);
  13490. }
  13491. /**
  13492. * Retrieves the cloudfront headers.
  13493. *
  13494. * @return array
  13495. * @static
  13496. */
  13497. public static function getCfHeaders()
  13498. {
  13499. //Method inherited from \Mobile_Detect
  13500. /** @var \Jenssegers\Agent\Agent $instance */
  13501. return $instance->getCfHeaders();
  13502. }
  13503. /**
  13504. * Set the User-Agent to be used.
  13505. *
  13506. * @param string $userAgent The user agent string to set.
  13507. * @return string|null
  13508. * @static
  13509. */
  13510. public static function setUserAgent($userAgent = null)
  13511. {
  13512. //Method inherited from \Mobile_Detect
  13513. /** @var \Jenssegers\Agent\Agent $instance */
  13514. return $instance->setUserAgent($userAgent);
  13515. }
  13516. /**
  13517. * Retrieve the User-Agent.
  13518. *
  13519. * @return string|null The user agent if it's set.
  13520. * @static
  13521. */
  13522. public static function getUserAgent()
  13523. {
  13524. //Method inherited from \Mobile_Detect
  13525. /** @var \Jenssegers\Agent\Agent $instance */
  13526. return $instance->getUserAgent();
  13527. }
  13528. /**
  13529. * Set the detection type. Must be one of self::DETECTION_TYPE_MOBILE or
  13530. * self::DETECTION_TYPE_EXTENDED. Otherwise, nothing is set.
  13531. *
  13532. * @deprecated since version 2.6.9
  13533. * @param string $type The type. Must be a self::DETECTION_TYPE_* constant. The default
  13534. * parameter is null which will default to self::DETECTION_TYPE_MOBILE.
  13535. * @static
  13536. */
  13537. public static function setDetectionType($type = null)
  13538. {
  13539. //Method inherited from \Mobile_Detect
  13540. /** @var \Jenssegers\Agent\Agent $instance */
  13541. return $instance->setDetectionType($type);
  13542. }
  13543. /**
  13544. *
  13545. *
  13546. * @static
  13547. */
  13548. public static function getMatchingRegex()
  13549. {
  13550. //Method inherited from \Mobile_Detect
  13551. /** @var \Jenssegers\Agent\Agent $instance */
  13552. return $instance->getMatchingRegex();
  13553. }
  13554. /**
  13555. *
  13556. *
  13557. * @static
  13558. */
  13559. public static function getMatchesArray()
  13560. {
  13561. //Method inherited from \Mobile_Detect
  13562. /** @var \Jenssegers\Agent\Agent $instance */
  13563. return $instance->getMatchesArray();
  13564. }
  13565. /**
  13566. * Retrieve the list of known phone devices.
  13567. *
  13568. * @return array List of phone devices.
  13569. * @static
  13570. */
  13571. public static function getPhoneDevices()
  13572. {
  13573. //Method inherited from \Mobile_Detect
  13574. return \Jenssegers\Agent\Agent::getPhoneDevices();
  13575. }
  13576. /**
  13577. * Retrieve the list of known tablet devices.
  13578. *
  13579. * @return array List of tablet devices.
  13580. * @static
  13581. */
  13582. public static function getTabletDevices()
  13583. {
  13584. //Method inherited from \Mobile_Detect
  13585. return \Jenssegers\Agent\Agent::getTabletDevices();
  13586. }
  13587. /**
  13588. * Alias for getBrowsers() method.
  13589. *
  13590. * @return array List of user agents.
  13591. * @static
  13592. */
  13593. public static function getUserAgents()
  13594. {
  13595. //Method inherited from \Mobile_Detect
  13596. return \Jenssegers\Agent\Agent::getUserAgents();
  13597. }
  13598. /**
  13599. * Retrieve the list of known utilities.
  13600. *
  13601. * @return array List of utilities.
  13602. * @static
  13603. */
  13604. public static function getUtilities()
  13605. {
  13606. //Method inherited from \Mobile_Detect
  13607. return \Jenssegers\Agent\Agent::getUtilities();
  13608. }
  13609. /**
  13610. * Method gets the mobile detection rules. This method is used for the magic methods $detect->is*().
  13611. *
  13612. * @deprecated since version 2.6.9
  13613. * @return array All the rules (but not extended).
  13614. * @static
  13615. */
  13616. public static function getMobileDetectionRules()
  13617. {
  13618. //Method inherited from \Mobile_Detect
  13619. return \Jenssegers\Agent\Agent::getMobileDetectionRules();
  13620. }
  13621. /**
  13622. * Method gets the mobile detection rules + utilities.
  13623. *
  13624. * The reason this is separate is because utilities rules
  13625. * don't necessary imply mobile. This method is used inside
  13626. * the new $detect->is('stuff') method.
  13627. *
  13628. * @deprecated since version 2.6.9
  13629. * @return array All the rules + extended.
  13630. * @static
  13631. */
  13632. public static function getMobileDetectionRulesExtended()
  13633. {
  13634. //Method inherited from \Mobile_Detect
  13635. /** @var \Jenssegers\Agent\Agent $instance */
  13636. return $instance->getMobileDetectionRulesExtended();
  13637. }
  13638. /**
  13639. * Check the HTTP headers for signs of mobile.
  13640. *
  13641. * This is the fastest mobile check possible; it's used
  13642. * inside isMobile() method.
  13643. *
  13644. * @return bool
  13645. * @static
  13646. */
  13647. public static function checkHttpHeadersForMobile()
  13648. {
  13649. //Method inherited from \Mobile_Detect
  13650. /** @var \Jenssegers\Agent\Agent $instance */
  13651. return $instance->checkHttpHeadersForMobile();
  13652. }
  13653. /**
  13654. * Check if the device is mobile.
  13655. *
  13656. * Returns true if any type of mobile device detected, including special ones
  13657. *
  13658. * @param null $userAgent deprecated
  13659. * @param null $httpHeaders deprecated
  13660. * @return bool
  13661. * @static
  13662. */
  13663. public static function isMobile($userAgent = null, $httpHeaders = null)
  13664. {
  13665. //Method inherited from \Mobile_Detect
  13666. /** @var \Jenssegers\Agent\Agent $instance */
  13667. return $instance->isMobile($userAgent, $httpHeaders);
  13668. }
  13669. /**
  13670. * Check if the device is a tablet.
  13671. *
  13672. * Return true if any type of tablet device is detected.
  13673. *
  13674. * @param string $userAgent deprecated
  13675. * @param array $httpHeaders deprecated
  13676. * @return bool
  13677. * @static
  13678. */
  13679. public static function isTablet($userAgent = null, $httpHeaders = null)
  13680. {
  13681. //Method inherited from \Mobile_Detect
  13682. /** @var \Jenssegers\Agent\Agent $instance */
  13683. return $instance->isTablet($userAgent, $httpHeaders);
  13684. }
  13685. /**
  13686. * This method checks for a certain property in the
  13687. * userAgent.
  13688. *
  13689. * @todo : The httpHeaders part is not yet used.
  13690. * @param string $key
  13691. * @param string $userAgent deprecated
  13692. * @param string $httpHeaders deprecated
  13693. * @return bool|int|null
  13694. * @static
  13695. */
  13696. public static function is($key, $userAgent = null, $httpHeaders = null)
  13697. {
  13698. //Method inherited from \Mobile_Detect
  13699. /** @var \Jenssegers\Agent\Agent $instance */
  13700. return $instance->is($key, $userAgent, $httpHeaders);
  13701. }
  13702. /**
  13703. * Some detection rules are relative (not standard),
  13704. * because of the diversity of devices, vendors and
  13705. * their conventions in representing the User-Agent or
  13706. * the HTTP headers.
  13707. *
  13708. * This method will be used to check custom regexes against
  13709. * the User-Agent string.
  13710. *
  13711. * @param $regex
  13712. * @param string $userAgent
  13713. * @return bool
  13714. * @todo : search in the HTTP headers too.
  13715. * @static
  13716. */
  13717. public static function match($regex, $userAgent = null)
  13718. {
  13719. //Method inherited from \Mobile_Detect
  13720. /** @var \Jenssegers\Agent\Agent $instance */
  13721. return $instance->match($regex, $userAgent);
  13722. }
  13723. /**
  13724. * Prepare the version number.
  13725. *
  13726. * @todo Remove the error supression from str_replace() call.
  13727. * @param string $ver The string version, like "2.6.21.2152";
  13728. * @return float
  13729. * @static
  13730. */
  13731. public static function prepareVersionNo($ver)
  13732. {
  13733. //Method inherited from \Mobile_Detect
  13734. /** @var \Jenssegers\Agent\Agent $instance */
  13735. return $instance->prepareVersionNo($ver);
  13736. }
  13737. /**
  13738. * Retrieve the mobile grading, using self::MOBILE_GRADE_* constants.
  13739. *
  13740. * @return string One of the self::MOBILE_GRADE_* constants.
  13741. * @static
  13742. */
  13743. public static function mobileGrade()
  13744. {
  13745. //Method inherited from \Mobile_Detect
  13746. /** @var \Jenssegers\Agent\Agent $instance */
  13747. return $instance->mobileGrade();
  13748. }
  13749. }
  13750. }
  13751. namespace Mews\Purifier\Facades {
  13752. /**
  13753. *
  13754. *
  13755. * @see \Mews\Purifier
  13756. */
  13757. class Purifier {
  13758. /**
  13759. *
  13760. *
  13761. * @param $dirty
  13762. * @param null $config
  13763. * @return mixed
  13764. * @static
  13765. */
  13766. public static function clean($dirty, $config = null)
  13767. {
  13768. /** @var \Mews\Purifier\Purifier $instance */
  13769. return $instance->clean($dirty, $config);
  13770. }
  13771. /**
  13772. * Get HTMLPurifier instance.
  13773. *
  13774. * @return \HTMLPurifier
  13775. * @static
  13776. */
  13777. public static function getInstance()
  13778. {
  13779. /** @var \Mews\Purifier\Purifier $instance */
  13780. return $instance->getInstance();
  13781. }
  13782. }
  13783. }
  13784. namespace Misechow\Geetest {
  13785. /**
  13786. *
  13787. *
  13788. */
  13789. class Geetest {
  13790. /**
  13791. *
  13792. *
  13793. * @return string
  13794. * @static
  13795. */
  13796. public static function getGeetestUrl()
  13797. {
  13798. /** @var \Misechow\Geetest\GeetestLib $instance */
  13799. return $instance->getGeetestUrl();
  13800. }
  13801. /**
  13802. *
  13803. *
  13804. * @param string $geetestUrl
  13805. * @return \Misechow\Geetest\GeetestLib
  13806. * @static
  13807. */
  13808. public static function setGeetestUrl($url)
  13809. {
  13810. /** @var \Misechow\Geetest\GeetestLib $instance */
  13811. return $instance->setGeetestUrl($url);
  13812. }
  13813. /**
  13814. * Check Geetest server is running or not.
  13815. *
  13816. * @param null $user_id
  13817. * @return int
  13818. * @static
  13819. */
  13820. public static function preProcess($param, $new_captcha = 1)
  13821. {
  13822. /** @var \Misechow\Geetest\GeetestLib $instance */
  13823. return $instance->preProcess($param, $new_captcha);
  13824. }
  13825. /**
  13826. *
  13827. *
  13828. * @return mixed
  13829. * @static
  13830. */
  13831. public static function getResponseStr()
  13832. {
  13833. /** @var \Misechow\Geetest\GeetestLib $instance */
  13834. return $instance->getResponseStr();
  13835. }
  13836. /**
  13837. *
  13838. *
  13839. * @return mixed
  13840. * @static
  13841. */
  13842. public static function getResponse()
  13843. {
  13844. /** @var \Misechow\Geetest\GeetestLib $instance */
  13845. return $instance->getResponse();
  13846. }
  13847. /**
  13848. * Get success validate result.
  13849. *
  13850. * @param $challenge
  13851. * @param $validate
  13852. * @param $seccode
  13853. * @param null $user_id
  13854. * @return int
  13855. * @static
  13856. */
  13857. public static function successValidate($challenge, $validate, $seccode, $param, $json_format = 1)
  13858. {
  13859. /** @var \Misechow\Geetest\GeetestLib $instance */
  13860. return $instance->successValidate($challenge, $validate, $seccode, $param, $json_format);
  13861. }
  13862. /**
  13863. * Get fail result.
  13864. *
  13865. * @param $challenge
  13866. * @param $validate
  13867. * @param $seccode
  13868. * @return int
  13869. * @static
  13870. */
  13871. public static function failValidate($challenge, $validate, $seccode)
  13872. {
  13873. /** @var \Misechow\Geetest\GeetestLib $instance */
  13874. return $instance->failValidate($challenge, $validate, $seccode);
  13875. }
  13876. /**
  13877. *
  13878. *
  13879. * @param string $product
  13880. * @static
  13881. */
  13882. public static function render($product = 'float', $captchaId = 'geetest-captcha')
  13883. {
  13884. /** @var \Misechow\Geetest\GeetestLib $instance */
  13885. return $instance->render($product, $captchaId);
  13886. }
  13887. }
  13888. }
  13889. namespace Misechow\NoCaptcha\Facades {
  13890. /**
  13891. *
  13892. *
  13893. */
  13894. class NoCaptcha {
  13895. /**
  13896. * Render HTML captcha.
  13897. *
  13898. * @param array $attributes
  13899. * @return string
  13900. * @static
  13901. */
  13902. public static function display($attributes = array())
  13903. {
  13904. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13905. return $instance->display($attributes);
  13906. }
  13907. /**
  13908. *
  13909. *
  13910. * @see display()
  13911. * @static
  13912. */
  13913. public static function displayWidget($attributes = array())
  13914. {
  13915. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13916. return $instance->displayWidget($attributes);
  13917. }
  13918. /**
  13919. * Display a Invisible reCAPTCHA by embedding a callback into a form submit button.
  13920. *
  13921. * @param string $formIdentifier the html ID of the form that should be submitted.
  13922. * @param string $text the text inside the form button
  13923. * @param array $attributes array of additional html elements
  13924. * @return string
  13925. * @static
  13926. */
  13927. public static function displaySubmit($formIdentifier, $text = 'submit', $attributes = array())
  13928. {
  13929. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13930. return $instance->displaySubmit($formIdentifier, $text, $attributes);
  13931. }
  13932. /**
  13933. * Render js source
  13934. *
  13935. * @param null $lang
  13936. * @param bool $callback
  13937. * @param string $onLoadClass
  13938. * @return string
  13939. * @static
  13940. */
  13941. public static function renderJs($lang = null, $callback = false, $onLoadClass = 'onloadCallBack')
  13942. {
  13943. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13944. return $instance->renderJs($lang, $callback, $onLoadClass);
  13945. }
  13946. /**
  13947. * Verify no-captcha response.
  13948. *
  13949. * @param string $response
  13950. * @param string $clientIp
  13951. * @return bool
  13952. * @static
  13953. */
  13954. public static function verifyResponse($response, $clientIp = null)
  13955. {
  13956. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13957. return $instance->verifyResponse($response, $clientIp);
  13958. }
  13959. /**
  13960. * Verify no-captcha response by Symfony Request.
  13961. *
  13962. * @param \Request $request
  13963. * @return bool
  13964. * @static
  13965. */
  13966. public static function verifyRequest($request)
  13967. {
  13968. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13969. return $instance->verifyRequest($request);
  13970. }
  13971. /**
  13972. * Get recaptcha js link.
  13973. *
  13974. * @param string $lang
  13975. * @param boolean $callback
  13976. * @param string $onLoadClass
  13977. * @return string
  13978. * @static
  13979. */
  13980. public static function getJsLink($lang = null, $callback = false, $onLoadClass = 'onloadCallBack')
  13981. {
  13982. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  13983. return $instance->getJsLink($lang, $callback, $onLoadClass);
  13984. }
  13985. }
  13986. }
  13987. namespace Tymon\JWTAuth\Facades {
  13988. /**
  13989. *
  13990. *
  13991. */
  13992. class JWTAuth {
  13993. /**
  13994. * Attempt to authenticate the user and return the token.
  13995. *
  13996. * @param array $credentials
  13997. * @return false|string
  13998. * @static
  13999. */
  14000. public static function attempt($credentials)
  14001. {
  14002. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14003. return $instance->attempt($credentials);
  14004. }
  14005. /**
  14006. * Authenticate a user via a token.
  14007. *
  14008. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  14009. * @static
  14010. */
  14011. public static function authenticate()
  14012. {
  14013. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14014. return $instance->authenticate();
  14015. }
  14016. /**
  14017. * Alias for authenticate().
  14018. *
  14019. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  14020. * @static
  14021. */
  14022. public static function toUser()
  14023. {
  14024. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14025. return $instance->toUser();
  14026. }
  14027. /**
  14028. * Get the authenticated user.
  14029. *
  14030. * @return \Tymon\JWTAuth\Contracts\JWTSubject
  14031. * @static
  14032. */
  14033. public static function user()
  14034. {
  14035. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14036. return $instance->user();
  14037. }
  14038. /**
  14039. * Generate a token for a given subject.
  14040. *
  14041. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  14042. * @return string
  14043. * @static
  14044. */
  14045. public static function fromSubject($subject)
  14046. {
  14047. //Method inherited from \Tymon\JWTAuth\JWT
  14048. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14049. return $instance->fromSubject($subject);
  14050. }
  14051. /**
  14052. * Alias to generate a token for a given user.
  14053. *
  14054. * @param \Tymon\JWTAuth\Contracts\JWTSubject $user
  14055. * @return string
  14056. * @static
  14057. */
  14058. public static function fromUser($user)
  14059. {
  14060. //Method inherited from \Tymon\JWTAuth\JWT
  14061. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14062. return $instance->fromUser($user);
  14063. }
  14064. /**
  14065. * Refresh an expired token.
  14066. *
  14067. * @param bool $forceForever
  14068. * @param bool $resetClaims
  14069. * @return string
  14070. * @static
  14071. */
  14072. public static function refresh($forceForever = false, $resetClaims = false)
  14073. {
  14074. //Method inherited from \Tymon\JWTAuth\JWT
  14075. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14076. return $instance->refresh($forceForever, $resetClaims);
  14077. }
  14078. /**
  14079. * Invalidate a token (add it to the blacklist).
  14080. *
  14081. * @param bool $forceForever
  14082. * @return \Tymon\JWTAuth\JWTAuth
  14083. * @static
  14084. */
  14085. public static function invalidate($forceForever = false)
  14086. {
  14087. //Method inherited from \Tymon\JWTAuth\JWT
  14088. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14089. return $instance->invalidate($forceForever);
  14090. }
  14091. /**
  14092. * Alias to get the payload, and as a result checks that
  14093. * the token is valid i.e. not expired or blacklisted.
  14094. *
  14095. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  14096. * @return \Tymon\JWTAuth\Payload
  14097. * @static
  14098. */
  14099. public static function checkOrFail()
  14100. {
  14101. //Method inherited from \Tymon\JWTAuth\JWT
  14102. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14103. return $instance->checkOrFail();
  14104. }
  14105. /**
  14106. * Check that the token is valid.
  14107. *
  14108. * @param bool $getPayload
  14109. * @return \Tymon\JWTAuth\Payload|bool
  14110. * @static
  14111. */
  14112. public static function check($getPayload = false)
  14113. {
  14114. //Method inherited from \Tymon\JWTAuth\JWT
  14115. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14116. return $instance->check($getPayload);
  14117. }
  14118. /**
  14119. * Get the token.
  14120. *
  14121. * @return \Tymon\JWTAuth\Token|null
  14122. * @static
  14123. */
  14124. public static function getToken()
  14125. {
  14126. //Method inherited from \Tymon\JWTAuth\JWT
  14127. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14128. return $instance->getToken();
  14129. }
  14130. /**
  14131. * Parse the token from the request.
  14132. *
  14133. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  14134. * @return \Tymon\JWTAuth\JWTAuth
  14135. * @static
  14136. */
  14137. public static function parseToken()
  14138. {
  14139. //Method inherited from \Tymon\JWTAuth\JWT
  14140. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14141. return $instance->parseToken();
  14142. }
  14143. /**
  14144. * Get the raw Payload instance.
  14145. *
  14146. * @return \Tymon\JWTAuth\Payload
  14147. * @static
  14148. */
  14149. public static function getPayload()
  14150. {
  14151. //Method inherited from \Tymon\JWTAuth\JWT
  14152. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14153. return $instance->getPayload();
  14154. }
  14155. /**
  14156. * Alias for getPayload().
  14157. *
  14158. * @return \Tymon\JWTAuth\Payload
  14159. * @static
  14160. */
  14161. public static function payload()
  14162. {
  14163. //Method inherited from \Tymon\JWTAuth\JWT
  14164. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14165. return $instance->payload();
  14166. }
  14167. /**
  14168. * Convenience method to get a claim value.
  14169. *
  14170. * @param string $claim
  14171. * @return mixed
  14172. * @static
  14173. */
  14174. public static function getClaim($claim)
  14175. {
  14176. //Method inherited from \Tymon\JWTAuth\JWT
  14177. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14178. return $instance->getClaim($claim);
  14179. }
  14180. /**
  14181. * Create a Payload instance.
  14182. *
  14183. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  14184. * @return \Tymon\JWTAuth\Payload
  14185. * @static
  14186. */
  14187. public static function makePayload($subject)
  14188. {
  14189. //Method inherited from \Tymon\JWTAuth\JWT
  14190. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14191. return $instance->makePayload($subject);
  14192. }
  14193. /**
  14194. * Check if the subject model matches the one saved in the token.
  14195. *
  14196. * @param string|object $model
  14197. * @return bool
  14198. * @static
  14199. */
  14200. public static function checkSubjectModel($model)
  14201. {
  14202. //Method inherited from \Tymon\JWTAuth\JWT
  14203. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14204. return $instance->checkSubjectModel($model);
  14205. }
  14206. /**
  14207. * Set the token.
  14208. *
  14209. * @param \Tymon\JWTAuth\Token|string $token
  14210. * @return \Tymon\JWTAuth\JWTAuth
  14211. * @static
  14212. */
  14213. public static function setToken($token)
  14214. {
  14215. //Method inherited from \Tymon\JWTAuth\JWT
  14216. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14217. return $instance->setToken($token);
  14218. }
  14219. /**
  14220. * Unset the current token.
  14221. *
  14222. * @return \Tymon\JWTAuth\JWTAuth
  14223. * @static
  14224. */
  14225. public static function unsetToken()
  14226. {
  14227. //Method inherited from \Tymon\JWTAuth\JWT
  14228. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14229. return $instance->unsetToken();
  14230. }
  14231. /**
  14232. * Set the request instance.
  14233. *
  14234. * @param \Illuminate\Http\Request $request
  14235. * @return \Tymon\JWTAuth\JWTAuth
  14236. * @static
  14237. */
  14238. public static function setRequest($request)
  14239. {
  14240. //Method inherited from \Tymon\JWTAuth\JWT
  14241. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14242. return $instance->setRequest($request);
  14243. }
  14244. /**
  14245. * Set whether the subject should be "locked".
  14246. *
  14247. * @param bool $lock
  14248. * @return \Tymon\JWTAuth\JWTAuth
  14249. * @static
  14250. */
  14251. public static function lockSubject($lock)
  14252. {
  14253. //Method inherited from \Tymon\JWTAuth\JWT
  14254. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14255. return $instance->lockSubject($lock);
  14256. }
  14257. /**
  14258. * Get the Manager instance.
  14259. *
  14260. * @return \Tymon\JWTAuth\Manager
  14261. * @static
  14262. */
  14263. public static function manager()
  14264. {
  14265. //Method inherited from \Tymon\JWTAuth\JWT
  14266. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14267. return $instance->manager();
  14268. }
  14269. /**
  14270. * Get the Parser instance.
  14271. *
  14272. * @return \Tymon\JWTAuth\Http\Parser\Parser
  14273. * @static
  14274. */
  14275. public static function parser()
  14276. {
  14277. //Method inherited from \Tymon\JWTAuth\JWT
  14278. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14279. return $instance->parser();
  14280. }
  14281. /**
  14282. * Get the Payload Factory.
  14283. *
  14284. * @return \Tymon\JWTAuth\Factory
  14285. * @static
  14286. */
  14287. public static function factory()
  14288. {
  14289. //Method inherited from \Tymon\JWTAuth\JWT
  14290. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14291. return $instance->factory();
  14292. }
  14293. /**
  14294. * Get the Blacklist.
  14295. *
  14296. * @return \Tymon\JWTAuth\Blacklist
  14297. * @static
  14298. */
  14299. public static function blacklist()
  14300. {
  14301. //Method inherited from \Tymon\JWTAuth\JWT
  14302. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14303. return $instance->blacklist();
  14304. }
  14305. /**
  14306. * Set the custom claims.
  14307. *
  14308. * @param array $customClaims
  14309. * @return \Tymon\JWTAuth\JWTAuth
  14310. * @static
  14311. */
  14312. public static function customClaims($customClaims)
  14313. {
  14314. //Method inherited from \Tymon\JWTAuth\JWT
  14315. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14316. return $instance->customClaims($customClaims);
  14317. }
  14318. /**
  14319. * Alias to set the custom claims.
  14320. *
  14321. * @param array $customClaims
  14322. * @return \Tymon\JWTAuth\JWTAuth
  14323. * @static
  14324. */
  14325. public static function claims($customClaims)
  14326. {
  14327. //Method inherited from \Tymon\JWTAuth\JWT
  14328. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14329. return $instance->claims($customClaims);
  14330. }
  14331. /**
  14332. * Get the custom claims.
  14333. *
  14334. * @return array
  14335. * @static
  14336. */
  14337. public static function getCustomClaims()
  14338. {
  14339. //Method inherited from \Tymon\JWTAuth\JWT
  14340. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14341. return $instance->getCustomClaims();
  14342. }
  14343. }
  14344. /**
  14345. *
  14346. *
  14347. */
  14348. class JWTFactory {
  14349. /**
  14350. * Create the Payload instance.
  14351. *
  14352. * @param bool $resetClaims
  14353. * @return \Tymon\JWTAuth\Payload
  14354. * @static
  14355. */
  14356. public static function make($resetClaims = false)
  14357. {
  14358. /** @var \Tymon\JWTAuth\Factory $instance */
  14359. return $instance->make($resetClaims);
  14360. }
  14361. /**
  14362. * Empty the claims collection.
  14363. *
  14364. * @return \Tymon\JWTAuth\Factory
  14365. * @static
  14366. */
  14367. public static function emptyClaims()
  14368. {
  14369. /** @var \Tymon\JWTAuth\Factory $instance */
  14370. return $instance->emptyClaims();
  14371. }
  14372. /**
  14373. * Build and get the Claims Collection.
  14374. *
  14375. * @return \Tymon\JWTAuth\Claims\Collection
  14376. * @static
  14377. */
  14378. public static function buildClaimsCollection()
  14379. {
  14380. /** @var \Tymon\JWTAuth\Factory $instance */
  14381. return $instance->buildClaimsCollection();
  14382. }
  14383. /**
  14384. * Get a Payload instance with a claims collection.
  14385. *
  14386. * @param \Tymon\JWTAuth\Claims\Collection $claims
  14387. * @return \Tymon\JWTAuth\Payload
  14388. * @static
  14389. */
  14390. public static function withClaims($claims)
  14391. {
  14392. /** @var \Tymon\JWTAuth\Factory $instance */
  14393. return $instance->withClaims($claims);
  14394. }
  14395. /**
  14396. * Set the default claims to be added to the Payload.
  14397. *
  14398. * @param array $claims
  14399. * @return \Tymon\JWTAuth\Factory
  14400. * @static
  14401. */
  14402. public static function setDefaultClaims($claims)
  14403. {
  14404. /** @var \Tymon\JWTAuth\Factory $instance */
  14405. return $instance->setDefaultClaims($claims);
  14406. }
  14407. /**
  14408. * Helper to set the ttl.
  14409. *
  14410. * @param int $ttl
  14411. * @return \Tymon\JWTAuth\Factory
  14412. * @static
  14413. */
  14414. public static function setTTL($ttl)
  14415. {
  14416. /** @var \Tymon\JWTAuth\Factory $instance */
  14417. return $instance->setTTL($ttl);
  14418. }
  14419. /**
  14420. * Helper to get the ttl.
  14421. *
  14422. * @return int
  14423. * @static
  14424. */
  14425. public static function getTTL()
  14426. {
  14427. /** @var \Tymon\JWTAuth\Factory $instance */
  14428. return $instance->getTTL();
  14429. }
  14430. /**
  14431. * Get the default claims.
  14432. *
  14433. * @return array
  14434. * @static
  14435. */
  14436. public static function getDefaultClaims()
  14437. {
  14438. /** @var \Tymon\JWTAuth\Factory $instance */
  14439. return $instance->getDefaultClaims();
  14440. }
  14441. /**
  14442. * Get the PayloadValidator instance.
  14443. *
  14444. * @return \Tymon\JWTAuth\Validators\PayloadValidator
  14445. * @static
  14446. */
  14447. public static function validator()
  14448. {
  14449. /** @var \Tymon\JWTAuth\Factory $instance */
  14450. return $instance->validator();
  14451. }
  14452. /**
  14453. * Set the custom claims.
  14454. *
  14455. * @param array $customClaims
  14456. * @return \Tymon\JWTAuth\Factory
  14457. * @static
  14458. */
  14459. public static function customClaims($customClaims)
  14460. {
  14461. /** @var \Tymon\JWTAuth\Factory $instance */
  14462. return $instance->customClaims($customClaims);
  14463. }
  14464. /**
  14465. * Alias to set the custom claims.
  14466. *
  14467. * @param array $customClaims
  14468. * @return \Tymon\JWTAuth\Factory
  14469. * @static
  14470. */
  14471. public static function claims($customClaims)
  14472. {
  14473. /** @var \Tymon\JWTAuth\Factory $instance */
  14474. return $instance->claims($customClaims);
  14475. }
  14476. /**
  14477. * Get the custom claims.
  14478. *
  14479. * @return array
  14480. * @static
  14481. */
  14482. public static function getCustomClaims()
  14483. {
  14484. /** @var \Tymon\JWTAuth\Factory $instance */
  14485. return $instance->getCustomClaims();
  14486. }
  14487. /**
  14488. * Set the refresh flow flag.
  14489. *
  14490. * @param bool $refreshFlow
  14491. * @return \Tymon\JWTAuth\Factory
  14492. * @static
  14493. */
  14494. public static function setRefreshFlow($refreshFlow = true)
  14495. {
  14496. /** @var \Tymon\JWTAuth\Factory $instance */
  14497. return $instance->setRefreshFlow($refreshFlow);
  14498. }
  14499. }
  14500. }
  14501. namespace Telegram\Bot\Laravel\Facades {
  14502. /**
  14503. * Class Telegram.
  14504. *
  14505. */
  14506. class Telegram {
  14507. /**
  14508. * Set the IoC Container.
  14509. *
  14510. * @param $container Container instance
  14511. * @return \Telegram\Bot\BotsManager
  14512. * @static
  14513. */
  14514. public static function setContainer($container)
  14515. {
  14516. /** @var \Telegram\Bot\BotsManager $instance */
  14517. return $instance->setContainer($container);
  14518. }
  14519. /**
  14520. * Get the configuration for a bot.
  14521. *
  14522. * @param string|null $name
  14523. * @throws \InvalidArgumentException
  14524. * @return array
  14525. * @static
  14526. */
  14527. public static function getBotConfig($name = null)
  14528. {
  14529. /** @var \Telegram\Bot\BotsManager $instance */
  14530. return $instance->getBotConfig($name);
  14531. }
  14532. /**
  14533. * Get a bot instance.
  14534. *
  14535. * @param string $name
  14536. * @return \Telegram\Bot\Api
  14537. * @static
  14538. */
  14539. public static function bot($name = null)
  14540. {
  14541. /** @var \Telegram\Bot\BotsManager $instance */
  14542. return $instance->bot($name);
  14543. }
  14544. /**
  14545. * Reconnect to the given bot.
  14546. *
  14547. * @param string $name
  14548. * @return \Telegram\Bot\Api
  14549. * @static
  14550. */
  14551. public static function reconnect($name = null)
  14552. {
  14553. /** @var \Telegram\Bot\BotsManager $instance */
  14554. return $instance->reconnect($name);
  14555. }
  14556. /**
  14557. * Disconnect from the given bot.
  14558. *
  14559. * @param string $name
  14560. * @return \Telegram\Bot\BotsManager
  14561. * @static
  14562. */
  14563. public static function disconnect($name = null)
  14564. {
  14565. /** @var \Telegram\Bot\BotsManager $instance */
  14566. return $instance->disconnect($name);
  14567. }
  14568. /**
  14569. * Get the specified configuration value for Telegram.
  14570. *
  14571. * @param string $key
  14572. * @param mixed $default
  14573. * @return mixed
  14574. * @static
  14575. */
  14576. public static function getConfig($key, $default = null)
  14577. {
  14578. /** @var \Telegram\Bot\BotsManager $instance */
  14579. return $instance->getConfig($key, $default);
  14580. }
  14581. /**
  14582. * Get the default bot name.
  14583. *
  14584. * @throws TelegramSDKException
  14585. * @return string|null
  14586. * @static
  14587. */
  14588. public static function getDefaultBotName()
  14589. {
  14590. /** @var \Telegram\Bot\BotsManager $instance */
  14591. return $instance->getDefaultBotName();
  14592. }
  14593. /**
  14594. * Set the default bot name.
  14595. *
  14596. * @param string $name
  14597. * @return \Telegram\Bot\BotsManager
  14598. * @static
  14599. */
  14600. public static function setDefaultBot($name)
  14601. {
  14602. /** @var \Telegram\Bot\BotsManager $instance */
  14603. return $instance->setDefaultBot($name);
  14604. }
  14605. /**
  14606. * Return all of the created bots.
  14607. *
  14608. * @return \Telegram\Bot\Api[]
  14609. * @static
  14610. */
  14611. public static function getBots()
  14612. {
  14613. /** @var \Telegram\Bot\BotsManager $instance */
  14614. return $instance->getBots();
  14615. }
  14616. /**
  14617. * Builds the list of commands for the given commands array.
  14618. *
  14619. * @param array $commands
  14620. * @return array An array of commands which includes global and bot specific commands.
  14621. * @static
  14622. */
  14623. public static function parseBotCommands($commands)
  14624. {
  14625. /** @var \Telegram\Bot\BotsManager $instance */
  14626. return $instance->parseBotCommands($commands);
  14627. }
  14628. }
  14629. }
  14630. namespace Intervention\Image\Facades {
  14631. /**
  14632. *
  14633. *
  14634. */
  14635. class Image {
  14636. /**
  14637. * Overrides configuration settings
  14638. *
  14639. * @param array $config
  14640. * @return self
  14641. * @static
  14642. */
  14643. public static function configure($config = array())
  14644. {
  14645. /** @var \Intervention\Image\ImageManager $instance */
  14646. return $instance->configure($config);
  14647. }
  14648. /**
  14649. * Initiates an Image instance from different input types
  14650. *
  14651. * @param mixed $data
  14652. * @return \Intervention\Image\Image
  14653. * @static
  14654. */
  14655. public static function make($data)
  14656. {
  14657. /** @var \Intervention\Image\ImageManager $instance */
  14658. return $instance->make($data);
  14659. }
  14660. /**
  14661. * Creates an empty image canvas
  14662. *
  14663. * @param int $width
  14664. * @param int $height
  14665. * @param mixed $background
  14666. * @return \Intervention\Image\Image
  14667. * @static
  14668. */
  14669. public static function canvas($width, $height, $background = null)
  14670. {
  14671. /** @var \Intervention\Image\ImageManager $instance */
  14672. return $instance->canvas($width, $height, $background);
  14673. }
  14674. /**
  14675. * Create new cached image and run callback
  14676. * (requires additional package intervention/imagecache)
  14677. *
  14678. * @param \Closure $callback
  14679. * @param int $lifetime
  14680. * @param boolean $returnObj
  14681. * @return \Image
  14682. * @static
  14683. */
  14684. public static function cache($callback, $lifetime = null, $returnObj = false)
  14685. {
  14686. /** @var \Intervention\Image\ImageManager $instance */
  14687. return $instance->cache($callback, $lifetime, $returnObj);
  14688. }
  14689. }
  14690. }
  14691. namespace {
  14692. class App extends \Illuminate\Support\Facades\App {}
  14693. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  14694. class Auth extends \Illuminate\Support\Facades\Auth {}
  14695. class Blade extends \Illuminate\Support\Facades\Blade {}
  14696. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  14697. class Bus extends \Illuminate\Support\Facades\Bus {}
  14698. class Cache extends \Illuminate\Support\Facades\Cache {}
  14699. class Config extends \Illuminate\Support\Facades\Config {}
  14700. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  14701. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  14702. class DB extends \Illuminate\Support\Facades\DB {}
  14703. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  14704. /**
  14705. * Create and return an un-saved model instance.
  14706. *
  14707. * @param array $attributes
  14708. * @return \Illuminate\Database\Eloquent\Model
  14709. * @static
  14710. */
  14711. public static function make($attributes = array())
  14712. {
  14713. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14714. return $instance->make($attributes);
  14715. }
  14716. /**
  14717. * Register a new global scope.
  14718. *
  14719. * @param string $identifier
  14720. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  14721. * @return \Illuminate\Database\Eloquent\Builder
  14722. * @static
  14723. */
  14724. public static function withGlobalScope($identifier, $scope)
  14725. {
  14726. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14727. return $instance->withGlobalScope($identifier, $scope);
  14728. }
  14729. /**
  14730. * Remove a registered global scope.
  14731. *
  14732. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  14733. * @return \Illuminate\Database\Eloquent\Builder
  14734. * @static
  14735. */
  14736. public static function withoutGlobalScope($scope)
  14737. {
  14738. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14739. return $instance->withoutGlobalScope($scope);
  14740. }
  14741. /**
  14742. * Remove all or passed registered global scopes.
  14743. *
  14744. * @param array|null $scopes
  14745. * @return \Illuminate\Database\Eloquent\Builder
  14746. * @static
  14747. */
  14748. public static function withoutGlobalScopes($scopes = null)
  14749. {
  14750. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14751. return $instance->withoutGlobalScopes($scopes);
  14752. }
  14753. /**
  14754. * Get an array of global scopes that were removed from the query.
  14755. *
  14756. * @return array
  14757. * @static
  14758. */
  14759. public static function removedScopes()
  14760. {
  14761. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14762. return $instance->removedScopes();
  14763. }
  14764. /**
  14765. * Add a where clause on the primary key to the query.
  14766. *
  14767. * @param mixed $id
  14768. * @return \Illuminate\Database\Eloquent\Builder
  14769. * @static
  14770. */
  14771. public static function whereKey($id)
  14772. {
  14773. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14774. return $instance->whereKey($id);
  14775. }
  14776. /**
  14777. * Add a where clause on the primary key to the query.
  14778. *
  14779. * @param mixed $id
  14780. * @return \Illuminate\Database\Eloquent\Builder
  14781. * @static
  14782. */
  14783. public static function whereKeyNot($id)
  14784. {
  14785. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14786. return $instance->whereKeyNot($id);
  14787. }
  14788. /**
  14789. * Add a basic where clause to the query.
  14790. *
  14791. * @param string|array|\Closure $column
  14792. * @param mixed $operator
  14793. * @param mixed $value
  14794. * @param string $boolean
  14795. * @return \Illuminate\Database\Eloquent\Builder
  14796. * @static
  14797. */
  14798. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  14799. {
  14800. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14801. return $instance->where($column, $operator, $value, $boolean);
  14802. }
  14803. /**
  14804. * Add an "or where" clause to the query.
  14805. *
  14806. * @param \Closure|array|string $column
  14807. * @param mixed $operator
  14808. * @param mixed $value
  14809. * @return \Illuminate\Database\Eloquent\Builder|static
  14810. * @static
  14811. */
  14812. public static function orWhere($column, $operator = null, $value = null)
  14813. {
  14814. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14815. return $instance->orWhere($column, $operator, $value);
  14816. }
  14817. /**
  14818. * Create a collection of models from plain arrays.
  14819. *
  14820. * @param array $items
  14821. * @return \Illuminate\Database\Eloquent\Collection
  14822. * @static
  14823. */
  14824. public static function hydrate($items)
  14825. {
  14826. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14827. return $instance->hydrate($items);
  14828. }
  14829. /**
  14830. * Create a collection of models from a raw query.
  14831. *
  14832. * @param string $query
  14833. * @param array $bindings
  14834. * @return \Illuminate\Database\Eloquent\Collection
  14835. * @static
  14836. */
  14837. public static function fromQuery($query, $bindings = array())
  14838. {
  14839. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14840. return $instance->fromQuery($query, $bindings);
  14841. }
  14842. /**
  14843. * Find a model by its primary key.
  14844. *
  14845. * @param mixed $id
  14846. * @param array $columns
  14847. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  14848. * @static
  14849. */
  14850. public static function find($id, $columns = array())
  14851. {
  14852. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14853. return $instance->find($id, $columns);
  14854. }
  14855. /**
  14856. * Find multiple models by their primary keys.
  14857. *
  14858. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  14859. * @param array $columns
  14860. * @return \Illuminate\Database\Eloquent\Collection
  14861. * @static
  14862. */
  14863. public static function findMany($ids, $columns = array())
  14864. {
  14865. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14866. return $instance->findMany($ids, $columns);
  14867. }
  14868. /**
  14869. * Find a model by its primary key or throw an exception.
  14870. *
  14871. * @param mixed $id
  14872. * @param array $columns
  14873. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  14874. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14875. * @static
  14876. */
  14877. public static function findOrFail($id, $columns = array())
  14878. {
  14879. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14880. return $instance->findOrFail($id, $columns);
  14881. }
  14882. /**
  14883. * Find a model by its primary key or return fresh model instance.
  14884. *
  14885. * @param mixed $id
  14886. * @param array $columns
  14887. * @return \Illuminate\Database\Eloquent\Model
  14888. * @static
  14889. */
  14890. public static function findOrNew($id, $columns = array())
  14891. {
  14892. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14893. return $instance->findOrNew($id, $columns);
  14894. }
  14895. /**
  14896. * Get the first record matching the attributes or instantiate it.
  14897. *
  14898. * @param array $attributes
  14899. * @param array $values
  14900. * @return \Illuminate\Database\Eloquent\Model
  14901. * @static
  14902. */
  14903. public static function firstOrNew($attributes, $values = array())
  14904. {
  14905. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14906. return $instance->firstOrNew($attributes, $values);
  14907. }
  14908. /**
  14909. * Get the first record matching the attributes or create it.
  14910. *
  14911. * @param array $attributes
  14912. * @param array $values
  14913. * @return \Illuminate\Database\Eloquent\Model
  14914. * @static
  14915. */
  14916. public static function firstOrCreate($attributes, $values = array())
  14917. {
  14918. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14919. return $instance->firstOrCreate($attributes, $values);
  14920. }
  14921. /**
  14922. * Create or update a record matching the attributes, and fill it with values.
  14923. *
  14924. * @param array $attributes
  14925. * @param array $values
  14926. * @return \Illuminate\Database\Eloquent\Model
  14927. * @static
  14928. */
  14929. public static function updateOrCreate($attributes, $values = array())
  14930. {
  14931. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14932. return $instance->updateOrCreate($attributes, $values);
  14933. }
  14934. /**
  14935. * Execute the query and get the first result or throw an exception.
  14936. *
  14937. * @param array $columns
  14938. * @return \Illuminate\Database\Eloquent\Model|static
  14939. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14940. * @static
  14941. */
  14942. public static function firstOrFail($columns = array())
  14943. {
  14944. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14945. return $instance->firstOrFail($columns);
  14946. }
  14947. /**
  14948. * Execute the query and get the first result or call a callback.
  14949. *
  14950. * @param \Closure|array $columns
  14951. * @param \Closure|null $callback
  14952. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  14953. * @static
  14954. */
  14955. public static function firstOr($columns = array(), $callback = null)
  14956. {
  14957. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14958. return $instance->firstOr($columns, $callback);
  14959. }
  14960. /**
  14961. * Get a single column's value from the first result of a query.
  14962. *
  14963. * @param string $column
  14964. * @return mixed
  14965. * @static
  14966. */
  14967. public static function value($column)
  14968. {
  14969. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14970. return $instance->value($column);
  14971. }
  14972. /**
  14973. * Execute the query as a "select" statement.
  14974. *
  14975. * @param array $columns
  14976. * @return \Illuminate\Database\Eloquent\Collection|static[]
  14977. * @static
  14978. */
  14979. public static function get($columns = array())
  14980. {
  14981. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14982. return $instance->get($columns);
  14983. }
  14984. /**
  14985. * Get the hydrated models without eager loading.
  14986. *
  14987. * @param array $columns
  14988. * @return \Illuminate\Database\Eloquent\Model[]
  14989. * @static
  14990. */
  14991. public static function getModels($columns = array())
  14992. {
  14993. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14994. return $instance->getModels($columns);
  14995. }
  14996. /**
  14997. * Eager load the relationships for the models.
  14998. *
  14999. * @param array $models
  15000. * @return array
  15001. * @static
  15002. */
  15003. public static function eagerLoadRelations($models)
  15004. {
  15005. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15006. return $instance->eagerLoadRelations($models);
  15007. }
  15008. /**
  15009. * Get a generator for the given query.
  15010. *
  15011. * @return \Generator
  15012. * @static
  15013. */
  15014. public static function cursor()
  15015. {
  15016. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15017. return $instance->cursor();
  15018. }
  15019. /**
  15020. * Chunk the results of a query by comparing numeric IDs.
  15021. *
  15022. * @param int $count
  15023. * @param callable $callback
  15024. * @param string|null $column
  15025. * @param string|null $alias
  15026. * @return bool
  15027. * @static
  15028. */
  15029. public static function chunkById($count, $callback, $column = null, $alias = null)
  15030. {
  15031. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15032. return $instance->chunkById($count, $callback, $column, $alias);
  15033. }
  15034. /**
  15035. * Get an array with the values of a given column.
  15036. *
  15037. * @param string $column
  15038. * @param string|null $key
  15039. * @return \Illuminate\Support\Collection
  15040. * @static
  15041. */
  15042. public static function pluck($column, $key = null)
  15043. {
  15044. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15045. return $instance->pluck($column, $key);
  15046. }
  15047. /**
  15048. * Paginate the given query.
  15049. *
  15050. * @param int $perPage
  15051. * @param array $columns
  15052. * @param string $pageName
  15053. * @param int|null $page
  15054. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  15055. * @throws \InvalidArgumentException
  15056. * @static
  15057. */
  15058. public static function paginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  15059. {
  15060. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15061. return $instance->paginate($perPage, $columns, $pageName, $page);
  15062. }
  15063. /**
  15064. * Paginate the given query into a simple paginator.
  15065. *
  15066. * @param int $perPage
  15067. * @param array $columns
  15068. * @param string $pageName
  15069. * @param int|null $page
  15070. * @return \Illuminate\Contracts\Pagination\Paginator
  15071. * @static
  15072. */
  15073. public static function simplePaginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  15074. {
  15075. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15076. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  15077. }
  15078. /**
  15079. * Save a new model and return the instance.
  15080. *
  15081. * @param array $attributes
  15082. * @return \Illuminate\Database\Eloquent\Model|$this
  15083. * @static
  15084. */
  15085. public static function create($attributes = array())
  15086. {
  15087. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15088. return $instance->create($attributes);
  15089. }
  15090. /**
  15091. * Save a new model and return the instance. Allow mass-assignment.
  15092. *
  15093. * @param array $attributes
  15094. * @return \Illuminate\Database\Eloquent\Model|$this
  15095. * @static
  15096. */
  15097. public static function forceCreate($attributes)
  15098. {
  15099. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15100. return $instance->forceCreate($attributes);
  15101. }
  15102. /**
  15103. * Register a replacement for the default delete function.
  15104. *
  15105. * @param \Closure $callback
  15106. * @return void
  15107. * @static
  15108. */
  15109. public static function onDelete($callback)
  15110. {
  15111. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15112. $instance->onDelete($callback);
  15113. }
  15114. /**
  15115. * Call the given local model scopes.
  15116. *
  15117. * @param array $scopes
  15118. * @return mixed
  15119. * @static
  15120. */
  15121. public static function scopes($scopes)
  15122. {
  15123. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15124. return $instance->scopes($scopes);
  15125. }
  15126. /**
  15127. * Apply the scopes to the Eloquent builder instance and return it.
  15128. *
  15129. * @return \Illuminate\Database\Eloquent\Builder|static
  15130. * @static
  15131. */
  15132. public static function applyScopes()
  15133. {
  15134. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15135. return $instance->applyScopes();
  15136. }
  15137. /**
  15138. * Prevent the specified relations from being eager loaded.
  15139. *
  15140. * @param mixed $relations
  15141. * @return \Illuminate\Database\Eloquent\Builder
  15142. * @static
  15143. */
  15144. public static function without($relations)
  15145. {
  15146. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15147. return $instance->without($relations);
  15148. }
  15149. /**
  15150. * Create a new instance of the model being queried.
  15151. *
  15152. * @param array $attributes
  15153. * @return \Illuminate\Database\Eloquent\Model
  15154. * @static
  15155. */
  15156. public static function newModelInstance($attributes = array())
  15157. {
  15158. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15159. return $instance->newModelInstance($attributes);
  15160. }
  15161. /**
  15162. * Get the underlying query builder instance.
  15163. *
  15164. * @return \Illuminate\Database\Query\Builder
  15165. * @static
  15166. */
  15167. public static function getQuery()
  15168. {
  15169. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15170. return $instance->getQuery();
  15171. }
  15172. /**
  15173. * Set the underlying query builder instance.
  15174. *
  15175. * @param \Illuminate\Database\Query\Builder $query
  15176. * @return \Illuminate\Database\Eloquent\Builder
  15177. * @static
  15178. */
  15179. public static function setQuery($query)
  15180. {
  15181. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15182. return $instance->setQuery($query);
  15183. }
  15184. /**
  15185. * Get a base query builder instance.
  15186. *
  15187. * @return \Illuminate\Database\Query\Builder
  15188. * @static
  15189. */
  15190. public static function toBase()
  15191. {
  15192. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15193. return $instance->toBase();
  15194. }
  15195. /**
  15196. * Get the relationships being eagerly loaded.
  15197. *
  15198. * @return array
  15199. * @static
  15200. */
  15201. public static function getEagerLoads()
  15202. {
  15203. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15204. return $instance->getEagerLoads();
  15205. }
  15206. /**
  15207. * Set the relationships being eagerly loaded.
  15208. *
  15209. * @param array $eagerLoad
  15210. * @return \Illuminate\Database\Eloquent\Builder
  15211. * @static
  15212. */
  15213. public static function setEagerLoads($eagerLoad)
  15214. {
  15215. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15216. return $instance->setEagerLoads($eagerLoad);
  15217. }
  15218. /**
  15219. * Get the model instance being queried.
  15220. *
  15221. * @return \Illuminate\Database\Eloquent\Model
  15222. * @static
  15223. */
  15224. public static function getModel()
  15225. {
  15226. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15227. return $instance->getModel();
  15228. }
  15229. /**
  15230. * Set a model instance for the model being queried.
  15231. *
  15232. * @param \Illuminate\Database\Eloquent\Model $model
  15233. * @return \Illuminate\Database\Eloquent\Builder
  15234. * @static
  15235. */
  15236. public static function setModel($model)
  15237. {
  15238. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15239. return $instance->setModel($model);
  15240. }
  15241. /**
  15242. * Get the given macro by name.
  15243. *
  15244. * @param string $name
  15245. * @return \Closure
  15246. * @static
  15247. */
  15248. public static function getMacro($name)
  15249. {
  15250. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15251. return $instance->getMacro($name);
  15252. }
  15253. /**
  15254. * Chunk the results of the query.
  15255. *
  15256. * @param int $count
  15257. * @param callable $callback
  15258. * @return bool
  15259. * @static
  15260. */
  15261. public static function chunk($count, $callback)
  15262. {
  15263. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15264. return $instance->chunk($count, $callback);
  15265. }
  15266. /**
  15267. * Execute a callback over each item while chunking.
  15268. *
  15269. * @param callable $callback
  15270. * @param int $count
  15271. * @return bool
  15272. * @static
  15273. */
  15274. public static function each($callback, $count = 1000)
  15275. {
  15276. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15277. return $instance->each($callback, $count);
  15278. }
  15279. /**
  15280. * Execute the query and get the first result.
  15281. *
  15282. * @param array $columns
  15283. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  15284. * @static
  15285. */
  15286. public static function first($columns = array())
  15287. {
  15288. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15289. return $instance->first($columns);
  15290. }
  15291. /**
  15292. * Apply the callback's query changes if the given "value" is true.
  15293. *
  15294. * @param mixed $value
  15295. * @param callable $callback
  15296. * @param callable $default
  15297. * @return mixed|$this
  15298. * @static
  15299. */
  15300. public static function when($value, $callback, $default = null)
  15301. {
  15302. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15303. return $instance->when($value, $callback, $default);
  15304. }
  15305. /**
  15306. * Pass the query to a given callback.
  15307. *
  15308. * @param \Closure $callback
  15309. * @return \Illuminate\Database\Query\Builder
  15310. * @static
  15311. */
  15312. public static function tap($callback)
  15313. {
  15314. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15315. return $instance->tap($callback);
  15316. }
  15317. /**
  15318. * Apply the callback's query changes if the given "value" is false.
  15319. *
  15320. * @param mixed $value
  15321. * @param callable $callback
  15322. * @param callable $default
  15323. * @return mixed|$this
  15324. * @static
  15325. */
  15326. public static function unless($value, $callback, $default = null)
  15327. {
  15328. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15329. return $instance->unless($value, $callback, $default);
  15330. }
  15331. /**
  15332. * Add a relationship count / exists condition to the query.
  15333. *
  15334. * @param string $relation
  15335. * @param string $operator
  15336. * @param int $count
  15337. * @param string $boolean
  15338. * @param \Closure|null $callback
  15339. * @return \Illuminate\Database\Eloquent\Builder|static
  15340. * @static
  15341. */
  15342. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15343. {
  15344. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15345. return $instance->has($relation, $operator, $count, $boolean, $callback);
  15346. }
  15347. /**
  15348. * Add a relationship count / exists condition to the query with an "or".
  15349. *
  15350. * @param string $relation
  15351. * @param string $operator
  15352. * @param int $count
  15353. * @return \Illuminate\Database\Eloquent\Builder|static
  15354. * @static
  15355. */
  15356. public static function orHas($relation, $operator = '>=', $count = 1)
  15357. {
  15358. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15359. return $instance->orHas($relation, $operator, $count);
  15360. }
  15361. /**
  15362. * Add a relationship count / exists condition to the query.
  15363. *
  15364. * @param string $relation
  15365. * @param string $boolean
  15366. * @param \Closure|null $callback
  15367. * @return \Illuminate\Database\Eloquent\Builder|static
  15368. * @static
  15369. */
  15370. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  15371. {
  15372. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15373. return $instance->doesntHave($relation, $boolean, $callback);
  15374. }
  15375. /**
  15376. * Add a relationship count / exists condition to the query with an "or".
  15377. *
  15378. * @param string $relation
  15379. * @return \Illuminate\Database\Eloquent\Builder|static
  15380. * @static
  15381. */
  15382. public static function orDoesntHave($relation)
  15383. {
  15384. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15385. return $instance->orDoesntHave($relation);
  15386. }
  15387. /**
  15388. * Add a relationship count / exists condition to the query with where clauses.
  15389. *
  15390. * @param string $relation
  15391. * @param \Closure|null $callback
  15392. * @param string $operator
  15393. * @param int $count
  15394. * @return \Illuminate\Database\Eloquent\Builder|static
  15395. * @static
  15396. */
  15397. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15398. {
  15399. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15400. return $instance->whereHas($relation, $callback, $operator, $count);
  15401. }
  15402. /**
  15403. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15404. *
  15405. * @param string $relation
  15406. * @param \Closure $callback
  15407. * @param string $operator
  15408. * @param int $count
  15409. * @return \Illuminate\Database\Eloquent\Builder|static
  15410. * @static
  15411. */
  15412. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15413. {
  15414. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15415. return $instance->orWhereHas($relation, $callback, $operator, $count);
  15416. }
  15417. /**
  15418. * Add a relationship count / exists condition to the query with where clauses.
  15419. *
  15420. * @param string $relation
  15421. * @param \Closure|null $callback
  15422. * @return \Illuminate\Database\Eloquent\Builder|static
  15423. * @static
  15424. */
  15425. public static function whereDoesntHave($relation, $callback = null)
  15426. {
  15427. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15428. return $instance->whereDoesntHave($relation, $callback);
  15429. }
  15430. /**
  15431. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15432. *
  15433. * @param string $relation
  15434. * @param \Closure $callback
  15435. * @return \Illuminate\Database\Eloquent\Builder|static
  15436. * @static
  15437. */
  15438. public static function orWhereDoesntHave($relation, $callback = null)
  15439. {
  15440. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15441. return $instance->orWhereDoesntHave($relation, $callback);
  15442. }
  15443. /**
  15444. * Add subselect queries to count the relations.
  15445. *
  15446. * @param mixed $relations
  15447. * @return \Illuminate\Database\Eloquent\Builder
  15448. * @static
  15449. */
  15450. public static function withCount($relations)
  15451. {
  15452. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15453. return $instance->withCount($relations);
  15454. }
  15455. /**
  15456. * Merge the where constraints from another query to the current query.
  15457. *
  15458. * @param \Illuminate\Database\Eloquent\Builder $from
  15459. * @return \Illuminate\Database\Eloquent\Builder|static
  15460. * @static
  15461. */
  15462. public static function mergeConstraintsFrom($from)
  15463. {
  15464. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15465. return $instance->mergeConstraintsFrom($from);
  15466. }
  15467. /**
  15468. * Set the columns to be selected.
  15469. *
  15470. * @param array|mixed $columns
  15471. * @return \Illuminate\Database\Query\Builder
  15472. * @static
  15473. */
  15474. public static function select($columns = array())
  15475. {
  15476. /** @var \Illuminate\Database\Query\Builder $instance */
  15477. return $instance->select($columns);
  15478. }
  15479. /**
  15480. * Add a subselect expression to the query.
  15481. *
  15482. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15483. * @param string $as
  15484. * @return \Illuminate\Database\Query\Builder|static
  15485. * @throws \InvalidArgumentException
  15486. * @static
  15487. */
  15488. public static function selectSub($query, $as)
  15489. {
  15490. /** @var \Illuminate\Database\Query\Builder $instance */
  15491. return $instance->selectSub($query, $as);
  15492. }
  15493. /**
  15494. * Add a new "raw" select expression to the query.
  15495. *
  15496. * @param string $expression
  15497. * @param array $bindings
  15498. * @return \Illuminate\Database\Query\Builder|static
  15499. * @static
  15500. */
  15501. public static function selectRaw($expression, $bindings = array())
  15502. {
  15503. /** @var \Illuminate\Database\Query\Builder $instance */
  15504. return $instance->selectRaw($expression, $bindings);
  15505. }
  15506. /**
  15507. * Makes "from" fetch from a subquery.
  15508. *
  15509. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15510. * @param string $as
  15511. * @return \Illuminate\Database\Query\Builder|static
  15512. * @throws \InvalidArgumentException
  15513. * @static
  15514. */
  15515. public static function fromSub($query, $as)
  15516. {
  15517. /** @var \Illuminate\Database\Query\Builder $instance */
  15518. return $instance->fromSub($query, $as);
  15519. }
  15520. /**
  15521. * Add a raw from clause to the query.
  15522. *
  15523. * @param string $expression
  15524. * @param mixed $bindings
  15525. * @return \Illuminate\Database\Query\Builder|static
  15526. * @static
  15527. */
  15528. public static function fromRaw($expression, $bindings = array())
  15529. {
  15530. /** @var \Illuminate\Database\Query\Builder $instance */
  15531. return $instance->fromRaw($expression, $bindings);
  15532. }
  15533. /**
  15534. * Add a new select column to the query.
  15535. *
  15536. * @param array|mixed $column
  15537. * @return \Illuminate\Database\Query\Builder
  15538. * @static
  15539. */
  15540. public static function addSelect($column)
  15541. {
  15542. /** @var \Illuminate\Database\Query\Builder $instance */
  15543. return $instance->addSelect($column);
  15544. }
  15545. /**
  15546. * Force the query to only return distinct results.
  15547. *
  15548. * @return \Illuminate\Database\Query\Builder
  15549. * @static
  15550. */
  15551. public static function distinct()
  15552. {
  15553. /** @var \Illuminate\Database\Query\Builder $instance */
  15554. return $instance->distinct();
  15555. }
  15556. /**
  15557. * Set the table which the query is targeting.
  15558. *
  15559. * @param string $table
  15560. * @return \Illuminate\Database\Query\Builder
  15561. * @static
  15562. */
  15563. public static function from($table)
  15564. {
  15565. /** @var \Illuminate\Database\Query\Builder $instance */
  15566. return $instance->from($table);
  15567. }
  15568. /**
  15569. * Add a join clause to the query.
  15570. *
  15571. * @param string $table
  15572. * @param string $first
  15573. * @param string|null $operator
  15574. * @param string|null $second
  15575. * @param string $type
  15576. * @param bool $where
  15577. * @return \Illuminate\Database\Query\Builder
  15578. * @static
  15579. */
  15580. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  15581. {
  15582. /** @var \Illuminate\Database\Query\Builder $instance */
  15583. return $instance->join($table, $first, $operator, $second, $type, $where);
  15584. }
  15585. /**
  15586. * Add a "join where" clause to the query.
  15587. *
  15588. * @param string $table
  15589. * @param string $first
  15590. * @param string $operator
  15591. * @param string $second
  15592. * @param string $type
  15593. * @return \Illuminate\Database\Query\Builder|static
  15594. * @static
  15595. */
  15596. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  15597. {
  15598. /** @var \Illuminate\Database\Query\Builder $instance */
  15599. return $instance->joinWhere($table, $first, $operator, $second, $type);
  15600. }
  15601. /**
  15602. * Add a subquery join clause to the query.
  15603. *
  15604. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15605. * @param string $as
  15606. * @param string $first
  15607. * @param string|null $operator
  15608. * @param string|null $second
  15609. * @param string $type
  15610. * @param bool $where
  15611. * @return \Illuminate\Database\Query\Builder|static
  15612. * @throws \InvalidArgumentException
  15613. * @static
  15614. */
  15615. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  15616. {
  15617. /** @var \Illuminate\Database\Query\Builder $instance */
  15618. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  15619. }
  15620. /**
  15621. * Add a left join to the query.
  15622. *
  15623. * @param string $table
  15624. * @param string $first
  15625. * @param string|null $operator
  15626. * @param string|null $second
  15627. * @return \Illuminate\Database\Query\Builder|static
  15628. * @static
  15629. */
  15630. public static function leftJoin($table, $first, $operator = null, $second = null)
  15631. {
  15632. /** @var \Illuminate\Database\Query\Builder $instance */
  15633. return $instance->leftJoin($table, $first, $operator, $second);
  15634. }
  15635. /**
  15636. * Add a "join where" clause to the query.
  15637. *
  15638. * @param string $table
  15639. * @param string $first
  15640. * @param string $operator
  15641. * @param string $second
  15642. * @return \Illuminate\Database\Query\Builder|static
  15643. * @static
  15644. */
  15645. public static function leftJoinWhere($table, $first, $operator, $second)
  15646. {
  15647. /** @var \Illuminate\Database\Query\Builder $instance */
  15648. return $instance->leftJoinWhere($table, $first, $operator, $second);
  15649. }
  15650. /**
  15651. * Add a subquery left join to the query.
  15652. *
  15653. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15654. * @param string $as
  15655. * @param string $first
  15656. * @param string|null $operator
  15657. * @param string|null $second
  15658. * @return \Illuminate\Database\Query\Builder|static
  15659. * @static
  15660. */
  15661. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  15662. {
  15663. /** @var \Illuminate\Database\Query\Builder $instance */
  15664. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  15665. }
  15666. /**
  15667. * Add a right join to the query.
  15668. *
  15669. * @param string $table
  15670. * @param string $first
  15671. * @param string|null $operator
  15672. * @param string|null $second
  15673. * @return \Illuminate\Database\Query\Builder|static
  15674. * @static
  15675. */
  15676. public static function rightJoin($table, $first, $operator = null, $second = null)
  15677. {
  15678. /** @var \Illuminate\Database\Query\Builder $instance */
  15679. return $instance->rightJoin($table, $first, $operator, $second);
  15680. }
  15681. /**
  15682. * Add a "right join where" clause to the query.
  15683. *
  15684. * @param string $table
  15685. * @param string $first
  15686. * @param string $operator
  15687. * @param string $second
  15688. * @return \Illuminate\Database\Query\Builder|static
  15689. * @static
  15690. */
  15691. public static function rightJoinWhere($table, $first, $operator, $second)
  15692. {
  15693. /** @var \Illuminate\Database\Query\Builder $instance */
  15694. return $instance->rightJoinWhere($table, $first, $operator, $second);
  15695. }
  15696. /**
  15697. * Add a subquery right join to the query.
  15698. *
  15699. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15700. * @param string $as
  15701. * @param string $first
  15702. * @param string|null $operator
  15703. * @param string|null $second
  15704. * @return \Illuminate\Database\Query\Builder|static
  15705. * @static
  15706. */
  15707. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  15708. {
  15709. /** @var \Illuminate\Database\Query\Builder $instance */
  15710. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  15711. }
  15712. /**
  15713. * Add a "cross join" clause to the query.
  15714. *
  15715. * @param string $table
  15716. * @param string|null $first
  15717. * @param string|null $operator
  15718. * @param string|null $second
  15719. * @return \Illuminate\Database\Query\Builder|static
  15720. * @static
  15721. */
  15722. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  15723. {
  15724. /** @var \Illuminate\Database\Query\Builder $instance */
  15725. return $instance->crossJoin($table, $first, $operator, $second);
  15726. }
  15727. /**
  15728. * Merge an array of where clauses and bindings.
  15729. *
  15730. * @param array $wheres
  15731. * @param array $bindings
  15732. * @return void
  15733. * @static
  15734. */
  15735. public static function mergeWheres($wheres, $bindings)
  15736. {
  15737. /** @var \Illuminate\Database\Query\Builder $instance */
  15738. $instance->mergeWheres($wheres, $bindings);
  15739. }
  15740. /**
  15741. * Prepare the value and operator for a where clause.
  15742. *
  15743. * @param string $value
  15744. * @param string $operator
  15745. * @param bool $useDefault
  15746. * @return array
  15747. * @throws \InvalidArgumentException
  15748. * @static
  15749. */
  15750. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  15751. {
  15752. /** @var \Illuminate\Database\Query\Builder $instance */
  15753. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  15754. }
  15755. /**
  15756. * Add a "where" clause comparing two columns to the query.
  15757. *
  15758. * @param string|array $first
  15759. * @param string|null $operator
  15760. * @param string|null $second
  15761. * @param string|null $boolean
  15762. * @return \Illuminate\Database\Query\Builder|static
  15763. * @static
  15764. */
  15765. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  15766. {
  15767. /** @var \Illuminate\Database\Query\Builder $instance */
  15768. return $instance->whereColumn($first, $operator, $second, $boolean);
  15769. }
  15770. /**
  15771. * Add an "or where" clause comparing two columns to the query.
  15772. *
  15773. * @param string|array $first
  15774. * @param string|null $operator
  15775. * @param string|null $second
  15776. * @return \Illuminate\Database\Query\Builder|static
  15777. * @static
  15778. */
  15779. public static function orWhereColumn($first, $operator = null, $second = null)
  15780. {
  15781. /** @var \Illuminate\Database\Query\Builder $instance */
  15782. return $instance->orWhereColumn($first, $operator, $second);
  15783. }
  15784. /**
  15785. * Add a raw where clause to the query.
  15786. *
  15787. * @param string $sql
  15788. * @param mixed $bindings
  15789. * @param string $boolean
  15790. * @return \Illuminate\Database\Query\Builder
  15791. * @static
  15792. */
  15793. public static function whereRaw($sql, $bindings = array(), $boolean = 'and')
  15794. {
  15795. /** @var \Illuminate\Database\Query\Builder $instance */
  15796. return $instance->whereRaw($sql, $bindings, $boolean);
  15797. }
  15798. /**
  15799. * Add a raw or where clause to the query.
  15800. *
  15801. * @param string $sql
  15802. * @param mixed $bindings
  15803. * @return \Illuminate\Database\Query\Builder|static
  15804. * @static
  15805. */
  15806. public static function orWhereRaw($sql, $bindings = array())
  15807. {
  15808. /** @var \Illuminate\Database\Query\Builder $instance */
  15809. return $instance->orWhereRaw($sql, $bindings);
  15810. }
  15811. /**
  15812. * Add a "where in" clause to the query.
  15813. *
  15814. * @param string $column
  15815. * @param mixed $values
  15816. * @param string $boolean
  15817. * @param bool $not
  15818. * @return \Illuminate\Database\Query\Builder
  15819. * @static
  15820. */
  15821. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  15822. {
  15823. /** @var \Illuminate\Database\Query\Builder $instance */
  15824. return $instance->whereIn($column, $values, $boolean, $not);
  15825. }
  15826. /**
  15827. * Add an "or where in" clause to the query.
  15828. *
  15829. * @param string $column
  15830. * @param mixed $values
  15831. * @return \Illuminate\Database\Query\Builder|static
  15832. * @static
  15833. */
  15834. public static function orWhereIn($column, $values)
  15835. {
  15836. /** @var \Illuminate\Database\Query\Builder $instance */
  15837. return $instance->orWhereIn($column, $values);
  15838. }
  15839. /**
  15840. * Add a "where not in" clause to the query.
  15841. *
  15842. * @param string $column
  15843. * @param mixed $values
  15844. * @param string $boolean
  15845. * @return \Illuminate\Database\Query\Builder|static
  15846. * @static
  15847. */
  15848. public static function whereNotIn($column, $values, $boolean = 'and')
  15849. {
  15850. /** @var \Illuminate\Database\Query\Builder $instance */
  15851. return $instance->whereNotIn($column, $values, $boolean);
  15852. }
  15853. /**
  15854. * Add an "or where not in" clause to the query.
  15855. *
  15856. * @param string $column
  15857. * @param mixed $values
  15858. * @return \Illuminate\Database\Query\Builder|static
  15859. * @static
  15860. */
  15861. public static function orWhereNotIn($column, $values)
  15862. {
  15863. /** @var \Illuminate\Database\Query\Builder $instance */
  15864. return $instance->orWhereNotIn($column, $values);
  15865. }
  15866. /**
  15867. * Add a "where null" clause to the query.
  15868. *
  15869. * @param string $column
  15870. * @param string $boolean
  15871. * @param bool $not
  15872. * @return \Illuminate\Database\Query\Builder
  15873. * @static
  15874. */
  15875. public static function whereNull($column, $boolean = 'and', $not = false)
  15876. {
  15877. /** @var \Illuminate\Database\Query\Builder $instance */
  15878. return $instance->whereNull($column, $boolean, $not);
  15879. }
  15880. /**
  15881. * Add an "or where null" clause to the query.
  15882. *
  15883. * @param string $column
  15884. * @return \Illuminate\Database\Query\Builder|static
  15885. * @static
  15886. */
  15887. public static function orWhereNull($column)
  15888. {
  15889. /** @var \Illuminate\Database\Query\Builder $instance */
  15890. return $instance->orWhereNull($column);
  15891. }
  15892. /**
  15893. * Add a "where not null" clause to the query.
  15894. *
  15895. * @param string $column
  15896. * @param string $boolean
  15897. * @return \Illuminate\Database\Query\Builder|static
  15898. * @static
  15899. */
  15900. public static function whereNotNull($column, $boolean = 'and')
  15901. {
  15902. /** @var \Illuminate\Database\Query\Builder $instance */
  15903. return $instance->whereNotNull($column, $boolean);
  15904. }
  15905. /**
  15906. * Add a where between statement to the query.
  15907. *
  15908. * @param string $column
  15909. * @param array $values
  15910. * @param string $boolean
  15911. * @param bool $not
  15912. * @return \Illuminate\Database\Query\Builder
  15913. * @static
  15914. */
  15915. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  15916. {
  15917. /** @var \Illuminate\Database\Query\Builder $instance */
  15918. return $instance->whereBetween($column, $values, $boolean, $not);
  15919. }
  15920. /**
  15921. * Add an or where between statement to the query.
  15922. *
  15923. * @param string $column
  15924. * @param array $values
  15925. * @return \Illuminate\Database\Query\Builder|static
  15926. * @static
  15927. */
  15928. public static function orWhereBetween($column, $values)
  15929. {
  15930. /** @var \Illuminate\Database\Query\Builder $instance */
  15931. return $instance->orWhereBetween($column, $values);
  15932. }
  15933. /**
  15934. * Add a where not between statement to the query.
  15935. *
  15936. * @param string $column
  15937. * @param array $values
  15938. * @param string $boolean
  15939. * @return \Illuminate\Database\Query\Builder|static
  15940. * @static
  15941. */
  15942. public static function whereNotBetween($column, $values, $boolean = 'and')
  15943. {
  15944. /** @var \Illuminate\Database\Query\Builder $instance */
  15945. return $instance->whereNotBetween($column, $values, $boolean);
  15946. }
  15947. /**
  15948. * Add an or where not between statement to the query.
  15949. *
  15950. * @param string $column
  15951. * @param array $values
  15952. * @return \Illuminate\Database\Query\Builder|static
  15953. * @static
  15954. */
  15955. public static function orWhereNotBetween($column, $values)
  15956. {
  15957. /** @var \Illuminate\Database\Query\Builder $instance */
  15958. return $instance->orWhereNotBetween($column, $values);
  15959. }
  15960. /**
  15961. * Add an "or where not null" clause to the query.
  15962. *
  15963. * @param string $column
  15964. * @return \Illuminate\Database\Query\Builder|static
  15965. * @static
  15966. */
  15967. public static function orWhereNotNull($column)
  15968. {
  15969. /** @var \Illuminate\Database\Query\Builder $instance */
  15970. return $instance->orWhereNotNull($column);
  15971. }
  15972. /**
  15973. * Add a "where date" statement to the query.
  15974. *
  15975. * @param string $column
  15976. * @param string $operator
  15977. * @param mixed $value
  15978. * @param string $boolean
  15979. * @return \Illuminate\Database\Query\Builder|static
  15980. * @static
  15981. */
  15982. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  15983. {
  15984. /** @var \Illuminate\Database\Query\Builder $instance */
  15985. return $instance->whereDate($column, $operator, $value, $boolean);
  15986. }
  15987. /**
  15988. * Add an "or where date" statement to the query.
  15989. *
  15990. * @param string $column
  15991. * @param string $operator
  15992. * @param mixed $value
  15993. * @return \Illuminate\Database\Query\Builder|static
  15994. * @static
  15995. */
  15996. public static function orWhereDate($column, $operator, $value = null)
  15997. {
  15998. /** @var \Illuminate\Database\Query\Builder $instance */
  15999. return $instance->orWhereDate($column, $operator, $value);
  16000. }
  16001. /**
  16002. * Add a "where time" statement to the query.
  16003. *
  16004. * @param string $column
  16005. * @param string $operator
  16006. * @param mixed $value
  16007. * @param string $boolean
  16008. * @return \Illuminate\Database\Query\Builder|static
  16009. * @static
  16010. */
  16011. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  16012. {
  16013. /** @var \Illuminate\Database\Query\Builder $instance */
  16014. return $instance->whereTime($column, $operator, $value, $boolean);
  16015. }
  16016. /**
  16017. * Add an "or where time" statement to the query.
  16018. *
  16019. * @param string $column
  16020. * @param string $operator
  16021. * @param mixed $value
  16022. * @return \Illuminate\Database\Query\Builder|static
  16023. * @static
  16024. */
  16025. public static function orWhereTime($column, $operator, $value = null)
  16026. {
  16027. /** @var \Illuminate\Database\Query\Builder $instance */
  16028. return $instance->orWhereTime($column, $operator, $value);
  16029. }
  16030. /**
  16031. * Add a "where day" statement to the query.
  16032. *
  16033. * @param string $column
  16034. * @param string $operator
  16035. * @param mixed $value
  16036. * @param string $boolean
  16037. * @return \Illuminate\Database\Query\Builder|static
  16038. * @static
  16039. */
  16040. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  16041. {
  16042. /** @var \Illuminate\Database\Query\Builder $instance */
  16043. return $instance->whereDay($column, $operator, $value, $boolean);
  16044. }
  16045. /**
  16046. * Add an "or where day" statement to the query.
  16047. *
  16048. * @param string $column
  16049. * @param string $operator
  16050. * @param mixed $value
  16051. * @return \Illuminate\Database\Query\Builder|static
  16052. * @static
  16053. */
  16054. public static function orWhereDay($column, $operator, $value = null)
  16055. {
  16056. /** @var \Illuminate\Database\Query\Builder $instance */
  16057. return $instance->orWhereDay($column, $operator, $value);
  16058. }
  16059. /**
  16060. * Add a "where month" statement to the query.
  16061. *
  16062. * @param string $column
  16063. * @param string $operator
  16064. * @param mixed $value
  16065. * @param string $boolean
  16066. * @return \Illuminate\Database\Query\Builder|static
  16067. * @static
  16068. */
  16069. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  16070. {
  16071. /** @var \Illuminate\Database\Query\Builder $instance */
  16072. return $instance->whereMonth($column, $operator, $value, $boolean);
  16073. }
  16074. /**
  16075. * Add an "or where month" statement to the query.
  16076. *
  16077. * @param string $column
  16078. * @param string $operator
  16079. * @param mixed $value
  16080. * @return \Illuminate\Database\Query\Builder|static
  16081. * @static
  16082. */
  16083. public static function orWhereMonth($column, $operator, $value = null)
  16084. {
  16085. /** @var \Illuminate\Database\Query\Builder $instance */
  16086. return $instance->orWhereMonth($column, $operator, $value);
  16087. }
  16088. /**
  16089. * Add a "where year" statement to the query.
  16090. *
  16091. * @param string $column
  16092. * @param string $operator
  16093. * @param mixed $value
  16094. * @param string $boolean
  16095. * @return \Illuminate\Database\Query\Builder|static
  16096. * @static
  16097. */
  16098. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  16099. {
  16100. /** @var \Illuminate\Database\Query\Builder $instance */
  16101. return $instance->whereYear($column, $operator, $value, $boolean);
  16102. }
  16103. /**
  16104. * Add an "or where year" statement to the query.
  16105. *
  16106. * @param string $column
  16107. * @param string $operator
  16108. * @param mixed $value
  16109. * @return \Illuminate\Database\Query\Builder|static
  16110. * @static
  16111. */
  16112. public static function orWhereYear($column, $operator, $value = null)
  16113. {
  16114. /** @var \Illuminate\Database\Query\Builder $instance */
  16115. return $instance->orWhereYear($column, $operator, $value);
  16116. }
  16117. /**
  16118. * Add a nested where statement to the query.
  16119. *
  16120. * @param \Closure $callback
  16121. * @param string $boolean
  16122. * @return \Illuminate\Database\Query\Builder|static
  16123. * @static
  16124. */
  16125. public static function whereNested($callback, $boolean = 'and')
  16126. {
  16127. /** @var \Illuminate\Database\Query\Builder $instance */
  16128. return $instance->whereNested($callback, $boolean);
  16129. }
  16130. /**
  16131. * Create a new query instance for nested where condition.
  16132. *
  16133. * @return \Illuminate\Database\Query\Builder
  16134. * @static
  16135. */
  16136. public static function forNestedWhere()
  16137. {
  16138. /** @var \Illuminate\Database\Query\Builder $instance */
  16139. return $instance->forNestedWhere();
  16140. }
  16141. /**
  16142. * Add another query builder as a nested where to the query builder.
  16143. *
  16144. * @param \Illuminate\Database\Query\Builder|static $query
  16145. * @param string $boolean
  16146. * @return \Illuminate\Database\Query\Builder
  16147. * @static
  16148. */
  16149. public static function addNestedWhereQuery($query, $boolean = 'and')
  16150. {
  16151. /** @var \Illuminate\Database\Query\Builder $instance */
  16152. return $instance->addNestedWhereQuery($query, $boolean);
  16153. }
  16154. /**
  16155. * Add an exists clause to the query.
  16156. *
  16157. * @param \Closure $callback
  16158. * @param string $boolean
  16159. * @param bool $not
  16160. * @return \Illuminate\Database\Query\Builder
  16161. * @static
  16162. */
  16163. public static function whereExists($callback, $boolean = 'and', $not = false)
  16164. {
  16165. /** @var \Illuminate\Database\Query\Builder $instance */
  16166. return $instance->whereExists($callback, $boolean, $not);
  16167. }
  16168. /**
  16169. * Add an or exists clause to the query.
  16170. *
  16171. * @param \Closure $callback
  16172. * @param bool $not
  16173. * @return \Illuminate\Database\Query\Builder|static
  16174. * @static
  16175. */
  16176. public static function orWhereExists($callback, $not = false)
  16177. {
  16178. /** @var \Illuminate\Database\Query\Builder $instance */
  16179. return $instance->orWhereExists($callback, $not);
  16180. }
  16181. /**
  16182. * Add a where not exists clause to the query.
  16183. *
  16184. * @param \Closure $callback
  16185. * @param string $boolean
  16186. * @return \Illuminate\Database\Query\Builder|static
  16187. * @static
  16188. */
  16189. public static function whereNotExists($callback, $boolean = 'and')
  16190. {
  16191. /** @var \Illuminate\Database\Query\Builder $instance */
  16192. return $instance->whereNotExists($callback, $boolean);
  16193. }
  16194. /**
  16195. * Add a where not exists clause to the query.
  16196. *
  16197. * @param \Closure $callback
  16198. * @return \Illuminate\Database\Query\Builder|static
  16199. * @static
  16200. */
  16201. public static function orWhereNotExists($callback)
  16202. {
  16203. /** @var \Illuminate\Database\Query\Builder $instance */
  16204. return $instance->orWhereNotExists($callback);
  16205. }
  16206. /**
  16207. * Add an exists clause to the query.
  16208. *
  16209. * @param \Illuminate\Database\Query\Builder $query
  16210. * @param string $boolean
  16211. * @param bool $not
  16212. * @return \Illuminate\Database\Query\Builder
  16213. * @static
  16214. */
  16215. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  16216. {
  16217. /** @var \Illuminate\Database\Query\Builder $instance */
  16218. return $instance->addWhereExistsQuery($query, $boolean, $not);
  16219. }
  16220. /**
  16221. * Adds a where condition using row values.
  16222. *
  16223. * @param array $columns
  16224. * @param string $operator
  16225. * @param array $values
  16226. * @param string $boolean
  16227. * @return \Illuminate\Database\Query\Builder
  16228. * @static
  16229. */
  16230. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  16231. {
  16232. /** @var \Illuminate\Database\Query\Builder $instance */
  16233. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  16234. }
  16235. /**
  16236. * Adds a or where condition using row values.
  16237. *
  16238. * @param array $columns
  16239. * @param string $operator
  16240. * @param array $values
  16241. * @return \Illuminate\Database\Query\Builder
  16242. * @static
  16243. */
  16244. public static function orWhereRowValues($columns, $operator, $values)
  16245. {
  16246. /** @var \Illuminate\Database\Query\Builder $instance */
  16247. return $instance->orWhereRowValues($columns, $operator, $values);
  16248. }
  16249. /**
  16250. * Add a "where JSON contains" clause to the query.
  16251. *
  16252. * @param string $column
  16253. * @param mixed $value
  16254. * @param string $boolean
  16255. * @param bool $not
  16256. * @return \Illuminate\Database\Query\Builder
  16257. * @static
  16258. */
  16259. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  16260. {
  16261. /** @var \Illuminate\Database\Query\Builder $instance */
  16262. return $instance->whereJsonContains($column, $value, $boolean, $not);
  16263. }
  16264. /**
  16265. * Add a "or where JSON contains" clause to the query.
  16266. *
  16267. * @param string $column
  16268. * @param mixed $value
  16269. * @return \Illuminate\Database\Query\Builder
  16270. * @static
  16271. */
  16272. public static function orWhereJsonContains($column, $value)
  16273. {
  16274. /** @var \Illuminate\Database\Query\Builder $instance */
  16275. return $instance->orWhereJsonContains($column, $value);
  16276. }
  16277. /**
  16278. * Add a "where JSON not contains" clause to the query.
  16279. *
  16280. * @param string $column
  16281. * @param mixed $value
  16282. * @param string $boolean
  16283. * @return \Illuminate\Database\Query\Builder
  16284. * @static
  16285. */
  16286. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  16287. {
  16288. /** @var \Illuminate\Database\Query\Builder $instance */
  16289. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  16290. }
  16291. /**
  16292. * Add a "or where JSON not contains" clause to the query.
  16293. *
  16294. * @param string $column
  16295. * @param mixed $value
  16296. * @return \Illuminate\Database\Query\Builder
  16297. * @static
  16298. */
  16299. public static function orWhereJsonDoesntContain($column, $value)
  16300. {
  16301. /** @var \Illuminate\Database\Query\Builder $instance */
  16302. return $instance->orWhereJsonDoesntContain($column, $value);
  16303. }
  16304. /**
  16305. * Handles dynamic "where" clauses to the query.
  16306. *
  16307. * @param string $method
  16308. * @param string $parameters
  16309. * @return \Illuminate\Database\Query\Builder
  16310. * @static
  16311. */
  16312. public static function dynamicWhere($method, $parameters)
  16313. {
  16314. /** @var \Illuminate\Database\Query\Builder $instance */
  16315. return $instance->dynamicWhere($method, $parameters);
  16316. }
  16317. /**
  16318. * Add a "group by" clause to the query.
  16319. *
  16320. * @param array $groups
  16321. * @return \Illuminate\Database\Query\Builder
  16322. * @static
  16323. */
  16324. public static function groupBy($groups = null)
  16325. {
  16326. /** @var \Illuminate\Database\Query\Builder $instance */
  16327. return $instance->groupBy($groups);
  16328. }
  16329. /**
  16330. * Add a "having" clause to the query.
  16331. *
  16332. * @param string $column
  16333. * @param string|null $operator
  16334. * @param string|null $value
  16335. * @param string $boolean
  16336. * @return \Illuminate\Database\Query\Builder
  16337. * @static
  16338. */
  16339. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  16340. {
  16341. /** @var \Illuminate\Database\Query\Builder $instance */
  16342. return $instance->having($column, $operator, $value, $boolean);
  16343. }
  16344. /**
  16345. * Add a "or having" clause to the query.
  16346. *
  16347. * @param string $column
  16348. * @param string|null $operator
  16349. * @param string|null $value
  16350. * @return \Illuminate\Database\Query\Builder|static
  16351. * @static
  16352. */
  16353. public static function orHaving($column, $operator = null, $value = null)
  16354. {
  16355. /** @var \Illuminate\Database\Query\Builder $instance */
  16356. return $instance->orHaving($column, $operator, $value);
  16357. }
  16358. /**
  16359. * Add a raw having clause to the query.
  16360. *
  16361. * @param string $sql
  16362. * @param array $bindings
  16363. * @param string $boolean
  16364. * @return \Illuminate\Database\Query\Builder
  16365. * @static
  16366. */
  16367. public static function havingRaw($sql, $bindings = array(), $boolean = 'and')
  16368. {
  16369. /** @var \Illuminate\Database\Query\Builder $instance */
  16370. return $instance->havingRaw($sql, $bindings, $boolean);
  16371. }
  16372. /**
  16373. * Add a raw or having clause to the query.
  16374. *
  16375. * @param string $sql
  16376. * @param array $bindings
  16377. * @return \Illuminate\Database\Query\Builder|static
  16378. * @static
  16379. */
  16380. public static function orHavingRaw($sql, $bindings = array())
  16381. {
  16382. /** @var \Illuminate\Database\Query\Builder $instance */
  16383. return $instance->orHavingRaw($sql, $bindings);
  16384. }
  16385. /**
  16386. * Add an "order by" clause to the query.
  16387. *
  16388. * @param string $column
  16389. * @param string $direction
  16390. * @return \Illuminate\Database\Query\Builder
  16391. * @static
  16392. */
  16393. public static function orderBy($column, $direction = 'asc')
  16394. {
  16395. /** @var \Illuminate\Database\Query\Builder $instance */
  16396. return $instance->orderBy($column, $direction);
  16397. }
  16398. /**
  16399. * Add a descending "order by" clause to the query.
  16400. *
  16401. * @param string $column
  16402. * @return \Illuminate\Database\Query\Builder
  16403. * @static
  16404. */
  16405. public static function orderByDesc($column)
  16406. {
  16407. /** @var \Illuminate\Database\Query\Builder $instance */
  16408. return $instance->orderByDesc($column);
  16409. }
  16410. /**
  16411. * Add an "order by" clause for a timestamp to the query.
  16412. *
  16413. * @param string $column
  16414. * @return \Illuminate\Database\Query\Builder|static
  16415. * @static
  16416. */
  16417. public static function latest($column = 'created_at')
  16418. {
  16419. /** @var \Illuminate\Database\Query\Builder $instance */
  16420. return $instance->latest($column);
  16421. }
  16422. /**
  16423. * Add an "order by" clause for a timestamp to the query.
  16424. *
  16425. * @param string $column
  16426. * @return \Illuminate\Database\Query\Builder|static
  16427. * @static
  16428. */
  16429. public static function oldest($column = 'created_at')
  16430. {
  16431. /** @var \Illuminate\Database\Query\Builder $instance */
  16432. return $instance->oldest($column);
  16433. }
  16434. /**
  16435. * Put the query's results in random order.
  16436. *
  16437. * @param string $seed
  16438. * @return \Illuminate\Database\Query\Builder
  16439. * @static
  16440. */
  16441. public static function inRandomOrder($seed = '')
  16442. {
  16443. /** @var \Illuminate\Database\Query\Builder $instance */
  16444. return $instance->inRandomOrder($seed);
  16445. }
  16446. /**
  16447. * Add a raw "order by" clause to the query.
  16448. *
  16449. * @param string $sql
  16450. * @param array $bindings
  16451. * @return \Illuminate\Database\Query\Builder
  16452. * @static
  16453. */
  16454. public static function orderByRaw($sql, $bindings = array())
  16455. {
  16456. /** @var \Illuminate\Database\Query\Builder $instance */
  16457. return $instance->orderByRaw($sql, $bindings);
  16458. }
  16459. /**
  16460. * Alias to set the "offset" value of the query.
  16461. *
  16462. * @param int $value
  16463. * @return \Illuminate\Database\Query\Builder|static
  16464. * @static
  16465. */
  16466. public static function skip($value)
  16467. {
  16468. /** @var \Illuminate\Database\Query\Builder $instance */
  16469. return $instance->skip($value);
  16470. }
  16471. /**
  16472. * Set the "offset" value of the query.
  16473. *
  16474. * @param int $value
  16475. * @return \Illuminate\Database\Query\Builder
  16476. * @static
  16477. */
  16478. public static function offset($value)
  16479. {
  16480. /** @var \Illuminate\Database\Query\Builder $instance */
  16481. return $instance->offset($value);
  16482. }
  16483. /**
  16484. * Alias to set the "limit" value of the query.
  16485. *
  16486. * @param int $value
  16487. * @return \Illuminate\Database\Query\Builder|static
  16488. * @static
  16489. */
  16490. public static function take($value)
  16491. {
  16492. /** @var \Illuminate\Database\Query\Builder $instance */
  16493. return $instance->take($value);
  16494. }
  16495. /**
  16496. * Set the "limit" value of the query.
  16497. *
  16498. * @param int $value
  16499. * @return \Illuminate\Database\Query\Builder
  16500. * @static
  16501. */
  16502. public static function limit($value)
  16503. {
  16504. /** @var \Illuminate\Database\Query\Builder $instance */
  16505. return $instance->limit($value);
  16506. }
  16507. /**
  16508. * Set the limit and offset for a given page.
  16509. *
  16510. * @param int $page
  16511. * @param int $perPage
  16512. * @return \Illuminate\Database\Query\Builder|static
  16513. * @static
  16514. */
  16515. public static function forPage($page, $perPage = 15)
  16516. {
  16517. /** @var \Illuminate\Database\Query\Builder $instance */
  16518. return $instance->forPage($page, $perPage);
  16519. }
  16520. /**
  16521. * Constrain the query to the next "page" of results after a given ID.
  16522. *
  16523. * @param int $perPage
  16524. * @param int|null $lastId
  16525. * @param string $column
  16526. * @return \Illuminate\Database\Query\Builder|static
  16527. * @static
  16528. */
  16529. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  16530. {
  16531. /** @var \Illuminate\Database\Query\Builder $instance */
  16532. return $instance->forPageAfterId($perPage, $lastId, $column);
  16533. }
  16534. /**
  16535. * Add a union statement to the query.
  16536. *
  16537. * @param \Illuminate\Database\Query\Builder|\Closure $query
  16538. * @param bool $all
  16539. * @return \Illuminate\Database\Query\Builder|static
  16540. * @static
  16541. */
  16542. public static function union($query, $all = false)
  16543. {
  16544. /** @var \Illuminate\Database\Query\Builder $instance */
  16545. return $instance->union($query, $all);
  16546. }
  16547. /**
  16548. * Add a union all statement to the query.
  16549. *
  16550. * @param \Illuminate\Database\Query\Builder|\Closure $query
  16551. * @return \Illuminate\Database\Query\Builder|static
  16552. * @static
  16553. */
  16554. public static function unionAll($query)
  16555. {
  16556. /** @var \Illuminate\Database\Query\Builder $instance */
  16557. return $instance->unionAll($query);
  16558. }
  16559. /**
  16560. * Lock the selected rows in the table.
  16561. *
  16562. * @param string|bool $value
  16563. * @return \Illuminate\Database\Query\Builder
  16564. * @static
  16565. */
  16566. public static function lock($value = true)
  16567. {
  16568. /** @var \Illuminate\Database\Query\Builder $instance */
  16569. return $instance->lock($value);
  16570. }
  16571. /**
  16572. * Lock the selected rows in the table for updating.
  16573. *
  16574. * @return \Illuminate\Database\Query\Builder
  16575. * @static
  16576. */
  16577. public static function lockForUpdate()
  16578. {
  16579. /** @var \Illuminate\Database\Query\Builder $instance */
  16580. return $instance->lockForUpdate();
  16581. }
  16582. /**
  16583. * Share lock the selected rows in the table.
  16584. *
  16585. * @return \Illuminate\Database\Query\Builder
  16586. * @static
  16587. */
  16588. public static function sharedLock()
  16589. {
  16590. /** @var \Illuminate\Database\Query\Builder $instance */
  16591. return $instance->sharedLock();
  16592. }
  16593. /**
  16594. * Get the SQL representation of the query.
  16595. *
  16596. * @return string
  16597. * @static
  16598. */
  16599. public static function toSql()
  16600. {
  16601. /** @var \Illuminate\Database\Query\Builder $instance */
  16602. return $instance->toSql();
  16603. }
  16604. /**
  16605. * Get the count of the total records for the paginator.
  16606. *
  16607. * @param array $columns
  16608. * @return int
  16609. * @static
  16610. */
  16611. public static function getCountForPagination($columns = array())
  16612. {
  16613. /** @var \Illuminate\Database\Query\Builder $instance */
  16614. return $instance->getCountForPagination($columns);
  16615. }
  16616. /**
  16617. * Concatenate values of a given column as a string.
  16618. *
  16619. * @param string $column
  16620. * @param string $glue
  16621. * @return string
  16622. * @static
  16623. */
  16624. public static function implode($column, $glue = '')
  16625. {
  16626. /** @var \Illuminate\Database\Query\Builder $instance */
  16627. return $instance->implode($column, $glue);
  16628. }
  16629. /**
  16630. * Determine if any rows exist for the current query.
  16631. *
  16632. * @return bool
  16633. * @static
  16634. */
  16635. public static function exists()
  16636. {
  16637. /** @var \Illuminate\Database\Query\Builder $instance */
  16638. return $instance->exists();
  16639. }
  16640. /**
  16641. * Determine if no rows exist for the current query.
  16642. *
  16643. * @return bool
  16644. * @static
  16645. */
  16646. public static function doesntExist()
  16647. {
  16648. /** @var \Illuminate\Database\Query\Builder $instance */
  16649. return $instance->doesntExist();
  16650. }
  16651. /**
  16652. * Retrieve the "count" result of the query.
  16653. *
  16654. * @param string $columns
  16655. * @return int
  16656. * @static
  16657. */
  16658. public static function count($columns = '*')
  16659. {
  16660. /** @var \Illuminate\Database\Query\Builder $instance */
  16661. return $instance->count($columns);
  16662. }
  16663. /**
  16664. * Retrieve the minimum value of a given column.
  16665. *
  16666. * @param string $column
  16667. * @return mixed
  16668. * @static
  16669. */
  16670. public static function min($column)
  16671. {
  16672. /** @var \Illuminate\Database\Query\Builder $instance */
  16673. return $instance->min($column);
  16674. }
  16675. /**
  16676. * Retrieve the maximum value of a given column.
  16677. *
  16678. * @param string $column
  16679. * @return mixed
  16680. * @static
  16681. */
  16682. public static function max($column)
  16683. {
  16684. /** @var \Illuminate\Database\Query\Builder $instance */
  16685. return $instance->max($column);
  16686. }
  16687. /**
  16688. * Retrieve the sum of the values of a given column.
  16689. *
  16690. * @param string $column
  16691. * @return mixed
  16692. * @static
  16693. */
  16694. public static function sum($column)
  16695. {
  16696. /** @var \Illuminate\Database\Query\Builder $instance */
  16697. return $instance->sum($column);
  16698. }
  16699. /**
  16700. * Retrieve the average of the values of a given column.
  16701. *
  16702. * @param string $column
  16703. * @return mixed
  16704. * @static
  16705. */
  16706. public static function avg($column)
  16707. {
  16708. /** @var \Illuminate\Database\Query\Builder $instance */
  16709. return $instance->avg($column);
  16710. }
  16711. /**
  16712. * Alias for the "avg" method.
  16713. *
  16714. * @param string $column
  16715. * @return mixed
  16716. * @static
  16717. */
  16718. public static function average($column)
  16719. {
  16720. /** @var \Illuminate\Database\Query\Builder $instance */
  16721. return $instance->average($column);
  16722. }
  16723. /**
  16724. * Execute an aggregate function on the database.
  16725. *
  16726. * @param string $function
  16727. * @param array $columns
  16728. * @return mixed
  16729. * @static
  16730. */
  16731. public static function aggregate($function, $columns = array())
  16732. {
  16733. /** @var \Illuminate\Database\Query\Builder $instance */
  16734. return $instance->aggregate($function, $columns);
  16735. }
  16736. /**
  16737. * Execute a numeric aggregate function on the database.
  16738. *
  16739. * @param string $function
  16740. * @param array $columns
  16741. * @return float|int
  16742. * @static
  16743. */
  16744. public static function numericAggregate($function, $columns = array())
  16745. {
  16746. /** @var \Illuminate\Database\Query\Builder $instance */
  16747. return $instance->numericAggregate($function, $columns);
  16748. }
  16749. /**
  16750. * Insert a new record into the database.
  16751. *
  16752. * @param array $values
  16753. * @return bool
  16754. * @static
  16755. */
  16756. public static function insert($values)
  16757. {
  16758. /** @var \Illuminate\Database\Query\Builder $instance */
  16759. return $instance->insert($values);
  16760. }
  16761. /**
  16762. * Insert a new record and get the value of the primary key.
  16763. *
  16764. * @param array $values
  16765. * @param string|null $sequence
  16766. * @return int
  16767. * @static
  16768. */
  16769. public static function insertGetId($values, $sequence = null)
  16770. {
  16771. /** @var \Illuminate\Database\Query\Builder $instance */
  16772. return $instance->insertGetId($values, $sequence);
  16773. }
  16774. /**
  16775. * Insert or update a record matching the attributes, and fill it with values.
  16776. *
  16777. * @param array $attributes
  16778. * @param array $values
  16779. * @return bool
  16780. * @static
  16781. */
  16782. public static function updateOrInsert($attributes, $values = array())
  16783. {
  16784. /** @var \Illuminate\Database\Query\Builder $instance */
  16785. return $instance->updateOrInsert($attributes, $values);
  16786. }
  16787. /**
  16788. * Run a truncate statement on the table.
  16789. *
  16790. * @return void
  16791. * @static
  16792. */
  16793. public static function truncate()
  16794. {
  16795. /** @var \Illuminate\Database\Query\Builder $instance */
  16796. $instance->truncate();
  16797. }
  16798. /**
  16799. * Create a raw database expression.
  16800. *
  16801. * @param mixed $value
  16802. * @return \Illuminate\Database\Query\Expression
  16803. * @static
  16804. */
  16805. public static function raw($value)
  16806. {
  16807. /** @var \Illuminate\Database\Query\Builder $instance */
  16808. return $instance->raw($value);
  16809. }
  16810. /**
  16811. * Get the current query value bindings in a flattened array.
  16812. *
  16813. * @return array
  16814. * @static
  16815. */
  16816. public static function getBindings()
  16817. {
  16818. /** @var \Illuminate\Database\Query\Builder $instance */
  16819. return $instance->getBindings();
  16820. }
  16821. /**
  16822. * Get the raw array of bindings.
  16823. *
  16824. * @return array
  16825. * @static
  16826. */
  16827. public static function getRawBindings()
  16828. {
  16829. /** @var \Illuminate\Database\Query\Builder $instance */
  16830. return $instance->getRawBindings();
  16831. }
  16832. /**
  16833. * Set the bindings on the query builder.
  16834. *
  16835. * @param array $bindings
  16836. * @param string $type
  16837. * @return \Illuminate\Database\Query\Builder
  16838. * @throws \InvalidArgumentException
  16839. * @static
  16840. */
  16841. public static function setBindings($bindings, $type = 'where')
  16842. {
  16843. /** @var \Illuminate\Database\Query\Builder $instance */
  16844. return $instance->setBindings($bindings, $type);
  16845. }
  16846. /**
  16847. * Add a binding to the query.
  16848. *
  16849. * @param mixed $value
  16850. * @param string $type
  16851. * @return \Illuminate\Database\Query\Builder
  16852. * @throws \InvalidArgumentException
  16853. * @static
  16854. */
  16855. public static function addBinding($value, $type = 'where')
  16856. {
  16857. /** @var \Illuminate\Database\Query\Builder $instance */
  16858. return $instance->addBinding($value, $type);
  16859. }
  16860. /**
  16861. * Merge an array of bindings into our bindings.
  16862. *
  16863. * @param \Illuminate\Database\Query\Builder $query
  16864. * @return \Illuminate\Database\Query\Builder
  16865. * @static
  16866. */
  16867. public static function mergeBindings($query)
  16868. {
  16869. /** @var \Illuminate\Database\Query\Builder $instance */
  16870. return $instance->mergeBindings($query);
  16871. }
  16872. /**
  16873. * Get the database query processor instance.
  16874. *
  16875. * @return \Illuminate\Database\Query\Processors\Processor
  16876. * @static
  16877. */
  16878. public static function getProcessor()
  16879. {
  16880. /** @var \Illuminate\Database\Query\Builder $instance */
  16881. return $instance->getProcessor();
  16882. }
  16883. /**
  16884. * Get the query grammar instance.
  16885. *
  16886. * @return \Illuminate\Database\Query\Grammars\Grammar
  16887. * @static
  16888. */
  16889. public static function getGrammar()
  16890. {
  16891. /** @var \Illuminate\Database\Query\Builder $instance */
  16892. return $instance->getGrammar();
  16893. }
  16894. /**
  16895. * Use the write pdo for query.
  16896. *
  16897. * @return \Illuminate\Database\Query\Builder
  16898. * @static
  16899. */
  16900. public static function useWritePdo()
  16901. {
  16902. /** @var \Illuminate\Database\Query\Builder $instance */
  16903. return $instance->useWritePdo();
  16904. }
  16905. /**
  16906. * Clone the query without the given properties.
  16907. *
  16908. * @param array $properties
  16909. * @return static
  16910. * @static
  16911. */
  16912. public static function cloneWithout($properties)
  16913. {
  16914. /** @var \Illuminate\Database\Query\Builder $instance */
  16915. return $instance->cloneWithout($properties);
  16916. }
  16917. /**
  16918. * Clone the query without the given bindings.
  16919. *
  16920. * @param array $except
  16921. * @return static
  16922. * @static
  16923. */
  16924. public static function cloneWithoutBindings($except)
  16925. {
  16926. /** @var \Illuminate\Database\Query\Builder $instance */
  16927. return $instance->cloneWithoutBindings($except);
  16928. }
  16929. /**
  16930. * Register a custom macro.
  16931. *
  16932. * @param string $name
  16933. * @param object|callable $macro
  16934. * @return void
  16935. * @static
  16936. */
  16937. public static function macro($name, $macro)
  16938. {
  16939. \Illuminate\Database\Query\Builder::macro($name, $macro);
  16940. }
  16941. /**
  16942. * Mix another object into the class.
  16943. *
  16944. * @param object $mixin
  16945. * @return void
  16946. * @throws \ReflectionException
  16947. * @static
  16948. */
  16949. public static function mixin($mixin)
  16950. {
  16951. \Illuminate\Database\Query\Builder::mixin($mixin);
  16952. }
  16953. /**
  16954. * Checks if macro is registered.
  16955. *
  16956. * @param string $name
  16957. * @return bool
  16958. * @static
  16959. */
  16960. public static function hasMacro($name)
  16961. {
  16962. return \Illuminate\Database\Query\Builder::hasMacro($name);
  16963. }
  16964. /**
  16965. * Dynamically handle calls to the class.
  16966. *
  16967. * @param string $method
  16968. * @param array $parameters
  16969. * @return mixed
  16970. * @throws \BadMethodCallException
  16971. * @static
  16972. */
  16973. public static function macroCall($method, $parameters)
  16974. {
  16975. /** @var \Illuminate\Database\Query\Builder $instance */
  16976. return $instance->macroCall($method, $parameters);
  16977. }
  16978. }
  16979. class Event extends \Illuminate\Support\Facades\Event {}
  16980. class File extends \Illuminate\Support\Facades\File {}
  16981. class Gate extends \Illuminate\Support\Facades\Gate {}
  16982. class Hash extends \Illuminate\Support\Facades\Hash {}
  16983. class Lang extends \Illuminate\Support\Facades\Lang {}
  16984. class Log extends \Illuminate\Support\Facades\Log {}
  16985. class Mail extends \Illuminate\Support\Facades\Mail {}
  16986. class Notification extends \Illuminate\Support\Facades\Notification {}
  16987. class Password extends \Illuminate\Support\Facades\Password {}
  16988. class Queue extends \Illuminate\Support\Facades\Queue {}
  16989. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  16990. class Redis extends \Illuminate\Support\Facades\Redis {}
  16991. class Request extends \Illuminate\Support\Facades\Request {}
  16992. class Response extends \Illuminate\Support\Facades\Response {}
  16993. class Route extends \Illuminate\Support\Facades\Route {}
  16994. class Schema extends \Illuminate\Support\Facades\Schema {}
  16995. class Session extends \Illuminate\Support\Facades\Session {}
  16996. class Storage extends \Illuminate\Support\Facades\Storage {}
  16997. class URL extends \Illuminate\Support\Facades\URL {}
  16998. class Validator extends \Illuminate\Support\Facades\Validator {}
  16999. class View extends \Illuminate\Support\Facades\View {}
  17000. class Captcha extends \Mews\Captcha\Facades\Captcha {}
  17001. class Agent extends \Jenssegers\Agent\Facades\Agent {}
  17002. class Purifier extends \Mews\Purifier\Facades\Purifier {}
  17003. class Geetest extends \Misechow\Geetest\Geetest {}
  17004. class NoCaptcha extends \Misechow\NoCaptcha\Facades\NoCaptcha {}
  17005. class JWTAuth extends \Tymon\JWTAuth\Facades\JWTAuth {}
  17006. class Telegram extends \Telegram\Bot\Laravel\Facades\Telegram {}
  17007. class Image extends \Intervention\Image\Facades\Image {}
  17008. class JWTFactory extends \Tymon\JWTAuth\Facades\JWTFactory {}
  17009. }