_ide_helper.php 593 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320
  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-11-23 16:24:18.
  6. *
  7. * This file should not be included in your code, only analyzed by your IDE!
  8. *
  9. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  10. * @see https://github.com/barryvdh/laravel-ide-helper
  11. */
  12. namespace Illuminate\Support\Facades {
  13. /**
  14. *
  15. *
  16. * @see \Illuminate\Foundation\Application
  17. */
  18. class App {
  19. /**
  20. * Get the version number of the application.
  21. *
  22. * @return string
  23. * @static
  24. */
  25. public static function version()
  26. {
  27. /** @var \Illuminate\Foundation\Application $instance */
  28. return $instance->version();
  29. }
  30. /**
  31. * Run the given array of bootstrap classes.
  32. *
  33. * @param array $bootstrappers
  34. * @return void
  35. * @static
  36. */
  37. public static function bootstrapWith($bootstrappers)
  38. {
  39. /** @var \Illuminate\Foundation\Application $instance */
  40. $instance->bootstrapWith($bootstrappers);
  41. }
  42. /**
  43. * Register a callback to run after loading the environment.
  44. *
  45. * @param \Closure $callback
  46. * @return void
  47. * @static
  48. */
  49. public static function afterLoadingEnvironment($callback)
  50. {
  51. /** @var \Illuminate\Foundation\Application $instance */
  52. $instance->afterLoadingEnvironment($callback);
  53. }
  54. /**
  55. * Register a callback to run before a bootstrapper.
  56. *
  57. * @param string $bootstrapper
  58. * @param \Closure $callback
  59. * @return void
  60. * @static
  61. */
  62. public static function beforeBootstrapping($bootstrapper, $callback)
  63. {
  64. /** @var \Illuminate\Foundation\Application $instance */
  65. $instance->beforeBootstrapping($bootstrapper, $callback);
  66. }
  67. /**
  68. * Register a callback to run after a bootstrapper.
  69. *
  70. * @param string $bootstrapper
  71. * @param \Closure $callback
  72. * @return void
  73. * @static
  74. */
  75. public static function afterBootstrapping($bootstrapper, $callback)
  76. {
  77. /** @var \Illuminate\Foundation\Application $instance */
  78. $instance->afterBootstrapping($bootstrapper, $callback);
  79. }
  80. /**
  81. * Determine if the application has been bootstrapped before.
  82. *
  83. * @return bool
  84. * @static
  85. */
  86. public static function hasBeenBootstrapped()
  87. {
  88. /** @var \Illuminate\Foundation\Application $instance */
  89. return $instance->hasBeenBootstrapped();
  90. }
  91. /**
  92. * Set the base path for the application.
  93. *
  94. * @param string $basePath
  95. * @return \Illuminate\Foundation\Application
  96. * @static
  97. */
  98. public static function setBasePath($basePath)
  99. {
  100. /** @var \Illuminate\Foundation\Application $instance */
  101. return $instance->setBasePath($basePath);
  102. }
  103. /**
  104. * Get the path to the application "app" directory.
  105. *
  106. * @param string $path Optionally, a path to append to the app path
  107. * @return string
  108. * @static
  109. */
  110. public static function path($path = '')
  111. {
  112. /** @var \Illuminate\Foundation\Application $instance */
  113. return $instance->path($path);
  114. }
  115. /**
  116. * Get the base path of the Laravel installation.
  117. *
  118. * @param string $path Optionally, a path to append to the base path
  119. * @return string
  120. * @static
  121. */
  122. public static function basePath($path = '')
  123. {
  124. /** @var \Illuminate\Foundation\Application $instance */
  125. return $instance->basePath($path);
  126. }
  127. /**
  128. * Get the path to the bootstrap directory.
  129. *
  130. * @param string $path Optionally, a path to append to the bootstrap path
  131. * @return string
  132. * @static
  133. */
  134. public static function bootstrapPath($path = '')
  135. {
  136. /** @var \Illuminate\Foundation\Application $instance */
  137. return $instance->bootstrapPath($path);
  138. }
  139. /**
  140. * Get the path to the application configuration files.
  141. *
  142. * @param string $path Optionally, a path to append to the config path
  143. * @return string
  144. * @static
  145. */
  146. public static function configPath($path = '')
  147. {
  148. /** @var \Illuminate\Foundation\Application $instance */
  149. return $instance->configPath($path);
  150. }
  151. /**
  152. * Get the path to the database directory.
  153. *
  154. * @param string $path Optionally, a path to append to the database path
  155. * @return string
  156. * @static
  157. */
  158. public static function databasePath($path = '')
  159. {
  160. /** @var \Illuminate\Foundation\Application $instance */
  161. return $instance->databasePath($path);
  162. }
  163. /**
  164. * Set the database directory.
  165. *
  166. * @param string $path
  167. * @return \Illuminate\Foundation\Application
  168. * @static
  169. */
  170. public static function useDatabasePath($path)
  171. {
  172. /** @var \Illuminate\Foundation\Application $instance */
  173. return $instance->useDatabasePath($path);
  174. }
  175. /**
  176. * Get the path to the language files.
  177. *
  178. * @return string
  179. * @static
  180. */
  181. public static function langPath()
  182. {
  183. /** @var \Illuminate\Foundation\Application $instance */
  184. return $instance->langPath();
  185. }
  186. /**
  187. * Get the path to the public / web directory.
  188. *
  189. * @return string
  190. * @static
  191. */
  192. public static function publicPath()
  193. {
  194. /** @var \Illuminate\Foundation\Application $instance */
  195. return $instance->publicPath();
  196. }
  197. /**
  198. * Get the path to the storage directory.
  199. *
  200. * @return string
  201. * @static
  202. */
  203. public static function storagePath()
  204. {
  205. /** @var \Illuminate\Foundation\Application $instance */
  206. return $instance->storagePath();
  207. }
  208. /**
  209. * Set the storage directory.
  210. *
  211. * @param string $path
  212. * @return \Illuminate\Foundation\Application
  213. * @static
  214. */
  215. public static function useStoragePath($path)
  216. {
  217. /** @var \Illuminate\Foundation\Application $instance */
  218. return $instance->useStoragePath($path);
  219. }
  220. /**
  221. * Get the path to the resources directory.
  222. *
  223. * @param string $path
  224. * @return string
  225. * @static
  226. */
  227. public static function resourcePath($path = '')
  228. {
  229. /** @var \Illuminate\Foundation\Application $instance */
  230. return $instance->resourcePath($path);
  231. }
  232. /**
  233. * Get the path to the environment file directory.
  234. *
  235. * @return string
  236. * @static
  237. */
  238. public static function environmentPath()
  239. {
  240. /** @var \Illuminate\Foundation\Application $instance */
  241. return $instance->environmentPath();
  242. }
  243. /**
  244. * Set the directory for the environment file.
  245. *
  246. * @param string $path
  247. * @return \Illuminate\Foundation\Application
  248. * @static
  249. */
  250. public static function useEnvironmentPath($path)
  251. {
  252. /** @var \Illuminate\Foundation\Application $instance */
  253. return $instance->useEnvironmentPath($path);
  254. }
  255. /**
  256. * Set the environment file to be loaded during bootstrapping.
  257. *
  258. * @param string $file
  259. * @return \Illuminate\Foundation\Application
  260. * @static
  261. */
  262. public static function loadEnvironmentFrom($file)
  263. {
  264. /** @var \Illuminate\Foundation\Application $instance */
  265. return $instance->loadEnvironmentFrom($file);
  266. }
  267. /**
  268. * Get the environment file the application is using.
  269. *
  270. * @return string
  271. * @static
  272. */
  273. public static function environmentFile()
  274. {
  275. /** @var \Illuminate\Foundation\Application $instance */
  276. return $instance->environmentFile();
  277. }
  278. /**
  279. * Get the fully qualified path to the environment file.
  280. *
  281. * @return string
  282. * @static
  283. */
  284. public static function environmentFilePath()
  285. {
  286. /** @var \Illuminate\Foundation\Application $instance */
  287. return $instance->environmentFilePath();
  288. }
  289. /**
  290. * Get or check the current application environment.
  291. *
  292. * @return string|bool
  293. * @static
  294. */
  295. public static function environment()
  296. {
  297. /** @var \Illuminate\Foundation\Application $instance */
  298. return $instance->environment();
  299. }
  300. /**
  301. * Determine if application is in local environment.
  302. *
  303. * @return bool
  304. * @static
  305. */
  306. public static function isLocal()
  307. {
  308. /** @var \Illuminate\Foundation\Application $instance */
  309. return $instance->isLocal();
  310. }
  311. /**
  312. * Detect the application's current environment.
  313. *
  314. * @param \Closure $callback
  315. * @return string
  316. * @static
  317. */
  318. public static function detectEnvironment($callback)
  319. {
  320. /** @var \Illuminate\Foundation\Application $instance */
  321. return $instance->detectEnvironment($callback);
  322. }
  323. /**
  324. * Determine if the application is running in the console.
  325. *
  326. * @return bool
  327. * @static
  328. */
  329. public static function runningInConsole()
  330. {
  331. /** @var \Illuminate\Foundation\Application $instance */
  332. return $instance->runningInConsole();
  333. }
  334. /**
  335. * Determine if the application is running unit tests.
  336. *
  337. * @return bool
  338. * @static
  339. */
  340. public static function runningUnitTests()
  341. {
  342. /** @var \Illuminate\Foundation\Application $instance */
  343. return $instance->runningUnitTests();
  344. }
  345. /**
  346. * Register all of the configured providers.
  347. *
  348. * @return void
  349. * @static
  350. */
  351. public static function registerConfiguredProviders()
  352. {
  353. /** @var \Illuminate\Foundation\Application $instance */
  354. $instance->registerConfiguredProviders();
  355. }
  356. /**
  357. * Register a service provider with the application.
  358. *
  359. * @param \Illuminate\Support\ServiceProvider|string $provider
  360. * @param array $options
  361. * @param bool $force
  362. * @return \Illuminate\Support\ServiceProvider
  363. * @static
  364. */
  365. public static function register($provider, $options = array(), $force = false)
  366. {
  367. /** @var \Illuminate\Foundation\Application $instance */
  368. return $instance->register($provider, $options, $force);
  369. }
  370. /**
  371. * Get the registered service provider instance if it exists.
  372. *
  373. * @param \Illuminate\Support\ServiceProvider|string $provider
  374. * @return \Illuminate\Support\ServiceProvider|null
  375. * @static
  376. */
  377. public static function getProvider($provider)
  378. {
  379. /** @var \Illuminate\Foundation\Application $instance */
  380. return $instance->getProvider($provider);
  381. }
  382. /**
  383. * Get the registered service provider instances if any exist.
  384. *
  385. * @param \Illuminate\Support\ServiceProvider|string $provider
  386. * @return array
  387. * @static
  388. */
  389. public static function getProviders($provider)
  390. {
  391. /** @var \Illuminate\Foundation\Application $instance */
  392. return $instance->getProviders($provider);
  393. }
  394. /**
  395. * Resolve a service provider instance from the class name.
  396. *
  397. * @param string $provider
  398. * @return \Illuminate\Support\ServiceProvider
  399. * @static
  400. */
  401. public static function resolveProvider($provider)
  402. {
  403. /** @var \Illuminate\Foundation\Application $instance */
  404. return $instance->resolveProvider($provider);
  405. }
  406. /**
  407. * Load and boot all of the remaining deferred providers.
  408. *
  409. * @return void
  410. * @static
  411. */
  412. public static function loadDeferredProviders()
  413. {
  414. /** @var \Illuminate\Foundation\Application $instance */
  415. $instance->loadDeferredProviders();
  416. }
  417. /**
  418. * Load the provider for a deferred service.
  419. *
  420. * @param string $service
  421. * @return void
  422. * @static
  423. */
  424. public static function loadDeferredProvider($service)
  425. {
  426. /** @var \Illuminate\Foundation\Application $instance */
  427. $instance->loadDeferredProvider($service);
  428. }
  429. /**
  430. * Register a deferred provider and service.
  431. *
  432. * @param string $provider
  433. * @param string|null $service
  434. * @return void
  435. * @static
  436. */
  437. public static function registerDeferredProvider($provider, $service = null)
  438. {
  439. /** @var \Illuminate\Foundation\Application $instance */
  440. $instance->registerDeferredProvider($provider, $service);
  441. }
  442. /**
  443. * Resolve the given type from the container.
  444. *
  445. * (Overriding Container::make)
  446. *
  447. * @param string $abstract
  448. * @param array $parameters
  449. * @return mixed
  450. * @static
  451. */
  452. public static function make($abstract, $parameters = array())
  453. {
  454. /** @var \Illuminate\Foundation\Application $instance */
  455. return $instance->make($abstract, $parameters);
  456. }
  457. /**
  458. * Determine if the given abstract type has been bound.
  459. *
  460. * (Overriding Container::bound)
  461. *
  462. * @param string $abstract
  463. * @return bool
  464. * @static
  465. */
  466. public static function bound($abstract)
  467. {
  468. /** @var \Illuminate\Foundation\Application $instance */
  469. return $instance->bound($abstract);
  470. }
  471. /**
  472. * Determine if the application has booted.
  473. *
  474. * @return bool
  475. * @static
  476. */
  477. public static function isBooted()
  478. {
  479. /** @var \Illuminate\Foundation\Application $instance */
  480. return $instance->isBooted();
  481. }
  482. /**
  483. * Boot the application's service providers.
  484. *
  485. * @return void
  486. * @static
  487. */
  488. public static function boot()
  489. {
  490. /** @var \Illuminate\Foundation\Application $instance */
  491. $instance->boot();
  492. }
  493. /**
  494. * Register a new boot listener.
  495. *
  496. * @param mixed $callback
  497. * @return void
  498. * @static
  499. */
  500. public static function booting($callback)
  501. {
  502. /** @var \Illuminate\Foundation\Application $instance */
  503. $instance->booting($callback);
  504. }
  505. /**
  506. * Register a new "booted" listener.
  507. *
  508. * @param mixed $callback
  509. * @return void
  510. * @static
  511. */
  512. public static function booted($callback)
  513. {
  514. /** @var \Illuminate\Foundation\Application $instance */
  515. $instance->booted($callback);
  516. }
  517. /**
  518. * {@inheritdoc}
  519. *
  520. * @static
  521. */
  522. public static function handle($request, $type = 1, $catch = true)
  523. {
  524. /** @var \Illuminate\Foundation\Application $instance */
  525. return $instance->handle($request, $type, $catch);
  526. }
  527. /**
  528. * Determine if middleware has been disabled for the application.
  529. *
  530. * @return bool
  531. * @static
  532. */
  533. public static function shouldSkipMiddleware()
  534. {
  535. /** @var \Illuminate\Foundation\Application $instance */
  536. return $instance->shouldSkipMiddleware();
  537. }
  538. /**
  539. * Get the path to the cached services.php file.
  540. *
  541. * @return string
  542. * @static
  543. */
  544. public static function getCachedServicesPath()
  545. {
  546. /** @var \Illuminate\Foundation\Application $instance */
  547. return $instance->getCachedServicesPath();
  548. }
  549. /**
  550. * Get the path to the cached packages.php file.
  551. *
  552. * @return string
  553. * @static
  554. */
  555. public static function getCachedPackagesPath()
  556. {
  557. /** @var \Illuminate\Foundation\Application $instance */
  558. return $instance->getCachedPackagesPath();
  559. }
  560. /**
  561. * Determine if the application configuration is cached.
  562. *
  563. * @return bool
  564. * @static
  565. */
  566. public static function configurationIsCached()
  567. {
  568. /** @var \Illuminate\Foundation\Application $instance */
  569. return $instance->configurationIsCached();
  570. }
  571. /**
  572. * Get the path to the configuration cache file.
  573. *
  574. * @return string
  575. * @static
  576. */
  577. public static function getCachedConfigPath()
  578. {
  579. /** @var \Illuminate\Foundation\Application $instance */
  580. return $instance->getCachedConfigPath();
  581. }
  582. /**
  583. * Determine if the application routes are cached.
  584. *
  585. * @return bool
  586. * @static
  587. */
  588. public static function routesAreCached()
  589. {
  590. /** @var \Illuminate\Foundation\Application $instance */
  591. return $instance->routesAreCached();
  592. }
  593. /**
  594. * Get the path to the routes cache file.
  595. *
  596. * @return string
  597. * @static
  598. */
  599. public static function getCachedRoutesPath()
  600. {
  601. /** @var \Illuminate\Foundation\Application $instance */
  602. return $instance->getCachedRoutesPath();
  603. }
  604. /**
  605. * Determine if the application is currently down for maintenance.
  606. *
  607. * @return bool
  608. * @static
  609. */
  610. public static function isDownForMaintenance()
  611. {
  612. /** @var \Illuminate\Foundation\Application $instance */
  613. return $instance->isDownForMaintenance();
  614. }
  615. /**
  616. * Throw an HttpException with the given data.
  617. *
  618. * @param int $code
  619. * @param string $message
  620. * @param array $headers
  621. * @return void
  622. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  623. * @static
  624. */
  625. public static function abort($code, $message = '', $headers = array())
  626. {
  627. /** @var \Illuminate\Foundation\Application $instance */
  628. $instance->abort($code, $message, $headers);
  629. }
  630. /**
  631. * Register a terminating callback with the application.
  632. *
  633. * @param \Closure $callback
  634. * @return \Illuminate\Foundation\Application
  635. * @static
  636. */
  637. public static function terminating($callback)
  638. {
  639. /** @var \Illuminate\Foundation\Application $instance */
  640. return $instance->terminating($callback);
  641. }
  642. /**
  643. * Terminate the application.
  644. *
  645. * @return void
  646. * @static
  647. */
  648. public static function terminate()
  649. {
  650. /** @var \Illuminate\Foundation\Application $instance */
  651. $instance->terminate();
  652. }
  653. /**
  654. * Get the service providers that have been loaded.
  655. *
  656. * @return array
  657. * @static
  658. */
  659. public static function getLoadedProviders()
  660. {
  661. /** @var \Illuminate\Foundation\Application $instance */
  662. return $instance->getLoadedProviders();
  663. }
  664. /**
  665. * Get the application's deferred services.
  666. *
  667. * @return array
  668. * @static
  669. */
  670. public static function getDeferredServices()
  671. {
  672. /** @var \Illuminate\Foundation\Application $instance */
  673. return $instance->getDeferredServices();
  674. }
  675. /**
  676. * Set the application's deferred services.
  677. *
  678. * @param array $services
  679. * @return void
  680. * @static
  681. */
  682. public static function setDeferredServices($services)
  683. {
  684. /** @var \Illuminate\Foundation\Application $instance */
  685. $instance->setDeferredServices($services);
  686. }
  687. /**
  688. * Add an array of services to the application's deferred services.
  689. *
  690. * @param array $services
  691. * @return void
  692. * @static
  693. */
  694. public static function addDeferredServices($services)
  695. {
  696. /** @var \Illuminate\Foundation\Application $instance */
  697. $instance->addDeferredServices($services);
  698. }
  699. /**
  700. * Determine if the given service is a deferred service.
  701. *
  702. * @param string $service
  703. * @return bool
  704. * @static
  705. */
  706. public static function isDeferredService($service)
  707. {
  708. /** @var \Illuminate\Foundation\Application $instance */
  709. return $instance->isDeferredService($service);
  710. }
  711. /**
  712. * Configure the real-time facade namespace.
  713. *
  714. * @param string $namespace
  715. * @return void
  716. * @static
  717. */
  718. public static function provideFacades($namespace)
  719. {
  720. /** @var \Illuminate\Foundation\Application $instance */
  721. $instance->provideFacades($namespace);
  722. }
  723. /**
  724. * Get the current application locale.
  725. *
  726. * @return string
  727. * @static
  728. */
  729. public static function getLocale()
  730. {
  731. /** @var \Illuminate\Foundation\Application $instance */
  732. return $instance->getLocale();
  733. }
  734. /**
  735. * Set the current application locale.
  736. *
  737. * @param string $locale
  738. * @return void
  739. * @static
  740. */
  741. public static function setLocale($locale)
  742. {
  743. /** @var \Illuminate\Foundation\Application $instance */
  744. $instance->setLocale($locale);
  745. }
  746. /**
  747. * Determine if application locale is the given locale.
  748. *
  749. * @param string $locale
  750. * @return bool
  751. * @static
  752. */
  753. public static function isLocale($locale)
  754. {
  755. /** @var \Illuminate\Foundation\Application $instance */
  756. return $instance->isLocale($locale);
  757. }
  758. /**
  759. * Register the core class aliases in the container.
  760. *
  761. * @return void
  762. * @static
  763. */
  764. public static function registerCoreContainerAliases()
  765. {
  766. /** @var \Illuminate\Foundation\Application $instance */
  767. $instance->registerCoreContainerAliases();
  768. }
  769. /**
  770. * Flush the container of all bindings and resolved instances.
  771. *
  772. * @return void
  773. * @static
  774. */
  775. public static function flush()
  776. {
  777. /** @var \Illuminate\Foundation\Application $instance */
  778. $instance->flush();
  779. }
  780. /**
  781. * Get the application namespace.
  782. *
  783. * @return string
  784. * @throws \RuntimeException
  785. * @static
  786. */
  787. public static function getNamespace()
  788. {
  789. /** @var \Illuminate\Foundation\Application $instance */
  790. return $instance->getNamespace();
  791. }
  792. /**
  793. * Define a contextual binding.
  794. *
  795. * @param string $concrete
  796. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  797. * @static
  798. */
  799. public static function when($concrete)
  800. {
  801. //Method inherited from \Illuminate\Container\Container
  802. /** @var \Illuminate\Foundation\Application $instance */
  803. return $instance->when($concrete);
  804. }
  805. /**
  806. * Returns true if the container can return an entry for the given identifier.
  807. *
  808. * Returns false otherwise.
  809. *
  810. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  811. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  812. *
  813. * @param string $id Identifier of the entry to look for.
  814. * @return bool
  815. * @static
  816. */
  817. public static function has($id)
  818. {
  819. //Method inherited from \Illuminate\Container\Container
  820. /** @var \Illuminate\Foundation\Application $instance */
  821. return $instance->has($id);
  822. }
  823. /**
  824. * Determine if the given abstract type has been resolved.
  825. *
  826. * @param string $abstract
  827. * @return bool
  828. * @static
  829. */
  830. public static function resolved($abstract)
  831. {
  832. //Method inherited from \Illuminate\Container\Container
  833. /** @var \Illuminate\Foundation\Application $instance */
  834. return $instance->resolved($abstract);
  835. }
  836. /**
  837. * Determine if a given type is shared.
  838. *
  839. * @param string $abstract
  840. * @return bool
  841. * @static
  842. */
  843. public static function isShared($abstract)
  844. {
  845. //Method inherited from \Illuminate\Container\Container
  846. /** @var \Illuminate\Foundation\Application $instance */
  847. return $instance->isShared($abstract);
  848. }
  849. /**
  850. * Determine if a given string is an alias.
  851. *
  852. * @param string $name
  853. * @return bool
  854. * @static
  855. */
  856. public static function isAlias($name)
  857. {
  858. //Method inherited from \Illuminate\Container\Container
  859. /** @var \Illuminate\Foundation\Application $instance */
  860. return $instance->isAlias($name);
  861. }
  862. /**
  863. * Register a binding with the container.
  864. *
  865. * @param string $abstract
  866. * @param \Closure|string|null $concrete
  867. * @param bool $shared
  868. * @return void
  869. * @static
  870. */
  871. public static function bind($abstract, $concrete = null, $shared = false)
  872. {
  873. //Method inherited from \Illuminate\Container\Container
  874. /** @var \Illuminate\Foundation\Application $instance */
  875. $instance->bind($abstract, $concrete, $shared);
  876. }
  877. /**
  878. * Determine if the container has a method binding.
  879. *
  880. * @param string $method
  881. * @return bool
  882. * @static
  883. */
  884. public static function hasMethodBinding($method)
  885. {
  886. //Method inherited from \Illuminate\Container\Container
  887. /** @var \Illuminate\Foundation\Application $instance */
  888. return $instance->hasMethodBinding($method);
  889. }
  890. /**
  891. * Bind a callback to resolve with Container::call.
  892. *
  893. * @param array|string $method
  894. * @param \Closure $callback
  895. * @return void
  896. * @static
  897. */
  898. public static function bindMethod($method, $callback)
  899. {
  900. //Method inherited from \Illuminate\Container\Container
  901. /** @var \Illuminate\Foundation\Application $instance */
  902. $instance->bindMethod($method, $callback);
  903. }
  904. /**
  905. * Get the method binding for the given method.
  906. *
  907. * @param string $method
  908. * @param mixed $instance
  909. * @return mixed
  910. * @static
  911. */
  912. public static function callMethodBinding($method, $instance)
  913. {
  914. //Method inherited from \Illuminate\Container\Container
  915. /** @var \Illuminate\Foundation\Application $instance */
  916. return $instance->callMethodBinding($method, $instance);
  917. }
  918. /**
  919. * Add a contextual binding to the container.
  920. *
  921. * @param string $concrete
  922. * @param string $abstract
  923. * @param \Closure|string $implementation
  924. * @return void
  925. * @static
  926. */
  927. public static function addContextualBinding($concrete, $abstract, $implementation)
  928. {
  929. //Method inherited from \Illuminate\Container\Container
  930. /** @var \Illuminate\Foundation\Application $instance */
  931. $instance->addContextualBinding($concrete, $abstract, $implementation);
  932. }
  933. /**
  934. * Register a binding if it hasn't already been registered.
  935. *
  936. * @param string $abstract
  937. * @param \Closure|string|null $concrete
  938. * @param bool $shared
  939. * @return void
  940. * @static
  941. */
  942. public static function bindIf($abstract, $concrete = null, $shared = false)
  943. {
  944. //Method inherited from \Illuminate\Container\Container
  945. /** @var \Illuminate\Foundation\Application $instance */
  946. $instance->bindIf($abstract, $concrete, $shared);
  947. }
  948. /**
  949. * Register a shared binding in the container.
  950. *
  951. * @param string $abstract
  952. * @param \Closure|string|null $concrete
  953. * @return void
  954. * @static
  955. */
  956. public static function singleton($abstract, $concrete = null)
  957. {
  958. //Method inherited from \Illuminate\Container\Container
  959. /** @var \Illuminate\Foundation\Application $instance */
  960. $instance->singleton($abstract, $concrete);
  961. }
  962. /**
  963. * "Extend" an abstract type in the container.
  964. *
  965. * @param string $abstract
  966. * @param \Closure $closure
  967. * @return void
  968. * @throws \InvalidArgumentException
  969. * @static
  970. */
  971. public static function extend($abstract, $closure)
  972. {
  973. //Method inherited from \Illuminate\Container\Container
  974. /** @var \Illuminate\Foundation\Application $instance */
  975. $instance->extend($abstract, $closure);
  976. }
  977. /**
  978. * Register an existing instance as shared in the container.
  979. *
  980. * @param string $abstract
  981. * @param mixed $instance
  982. * @return mixed
  983. * @static
  984. */
  985. public static function instance($abstract, $instance)
  986. {
  987. //Method inherited from \Illuminate\Container\Container
  988. /** @var \Illuminate\Foundation\Application $instance */
  989. return $instance->instance($abstract, $instance);
  990. }
  991. /**
  992. * Assign a set of tags to a given binding.
  993. *
  994. * @param array|string $abstracts
  995. * @param array|mixed $tags
  996. * @return void
  997. * @static
  998. */
  999. public static function tag($abstracts, $tags)
  1000. {
  1001. //Method inherited from \Illuminate\Container\Container
  1002. /** @var \Illuminate\Foundation\Application $instance */
  1003. $instance->tag($abstracts, $tags);
  1004. }
  1005. /**
  1006. * Resolve all of the bindings for a given tag.
  1007. *
  1008. * @param string $tag
  1009. * @return array
  1010. * @static
  1011. */
  1012. public static function tagged($tag)
  1013. {
  1014. //Method inherited from \Illuminate\Container\Container
  1015. /** @var \Illuminate\Foundation\Application $instance */
  1016. return $instance->tagged($tag);
  1017. }
  1018. /**
  1019. * Alias a type to a different name.
  1020. *
  1021. * @param string $abstract
  1022. * @param string $alias
  1023. * @return void
  1024. * @static
  1025. */
  1026. public static function alias($abstract, $alias)
  1027. {
  1028. //Method inherited from \Illuminate\Container\Container
  1029. /** @var \Illuminate\Foundation\Application $instance */
  1030. $instance->alias($abstract, $alias);
  1031. }
  1032. /**
  1033. * Bind a new callback to an abstract's rebind event.
  1034. *
  1035. * @param string $abstract
  1036. * @param \Closure $callback
  1037. * @return mixed
  1038. * @static
  1039. */
  1040. public static function rebinding($abstract, $callback)
  1041. {
  1042. //Method inherited from \Illuminate\Container\Container
  1043. /** @var \Illuminate\Foundation\Application $instance */
  1044. return $instance->rebinding($abstract, $callback);
  1045. }
  1046. /**
  1047. * Refresh an instance on the given target and method.
  1048. *
  1049. * @param string $abstract
  1050. * @param mixed $target
  1051. * @param string $method
  1052. * @return mixed
  1053. * @static
  1054. */
  1055. public static function refresh($abstract, $target, $method)
  1056. {
  1057. //Method inherited from \Illuminate\Container\Container
  1058. /** @var \Illuminate\Foundation\Application $instance */
  1059. return $instance->refresh($abstract, $target, $method);
  1060. }
  1061. /**
  1062. * Wrap the given closure such that its dependencies will be injected when executed.
  1063. *
  1064. * @param \Closure $callback
  1065. * @param array $parameters
  1066. * @return \Closure
  1067. * @static
  1068. */
  1069. public static function wrap($callback, $parameters = array())
  1070. {
  1071. //Method inherited from \Illuminate\Container\Container
  1072. /** @var \Illuminate\Foundation\Application $instance */
  1073. return $instance->wrap($callback, $parameters);
  1074. }
  1075. /**
  1076. * Call the given Closure / class@method and inject its dependencies.
  1077. *
  1078. * @param callable|string $callback
  1079. * @param array $parameters
  1080. * @param string|null $defaultMethod
  1081. * @return mixed
  1082. * @static
  1083. */
  1084. public static function call($callback, $parameters = array(), $defaultMethod = null)
  1085. {
  1086. //Method inherited from \Illuminate\Container\Container
  1087. /** @var \Illuminate\Foundation\Application $instance */
  1088. return $instance->call($callback, $parameters, $defaultMethod);
  1089. }
  1090. /**
  1091. * Get a closure to resolve the given type from the container.
  1092. *
  1093. * @param string $abstract
  1094. * @return \Closure
  1095. * @static
  1096. */
  1097. public static function factory($abstract)
  1098. {
  1099. //Method inherited from \Illuminate\Container\Container
  1100. /** @var \Illuminate\Foundation\Application $instance */
  1101. return $instance->factory($abstract);
  1102. }
  1103. /**
  1104. * An alias function name for make().
  1105. *
  1106. * @param string $abstract
  1107. * @param array $parameters
  1108. * @return mixed
  1109. * @static
  1110. */
  1111. public static function makeWith($abstract, $parameters = array())
  1112. {
  1113. //Method inherited from \Illuminate\Container\Container
  1114. /** @var \Illuminate\Foundation\Application $instance */
  1115. return $instance->makeWith($abstract, $parameters);
  1116. }
  1117. /**
  1118. * Finds an entry of the container by its identifier and returns it.
  1119. *
  1120. * @param string $id Identifier of the entry to look for.
  1121. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1122. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1123. * @return mixed Entry.
  1124. * @static
  1125. */
  1126. public static function get($id)
  1127. {
  1128. //Method inherited from \Illuminate\Container\Container
  1129. /** @var \Illuminate\Foundation\Application $instance */
  1130. return $instance->get($id);
  1131. }
  1132. /**
  1133. * Instantiate a concrete instance of the given type.
  1134. *
  1135. * @param string $concrete
  1136. * @return mixed
  1137. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1138. * @static
  1139. */
  1140. public static function build($concrete)
  1141. {
  1142. //Method inherited from \Illuminate\Container\Container
  1143. /** @var \Illuminate\Foundation\Application $instance */
  1144. return $instance->build($concrete);
  1145. }
  1146. /**
  1147. * Register a new resolving callback.
  1148. *
  1149. * @param \Closure|string $abstract
  1150. * @param \Closure|null $callback
  1151. * @return void
  1152. * @static
  1153. */
  1154. public static function resolving($abstract, $callback = null)
  1155. {
  1156. //Method inherited from \Illuminate\Container\Container
  1157. /** @var \Illuminate\Foundation\Application $instance */
  1158. $instance->resolving($abstract, $callback);
  1159. }
  1160. /**
  1161. * Register a new after resolving callback for all types.
  1162. *
  1163. * @param \Closure|string $abstract
  1164. * @param \Closure|null $callback
  1165. * @return void
  1166. * @static
  1167. */
  1168. public static function afterResolving($abstract, $callback = null)
  1169. {
  1170. //Method inherited from \Illuminate\Container\Container
  1171. /** @var \Illuminate\Foundation\Application $instance */
  1172. $instance->afterResolving($abstract, $callback);
  1173. }
  1174. /**
  1175. * Get the container's bindings.
  1176. *
  1177. * @return array
  1178. * @static
  1179. */
  1180. public static function getBindings()
  1181. {
  1182. //Method inherited from \Illuminate\Container\Container
  1183. /** @var \Illuminate\Foundation\Application $instance */
  1184. return $instance->getBindings();
  1185. }
  1186. /**
  1187. * Get the alias for an abstract if available.
  1188. *
  1189. * @param string $abstract
  1190. * @return string
  1191. * @throws \LogicException
  1192. * @static
  1193. */
  1194. public static function getAlias($abstract)
  1195. {
  1196. //Method inherited from \Illuminate\Container\Container
  1197. /** @var \Illuminate\Foundation\Application $instance */
  1198. return $instance->getAlias($abstract);
  1199. }
  1200. /**
  1201. * Remove all of the extender callbacks for a given type.
  1202. *
  1203. * @param string $abstract
  1204. * @return void
  1205. * @static
  1206. */
  1207. public static function forgetExtenders($abstract)
  1208. {
  1209. //Method inherited from \Illuminate\Container\Container
  1210. /** @var \Illuminate\Foundation\Application $instance */
  1211. $instance->forgetExtenders($abstract);
  1212. }
  1213. /**
  1214. * Remove a resolved instance from the instance cache.
  1215. *
  1216. * @param string $abstract
  1217. * @return void
  1218. * @static
  1219. */
  1220. public static function forgetInstance($abstract)
  1221. {
  1222. //Method inherited from \Illuminate\Container\Container
  1223. /** @var \Illuminate\Foundation\Application $instance */
  1224. $instance->forgetInstance($abstract);
  1225. }
  1226. /**
  1227. * Clear all of the instances from the container.
  1228. *
  1229. * @return void
  1230. * @static
  1231. */
  1232. public static function forgetInstances()
  1233. {
  1234. //Method inherited from \Illuminate\Container\Container
  1235. /** @var \Illuminate\Foundation\Application $instance */
  1236. $instance->forgetInstances();
  1237. }
  1238. /**
  1239. * Set the globally available instance of the container.
  1240. *
  1241. * @return static
  1242. * @static
  1243. */
  1244. public static function getInstance()
  1245. {
  1246. //Method inherited from \Illuminate\Container\Container
  1247. return \Illuminate\Foundation\Application::getInstance();
  1248. }
  1249. /**
  1250. * Set the shared instance of the container.
  1251. *
  1252. * @param \Illuminate\Contracts\Container\Container|null $container
  1253. * @return \Illuminate\Contracts\Container\Container|static
  1254. * @static
  1255. */
  1256. public static function setInstance($container = null)
  1257. {
  1258. //Method inherited from \Illuminate\Container\Container
  1259. return \Illuminate\Foundation\Application::setInstance($container);
  1260. }
  1261. /**
  1262. * Determine if a given offset exists.
  1263. *
  1264. * @param string $key
  1265. * @return bool
  1266. * @static
  1267. */
  1268. public static function offsetExists($key)
  1269. {
  1270. //Method inherited from \Illuminate\Container\Container
  1271. /** @var \Illuminate\Foundation\Application $instance */
  1272. return $instance->offsetExists($key);
  1273. }
  1274. /**
  1275. * Get the value at a given offset.
  1276. *
  1277. * @param string $key
  1278. * @return mixed
  1279. * @static
  1280. */
  1281. public static function offsetGet($key)
  1282. {
  1283. //Method inherited from \Illuminate\Container\Container
  1284. /** @var \Illuminate\Foundation\Application $instance */
  1285. return $instance->offsetGet($key);
  1286. }
  1287. /**
  1288. * Set the value at a given offset.
  1289. *
  1290. * @param string $key
  1291. * @param mixed $value
  1292. * @return void
  1293. * @static
  1294. */
  1295. public static function offsetSet($key, $value)
  1296. {
  1297. //Method inherited from \Illuminate\Container\Container
  1298. /** @var \Illuminate\Foundation\Application $instance */
  1299. $instance->offsetSet($key, $value);
  1300. }
  1301. /**
  1302. * Unset the value at a given offset.
  1303. *
  1304. * @param string $key
  1305. * @return void
  1306. * @static
  1307. */
  1308. public static function offsetUnset($key)
  1309. {
  1310. //Method inherited from \Illuminate\Container\Container
  1311. /** @var \Illuminate\Foundation\Application $instance */
  1312. $instance->offsetUnset($key);
  1313. }
  1314. }
  1315. /**
  1316. *
  1317. *
  1318. * @see \Illuminate\Contracts\Console\Kernel
  1319. */
  1320. class Artisan {
  1321. /**
  1322. * Run the console application.
  1323. *
  1324. * @param \Symfony\Component\Console\Input\InputInterface $input
  1325. * @param \Symfony\Component\Console\Output\OutputInterface $output
  1326. * @return int
  1327. * @static
  1328. */
  1329. public static function handle($input, $output = null)
  1330. {
  1331. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1332. /** @var \App\Console\Kernel $instance */
  1333. return $instance->handle($input, $output);
  1334. }
  1335. /**
  1336. * Terminate the application.
  1337. *
  1338. * @param \Symfony\Component\Console\Input\InputInterface $input
  1339. * @param int $status
  1340. * @return void
  1341. * @static
  1342. */
  1343. public static function terminate($input, $status)
  1344. {
  1345. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1346. /** @var \App\Console\Kernel $instance */
  1347. $instance->terminate($input, $status);
  1348. }
  1349. /**
  1350. * Register a Closure based command with the application.
  1351. *
  1352. * @param string $signature
  1353. * @param \Closure $callback
  1354. * @return \Illuminate\Foundation\Console\ClosureCommand
  1355. * @static
  1356. */
  1357. public static function command($signature, $callback)
  1358. {
  1359. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1360. /** @var \App\Console\Kernel $instance */
  1361. return $instance->command($signature, $callback);
  1362. }
  1363. /**
  1364. * Register the given command with the console application.
  1365. *
  1366. * @param \Symfony\Component\Console\Command\Command $command
  1367. * @return void
  1368. * @static
  1369. */
  1370. public static function registerCommand($command)
  1371. {
  1372. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1373. /** @var \App\Console\Kernel $instance */
  1374. $instance->registerCommand($command);
  1375. }
  1376. /**
  1377. * Run an Artisan console command by name.
  1378. *
  1379. * @param string $command
  1380. * @param array $parameters
  1381. * @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
  1382. * @return int
  1383. * @static
  1384. */
  1385. public static function call($command, $parameters = array(), $outputBuffer = null)
  1386. {
  1387. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1388. /** @var \App\Console\Kernel $instance */
  1389. return $instance->call($command, $parameters, $outputBuffer);
  1390. }
  1391. /**
  1392. * Queue the given console command.
  1393. *
  1394. * @param string $command
  1395. * @param array $parameters
  1396. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1397. * @static
  1398. */
  1399. public static function queue($command, $parameters = array())
  1400. {
  1401. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1402. /** @var \App\Console\Kernel $instance */
  1403. return $instance->queue($command, $parameters);
  1404. }
  1405. /**
  1406. * Get all of the commands registered with the console.
  1407. *
  1408. * @return array
  1409. * @static
  1410. */
  1411. public static function all()
  1412. {
  1413. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1414. /** @var \App\Console\Kernel $instance */
  1415. return $instance->all();
  1416. }
  1417. /**
  1418. * Get the output for the last run command.
  1419. *
  1420. * @return string
  1421. * @static
  1422. */
  1423. public static function output()
  1424. {
  1425. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1426. /** @var \App\Console\Kernel $instance */
  1427. return $instance->output();
  1428. }
  1429. /**
  1430. * Bootstrap the application for artisan commands.
  1431. *
  1432. * @return void
  1433. * @static
  1434. */
  1435. public static function bootstrap()
  1436. {
  1437. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1438. /** @var \App\Console\Kernel $instance */
  1439. $instance->bootstrap();
  1440. }
  1441. /**
  1442. * Set the Artisan application instance.
  1443. *
  1444. * @param \Illuminate\Console\Application $artisan
  1445. * @return void
  1446. * @static
  1447. */
  1448. public static function setArtisan($artisan)
  1449. {
  1450. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1451. /** @var \App\Console\Kernel $instance */
  1452. $instance->setArtisan($artisan);
  1453. }
  1454. }
  1455. /**
  1456. *
  1457. *
  1458. * @see \Illuminate\Auth\AuthManager
  1459. * @see \Illuminate\Contracts\Auth\Factory
  1460. * @see \Illuminate\Contracts\Auth\Guard
  1461. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1462. */
  1463. class Auth {
  1464. /**
  1465. * Attempt to get the guard from the local cache.
  1466. *
  1467. * @param string $name
  1468. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1469. * @static
  1470. */
  1471. public static function guard($name = null)
  1472. {
  1473. /** @var \Illuminate\Auth\AuthManager $instance */
  1474. return $instance->guard($name);
  1475. }
  1476. /**
  1477. * Create a session based authentication guard.
  1478. *
  1479. * @param string $name
  1480. * @param array $config
  1481. * @return \Illuminate\Auth\SessionGuard
  1482. * @static
  1483. */
  1484. public static function createSessionDriver($name, $config)
  1485. {
  1486. /** @var \Illuminate\Auth\AuthManager $instance */
  1487. return $instance->createSessionDriver($name, $config);
  1488. }
  1489. /**
  1490. * Create a token based authentication guard.
  1491. *
  1492. * @param string $name
  1493. * @param array $config
  1494. * @return \Illuminate\Auth\TokenGuard
  1495. * @static
  1496. */
  1497. public static function createTokenDriver($name, $config)
  1498. {
  1499. /** @var \Illuminate\Auth\AuthManager $instance */
  1500. return $instance->createTokenDriver($name, $config);
  1501. }
  1502. /**
  1503. * Get the default authentication driver name.
  1504. *
  1505. * @return string
  1506. * @static
  1507. */
  1508. public static function getDefaultDriver()
  1509. {
  1510. /** @var \Illuminate\Auth\AuthManager $instance */
  1511. return $instance->getDefaultDriver();
  1512. }
  1513. /**
  1514. * Set the default guard driver the factory should serve.
  1515. *
  1516. * @param string $name
  1517. * @return void
  1518. * @static
  1519. */
  1520. public static function shouldUse($name)
  1521. {
  1522. /** @var \Illuminate\Auth\AuthManager $instance */
  1523. $instance->shouldUse($name);
  1524. }
  1525. /**
  1526. * Set the default authentication driver name.
  1527. *
  1528. * @param string $name
  1529. * @return void
  1530. * @static
  1531. */
  1532. public static function setDefaultDriver($name)
  1533. {
  1534. /** @var \Illuminate\Auth\AuthManager $instance */
  1535. $instance->setDefaultDriver($name);
  1536. }
  1537. /**
  1538. * Register a new callback based request guard.
  1539. *
  1540. * @param string $driver
  1541. * @param callable $callback
  1542. * @return \Illuminate\Auth\AuthManager
  1543. * @static
  1544. */
  1545. public static function viaRequest($driver, $callback)
  1546. {
  1547. /** @var \Illuminate\Auth\AuthManager $instance */
  1548. return $instance->viaRequest($driver, $callback);
  1549. }
  1550. /**
  1551. * Get the user resolver callback.
  1552. *
  1553. * @return \Closure
  1554. * @static
  1555. */
  1556. public static function userResolver()
  1557. {
  1558. /** @var \Illuminate\Auth\AuthManager $instance */
  1559. return $instance->userResolver();
  1560. }
  1561. /**
  1562. * Set the callback to be used to resolve users.
  1563. *
  1564. * @param \Closure $userResolver
  1565. * @return \Illuminate\Auth\AuthManager
  1566. * @static
  1567. */
  1568. public static function resolveUsersUsing($userResolver)
  1569. {
  1570. /** @var \Illuminate\Auth\AuthManager $instance */
  1571. return $instance->resolveUsersUsing($userResolver);
  1572. }
  1573. /**
  1574. * Register a custom driver creator Closure.
  1575. *
  1576. * @param string $driver
  1577. * @param \Closure $callback
  1578. * @return \Illuminate\Auth\AuthManager
  1579. * @static
  1580. */
  1581. public static function extend($driver, $callback)
  1582. {
  1583. /** @var \Illuminate\Auth\AuthManager $instance */
  1584. return $instance->extend($driver, $callback);
  1585. }
  1586. /**
  1587. * Register a custom provider creator Closure.
  1588. *
  1589. * @param string $name
  1590. * @param \Closure $callback
  1591. * @return \Illuminate\Auth\AuthManager
  1592. * @static
  1593. */
  1594. public static function provider($name, $callback)
  1595. {
  1596. /** @var \Illuminate\Auth\AuthManager $instance */
  1597. return $instance->provider($name, $callback);
  1598. }
  1599. /**
  1600. * Create the user provider implementation for the driver.
  1601. *
  1602. * @param string|null $provider
  1603. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1604. * @throws \InvalidArgumentException
  1605. * @static
  1606. */
  1607. public static function createUserProvider($provider = null)
  1608. {
  1609. /** @var \Illuminate\Auth\AuthManager $instance */
  1610. return $instance->createUserProvider($provider);
  1611. }
  1612. /**
  1613. * Get the default user provider name.
  1614. *
  1615. * @return string
  1616. * @static
  1617. */
  1618. public static function getDefaultUserProvider()
  1619. {
  1620. /** @var \Illuminate\Auth\AuthManager $instance */
  1621. return $instance->getDefaultUserProvider();
  1622. }
  1623. /**
  1624. * Get the currently authenticated user.
  1625. *
  1626. * @return \App\Http\Models\User|null
  1627. * @static
  1628. */
  1629. public static function user()
  1630. {
  1631. /** @var \Illuminate\Auth\SessionGuard $instance */
  1632. return $instance->user();
  1633. }
  1634. /**
  1635. * Get the ID for the currently authenticated user.
  1636. *
  1637. * @return int|null
  1638. * @static
  1639. */
  1640. public static function id()
  1641. {
  1642. /** @var \Illuminate\Auth\SessionGuard $instance */
  1643. return $instance->id();
  1644. }
  1645. /**
  1646. * Log a user into the application without sessions or cookies.
  1647. *
  1648. * @param array $credentials
  1649. * @return bool
  1650. * @static
  1651. */
  1652. public static function once($credentials = array())
  1653. {
  1654. /** @var \Illuminate\Auth\SessionGuard $instance */
  1655. return $instance->once($credentials);
  1656. }
  1657. /**
  1658. * Log the given user ID into the application without sessions or cookies.
  1659. *
  1660. * @param mixed $id
  1661. * @return \App\Http\Models\User|false
  1662. * @static
  1663. */
  1664. public static function onceUsingId($id)
  1665. {
  1666. /** @var \Illuminate\Auth\SessionGuard $instance */
  1667. return $instance->onceUsingId($id);
  1668. }
  1669. /**
  1670. * Validate a user's credentials.
  1671. *
  1672. * @param array $credentials
  1673. * @return bool
  1674. * @static
  1675. */
  1676. public static function validate($credentials = array())
  1677. {
  1678. /** @var \Illuminate\Auth\SessionGuard $instance */
  1679. return $instance->validate($credentials);
  1680. }
  1681. /**
  1682. * Attempt to authenticate using HTTP Basic Auth.
  1683. *
  1684. * @param string $field
  1685. * @param array $extraConditions
  1686. * @return \Symfony\Component\HttpFoundation\Response|null
  1687. * @static
  1688. */
  1689. public static function basic($field = 'email', $extraConditions = array())
  1690. {
  1691. /** @var \Illuminate\Auth\SessionGuard $instance */
  1692. return $instance->basic($field, $extraConditions);
  1693. }
  1694. /**
  1695. * Perform a stateless HTTP Basic login attempt.
  1696. *
  1697. * @param string $field
  1698. * @param array $extraConditions
  1699. * @return \Symfony\Component\HttpFoundation\Response|null
  1700. * @static
  1701. */
  1702. public static function onceBasic($field = 'email', $extraConditions = array())
  1703. {
  1704. /** @var \Illuminate\Auth\SessionGuard $instance */
  1705. return $instance->onceBasic($field, $extraConditions);
  1706. }
  1707. /**
  1708. * Attempt to authenticate a user using the given credentials.
  1709. *
  1710. * @param array $credentials
  1711. * @param bool $remember
  1712. * @return bool
  1713. * @static
  1714. */
  1715. public static function attempt($credentials = array(), $remember = false)
  1716. {
  1717. /** @var \Illuminate\Auth\SessionGuard $instance */
  1718. return $instance->attempt($credentials, $remember);
  1719. }
  1720. /**
  1721. * Log the given user ID into the application.
  1722. *
  1723. * @param mixed $id
  1724. * @param bool $remember
  1725. * @return \App\Http\Models\User|false
  1726. * @static
  1727. */
  1728. public static function loginUsingId($id, $remember = false)
  1729. {
  1730. /** @var \Illuminate\Auth\SessionGuard $instance */
  1731. return $instance->loginUsingId($id, $remember);
  1732. }
  1733. /**
  1734. * Log a user into the application.
  1735. *
  1736. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1737. * @param bool $remember
  1738. * @return void
  1739. * @static
  1740. */
  1741. public static function login($user, $remember = false)
  1742. {
  1743. /** @var \Illuminate\Auth\SessionGuard $instance */
  1744. $instance->login($user, $remember);
  1745. }
  1746. /**
  1747. * Log the user out of the application.
  1748. *
  1749. * @return void
  1750. * @static
  1751. */
  1752. public static function logout()
  1753. {
  1754. /** @var \Illuminate\Auth\SessionGuard $instance */
  1755. $instance->logout();
  1756. }
  1757. /**
  1758. * Invalidate other sessions for the current user.
  1759. *
  1760. * The application must be using the AuthenticateSession middleware.
  1761. *
  1762. * @param string $password
  1763. * @param string $attribute
  1764. * @return bool|null
  1765. * @static
  1766. */
  1767. public static function logoutOtherDevices($password, $attribute = 'password')
  1768. {
  1769. /** @var \Illuminate\Auth\SessionGuard $instance */
  1770. return $instance->logoutOtherDevices($password, $attribute);
  1771. }
  1772. /**
  1773. * Register an authentication attempt event listener.
  1774. *
  1775. * @param mixed $callback
  1776. * @return void
  1777. * @static
  1778. */
  1779. public static function attempting($callback)
  1780. {
  1781. /** @var \Illuminate\Auth\SessionGuard $instance */
  1782. $instance->attempting($callback);
  1783. }
  1784. /**
  1785. * Get the last user we attempted to authenticate.
  1786. *
  1787. * @return \App\Http\Models\User
  1788. * @static
  1789. */
  1790. public static function getLastAttempted()
  1791. {
  1792. /** @var \Illuminate\Auth\SessionGuard $instance */
  1793. return $instance->getLastAttempted();
  1794. }
  1795. /**
  1796. * Get a unique identifier for the auth session value.
  1797. *
  1798. * @return string
  1799. * @static
  1800. */
  1801. public static function getName()
  1802. {
  1803. /** @var \Illuminate\Auth\SessionGuard $instance */
  1804. return $instance->getName();
  1805. }
  1806. /**
  1807. * Get the name of the cookie used to store the "recaller".
  1808. *
  1809. * @return string
  1810. * @static
  1811. */
  1812. public static function getRecallerName()
  1813. {
  1814. /** @var \Illuminate\Auth\SessionGuard $instance */
  1815. return $instance->getRecallerName();
  1816. }
  1817. /**
  1818. * Determine if the user was authenticated via "remember me" cookie.
  1819. *
  1820. * @return bool
  1821. * @static
  1822. */
  1823. public static function viaRemember()
  1824. {
  1825. /** @var \Illuminate\Auth\SessionGuard $instance */
  1826. return $instance->viaRemember();
  1827. }
  1828. /**
  1829. * Get the cookie creator instance used by the guard.
  1830. *
  1831. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1832. * @throws \RuntimeException
  1833. * @static
  1834. */
  1835. public static function getCookieJar()
  1836. {
  1837. /** @var \Illuminate\Auth\SessionGuard $instance */
  1838. return $instance->getCookieJar();
  1839. }
  1840. /**
  1841. * Set the cookie creator instance used by the guard.
  1842. *
  1843. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1844. * @return void
  1845. * @static
  1846. */
  1847. public static function setCookieJar($cookie)
  1848. {
  1849. /** @var \Illuminate\Auth\SessionGuard $instance */
  1850. $instance->setCookieJar($cookie);
  1851. }
  1852. /**
  1853. * Get the event dispatcher instance.
  1854. *
  1855. * @return \Illuminate\Contracts\Events\Dispatcher
  1856. * @static
  1857. */
  1858. public static function getDispatcher()
  1859. {
  1860. /** @var \Illuminate\Auth\SessionGuard $instance */
  1861. return $instance->getDispatcher();
  1862. }
  1863. /**
  1864. * Set the event dispatcher instance.
  1865. *
  1866. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1867. * @return void
  1868. * @static
  1869. */
  1870. public static function setDispatcher($events)
  1871. {
  1872. /** @var \Illuminate\Auth\SessionGuard $instance */
  1873. $instance->setDispatcher($events);
  1874. }
  1875. /**
  1876. * Get the session store used by the guard.
  1877. *
  1878. * @return \Illuminate\Contracts\Session\Session
  1879. * @static
  1880. */
  1881. public static function getSession()
  1882. {
  1883. /** @var \Illuminate\Auth\SessionGuard $instance */
  1884. return $instance->getSession();
  1885. }
  1886. /**
  1887. * Return the currently cached user.
  1888. *
  1889. * @return \App\Http\Models\User|null
  1890. * @static
  1891. */
  1892. public static function getUser()
  1893. {
  1894. /** @var \Illuminate\Auth\SessionGuard $instance */
  1895. return $instance->getUser();
  1896. }
  1897. /**
  1898. * Set the current user.
  1899. *
  1900. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1901. * @return \Illuminate\Auth\SessionGuard
  1902. * @static
  1903. */
  1904. public static function setUser($user)
  1905. {
  1906. /** @var \Illuminate\Auth\SessionGuard $instance */
  1907. return $instance->setUser($user);
  1908. }
  1909. /**
  1910. * Get the current request instance.
  1911. *
  1912. * @return \Symfony\Component\HttpFoundation\Request
  1913. * @static
  1914. */
  1915. public static function getRequest()
  1916. {
  1917. /** @var \Illuminate\Auth\SessionGuard $instance */
  1918. return $instance->getRequest();
  1919. }
  1920. /**
  1921. * Set the current request instance.
  1922. *
  1923. * @param \Symfony\Component\HttpFoundation\Request $request
  1924. * @return \Illuminate\Auth\SessionGuard
  1925. * @static
  1926. */
  1927. public static function setRequest($request)
  1928. {
  1929. /** @var \Illuminate\Auth\SessionGuard $instance */
  1930. return $instance->setRequest($request);
  1931. }
  1932. /**
  1933. * Determine if the current user is authenticated.
  1934. *
  1935. * @return \App\Http\Models\User
  1936. * @throws \Illuminate\Auth\AuthenticationException
  1937. * @static
  1938. */
  1939. public static function authenticate()
  1940. {
  1941. /** @var \Illuminate\Auth\SessionGuard $instance */
  1942. return $instance->authenticate();
  1943. }
  1944. /**
  1945. * Determine if the guard has a user instance.
  1946. *
  1947. * @return bool
  1948. * @static
  1949. */
  1950. public static function hasUser()
  1951. {
  1952. /** @var \Illuminate\Auth\SessionGuard $instance */
  1953. return $instance->hasUser();
  1954. }
  1955. /**
  1956. * Determine if the current user is authenticated.
  1957. *
  1958. * @return bool
  1959. * @static
  1960. */
  1961. public static function check()
  1962. {
  1963. /** @var \Illuminate\Auth\SessionGuard $instance */
  1964. return $instance->check();
  1965. }
  1966. /**
  1967. * Determine if the current user is a guest.
  1968. *
  1969. * @return bool
  1970. * @static
  1971. */
  1972. public static function guest()
  1973. {
  1974. /** @var \Illuminate\Auth\SessionGuard $instance */
  1975. return $instance->guest();
  1976. }
  1977. /**
  1978. * Get the user provider used by the guard.
  1979. *
  1980. * @return \Illuminate\Contracts\Auth\UserProvider
  1981. * @static
  1982. */
  1983. public static function getProvider()
  1984. {
  1985. /** @var \Illuminate\Auth\SessionGuard $instance */
  1986. return $instance->getProvider();
  1987. }
  1988. /**
  1989. * Set the user provider used by the guard.
  1990. *
  1991. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  1992. * @return void
  1993. * @static
  1994. */
  1995. public static function setProvider($provider)
  1996. {
  1997. /** @var \Illuminate\Auth\SessionGuard $instance */
  1998. $instance->setProvider($provider);
  1999. }
  2000. /**
  2001. * Register a custom macro.
  2002. *
  2003. * @param string $name
  2004. * @param object|callable $macro
  2005. * @return void
  2006. * @static
  2007. */
  2008. public static function macro($name, $macro)
  2009. {
  2010. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2011. }
  2012. /**
  2013. * Mix another object into the class.
  2014. *
  2015. * @param object $mixin
  2016. * @return void
  2017. * @throws \ReflectionException
  2018. * @static
  2019. */
  2020. public static function mixin($mixin)
  2021. {
  2022. \Illuminate\Auth\SessionGuard::mixin($mixin);
  2023. }
  2024. /**
  2025. * Checks if macro is registered.
  2026. *
  2027. * @param string $name
  2028. * @return bool
  2029. * @static
  2030. */
  2031. public static function hasMacro($name)
  2032. {
  2033. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2034. }
  2035. }
  2036. /**
  2037. *
  2038. *
  2039. * @see \Illuminate\View\Compilers\BladeCompiler
  2040. */
  2041. class Blade {
  2042. /**
  2043. * Compile the view at the given path.
  2044. *
  2045. * @param string $path
  2046. * @return void
  2047. * @static
  2048. */
  2049. public static function compile($path = null)
  2050. {
  2051. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2052. $instance->compile($path);
  2053. }
  2054. /**
  2055. * Get the path currently being compiled.
  2056. *
  2057. * @return string
  2058. * @static
  2059. */
  2060. public static function getPath()
  2061. {
  2062. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2063. return $instance->getPath();
  2064. }
  2065. /**
  2066. * Set the path currently being compiled.
  2067. *
  2068. * @param string $path
  2069. * @return void
  2070. * @static
  2071. */
  2072. public static function setPath($path)
  2073. {
  2074. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2075. $instance->setPath($path);
  2076. }
  2077. /**
  2078. * Compile the given Blade template contents.
  2079. *
  2080. * @param string $value
  2081. * @return string
  2082. * @static
  2083. */
  2084. public static function compileString($value)
  2085. {
  2086. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2087. return $instance->compileString($value);
  2088. }
  2089. /**
  2090. * Strip the parentheses from the given expression.
  2091. *
  2092. * @param string $expression
  2093. * @return string
  2094. * @static
  2095. */
  2096. public static function stripParentheses($expression)
  2097. {
  2098. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2099. return $instance->stripParentheses($expression);
  2100. }
  2101. /**
  2102. * Register a custom Blade compiler.
  2103. *
  2104. * @param callable $compiler
  2105. * @return void
  2106. * @static
  2107. */
  2108. public static function extend($compiler)
  2109. {
  2110. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2111. $instance->extend($compiler);
  2112. }
  2113. /**
  2114. * Get the extensions used by the compiler.
  2115. *
  2116. * @return array
  2117. * @static
  2118. */
  2119. public static function getExtensions()
  2120. {
  2121. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2122. return $instance->getExtensions();
  2123. }
  2124. /**
  2125. * Register an "if" statement directive.
  2126. *
  2127. * @param string $name
  2128. * @param callable $callback
  2129. * @return void
  2130. * @static
  2131. */
  2132. public static function if($name, $callback)
  2133. {
  2134. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2135. $instance->if($name, $callback);
  2136. }
  2137. /**
  2138. * Check the result of a condition.
  2139. *
  2140. * @param string $name
  2141. * @param array $parameters
  2142. * @return bool
  2143. * @static
  2144. */
  2145. public static function check($name, $parameters = null)
  2146. {
  2147. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2148. return $instance->check($name, $parameters);
  2149. }
  2150. /**
  2151. * Register a component alias directive.
  2152. *
  2153. * @param string $path
  2154. * @param string $alias
  2155. * @return void
  2156. * @static
  2157. */
  2158. public static function component($path, $alias = null)
  2159. {
  2160. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2161. $instance->component($path, $alias);
  2162. }
  2163. /**
  2164. * Register an include alias directive.
  2165. *
  2166. * @param string $path
  2167. * @param string $alias
  2168. * @return void
  2169. * @static
  2170. */
  2171. public static function include($path, $alias = null)
  2172. {
  2173. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2174. $instance->include($path, $alias);
  2175. }
  2176. /**
  2177. * Register a handler for custom directives.
  2178. *
  2179. * @param string $name
  2180. * @param callable $handler
  2181. * @return void
  2182. * @static
  2183. */
  2184. public static function directive($name, $handler)
  2185. {
  2186. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2187. $instance->directive($name, $handler);
  2188. }
  2189. /**
  2190. * Get the list of custom directives.
  2191. *
  2192. * @return array
  2193. * @static
  2194. */
  2195. public static function getCustomDirectives()
  2196. {
  2197. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2198. return $instance->getCustomDirectives();
  2199. }
  2200. /**
  2201. * Set the echo format to be used by the compiler.
  2202. *
  2203. * @param string $format
  2204. * @return void
  2205. * @static
  2206. */
  2207. public static function setEchoFormat($format)
  2208. {
  2209. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2210. $instance->setEchoFormat($format);
  2211. }
  2212. /**
  2213. * Set the "echo" format to double encode entities.
  2214. *
  2215. * @return void
  2216. * @static
  2217. */
  2218. public static function withDoubleEncoding()
  2219. {
  2220. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2221. $instance->withDoubleEncoding();
  2222. }
  2223. /**
  2224. * Set the "echo" format to not double encode entities.
  2225. *
  2226. * @return void
  2227. * @static
  2228. */
  2229. public static function withoutDoubleEncoding()
  2230. {
  2231. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2232. $instance->withoutDoubleEncoding();
  2233. }
  2234. /**
  2235. * Get the path to the compiled version of a view.
  2236. *
  2237. * @param string $path
  2238. * @return string
  2239. * @static
  2240. */
  2241. public static function getCompiledPath($path)
  2242. {
  2243. //Method inherited from \Illuminate\View\Compilers\Compiler
  2244. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2245. return $instance->getCompiledPath($path);
  2246. }
  2247. /**
  2248. * Determine if the view at the given path is expired.
  2249. *
  2250. * @param string $path
  2251. * @return bool
  2252. * @static
  2253. */
  2254. public static function isExpired($path)
  2255. {
  2256. //Method inherited from \Illuminate\View\Compilers\Compiler
  2257. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2258. return $instance->isExpired($path);
  2259. }
  2260. /**
  2261. * Compile the default values for the echo statement.
  2262. *
  2263. * @param string $value
  2264. * @return string
  2265. * @static
  2266. */
  2267. public static function compileEchoDefaults($value)
  2268. {
  2269. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2270. return $instance->compileEchoDefaults($value);
  2271. }
  2272. }
  2273. /**
  2274. *
  2275. *
  2276. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback)
  2277. * @method static mixed auth(\Illuminate\Http\Request $request)
  2278. * @see \Illuminate\Contracts\Broadcasting\Factory
  2279. */
  2280. class Broadcast {
  2281. /**
  2282. * Register the routes for handling broadcast authentication and sockets.
  2283. *
  2284. * @param array|null $attributes
  2285. * @return void
  2286. * @static
  2287. */
  2288. public static function routes($attributes = null)
  2289. {
  2290. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2291. $instance->routes($attributes);
  2292. }
  2293. /**
  2294. * Get the socket ID for the given request.
  2295. *
  2296. * @param \Illuminate\Http\Request|null $request
  2297. * @return string|null
  2298. * @static
  2299. */
  2300. public static function socket($request = null)
  2301. {
  2302. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2303. return $instance->socket($request);
  2304. }
  2305. /**
  2306. * Begin broadcasting an event.
  2307. *
  2308. * @param mixed|null $event
  2309. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  2310. * @static
  2311. */
  2312. public static function event($event = null)
  2313. {
  2314. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2315. return $instance->event($event);
  2316. }
  2317. /**
  2318. * Queue the given event for broadcast.
  2319. *
  2320. * @param mixed $event
  2321. * @return void
  2322. * @static
  2323. */
  2324. public static function queue($event)
  2325. {
  2326. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2327. $instance->queue($event);
  2328. }
  2329. /**
  2330. * Get a driver instance.
  2331. *
  2332. * @param string $driver
  2333. * @return mixed
  2334. * @static
  2335. */
  2336. public static function connection($driver = null)
  2337. {
  2338. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2339. return $instance->connection($driver);
  2340. }
  2341. /**
  2342. * Get a driver instance.
  2343. *
  2344. * @param string|null $name
  2345. * @return mixed
  2346. * @static
  2347. */
  2348. public static function driver($name = null)
  2349. {
  2350. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2351. return $instance->driver($name);
  2352. }
  2353. /**
  2354. * Get the default driver name.
  2355. *
  2356. * @return string
  2357. * @static
  2358. */
  2359. public static function getDefaultDriver()
  2360. {
  2361. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2362. return $instance->getDefaultDriver();
  2363. }
  2364. /**
  2365. * Set the default driver name.
  2366. *
  2367. * @param string $name
  2368. * @return void
  2369. * @static
  2370. */
  2371. public static function setDefaultDriver($name)
  2372. {
  2373. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2374. $instance->setDefaultDriver($name);
  2375. }
  2376. /**
  2377. * Register a custom driver creator Closure.
  2378. *
  2379. * @param string $driver
  2380. * @param \Closure $callback
  2381. * @return \Illuminate\Broadcasting\BroadcastManager
  2382. * @static
  2383. */
  2384. public static function extend($driver, $callback)
  2385. {
  2386. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2387. return $instance->extend($driver, $callback);
  2388. }
  2389. }
  2390. /**
  2391. *
  2392. *
  2393. * @see \Illuminate\Contracts\Bus\Dispatcher
  2394. */
  2395. class Bus {
  2396. /**
  2397. * Dispatch a command to its appropriate handler.
  2398. *
  2399. * @param mixed $command
  2400. * @return mixed
  2401. * @static
  2402. */
  2403. public static function dispatch($command)
  2404. {
  2405. /** @var \Illuminate\Bus\Dispatcher $instance */
  2406. return $instance->dispatch($command);
  2407. }
  2408. /**
  2409. * Dispatch a command to its appropriate handler in the current process.
  2410. *
  2411. * @param mixed $command
  2412. * @param mixed $handler
  2413. * @return mixed
  2414. * @static
  2415. */
  2416. public static function dispatchNow($command, $handler = null)
  2417. {
  2418. /** @var \Illuminate\Bus\Dispatcher $instance */
  2419. return $instance->dispatchNow($command, $handler);
  2420. }
  2421. /**
  2422. * Determine if the given command has a handler.
  2423. *
  2424. * @param mixed $command
  2425. * @return bool
  2426. * @static
  2427. */
  2428. public static function hasCommandHandler($command)
  2429. {
  2430. /** @var \Illuminate\Bus\Dispatcher $instance */
  2431. return $instance->hasCommandHandler($command);
  2432. }
  2433. /**
  2434. * Retrieve the handler for a command.
  2435. *
  2436. * @param mixed $command
  2437. * @return bool|mixed
  2438. * @static
  2439. */
  2440. public static function getCommandHandler($command)
  2441. {
  2442. /** @var \Illuminate\Bus\Dispatcher $instance */
  2443. return $instance->getCommandHandler($command);
  2444. }
  2445. /**
  2446. * Dispatch a command to its appropriate handler behind a queue.
  2447. *
  2448. * @param mixed $command
  2449. * @return mixed
  2450. * @throws \RuntimeException
  2451. * @static
  2452. */
  2453. public static function dispatchToQueue($command)
  2454. {
  2455. /** @var \Illuminate\Bus\Dispatcher $instance */
  2456. return $instance->dispatchToQueue($command);
  2457. }
  2458. /**
  2459. * Set the pipes through which commands should be piped before dispatching.
  2460. *
  2461. * @param array $pipes
  2462. * @return \Illuminate\Bus\Dispatcher
  2463. * @static
  2464. */
  2465. public static function pipeThrough($pipes)
  2466. {
  2467. /** @var \Illuminate\Bus\Dispatcher $instance */
  2468. return $instance->pipeThrough($pipes);
  2469. }
  2470. /**
  2471. * Map a command to a handler.
  2472. *
  2473. * @param array $map
  2474. * @return \Illuminate\Bus\Dispatcher
  2475. * @static
  2476. */
  2477. public static function map($map)
  2478. {
  2479. /** @var \Illuminate\Bus\Dispatcher $instance */
  2480. return $instance->map($map);
  2481. }
  2482. /**
  2483. * Assert if a job was dispatched based on a truth-test callback.
  2484. *
  2485. * @param string $command
  2486. * @param callable|int|null $callback
  2487. * @return void
  2488. * @static
  2489. */
  2490. public static function assertDispatched($command, $callback = null)
  2491. {
  2492. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2493. $instance->assertDispatched($command, $callback);
  2494. }
  2495. /**
  2496. * Determine if a job was dispatched based on a truth-test callback.
  2497. *
  2498. * @param string $command
  2499. * @param callable|null $callback
  2500. * @return void
  2501. * @static
  2502. */
  2503. public static function assertNotDispatched($command, $callback = null)
  2504. {
  2505. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2506. $instance->assertNotDispatched($command, $callback);
  2507. }
  2508. /**
  2509. * Get all of the jobs matching a truth-test callback.
  2510. *
  2511. * @param string $command
  2512. * @param callable|null $callback
  2513. * @return \Illuminate\Support\Collection
  2514. * @static
  2515. */
  2516. public static function dispatched($command, $callback = null)
  2517. {
  2518. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2519. return $instance->dispatched($command, $callback);
  2520. }
  2521. /**
  2522. * Determine if there are any stored commands for a given class.
  2523. *
  2524. * @param string $command
  2525. * @return bool
  2526. * @static
  2527. */
  2528. public static function hasDispatched($command)
  2529. {
  2530. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2531. return $instance->hasDispatched($command);
  2532. }
  2533. }
  2534. /**
  2535. *
  2536. *
  2537. * @see \Illuminate\Cache\CacheManager
  2538. * @see \Illuminate\Cache\Repository
  2539. */
  2540. class Cache {
  2541. /**
  2542. * Get a cache store instance by name.
  2543. *
  2544. * @param string|null $name
  2545. * @return \Illuminate\Contracts\Cache\Repository
  2546. * @static
  2547. */
  2548. public static function store($name = null)
  2549. {
  2550. /** @var \Illuminate\Cache\CacheManager $instance */
  2551. return $instance->store($name);
  2552. }
  2553. /**
  2554. * Get a cache driver instance.
  2555. *
  2556. * @param string|null $driver
  2557. * @return mixed
  2558. * @static
  2559. */
  2560. public static function driver($driver = null)
  2561. {
  2562. /** @var \Illuminate\Cache\CacheManager $instance */
  2563. return $instance->driver($driver);
  2564. }
  2565. /**
  2566. * Create a new cache repository with the given implementation.
  2567. *
  2568. * @param \Illuminate\Contracts\Cache\Store $store
  2569. * @return \Illuminate\Cache\Repository
  2570. * @static
  2571. */
  2572. public static function repository($store)
  2573. {
  2574. /** @var \Illuminate\Cache\CacheManager $instance */
  2575. return $instance->repository($store);
  2576. }
  2577. /**
  2578. * Get the default cache driver name.
  2579. *
  2580. * @return string
  2581. * @static
  2582. */
  2583. public static function getDefaultDriver()
  2584. {
  2585. /** @var \Illuminate\Cache\CacheManager $instance */
  2586. return $instance->getDefaultDriver();
  2587. }
  2588. /**
  2589. * Set the default cache driver name.
  2590. *
  2591. * @param string $name
  2592. * @return void
  2593. * @static
  2594. */
  2595. public static function setDefaultDriver($name)
  2596. {
  2597. /** @var \Illuminate\Cache\CacheManager $instance */
  2598. $instance->setDefaultDriver($name);
  2599. }
  2600. /**
  2601. * Register a custom driver creator Closure.
  2602. *
  2603. * @param string $driver
  2604. * @param \Closure $callback
  2605. * @return \Illuminate\Cache\CacheManager
  2606. * @static
  2607. */
  2608. public static function extend($driver, $callback)
  2609. {
  2610. /** @var \Illuminate\Cache\CacheManager $instance */
  2611. return $instance->extend($driver, $callback);
  2612. }
  2613. /**
  2614. * Determine if an item exists in the cache.
  2615. *
  2616. * @param string $key
  2617. * @return bool
  2618. * @static
  2619. */
  2620. public static function has($key)
  2621. {
  2622. /** @var \Illuminate\Cache\Repository $instance */
  2623. return $instance->has($key);
  2624. }
  2625. /**
  2626. * Retrieve an item from the cache by key.
  2627. *
  2628. * @param string $key
  2629. * @param mixed $default
  2630. * @return mixed
  2631. * @static
  2632. */
  2633. public static function get($key, $default = null)
  2634. {
  2635. /** @var \Illuminate\Cache\Repository $instance */
  2636. return $instance->get($key, $default);
  2637. }
  2638. /**
  2639. * Retrieve multiple items from the cache by key.
  2640. *
  2641. * Items not found in the cache will have a null value.
  2642. *
  2643. * @param array $keys
  2644. * @return array
  2645. * @static
  2646. */
  2647. public static function many($keys)
  2648. {
  2649. /** @var \Illuminate\Cache\Repository $instance */
  2650. return $instance->many($keys);
  2651. }
  2652. /**
  2653. * Obtains multiple cache items by their unique keys.
  2654. *
  2655. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  2656. * @param mixed $default Default value to return for keys that do not exist.
  2657. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  2658. * @throws \Psr\SimpleCache\InvalidArgumentException
  2659. * MUST be thrown if $keys is neither an array nor a Traversable,
  2660. * or if any of the $keys are not a legal value.
  2661. * @static
  2662. */
  2663. public static function getMultiple($keys, $default = null)
  2664. {
  2665. /** @var \Illuminate\Cache\Repository $instance */
  2666. return $instance->getMultiple($keys, $default);
  2667. }
  2668. /**
  2669. * Retrieve an item from the cache and delete it.
  2670. *
  2671. * @param string $key
  2672. * @param mixed $default
  2673. * @return mixed
  2674. * @static
  2675. */
  2676. public static function pull($key, $default = null)
  2677. {
  2678. /** @var \Illuminate\Cache\Repository $instance */
  2679. return $instance->pull($key, $default);
  2680. }
  2681. /**
  2682. * Store an item in the cache.
  2683. *
  2684. * @param string $key
  2685. * @param mixed $value
  2686. * @param \DateTimeInterface|\DateInterval|float|int|null $minutes
  2687. * @return void
  2688. * @static
  2689. */
  2690. public static function put($key, $value, $minutes = null)
  2691. {
  2692. /** @var \Illuminate\Cache\Repository $instance */
  2693. $instance->put($key, $value, $minutes);
  2694. }
  2695. /**
  2696. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  2697. *
  2698. * @param string $key The key of the item to store.
  2699. * @param mixed $value The value of the item to store, must be serializable.
  2700. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2701. * the driver supports TTL then the library may set a default value
  2702. * for it or let the driver take care of that.
  2703. * @return bool True on success and false on failure.
  2704. * @throws \Psr\SimpleCache\InvalidArgumentException
  2705. * MUST be thrown if the $key string is not a legal value.
  2706. * @static
  2707. */
  2708. public static function set($key, $value, $ttl = null)
  2709. {
  2710. /** @var \Illuminate\Cache\Repository $instance */
  2711. return $instance->set($key, $value, $ttl);
  2712. }
  2713. /**
  2714. * Store multiple items in the cache for a given number of minutes.
  2715. *
  2716. * @param array $values
  2717. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2718. * @return void
  2719. * @static
  2720. */
  2721. public static function putMany($values, $minutes)
  2722. {
  2723. /** @var \Illuminate\Cache\Repository $instance */
  2724. $instance->putMany($values, $minutes);
  2725. }
  2726. /**
  2727. * Persists a set of key => value pairs in the cache, with an optional TTL.
  2728. *
  2729. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  2730. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2731. * the driver supports TTL then the library may set a default value
  2732. * for it or let the driver take care of that.
  2733. * @return bool True on success and false on failure.
  2734. * @throws \Psr\SimpleCache\InvalidArgumentException
  2735. * MUST be thrown if $values is neither an array nor a Traversable,
  2736. * or if any of the $values are not a legal value.
  2737. * @static
  2738. */
  2739. public static function setMultiple($values, $ttl = null)
  2740. {
  2741. /** @var \Illuminate\Cache\Repository $instance */
  2742. return $instance->setMultiple($values, $ttl);
  2743. }
  2744. /**
  2745. * Store an item in the cache if the key does not exist.
  2746. *
  2747. * @param string $key
  2748. * @param mixed $value
  2749. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2750. * @return bool
  2751. * @static
  2752. */
  2753. public static function add($key, $value, $minutes)
  2754. {
  2755. /** @var \Illuminate\Cache\Repository $instance */
  2756. return $instance->add($key, $value, $minutes);
  2757. }
  2758. /**
  2759. * Increment the value of an item in the cache.
  2760. *
  2761. * @param string $key
  2762. * @param mixed $value
  2763. * @return int|bool
  2764. * @static
  2765. */
  2766. public static function increment($key, $value = 1)
  2767. {
  2768. /** @var \Illuminate\Cache\Repository $instance */
  2769. return $instance->increment($key, $value);
  2770. }
  2771. /**
  2772. * Decrement the value of an item in the cache.
  2773. *
  2774. * @param string $key
  2775. * @param mixed $value
  2776. * @return int|bool
  2777. * @static
  2778. */
  2779. public static function decrement($key, $value = 1)
  2780. {
  2781. /** @var \Illuminate\Cache\Repository $instance */
  2782. return $instance->decrement($key, $value);
  2783. }
  2784. /**
  2785. * Store an item in the cache indefinitely.
  2786. *
  2787. * @param string $key
  2788. * @param mixed $value
  2789. * @return void
  2790. * @static
  2791. */
  2792. public static function forever($key, $value)
  2793. {
  2794. /** @var \Illuminate\Cache\Repository $instance */
  2795. $instance->forever($key, $value);
  2796. }
  2797. /**
  2798. * Get an item from the cache, or store the default value.
  2799. *
  2800. * @param string $key
  2801. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2802. * @param \Closure $callback
  2803. * @return mixed
  2804. * @static
  2805. */
  2806. public static function remember($key, $minutes, $callback)
  2807. {
  2808. /** @var \Illuminate\Cache\Repository $instance */
  2809. return $instance->remember($key, $minutes, $callback);
  2810. }
  2811. /**
  2812. * Get an item from the cache, or store the default value forever.
  2813. *
  2814. * @param string $key
  2815. * @param \Closure $callback
  2816. * @return mixed
  2817. * @static
  2818. */
  2819. public static function sear($key, $callback)
  2820. {
  2821. /** @var \Illuminate\Cache\Repository $instance */
  2822. return $instance->sear($key, $callback);
  2823. }
  2824. /**
  2825. * Get an item from the cache, or store the default value forever.
  2826. *
  2827. * @param string $key
  2828. * @param \Closure $callback
  2829. * @return mixed
  2830. * @static
  2831. */
  2832. public static function rememberForever($key, $callback)
  2833. {
  2834. /** @var \Illuminate\Cache\Repository $instance */
  2835. return $instance->rememberForever($key, $callback);
  2836. }
  2837. /**
  2838. * Remove an item from the cache.
  2839. *
  2840. * @param string $key
  2841. * @return bool
  2842. * @static
  2843. */
  2844. public static function forget($key)
  2845. {
  2846. /** @var \Illuminate\Cache\Repository $instance */
  2847. return $instance->forget($key);
  2848. }
  2849. /**
  2850. * Delete an item from the cache by its unique key.
  2851. *
  2852. * @param string $key The unique cache key of the item to delete.
  2853. * @return bool True if the item was successfully removed. False if there was an error.
  2854. * @throws \Psr\SimpleCache\InvalidArgumentException
  2855. * MUST be thrown if the $key string is not a legal value.
  2856. * @static
  2857. */
  2858. public static function delete($key)
  2859. {
  2860. /** @var \Illuminate\Cache\Repository $instance */
  2861. return $instance->delete($key);
  2862. }
  2863. /**
  2864. * Deletes multiple cache items in a single operation.
  2865. *
  2866. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  2867. * @return bool True if the items were successfully removed. False if there was an error.
  2868. * @throws \Psr\SimpleCache\InvalidArgumentException
  2869. * MUST be thrown if $keys is neither an array nor a Traversable,
  2870. * or if any of the $keys are not a legal value.
  2871. * @static
  2872. */
  2873. public static function deleteMultiple($keys)
  2874. {
  2875. /** @var \Illuminate\Cache\Repository $instance */
  2876. return $instance->deleteMultiple($keys);
  2877. }
  2878. /**
  2879. * Wipes clean the entire cache's keys.
  2880. *
  2881. * @return bool True on success and false on failure.
  2882. * @static
  2883. */
  2884. public static function clear()
  2885. {
  2886. /** @var \Illuminate\Cache\Repository $instance */
  2887. return $instance->clear();
  2888. }
  2889. /**
  2890. * Begin executing a new tags operation if the store supports it.
  2891. *
  2892. * @param array|mixed $names
  2893. * @return \Illuminate\Cache\TaggedCache
  2894. * @throws \BadMethodCallException
  2895. * @static
  2896. */
  2897. public static function tags($names)
  2898. {
  2899. /** @var \Illuminate\Cache\Repository $instance */
  2900. return $instance->tags($names);
  2901. }
  2902. /**
  2903. * Get the default cache time.
  2904. *
  2905. * @return float|int
  2906. * @static
  2907. */
  2908. public static function getDefaultCacheTime()
  2909. {
  2910. /** @var \Illuminate\Cache\Repository $instance */
  2911. return $instance->getDefaultCacheTime();
  2912. }
  2913. /**
  2914. * Set the default cache time in minutes.
  2915. *
  2916. * @param float|int $minutes
  2917. * @return \Illuminate\Cache\Repository
  2918. * @static
  2919. */
  2920. public static function setDefaultCacheTime($minutes)
  2921. {
  2922. /** @var \Illuminate\Cache\Repository $instance */
  2923. return $instance->setDefaultCacheTime($minutes);
  2924. }
  2925. /**
  2926. * Get the cache store implementation.
  2927. *
  2928. * @return \Illuminate\Contracts\Cache\Store
  2929. * @static
  2930. */
  2931. public static function getStore()
  2932. {
  2933. /** @var \Illuminate\Cache\Repository $instance */
  2934. return $instance->getStore();
  2935. }
  2936. /**
  2937. * Set the event dispatcher instance.
  2938. *
  2939. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2940. * @return void
  2941. * @static
  2942. */
  2943. public static function setEventDispatcher($events)
  2944. {
  2945. /** @var \Illuminate\Cache\Repository $instance */
  2946. $instance->setEventDispatcher($events);
  2947. }
  2948. /**
  2949. * Determine if a cached value exists.
  2950. *
  2951. * @param string $key
  2952. * @return bool
  2953. * @static
  2954. */
  2955. public static function offsetExists($key)
  2956. {
  2957. /** @var \Illuminate\Cache\Repository $instance */
  2958. return $instance->offsetExists($key);
  2959. }
  2960. /**
  2961. * Retrieve an item from the cache by key.
  2962. *
  2963. * @param string $key
  2964. * @return mixed
  2965. * @static
  2966. */
  2967. public static function offsetGet($key)
  2968. {
  2969. /** @var \Illuminate\Cache\Repository $instance */
  2970. return $instance->offsetGet($key);
  2971. }
  2972. /**
  2973. * Store an item in the cache for the default time.
  2974. *
  2975. * @param string $key
  2976. * @param mixed $value
  2977. * @return void
  2978. * @static
  2979. */
  2980. public static function offsetSet($key, $value)
  2981. {
  2982. /** @var \Illuminate\Cache\Repository $instance */
  2983. $instance->offsetSet($key, $value);
  2984. }
  2985. /**
  2986. * Remove an item from the cache.
  2987. *
  2988. * @param string $key
  2989. * @return void
  2990. * @static
  2991. */
  2992. public static function offsetUnset($key)
  2993. {
  2994. /** @var \Illuminate\Cache\Repository $instance */
  2995. $instance->offsetUnset($key);
  2996. }
  2997. /**
  2998. * Register a custom macro.
  2999. *
  3000. * @param string $name
  3001. * @param object|callable $macro
  3002. * @return void
  3003. * @static
  3004. */
  3005. public static function macro($name, $macro)
  3006. {
  3007. \Illuminate\Cache\Repository::macro($name, $macro);
  3008. }
  3009. /**
  3010. * Mix another object into the class.
  3011. *
  3012. * @param object $mixin
  3013. * @return void
  3014. * @throws \ReflectionException
  3015. * @static
  3016. */
  3017. public static function mixin($mixin)
  3018. {
  3019. \Illuminate\Cache\Repository::mixin($mixin);
  3020. }
  3021. /**
  3022. * Checks if macro is registered.
  3023. *
  3024. * @param string $name
  3025. * @return bool
  3026. * @static
  3027. */
  3028. public static function hasMacro($name)
  3029. {
  3030. return \Illuminate\Cache\Repository::hasMacro($name);
  3031. }
  3032. /**
  3033. * Dynamically handle calls to the class.
  3034. *
  3035. * @param string $method
  3036. * @param array $parameters
  3037. * @return mixed
  3038. * @throws \BadMethodCallException
  3039. * @static
  3040. */
  3041. public static function macroCall($method, $parameters)
  3042. {
  3043. /** @var \Illuminate\Cache\Repository $instance */
  3044. return $instance->macroCall($method, $parameters);
  3045. }
  3046. /**
  3047. * Remove all items from the cache.
  3048. *
  3049. * @return bool
  3050. * @static
  3051. */
  3052. public static function flush()
  3053. {
  3054. /** @var \Illuminate\Cache\FileStore $instance */
  3055. return $instance->flush();
  3056. }
  3057. /**
  3058. * Get the Filesystem instance.
  3059. *
  3060. * @return \Illuminate\Filesystem\Filesystem
  3061. * @static
  3062. */
  3063. public static function getFilesystem()
  3064. {
  3065. /** @var \Illuminate\Cache\FileStore $instance */
  3066. return $instance->getFilesystem();
  3067. }
  3068. /**
  3069. * Get the working directory of the cache.
  3070. *
  3071. * @return string
  3072. * @static
  3073. */
  3074. public static function getDirectory()
  3075. {
  3076. /** @var \Illuminate\Cache\FileStore $instance */
  3077. return $instance->getDirectory();
  3078. }
  3079. /**
  3080. * Get the cache key prefix.
  3081. *
  3082. * @return string
  3083. * @static
  3084. */
  3085. public static function getPrefix()
  3086. {
  3087. /** @var \Illuminate\Cache\FileStore $instance */
  3088. return $instance->getPrefix();
  3089. }
  3090. }
  3091. /**
  3092. *
  3093. *
  3094. * @see \Illuminate\Config\Repository
  3095. */
  3096. class Config {
  3097. /**
  3098. * Determine if the given configuration value exists.
  3099. *
  3100. * @param string $key
  3101. * @return bool
  3102. * @static
  3103. */
  3104. public static function has($key)
  3105. {
  3106. /** @var \Illuminate\Config\Repository $instance */
  3107. return $instance->has($key);
  3108. }
  3109. /**
  3110. * Get the specified configuration value.
  3111. *
  3112. * @param array|string $key
  3113. * @param mixed $default
  3114. * @return mixed
  3115. * @static
  3116. */
  3117. public static function get($key, $default = null)
  3118. {
  3119. /** @var \Illuminate\Config\Repository $instance */
  3120. return $instance->get($key, $default);
  3121. }
  3122. /**
  3123. * Get many configuration values.
  3124. *
  3125. * @param array $keys
  3126. * @return array
  3127. * @static
  3128. */
  3129. public static function getMany($keys)
  3130. {
  3131. /** @var \Illuminate\Config\Repository $instance */
  3132. return $instance->getMany($keys);
  3133. }
  3134. /**
  3135. * Set a given configuration value.
  3136. *
  3137. * @param array|string $key
  3138. * @param mixed $value
  3139. * @return void
  3140. * @static
  3141. */
  3142. public static function set($key, $value = null)
  3143. {
  3144. /** @var \Illuminate\Config\Repository $instance */
  3145. $instance->set($key, $value);
  3146. }
  3147. /**
  3148. * Prepend a value onto an array configuration value.
  3149. *
  3150. * @param string $key
  3151. * @param mixed $value
  3152. * @return void
  3153. * @static
  3154. */
  3155. public static function prepend($key, $value)
  3156. {
  3157. /** @var \Illuminate\Config\Repository $instance */
  3158. $instance->prepend($key, $value);
  3159. }
  3160. /**
  3161. * Push a value onto an array configuration value.
  3162. *
  3163. * @param string $key
  3164. * @param mixed $value
  3165. * @return void
  3166. * @static
  3167. */
  3168. public static function push($key, $value)
  3169. {
  3170. /** @var \Illuminate\Config\Repository $instance */
  3171. $instance->push($key, $value);
  3172. }
  3173. /**
  3174. * Get all of the configuration items for the application.
  3175. *
  3176. * @return array
  3177. * @static
  3178. */
  3179. public static function all()
  3180. {
  3181. /** @var \Illuminate\Config\Repository $instance */
  3182. return $instance->all();
  3183. }
  3184. /**
  3185. * Determine if the given configuration option exists.
  3186. *
  3187. * @param string $key
  3188. * @return bool
  3189. * @static
  3190. */
  3191. public static function offsetExists($key)
  3192. {
  3193. /** @var \Illuminate\Config\Repository $instance */
  3194. return $instance->offsetExists($key);
  3195. }
  3196. /**
  3197. * Get a configuration option.
  3198. *
  3199. * @param string $key
  3200. * @return mixed
  3201. * @static
  3202. */
  3203. public static function offsetGet($key)
  3204. {
  3205. /** @var \Illuminate\Config\Repository $instance */
  3206. return $instance->offsetGet($key);
  3207. }
  3208. /**
  3209. * Set a configuration option.
  3210. *
  3211. * @param string $key
  3212. * @param mixed $value
  3213. * @return void
  3214. * @static
  3215. */
  3216. public static function offsetSet($key, $value)
  3217. {
  3218. /** @var \Illuminate\Config\Repository $instance */
  3219. $instance->offsetSet($key, $value);
  3220. }
  3221. /**
  3222. * Unset a configuration option.
  3223. *
  3224. * @param string $key
  3225. * @return void
  3226. * @static
  3227. */
  3228. public static function offsetUnset($key)
  3229. {
  3230. /** @var \Illuminate\Config\Repository $instance */
  3231. $instance->offsetUnset($key);
  3232. }
  3233. }
  3234. /**
  3235. *
  3236. *
  3237. * @see \Illuminate\Cookie\CookieJar
  3238. */
  3239. class Cookie {
  3240. /**
  3241. * Create a new cookie instance.
  3242. *
  3243. * @param string $name
  3244. * @param string $value
  3245. * @param int $minutes
  3246. * @param string $path
  3247. * @param string $domain
  3248. * @param bool|null $secure
  3249. * @param bool $httpOnly
  3250. * @param bool $raw
  3251. * @param string|null $sameSite
  3252. * @return \Symfony\Component\HttpFoundation\Cookie
  3253. * @static
  3254. */
  3255. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3256. {
  3257. /** @var \Illuminate\Cookie\CookieJar $instance */
  3258. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3259. }
  3260. /**
  3261. * Create a cookie that lasts "forever" (five years).
  3262. *
  3263. * @param string $name
  3264. * @param string $value
  3265. * @param string $path
  3266. * @param string $domain
  3267. * @param bool|null $secure
  3268. * @param bool $httpOnly
  3269. * @param bool $raw
  3270. * @param string|null $sameSite
  3271. * @return \Symfony\Component\HttpFoundation\Cookie
  3272. * @static
  3273. */
  3274. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3275. {
  3276. /** @var \Illuminate\Cookie\CookieJar $instance */
  3277. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3278. }
  3279. /**
  3280. * Expire the given cookie.
  3281. *
  3282. * @param string $name
  3283. * @param string $path
  3284. * @param string $domain
  3285. * @return \Symfony\Component\HttpFoundation\Cookie
  3286. * @static
  3287. */
  3288. public static function forget($name, $path = null, $domain = null)
  3289. {
  3290. /** @var \Illuminate\Cookie\CookieJar $instance */
  3291. return $instance->forget($name, $path, $domain);
  3292. }
  3293. /**
  3294. * Determine if a cookie has been queued.
  3295. *
  3296. * @param string $key
  3297. * @return bool
  3298. * @static
  3299. */
  3300. public static function hasQueued($key)
  3301. {
  3302. /** @var \Illuminate\Cookie\CookieJar $instance */
  3303. return $instance->hasQueued($key);
  3304. }
  3305. /**
  3306. * Get a queued cookie instance.
  3307. *
  3308. * @param string $key
  3309. * @param mixed $default
  3310. * @return \Symfony\Component\HttpFoundation\Cookie
  3311. * @static
  3312. */
  3313. public static function queued($key, $default = null)
  3314. {
  3315. /** @var \Illuminate\Cookie\CookieJar $instance */
  3316. return $instance->queued($key, $default);
  3317. }
  3318. /**
  3319. * Queue a cookie to send with the next response.
  3320. *
  3321. * @param array $parameters
  3322. * @return void
  3323. * @static
  3324. */
  3325. public static function queue($parameters = null)
  3326. {
  3327. /** @var \Illuminate\Cookie\CookieJar $instance */
  3328. $instance->queue($parameters);
  3329. }
  3330. /**
  3331. * Remove a cookie from the queue.
  3332. *
  3333. * @param string $name
  3334. * @return void
  3335. * @static
  3336. */
  3337. public static function unqueue($name)
  3338. {
  3339. /** @var \Illuminate\Cookie\CookieJar $instance */
  3340. $instance->unqueue($name);
  3341. }
  3342. /**
  3343. * Set the default path and domain for the jar.
  3344. *
  3345. * @param string $path
  3346. * @param string $domain
  3347. * @param bool $secure
  3348. * @param string $sameSite
  3349. * @return \Illuminate\Cookie\CookieJar
  3350. * @static
  3351. */
  3352. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3353. {
  3354. /** @var \Illuminate\Cookie\CookieJar $instance */
  3355. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3356. }
  3357. /**
  3358. * Get the cookies which have been queued for the next request.
  3359. *
  3360. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3361. * @static
  3362. */
  3363. public static function getQueuedCookies()
  3364. {
  3365. /** @var \Illuminate\Cookie\CookieJar $instance */
  3366. return $instance->getQueuedCookies();
  3367. }
  3368. }
  3369. /**
  3370. *
  3371. *
  3372. * @see \Illuminate\Encryption\Encrypter
  3373. */
  3374. class Crypt {
  3375. /**
  3376. * Determine if the given key and cipher combination is valid.
  3377. *
  3378. * @param string $key
  3379. * @param string $cipher
  3380. * @return bool
  3381. * @static
  3382. */
  3383. public static function supported($key, $cipher)
  3384. {
  3385. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3386. }
  3387. /**
  3388. * Create a new encryption key for the given cipher.
  3389. *
  3390. * @param string $cipher
  3391. * @return string
  3392. * @static
  3393. */
  3394. public static function generateKey($cipher)
  3395. {
  3396. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3397. }
  3398. /**
  3399. * Encrypt the given value.
  3400. *
  3401. * @param mixed $value
  3402. * @param bool $serialize
  3403. * @return string
  3404. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3405. * @static
  3406. */
  3407. public static function encrypt($value, $serialize = true)
  3408. {
  3409. /** @var \Illuminate\Encryption\Encrypter $instance */
  3410. return $instance->encrypt($value, $serialize);
  3411. }
  3412. /**
  3413. * Encrypt a string without serialization.
  3414. *
  3415. * @param string $value
  3416. * @return string
  3417. * @static
  3418. */
  3419. public static function encryptString($value)
  3420. {
  3421. /** @var \Illuminate\Encryption\Encrypter $instance */
  3422. return $instance->encryptString($value);
  3423. }
  3424. /**
  3425. * Decrypt the given value.
  3426. *
  3427. * @param mixed $payload
  3428. * @param bool $unserialize
  3429. * @return mixed
  3430. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3431. * @static
  3432. */
  3433. public static function decrypt($payload, $unserialize = true)
  3434. {
  3435. /** @var \Illuminate\Encryption\Encrypter $instance */
  3436. return $instance->decrypt($payload, $unserialize);
  3437. }
  3438. /**
  3439. * Decrypt the given string without unserialization.
  3440. *
  3441. * @param string $payload
  3442. * @return string
  3443. * @static
  3444. */
  3445. public static function decryptString($payload)
  3446. {
  3447. /** @var \Illuminate\Encryption\Encrypter $instance */
  3448. return $instance->decryptString($payload);
  3449. }
  3450. /**
  3451. * Get the encryption key.
  3452. *
  3453. * @return string
  3454. * @static
  3455. */
  3456. public static function getKey()
  3457. {
  3458. /** @var \Illuminate\Encryption\Encrypter $instance */
  3459. return $instance->getKey();
  3460. }
  3461. }
  3462. /**
  3463. *
  3464. *
  3465. * @see \Illuminate\Database\DatabaseManager
  3466. * @see \Illuminate\Database\Connection
  3467. */
  3468. class DB {
  3469. /**
  3470. * Get a database connection instance.
  3471. *
  3472. * @param string $name
  3473. * @return \Illuminate\Database\Connection
  3474. * @static
  3475. */
  3476. public static function connection($name = null)
  3477. {
  3478. /** @var \Illuminate\Database\DatabaseManager $instance */
  3479. return $instance->connection($name);
  3480. }
  3481. /**
  3482. * Disconnect from the given database and remove from local cache.
  3483. *
  3484. * @param string $name
  3485. * @return void
  3486. * @static
  3487. */
  3488. public static function purge($name = null)
  3489. {
  3490. /** @var \Illuminate\Database\DatabaseManager $instance */
  3491. $instance->purge($name);
  3492. }
  3493. /**
  3494. * Disconnect from the given database.
  3495. *
  3496. * @param string $name
  3497. * @return void
  3498. * @static
  3499. */
  3500. public static function disconnect($name = null)
  3501. {
  3502. /** @var \Illuminate\Database\DatabaseManager $instance */
  3503. $instance->disconnect($name);
  3504. }
  3505. /**
  3506. * Reconnect to the given database.
  3507. *
  3508. * @param string $name
  3509. * @return \Illuminate\Database\Connection
  3510. * @static
  3511. */
  3512. public static function reconnect($name = null)
  3513. {
  3514. /** @var \Illuminate\Database\DatabaseManager $instance */
  3515. return $instance->reconnect($name);
  3516. }
  3517. /**
  3518. * Get the default connection name.
  3519. *
  3520. * @return string
  3521. * @static
  3522. */
  3523. public static function getDefaultConnection()
  3524. {
  3525. /** @var \Illuminate\Database\DatabaseManager $instance */
  3526. return $instance->getDefaultConnection();
  3527. }
  3528. /**
  3529. * Set the default connection name.
  3530. *
  3531. * @param string $name
  3532. * @return void
  3533. * @static
  3534. */
  3535. public static function setDefaultConnection($name)
  3536. {
  3537. /** @var \Illuminate\Database\DatabaseManager $instance */
  3538. $instance->setDefaultConnection($name);
  3539. }
  3540. /**
  3541. * Get all of the support drivers.
  3542. *
  3543. * @return array
  3544. * @static
  3545. */
  3546. public static function supportedDrivers()
  3547. {
  3548. /** @var \Illuminate\Database\DatabaseManager $instance */
  3549. return $instance->supportedDrivers();
  3550. }
  3551. /**
  3552. * Get all of the drivers that are actually available.
  3553. *
  3554. * @return array
  3555. * @static
  3556. */
  3557. public static function availableDrivers()
  3558. {
  3559. /** @var \Illuminate\Database\DatabaseManager $instance */
  3560. return $instance->availableDrivers();
  3561. }
  3562. /**
  3563. * Register an extension connection resolver.
  3564. *
  3565. * @param string $name
  3566. * @param callable $resolver
  3567. * @return void
  3568. * @static
  3569. */
  3570. public static function extend($name, $resolver)
  3571. {
  3572. /** @var \Illuminate\Database\DatabaseManager $instance */
  3573. $instance->extend($name, $resolver);
  3574. }
  3575. /**
  3576. * Return all of the created connections.
  3577. *
  3578. * @return array
  3579. * @static
  3580. */
  3581. public static function getConnections()
  3582. {
  3583. /** @var \Illuminate\Database\DatabaseManager $instance */
  3584. return $instance->getConnections();
  3585. }
  3586. /**
  3587. * Get a schema builder instance for the connection.
  3588. *
  3589. * @return \Illuminate\Database\Schema\MySqlBuilder
  3590. * @static
  3591. */
  3592. public static function getSchemaBuilder()
  3593. {
  3594. /** @var \Illuminate\Database\MySqlConnection $instance */
  3595. return $instance->getSchemaBuilder();
  3596. }
  3597. /**
  3598. * Bind values to their parameters in the given statement.
  3599. *
  3600. * @param \PDOStatement $statement
  3601. * @param array $bindings
  3602. * @return void
  3603. * @static
  3604. */
  3605. public static function bindValues($statement, $bindings)
  3606. {
  3607. /** @var \Illuminate\Database\MySqlConnection $instance */
  3608. $instance->bindValues($statement, $bindings);
  3609. }
  3610. /**
  3611. * Set the query grammar to the default implementation.
  3612. *
  3613. * @return void
  3614. * @static
  3615. */
  3616. public static function useDefaultQueryGrammar()
  3617. {
  3618. //Method inherited from \Illuminate\Database\Connection
  3619. /** @var \Illuminate\Database\MySqlConnection $instance */
  3620. $instance->useDefaultQueryGrammar();
  3621. }
  3622. /**
  3623. * Set the schema grammar to the default implementation.
  3624. *
  3625. * @return void
  3626. * @static
  3627. */
  3628. public static function useDefaultSchemaGrammar()
  3629. {
  3630. //Method inherited from \Illuminate\Database\Connection
  3631. /** @var \Illuminate\Database\MySqlConnection $instance */
  3632. $instance->useDefaultSchemaGrammar();
  3633. }
  3634. /**
  3635. * Set the query post processor to the default implementation.
  3636. *
  3637. * @return void
  3638. * @static
  3639. */
  3640. public static function useDefaultPostProcessor()
  3641. {
  3642. //Method inherited from \Illuminate\Database\Connection
  3643. /** @var \Illuminate\Database\MySqlConnection $instance */
  3644. $instance->useDefaultPostProcessor();
  3645. }
  3646. /**
  3647. * Begin a fluent query against a database table.
  3648. *
  3649. * @param string $table
  3650. * @return \Illuminate\Database\Query\Builder
  3651. * @static
  3652. */
  3653. public static function table($table)
  3654. {
  3655. //Method inherited from \Illuminate\Database\Connection
  3656. /** @var \Illuminate\Database\MySqlConnection $instance */
  3657. return $instance->table($table);
  3658. }
  3659. /**
  3660. * Get a new query builder instance.
  3661. *
  3662. * @return \Illuminate\Database\Query\Builder
  3663. * @static
  3664. */
  3665. public static function query()
  3666. {
  3667. //Method inherited from \Illuminate\Database\Connection
  3668. /** @var \Illuminate\Database\MySqlConnection $instance */
  3669. return $instance->query();
  3670. }
  3671. /**
  3672. * Run a select statement and return a single result.
  3673. *
  3674. * @param string $query
  3675. * @param array $bindings
  3676. * @param bool $useReadPdo
  3677. * @return mixed
  3678. * @static
  3679. */
  3680. public static function selectOne($query, $bindings = array(), $useReadPdo = true)
  3681. {
  3682. //Method inherited from \Illuminate\Database\Connection
  3683. /** @var \Illuminate\Database\MySqlConnection $instance */
  3684. return $instance->selectOne($query, $bindings, $useReadPdo);
  3685. }
  3686. /**
  3687. * Run a select statement against the database.
  3688. *
  3689. * @param string $query
  3690. * @param array $bindings
  3691. * @return array
  3692. * @static
  3693. */
  3694. public static function selectFromWriteConnection($query, $bindings = array())
  3695. {
  3696. //Method inherited from \Illuminate\Database\Connection
  3697. /** @var \Illuminate\Database\MySqlConnection $instance */
  3698. return $instance->selectFromWriteConnection($query, $bindings);
  3699. }
  3700. /**
  3701. * Run a select statement against the database.
  3702. *
  3703. * @param string $query
  3704. * @param array $bindings
  3705. * @param bool $useReadPdo
  3706. * @return array
  3707. * @static
  3708. */
  3709. public static function select($query, $bindings = array(), $useReadPdo = true)
  3710. {
  3711. //Method inherited from \Illuminate\Database\Connection
  3712. /** @var \Illuminate\Database\MySqlConnection $instance */
  3713. return $instance->select($query, $bindings, $useReadPdo);
  3714. }
  3715. /**
  3716. * Run a select statement against the database and returns a generator.
  3717. *
  3718. * @param string $query
  3719. * @param array $bindings
  3720. * @param bool $useReadPdo
  3721. * @return \Generator
  3722. * @static
  3723. */
  3724. public static function cursor($query, $bindings = array(), $useReadPdo = true)
  3725. {
  3726. //Method inherited from \Illuminate\Database\Connection
  3727. /** @var \Illuminate\Database\MySqlConnection $instance */
  3728. return $instance->cursor($query, $bindings, $useReadPdo);
  3729. }
  3730. /**
  3731. * Run an insert statement against the database.
  3732. *
  3733. * @param string $query
  3734. * @param array $bindings
  3735. * @return bool
  3736. * @static
  3737. */
  3738. public static function insert($query, $bindings = array())
  3739. {
  3740. //Method inherited from \Illuminate\Database\Connection
  3741. /** @var \Illuminate\Database\MySqlConnection $instance */
  3742. return $instance->insert($query, $bindings);
  3743. }
  3744. /**
  3745. * Run an update statement against the database.
  3746. *
  3747. * @param string $query
  3748. * @param array $bindings
  3749. * @return int
  3750. * @static
  3751. */
  3752. public static function update($query, $bindings = array())
  3753. {
  3754. //Method inherited from \Illuminate\Database\Connection
  3755. /** @var \Illuminate\Database\MySqlConnection $instance */
  3756. return $instance->update($query, $bindings);
  3757. }
  3758. /**
  3759. * Run a delete statement against the database.
  3760. *
  3761. * @param string $query
  3762. * @param array $bindings
  3763. * @return int
  3764. * @static
  3765. */
  3766. public static function delete($query, $bindings = array())
  3767. {
  3768. //Method inherited from \Illuminate\Database\Connection
  3769. /** @var \Illuminate\Database\MySqlConnection $instance */
  3770. return $instance->delete($query, $bindings);
  3771. }
  3772. /**
  3773. * Execute an SQL statement and return the boolean result.
  3774. *
  3775. * @param string $query
  3776. * @param array $bindings
  3777. * @return bool
  3778. * @static
  3779. */
  3780. public static function statement($query, $bindings = array())
  3781. {
  3782. //Method inherited from \Illuminate\Database\Connection
  3783. /** @var \Illuminate\Database\MySqlConnection $instance */
  3784. return $instance->statement($query, $bindings);
  3785. }
  3786. /**
  3787. * Run an SQL statement and get the number of rows affected.
  3788. *
  3789. * @param string $query
  3790. * @param array $bindings
  3791. * @return int
  3792. * @static
  3793. */
  3794. public static function affectingStatement($query, $bindings = array())
  3795. {
  3796. //Method inherited from \Illuminate\Database\Connection
  3797. /** @var \Illuminate\Database\MySqlConnection $instance */
  3798. return $instance->affectingStatement($query, $bindings);
  3799. }
  3800. /**
  3801. * Run a raw, unprepared query against the PDO connection.
  3802. *
  3803. * @param string $query
  3804. * @return bool
  3805. * @static
  3806. */
  3807. public static function unprepared($query)
  3808. {
  3809. //Method inherited from \Illuminate\Database\Connection
  3810. /** @var \Illuminate\Database\MySqlConnection $instance */
  3811. return $instance->unprepared($query);
  3812. }
  3813. /**
  3814. * Execute the given callback in "dry run" mode.
  3815. *
  3816. * @param \Closure $callback
  3817. * @return array
  3818. * @static
  3819. */
  3820. public static function pretend($callback)
  3821. {
  3822. //Method inherited from \Illuminate\Database\Connection
  3823. /** @var \Illuminate\Database\MySqlConnection $instance */
  3824. return $instance->pretend($callback);
  3825. }
  3826. /**
  3827. * Prepare the query bindings for execution.
  3828. *
  3829. * @param array $bindings
  3830. * @return array
  3831. * @static
  3832. */
  3833. public static function prepareBindings($bindings)
  3834. {
  3835. //Method inherited from \Illuminate\Database\Connection
  3836. /** @var \Illuminate\Database\MySqlConnection $instance */
  3837. return $instance->prepareBindings($bindings);
  3838. }
  3839. /**
  3840. * Log a query in the connection's query log.
  3841. *
  3842. * @param string $query
  3843. * @param array $bindings
  3844. * @param float|null $time
  3845. * @return void
  3846. * @static
  3847. */
  3848. public static function logQuery($query, $bindings, $time = null)
  3849. {
  3850. //Method inherited from \Illuminate\Database\Connection
  3851. /** @var \Illuminate\Database\MySqlConnection $instance */
  3852. $instance->logQuery($query, $bindings, $time);
  3853. }
  3854. /**
  3855. * Register a database query listener with the connection.
  3856. *
  3857. * @param \Closure $callback
  3858. * @return void
  3859. * @static
  3860. */
  3861. public static function listen($callback)
  3862. {
  3863. //Method inherited from \Illuminate\Database\Connection
  3864. /** @var \Illuminate\Database\MySqlConnection $instance */
  3865. $instance->listen($callback);
  3866. }
  3867. /**
  3868. * Get a new raw query expression.
  3869. *
  3870. * @param mixed $value
  3871. * @return \Illuminate\Database\Query\Expression
  3872. * @static
  3873. */
  3874. public static function raw($value)
  3875. {
  3876. //Method inherited from \Illuminate\Database\Connection
  3877. /** @var \Illuminate\Database\MySqlConnection $instance */
  3878. return $instance->raw($value);
  3879. }
  3880. /**
  3881. * Indicate if any records have been modified.
  3882. *
  3883. * @param bool $value
  3884. * @return void
  3885. * @static
  3886. */
  3887. public static function recordsHaveBeenModified($value = true)
  3888. {
  3889. //Method inherited from \Illuminate\Database\Connection
  3890. /** @var \Illuminate\Database\MySqlConnection $instance */
  3891. $instance->recordsHaveBeenModified($value);
  3892. }
  3893. /**
  3894. * Is Doctrine available?
  3895. *
  3896. * @return bool
  3897. * @static
  3898. */
  3899. public static function isDoctrineAvailable()
  3900. {
  3901. //Method inherited from \Illuminate\Database\Connection
  3902. /** @var \Illuminate\Database\MySqlConnection $instance */
  3903. return $instance->isDoctrineAvailable();
  3904. }
  3905. /**
  3906. * Get a Doctrine Schema Column instance.
  3907. *
  3908. * @param string $table
  3909. * @param string $column
  3910. * @return \Doctrine\DBAL\Schema\Column
  3911. * @static
  3912. */
  3913. public static function getDoctrineColumn($table, $column)
  3914. {
  3915. //Method inherited from \Illuminate\Database\Connection
  3916. /** @var \Illuminate\Database\MySqlConnection $instance */
  3917. return $instance->getDoctrineColumn($table, $column);
  3918. }
  3919. /**
  3920. * Get the Doctrine DBAL schema manager for the connection.
  3921. *
  3922. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3923. * @static
  3924. */
  3925. public static function getDoctrineSchemaManager()
  3926. {
  3927. //Method inherited from \Illuminate\Database\Connection
  3928. /** @var \Illuminate\Database\MySqlConnection $instance */
  3929. return $instance->getDoctrineSchemaManager();
  3930. }
  3931. /**
  3932. * Get the Doctrine DBAL database connection instance.
  3933. *
  3934. * @return \Doctrine\DBAL\Connection
  3935. * @static
  3936. */
  3937. public static function getDoctrineConnection()
  3938. {
  3939. //Method inherited from \Illuminate\Database\Connection
  3940. /** @var \Illuminate\Database\MySqlConnection $instance */
  3941. return $instance->getDoctrineConnection();
  3942. }
  3943. /**
  3944. * Get the current PDO connection.
  3945. *
  3946. * @return \PDO
  3947. * @static
  3948. */
  3949. public static function getPdo()
  3950. {
  3951. //Method inherited from \Illuminate\Database\Connection
  3952. /** @var \Illuminate\Database\MySqlConnection $instance */
  3953. return $instance->getPdo();
  3954. }
  3955. /**
  3956. * Get the current PDO connection used for reading.
  3957. *
  3958. * @return \PDO
  3959. * @static
  3960. */
  3961. public static function getReadPdo()
  3962. {
  3963. //Method inherited from \Illuminate\Database\Connection
  3964. /** @var \Illuminate\Database\MySqlConnection $instance */
  3965. return $instance->getReadPdo();
  3966. }
  3967. /**
  3968. * Set the PDO connection.
  3969. *
  3970. * @param \PDO|\Closure|null $pdo
  3971. * @return \Illuminate\Database\MySqlConnection
  3972. * @static
  3973. */
  3974. public static function setPdo($pdo)
  3975. {
  3976. //Method inherited from \Illuminate\Database\Connection
  3977. /** @var \Illuminate\Database\MySqlConnection $instance */
  3978. return $instance->setPdo($pdo);
  3979. }
  3980. /**
  3981. * Set the PDO connection used for reading.
  3982. *
  3983. * @param \PDO|\Closure|null $pdo
  3984. * @return \Illuminate\Database\MySqlConnection
  3985. * @static
  3986. */
  3987. public static function setReadPdo($pdo)
  3988. {
  3989. //Method inherited from \Illuminate\Database\Connection
  3990. /** @var \Illuminate\Database\MySqlConnection $instance */
  3991. return $instance->setReadPdo($pdo);
  3992. }
  3993. /**
  3994. * Set the reconnect instance on the connection.
  3995. *
  3996. * @param callable $reconnector
  3997. * @return \Illuminate\Database\MySqlConnection
  3998. * @static
  3999. */
  4000. public static function setReconnector($reconnector)
  4001. {
  4002. //Method inherited from \Illuminate\Database\Connection
  4003. /** @var \Illuminate\Database\MySqlConnection $instance */
  4004. return $instance->setReconnector($reconnector);
  4005. }
  4006. /**
  4007. * Get the database connection name.
  4008. *
  4009. * @return string|null
  4010. * @static
  4011. */
  4012. public static function getName()
  4013. {
  4014. //Method inherited from \Illuminate\Database\Connection
  4015. /** @var \Illuminate\Database\MySqlConnection $instance */
  4016. return $instance->getName();
  4017. }
  4018. /**
  4019. * Get an option from the configuration options.
  4020. *
  4021. * @param string|null $option
  4022. * @return mixed
  4023. * @static
  4024. */
  4025. public static function getConfig($option = null)
  4026. {
  4027. //Method inherited from \Illuminate\Database\Connection
  4028. /** @var \Illuminate\Database\MySqlConnection $instance */
  4029. return $instance->getConfig($option);
  4030. }
  4031. /**
  4032. * Get the PDO driver name.
  4033. *
  4034. * @return string
  4035. * @static
  4036. */
  4037. public static function getDriverName()
  4038. {
  4039. //Method inherited from \Illuminate\Database\Connection
  4040. /** @var \Illuminate\Database\MySqlConnection $instance */
  4041. return $instance->getDriverName();
  4042. }
  4043. /**
  4044. * Get the query grammar used by the connection.
  4045. *
  4046. * @return \Illuminate\Database\Query\Grammars\Grammar
  4047. * @static
  4048. */
  4049. public static function getQueryGrammar()
  4050. {
  4051. //Method inherited from \Illuminate\Database\Connection
  4052. /** @var \Illuminate\Database\MySqlConnection $instance */
  4053. return $instance->getQueryGrammar();
  4054. }
  4055. /**
  4056. * Set the query grammar used by the connection.
  4057. *
  4058. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  4059. * @return void
  4060. * @static
  4061. */
  4062. public static function setQueryGrammar($grammar)
  4063. {
  4064. //Method inherited from \Illuminate\Database\Connection
  4065. /** @var \Illuminate\Database\MySqlConnection $instance */
  4066. $instance->setQueryGrammar($grammar);
  4067. }
  4068. /**
  4069. * Get the schema grammar used by the connection.
  4070. *
  4071. * @return \Illuminate\Database\Schema\Grammars\Grammar
  4072. * @static
  4073. */
  4074. public static function getSchemaGrammar()
  4075. {
  4076. //Method inherited from \Illuminate\Database\Connection
  4077. /** @var \Illuminate\Database\MySqlConnection $instance */
  4078. return $instance->getSchemaGrammar();
  4079. }
  4080. /**
  4081. * Set the schema grammar used by the connection.
  4082. *
  4083. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  4084. * @return void
  4085. * @static
  4086. */
  4087. public static function setSchemaGrammar($grammar)
  4088. {
  4089. //Method inherited from \Illuminate\Database\Connection
  4090. /** @var \Illuminate\Database\MySqlConnection $instance */
  4091. $instance->setSchemaGrammar($grammar);
  4092. }
  4093. /**
  4094. * Get the query post processor used by the connection.
  4095. *
  4096. * @return \Illuminate\Database\Query\Processors\Processor
  4097. * @static
  4098. */
  4099. public static function getPostProcessor()
  4100. {
  4101. //Method inherited from \Illuminate\Database\Connection
  4102. /** @var \Illuminate\Database\MySqlConnection $instance */
  4103. return $instance->getPostProcessor();
  4104. }
  4105. /**
  4106. * Set the query post processor used by the connection.
  4107. *
  4108. * @param \Illuminate\Database\Query\Processors\Processor $processor
  4109. * @return void
  4110. * @static
  4111. */
  4112. public static function setPostProcessor($processor)
  4113. {
  4114. //Method inherited from \Illuminate\Database\Connection
  4115. /** @var \Illuminate\Database\MySqlConnection $instance */
  4116. $instance->setPostProcessor($processor);
  4117. }
  4118. /**
  4119. * Get the event dispatcher used by the connection.
  4120. *
  4121. * @return \Illuminate\Contracts\Events\Dispatcher
  4122. * @static
  4123. */
  4124. public static function getEventDispatcher()
  4125. {
  4126. //Method inherited from \Illuminate\Database\Connection
  4127. /** @var \Illuminate\Database\MySqlConnection $instance */
  4128. return $instance->getEventDispatcher();
  4129. }
  4130. /**
  4131. * Set the event dispatcher instance on the connection.
  4132. *
  4133. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4134. * @return void
  4135. * @static
  4136. */
  4137. public static function setEventDispatcher($events)
  4138. {
  4139. //Method inherited from \Illuminate\Database\Connection
  4140. /** @var \Illuminate\Database\MySqlConnection $instance */
  4141. $instance->setEventDispatcher($events);
  4142. }
  4143. /**
  4144. * Unset the event dispatcher for this connection.
  4145. *
  4146. * @return void
  4147. * @static
  4148. */
  4149. public static function unsetEventDispatcher()
  4150. {
  4151. //Method inherited from \Illuminate\Database\Connection
  4152. /** @var \Illuminate\Database\MySqlConnection $instance */
  4153. $instance->unsetEventDispatcher();
  4154. }
  4155. /**
  4156. * Determine if the connection in a "dry run".
  4157. *
  4158. * @return bool
  4159. * @static
  4160. */
  4161. public static function pretending()
  4162. {
  4163. //Method inherited from \Illuminate\Database\Connection
  4164. /** @var \Illuminate\Database\MySqlConnection $instance */
  4165. return $instance->pretending();
  4166. }
  4167. /**
  4168. * Get the connection query log.
  4169. *
  4170. * @return array
  4171. * @static
  4172. */
  4173. public static function getQueryLog()
  4174. {
  4175. //Method inherited from \Illuminate\Database\Connection
  4176. /** @var \Illuminate\Database\MySqlConnection $instance */
  4177. return $instance->getQueryLog();
  4178. }
  4179. /**
  4180. * Clear the query log.
  4181. *
  4182. * @return void
  4183. * @static
  4184. */
  4185. public static function flushQueryLog()
  4186. {
  4187. //Method inherited from \Illuminate\Database\Connection
  4188. /** @var \Illuminate\Database\MySqlConnection $instance */
  4189. $instance->flushQueryLog();
  4190. }
  4191. /**
  4192. * Enable the query log on the connection.
  4193. *
  4194. * @return void
  4195. * @static
  4196. */
  4197. public static function enableQueryLog()
  4198. {
  4199. //Method inherited from \Illuminate\Database\Connection
  4200. /** @var \Illuminate\Database\MySqlConnection $instance */
  4201. $instance->enableQueryLog();
  4202. }
  4203. /**
  4204. * Disable the query log on the connection.
  4205. *
  4206. * @return void
  4207. * @static
  4208. */
  4209. public static function disableQueryLog()
  4210. {
  4211. //Method inherited from \Illuminate\Database\Connection
  4212. /** @var \Illuminate\Database\MySqlConnection $instance */
  4213. $instance->disableQueryLog();
  4214. }
  4215. /**
  4216. * Determine whether we're logging queries.
  4217. *
  4218. * @return bool
  4219. * @static
  4220. */
  4221. public static function logging()
  4222. {
  4223. //Method inherited from \Illuminate\Database\Connection
  4224. /** @var \Illuminate\Database\MySqlConnection $instance */
  4225. return $instance->logging();
  4226. }
  4227. /**
  4228. * Get the name of the connected database.
  4229. *
  4230. * @return string
  4231. * @static
  4232. */
  4233. public static function getDatabaseName()
  4234. {
  4235. //Method inherited from \Illuminate\Database\Connection
  4236. /** @var \Illuminate\Database\MySqlConnection $instance */
  4237. return $instance->getDatabaseName();
  4238. }
  4239. /**
  4240. * Set the name of the connected database.
  4241. *
  4242. * @param string $database
  4243. * @return string
  4244. * @static
  4245. */
  4246. public static function setDatabaseName($database)
  4247. {
  4248. //Method inherited from \Illuminate\Database\Connection
  4249. /** @var \Illuminate\Database\MySqlConnection $instance */
  4250. return $instance->setDatabaseName($database);
  4251. }
  4252. /**
  4253. * Get the table prefix for the connection.
  4254. *
  4255. * @return string
  4256. * @static
  4257. */
  4258. public static function getTablePrefix()
  4259. {
  4260. //Method inherited from \Illuminate\Database\Connection
  4261. /** @var \Illuminate\Database\MySqlConnection $instance */
  4262. return $instance->getTablePrefix();
  4263. }
  4264. /**
  4265. * Set the table prefix in use by the connection.
  4266. *
  4267. * @param string $prefix
  4268. * @return void
  4269. * @static
  4270. */
  4271. public static function setTablePrefix($prefix)
  4272. {
  4273. //Method inherited from \Illuminate\Database\Connection
  4274. /** @var \Illuminate\Database\MySqlConnection $instance */
  4275. $instance->setTablePrefix($prefix);
  4276. }
  4277. /**
  4278. * Set the table prefix and return the grammar.
  4279. *
  4280. * @param \Illuminate\Database\Grammar $grammar
  4281. * @return \Illuminate\Database\Grammar
  4282. * @static
  4283. */
  4284. public static function withTablePrefix($grammar)
  4285. {
  4286. //Method inherited from \Illuminate\Database\Connection
  4287. /** @var \Illuminate\Database\MySqlConnection $instance */
  4288. return $instance->withTablePrefix($grammar);
  4289. }
  4290. /**
  4291. * Register a connection resolver.
  4292. *
  4293. * @param string $driver
  4294. * @param \Closure $callback
  4295. * @return void
  4296. * @static
  4297. */
  4298. public static function resolverFor($driver, $callback)
  4299. {
  4300. //Method inherited from \Illuminate\Database\Connection
  4301. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  4302. }
  4303. /**
  4304. * Get the connection resolver for the given driver.
  4305. *
  4306. * @param string $driver
  4307. * @return mixed
  4308. * @static
  4309. */
  4310. public static function getResolver($driver)
  4311. {
  4312. //Method inherited from \Illuminate\Database\Connection
  4313. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  4314. }
  4315. /**
  4316. * Execute a Closure within a transaction.
  4317. *
  4318. * @param \Closure $callback
  4319. * @param int $attempts
  4320. * @return mixed
  4321. * @throws \Exception|\Throwable
  4322. * @static
  4323. */
  4324. public static function transaction($callback, $attempts = 1)
  4325. {
  4326. //Method inherited from \Illuminate\Database\Connection
  4327. /** @var \Illuminate\Database\MySqlConnection $instance */
  4328. return $instance->transaction($callback, $attempts);
  4329. }
  4330. /**
  4331. * Start a new database transaction.
  4332. *
  4333. * @return void
  4334. * @throws \Exception
  4335. * @static
  4336. */
  4337. public static function beginTransaction()
  4338. {
  4339. //Method inherited from \Illuminate\Database\Connection
  4340. /** @var \Illuminate\Database\MySqlConnection $instance */
  4341. $instance->beginTransaction();
  4342. }
  4343. /**
  4344. * Commit the active database transaction.
  4345. *
  4346. * @return void
  4347. * @static
  4348. */
  4349. public static function commit()
  4350. {
  4351. //Method inherited from \Illuminate\Database\Connection
  4352. /** @var \Illuminate\Database\MySqlConnection $instance */
  4353. $instance->commit();
  4354. }
  4355. /**
  4356. * Rollback the active database transaction.
  4357. *
  4358. * @param int|null $toLevel
  4359. * @return void
  4360. * @throws \Exception
  4361. * @static
  4362. */
  4363. public static function rollBack($toLevel = null)
  4364. {
  4365. //Method inherited from \Illuminate\Database\Connection
  4366. /** @var \Illuminate\Database\MySqlConnection $instance */
  4367. $instance->rollBack($toLevel);
  4368. }
  4369. /**
  4370. * Get the number of active transactions.
  4371. *
  4372. * @return int
  4373. * @static
  4374. */
  4375. public static function transactionLevel()
  4376. {
  4377. //Method inherited from \Illuminate\Database\Connection
  4378. /** @var \Illuminate\Database\MySqlConnection $instance */
  4379. return $instance->transactionLevel();
  4380. }
  4381. }
  4382. /**
  4383. *
  4384. *
  4385. * @see \Illuminate\Events\Dispatcher
  4386. */
  4387. class Event {
  4388. /**
  4389. * Register an event listener with the dispatcher.
  4390. *
  4391. * @param string|array $events
  4392. * @param mixed $listener
  4393. * @return void
  4394. * @static
  4395. */
  4396. public static function listen($events, $listener)
  4397. {
  4398. /** @var \Illuminate\Events\Dispatcher $instance */
  4399. $instance->listen($events, $listener);
  4400. }
  4401. /**
  4402. * Determine if a given event has listeners.
  4403. *
  4404. * @param string $eventName
  4405. * @return bool
  4406. * @static
  4407. */
  4408. public static function hasListeners($eventName)
  4409. {
  4410. /** @var \Illuminate\Events\Dispatcher $instance */
  4411. return $instance->hasListeners($eventName);
  4412. }
  4413. /**
  4414. * Register an event and payload to be fired later.
  4415. *
  4416. * @param string $event
  4417. * @param array $payload
  4418. * @return void
  4419. * @static
  4420. */
  4421. public static function push($event, $payload = array())
  4422. {
  4423. /** @var \Illuminate\Events\Dispatcher $instance */
  4424. $instance->push($event, $payload);
  4425. }
  4426. /**
  4427. * Flush a set of pushed events.
  4428. *
  4429. * @param string $event
  4430. * @return void
  4431. * @static
  4432. */
  4433. public static function flush($event)
  4434. {
  4435. /** @var \Illuminate\Events\Dispatcher $instance */
  4436. $instance->flush($event);
  4437. }
  4438. /**
  4439. * Register an event subscriber with the dispatcher.
  4440. *
  4441. * @param object|string $subscriber
  4442. * @return void
  4443. * @static
  4444. */
  4445. public static function subscribe($subscriber)
  4446. {
  4447. /** @var \Illuminate\Events\Dispatcher $instance */
  4448. $instance->subscribe($subscriber);
  4449. }
  4450. /**
  4451. * Fire an event until the first non-null response is returned.
  4452. *
  4453. * @param string|object $event
  4454. * @param mixed $payload
  4455. * @return array|null
  4456. * @static
  4457. */
  4458. public static function until($event, $payload = array())
  4459. {
  4460. /** @var \Illuminate\Events\Dispatcher $instance */
  4461. return $instance->until($event, $payload);
  4462. }
  4463. /**
  4464. * Fire an event and call the listeners.
  4465. *
  4466. * @param string|object $event
  4467. * @param mixed $payload
  4468. * @param bool $halt
  4469. * @return array|null
  4470. * @static
  4471. */
  4472. public static function fire($event, $payload = array(), $halt = false)
  4473. {
  4474. /** @var \Illuminate\Events\Dispatcher $instance */
  4475. return $instance->fire($event, $payload, $halt);
  4476. }
  4477. /**
  4478. * Fire an event and call the listeners.
  4479. *
  4480. * @param string|object $event
  4481. * @param mixed $payload
  4482. * @param bool $halt
  4483. * @return array|null
  4484. * @static
  4485. */
  4486. public static function dispatch($event, $payload = array(), $halt = false)
  4487. {
  4488. /** @var \Illuminate\Events\Dispatcher $instance */
  4489. return $instance->dispatch($event, $payload, $halt);
  4490. }
  4491. /**
  4492. * Get all of the listeners for a given event name.
  4493. *
  4494. * @param string $eventName
  4495. * @return array
  4496. * @static
  4497. */
  4498. public static function getListeners($eventName)
  4499. {
  4500. /** @var \Illuminate\Events\Dispatcher $instance */
  4501. return $instance->getListeners($eventName);
  4502. }
  4503. /**
  4504. * Register an event listener with the dispatcher.
  4505. *
  4506. * @param \Closure|string $listener
  4507. * @param bool $wildcard
  4508. * @return \Closure
  4509. * @static
  4510. */
  4511. public static function makeListener($listener, $wildcard = false)
  4512. {
  4513. /** @var \Illuminate\Events\Dispatcher $instance */
  4514. return $instance->makeListener($listener, $wildcard);
  4515. }
  4516. /**
  4517. * Create a class based listener using the IoC container.
  4518. *
  4519. * @param string $listener
  4520. * @param bool $wildcard
  4521. * @return \Closure
  4522. * @static
  4523. */
  4524. public static function createClassListener($listener, $wildcard = false)
  4525. {
  4526. /** @var \Illuminate\Events\Dispatcher $instance */
  4527. return $instance->createClassListener($listener, $wildcard);
  4528. }
  4529. /**
  4530. * Remove a set of listeners from the dispatcher.
  4531. *
  4532. * @param string $event
  4533. * @return void
  4534. * @static
  4535. */
  4536. public static function forget($event)
  4537. {
  4538. /** @var \Illuminate\Events\Dispatcher $instance */
  4539. $instance->forget($event);
  4540. }
  4541. /**
  4542. * Forget all of the pushed listeners.
  4543. *
  4544. * @return void
  4545. * @static
  4546. */
  4547. public static function forgetPushed()
  4548. {
  4549. /** @var \Illuminate\Events\Dispatcher $instance */
  4550. $instance->forgetPushed();
  4551. }
  4552. /**
  4553. * Set the queue resolver implementation.
  4554. *
  4555. * @param callable $resolver
  4556. * @return \Illuminate\Events\Dispatcher
  4557. * @static
  4558. */
  4559. public static function setQueueResolver($resolver)
  4560. {
  4561. /** @var \Illuminate\Events\Dispatcher $instance */
  4562. return $instance->setQueueResolver($resolver);
  4563. }
  4564. /**
  4565. * Assert if an event was dispatched based on a truth-test callback.
  4566. *
  4567. * @param string $event
  4568. * @param callable|int|null $callback
  4569. * @return void
  4570. * @static
  4571. */
  4572. public static function assertDispatched($event, $callback = null)
  4573. {
  4574. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4575. $instance->assertDispatched($event, $callback);
  4576. }
  4577. /**
  4578. * Assert if a event was dispatched a number of times.
  4579. *
  4580. * @param string $event
  4581. * @param int $times
  4582. * @return void
  4583. * @static
  4584. */
  4585. public static function assertDispatchedTimes($event, $times = 1)
  4586. {
  4587. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4588. $instance->assertDispatchedTimes($event, $times);
  4589. }
  4590. /**
  4591. * Determine if an event was dispatched based on a truth-test callback.
  4592. *
  4593. * @param string $event
  4594. * @param callable|null $callback
  4595. * @return void
  4596. * @static
  4597. */
  4598. public static function assertNotDispatched($event, $callback = null)
  4599. {
  4600. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4601. $instance->assertNotDispatched($event, $callback);
  4602. }
  4603. /**
  4604. * Get all of the events matching a truth-test callback.
  4605. *
  4606. * @param string $event
  4607. * @param callable|null $callback
  4608. * @return \Illuminate\Support\Collection
  4609. * @static
  4610. */
  4611. public static function dispatched($event, $callback = null)
  4612. {
  4613. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4614. return $instance->dispatched($event, $callback);
  4615. }
  4616. /**
  4617. * Determine if the given event has been dispatched.
  4618. *
  4619. * @param string $event
  4620. * @return bool
  4621. * @static
  4622. */
  4623. public static function hasDispatched($event)
  4624. {
  4625. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4626. return $instance->hasDispatched($event);
  4627. }
  4628. }
  4629. /**
  4630. *
  4631. *
  4632. * @see \Illuminate\Filesystem\Filesystem
  4633. */
  4634. class File {
  4635. /**
  4636. * Determine if a file or directory exists.
  4637. *
  4638. * @param string $path
  4639. * @return bool
  4640. * @static
  4641. */
  4642. public static function exists($path)
  4643. {
  4644. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4645. return $instance->exists($path);
  4646. }
  4647. /**
  4648. * Get the contents of a file.
  4649. *
  4650. * @param string $path
  4651. * @param bool $lock
  4652. * @return string
  4653. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4654. * @static
  4655. */
  4656. public static function get($path, $lock = false)
  4657. {
  4658. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4659. return $instance->get($path, $lock);
  4660. }
  4661. /**
  4662. * Get contents of a file with shared access.
  4663. *
  4664. * @param string $path
  4665. * @return string
  4666. * @static
  4667. */
  4668. public static function sharedGet($path)
  4669. {
  4670. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4671. return $instance->sharedGet($path);
  4672. }
  4673. /**
  4674. * Get the returned value of a file.
  4675. *
  4676. * @param string $path
  4677. * @return mixed
  4678. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4679. * @static
  4680. */
  4681. public static function getRequire($path)
  4682. {
  4683. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4684. return $instance->getRequire($path);
  4685. }
  4686. /**
  4687. * Require the given file once.
  4688. *
  4689. * @param string $file
  4690. * @return mixed
  4691. * @static
  4692. */
  4693. public static function requireOnce($file)
  4694. {
  4695. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4696. return $instance->requireOnce($file);
  4697. }
  4698. /**
  4699. * Get the MD5 hash of the file at the given path.
  4700. *
  4701. * @param string $path
  4702. * @return string
  4703. * @static
  4704. */
  4705. public static function hash($path)
  4706. {
  4707. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4708. return $instance->hash($path);
  4709. }
  4710. /**
  4711. * Write the contents of a file.
  4712. *
  4713. * @param string $path
  4714. * @param string $contents
  4715. * @param bool $lock
  4716. * @return int
  4717. * @static
  4718. */
  4719. public static function put($path, $contents, $lock = false)
  4720. {
  4721. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4722. return $instance->put($path, $contents, $lock);
  4723. }
  4724. /**
  4725. * Prepend to a file.
  4726. *
  4727. * @param string $path
  4728. * @param string $data
  4729. * @return int
  4730. * @static
  4731. */
  4732. public static function prepend($path, $data)
  4733. {
  4734. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4735. return $instance->prepend($path, $data);
  4736. }
  4737. /**
  4738. * Append to a file.
  4739. *
  4740. * @param string $path
  4741. * @param string $data
  4742. * @return int
  4743. * @static
  4744. */
  4745. public static function append($path, $data)
  4746. {
  4747. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4748. return $instance->append($path, $data);
  4749. }
  4750. /**
  4751. * Get or set UNIX mode of a file or directory.
  4752. *
  4753. * @param string $path
  4754. * @param int $mode
  4755. * @return mixed
  4756. * @static
  4757. */
  4758. public static function chmod($path, $mode = null)
  4759. {
  4760. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4761. return $instance->chmod($path, $mode);
  4762. }
  4763. /**
  4764. * Delete the file at a given path.
  4765. *
  4766. * @param string|array $paths
  4767. * @return bool
  4768. * @static
  4769. */
  4770. public static function delete($paths)
  4771. {
  4772. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4773. return $instance->delete($paths);
  4774. }
  4775. /**
  4776. * Move a file to a new location.
  4777. *
  4778. * @param string $path
  4779. * @param string $target
  4780. * @return bool
  4781. * @static
  4782. */
  4783. public static function move($path, $target)
  4784. {
  4785. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4786. return $instance->move($path, $target);
  4787. }
  4788. /**
  4789. * Copy a file to a new location.
  4790. *
  4791. * @param string $path
  4792. * @param string $target
  4793. * @return bool
  4794. * @static
  4795. */
  4796. public static function copy($path, $target)
  4797. {
  4798. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4799. return $instance->copy($path, $target);
  4800. }
  4801. /**
  4802. * Create a hard link to the target file or directory.
  4803. *
  4804. * @param string $target
  4805. * @param string $link
  4806. * @return void
  4807. * @static
  4808. */
  4809. public static function link($target, $link)
  4810. {
  4811. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4812. $instance->link($target, $link);
  4813. }
  4814. /**
  4815. * Extract the file name from a file path.
  4816. *
  4817. * @param string $path
  4818. * @return string
  4819. * @static
  4820. */
  4821. public static function name($path)
  4822. {
  4823. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4824. return $instance->name($path);
  4825. }
  4826. /**
  4827. * Extract the trailing name component from a file path.
  4828. *
  4829. * @param string $path
  4830. * @return string
  4831. * @static
  4832. */
  4833. public static function basename($path)
  4834. {
  4835. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4836. return $instance->basename($path);
  4837. }
  4838. /**
  4839. * Extract the parent directory from a file path.
  4840. *
  4841. * @param string $path
  4842. * @return string
  4843. * @static
  4844. */
  4845. public static function dirname($path)
  4846. {
  4847. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4848. return $instance->dirname($path);
  4849. }
  4850. /**
  4851. * Extract the file extension from a file path.
  4852. *
  4853. * @param string $path
  4854. * @return string
  4855. * @static
  4856. */
  4857. public static function extension($path)
  4858. {
  4859. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4860. return $instance->extension($path);
  4861. }
  4862. /**
  4863. * Get the file type of a given file.
  4864. *
  4865. * @param string $path
  4866. * @return string
  4867. * @static
  4868. */
  4869. public static function type($path)
  4870. {
  4871. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4872. return $instance->type($path);
  4873. }
  4874. /**
  4875. * Get the mime-type of a given file.
  4876. *
  4877. * @param string $path
  4878. * @return string|false
  4879. * @static
  4880. */
  4881. public static function mimeType($path)
  4882. {
  4883. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4884. return $instance->mimeType($path);
  4885. }
  4886. /**
  4887. * Get the file size of a given file.
  4888. *
  4889. * @param string $path
  4890. * @return int
  4891. * @static
  4892. */
  4893. public static function size($path)
  4894. {
  4895. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4896. return $instance->size($path);
  4897. }
  4898. /**
  4899. * Get the file's last modification time.
  4900. *
  4901. * @param string $path
  4902. * @return int
  4903. * @static
  4904. */
  4905. public static function lastModified($path)
  4906. {
  4907. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4908. return $instance->lastModified($path);
  4909. }
  4910. /**
  4911. * Determine if the given path is a directory.
  4912. *
  4913. * @param string $directory
  4914. * @return bool
  4915. * @static
  4916. */
  4917. public static function isDirectory($directory)
  4918. {
  4919. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4920. return $instance->isDirectory($directory);
  4921. }
  4922. /**
  4923. * Determine if the given path is readable.
  4924. *
  4925. * @param string $path
  4926. * @return bool
  4927. * @static
  4928. */
  4929. public static function isReadable($path)
  4930. {
  4931. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4932. return $instance->isReadable($path);
  4933. }
  4934. /**
  4935. * Determine if the given path is writable.
  4936. *
  4937. * @param string $path
  4938. * @return bool
  4939. * @static
  4940. */
  4941. public static function isWritable($path)
  4942. {
  4943. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4944. return $instance->isWritable($path);
  4945. }
  4946. /**
  4947. * Determine if the given path is a file.
  4948. *
  4949. * @param string $file
  4950. * @return bool
  4951. * @static
  4952. */
  4953. public static function isFile($file)
  4954. {
  4955. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4956. return $instance->isFile($file);
  4957. }
  4958. /**
  4959. * Find path names matching a given pattern.
  4960. *
  4961. * @param string $pattern
  4962. * @param int $flags
  4963. * @return array
  4964. * @static
  4965. */
  4966. public static function glob($pattern, $flags = 0)
  4967. {
  4968. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4969. return $instance->glob($pattern, $flags);
  4970. }
  4971. /**
  4972. * Get an array of all files in a directory.
  4973. *
  4974. * @param string $directory
  4975. * @param bool $hidden
  4976. * @return \Symfony\Component\Finder\SplFileInfo[]
  4977. * @static
  4978. */
  4979. public static function files($directory, $hidden = false)
  4980. {
  4981. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4982. return $instance->files($directory, $hidden);
  4983. }
  4984. /**
  4985. * Get all of the files from the given directory (recursive).
  4986. *
  4987. * @param string $directory
  4988. * @param bool $hidden
  4989. * @return \Symfony\Component\Finder\SplFileInfo[]
  4990. * @static
  4991. */
  4992. public static function allFiles($directory, $hidden = false)
  4993. {
  4994. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4995. return $instance->allFiles($directory, $hidden);
  4996. }
  4997. /**
  4998. * Get all of the directories within a given directory.
  4999. *
  5000. * @param string $directory
  5001. * @return array
  5002. * @static
  5003. */
  5004. public static function directories($directory)
  5005. {
  5006. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5007. return $instance->directories($directory);
  5008. }
  5009. /**
  5010. * Create a directory.
  5011. *
  5012. * @param string $path
  5013. * @param int $mode
  5014. * @param bool $recursive
  5015. * @param bool $force
  5016. * @return bool
  5017. * @static
  5018. */
  5019. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  5020. {
  5021. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5022. return $instance->makeDirectory($path, $mode, $recursive, $force);
  5023. }
  5024. /**
  5025. * Move a directory.
  5026. *
  5027. * @param string $from
  5028. * @param string $to
  5029. * @param bool $overwrite
  5030. * @return bool
  5031. * @static
  5032. */
  5033. public static function moveDirectory($from, $to, $overwrite = false)
  5034. {
  5035. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5036. return $instance->moveDirectory($from, $to, $overwrite);
  5037. }
  5038. /**
  5039. * Copy a directory from one location to another.
  5040. *
  5041. * @param string $directory
  5042. * @param string $destination
  5043. * @param int $options
  5044. * @return bool
  5045. * @static
  5046. */
  5047. public static function copyDirectory($directory, $destination, $options = null)
  5048. {
  5049. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5050. return $instance->copyDirectory($directory, $destination, $options);
  5051. }
  5052. /**
  5053. * Recursively delete a directory.
  5054. *
  5055. * The directory itself may be optionally preserved.
  5056. *
  5057. * @param string $directory
  5058. * @param bool $preserve
  5059. * @return bool
  5060. * @static
  5061. */
  5062. public static function deleteDirectory($directory, $preserve = false)
  5063. {
  5064. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5065. return $instance->deleteDirectory($directory, $preserve);
  5066. }
  5067. /**
  5068. * Remove all of the directories within a given directory.
  5069. *
  5070. * @param string $directory
  5071. * @return bool
  5072. * @static
  5073. */
  5074. public static function deleteDirectories($directory)
  5075. {
  5076. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5077. return $instance->deleteDirectories($directory);
  5078. }
  5079. /**
  5080. * Empty the specified directory of all files and folders.
  5081. *
  5082. * @param string $directory
  5083. * @return bool
  5084. * @static
  5085. */
  5086. public static function cleanDirectory($directory)
  5087. {
  5088. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5089. return $instance->cleanDirectory($directory);
  5090. }
  5091. /**
  5092. * Register a custom macro.
  5093. *
  5094. * @param string $name
  5095. * @param object|callable $macro
  5096. * @return void
  5097. * @static
  5098. */
  5099. public static function macro($name, $macro)
  5100. {
  5101. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  5102. }
  5103. /**
  5104. * Mix another object into the class.
  5105. *
  5106. * @param object $mixin
  5107. * @return void
  5108. * @throws \ReflectionException
  5109. * @static
  5110. */
  5111. public static function mixin($mixin)
  5112. {
  5113. \Illuminate\Filesystem\Filesystem::mixin($mixin);
  5114. }
  5115. /**
  5116. * Checks if macro is registered.
  5117. *
  5118. * @param string $name
  5119. * @return bool
  5120. * @static
  5121. */
  5122. public static function hasMacro($name)
  5123. {
  5124. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  5125. }
  5126. }
  5127. /**
  5128. *
  5129. *
  5130. * @see \Illuminate\Contracts\Auth\Access\Gate
  5131. */
  5132. class Gate {
  5133. /**
  5134. * Determine if a given ability has been defined.
  5135. *
  5136. * @param string|array $ability
  5137. * @return bool
  5138. * @static
  5139. */
  5140. public static function has($ability)
  5141. {
  5142. /** @var \Illuminate\Auth\Access\Gate $instance */
  5143. return $instance->has($ability);
  5144. }
  5145. /**
  5146. * Define a new ability.
  5147. *
  5148. * @param string $ability
  5149. * @param callable|string $callback
  5150. * @return \Illuminate\Auth\Access\Gate
  5151. * @throws \InvalidArgumentException
  5152. * @static
  5153. */
  5154. public static function define($ability, $callback)
  5155. {
  5156. /** @var \Illuminate\Auth\Access\Gate $instance */
  5157. return $instance->define($ability, $callback);
  5158. }
  5159. /**
  5160. * Define abilities for a resource.
  5161. *
  5162. * @param string $name
  5163. * @param string $class
  5164. * @param array|null $abilities
  5165. * @return \Illuminate\Auth\Access\Gate
  5166. * @static
  5167. */
  5168. public static function resource($name, $class, $abilities = null)
  5169. {
  5170. /** @var \Illuminate\Auth\Access\Gate $instance */
  5171. return $instance->resource($name, $class, $abilities);
  5172. }
  5173. /**
  5174. * Define a policy class for a given class type.
  5175. *
  5176. * @param string $class
  5177. * @param string $policy
  5178. * @return \Illuminate\Auth\Access\Gate
  5179. * @static
  5180. */
  5181. public static function policy($class, $policy)
  5182. {
  5183. /** @var \Illuminate\Auth\Access\Gate $instance */
  5184. return $instance->policy($class, $policy);
  5185. }
  5186. /**
  5187. * Register a callback to run before all Gate checks.
  5188. *
  5189. * @param callable $callback
  5190. * @return \Illuminate\Auth\Access\Gate
  5191. * @static
  5192. */
  5193. public static function before($callback)
  5194. {
  5195. /** @var \Illuminate\Auth\Access\Gate $instance */
  5196. return $instance->before($callback);
  5197. }
  5198. /**
  5199. * Register a callback to run after all Gate checks.
  5200. *
  5201. * @param callable $callback
  5202. * @return \Illuminate\Auth\Access\Gate
  5203. * @static
  5204. */
  5205. public static function after($callback)
  5206. {
  5207. /** @var \Illuminate\Auth\Access\Gate $instance */
  5208. return $instance->after($callback);
  5209. }
  5210. /**
  5211. * Determine if the given ability should be granted for the current user.
  5212. *
  5213. * @param string $ability
  5214. * @param array|mixed $arguments
  5215. * @return bool
  5216. * @static
  5217. */
  5218. public static function allows($ability, $arguments = array())
  5219. {
  5220. /** @var \Illuminate\Auth\Access\Gate $instance */
  5221. return $instance->allows($ability, $arguments);
  5222. }
  5223. /**
  5224. * Determine if the given ability should be denied for the current user.
  5225. *
  5226. * @param string $ability
  5227. * @param array|mixed $arguments
  5228. * @return bool
  5229. * @static
  5230. */
  5231. public static function denies($ability, $arguments = array())
  5232. {
  5233. /** @var \Illuminate\Auth\Access\Gate $instance */
  5234. return $instance->denies($ability, $arguments);
  5235. }
  5236. /**
  5237. * Determine if all of the given abilities should be granted for the current user.
  5238. *
  5239. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5240. * @param array|mixed $arguments
  5241. * @return bool
  5242. * @static
  5243. */
  5244. public static function check($abilities, $arguments = array())
  5245. {
  5246. /** @var \Illuminate\Auth\Access\Gate $instance */
  5247. return $instance->check($abilities, $arguments);
  5248. }
  5249. /**
  5250. * Determine if any one of the given abilities should be granted for the current user.
  5251. *
  5252. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5253. * @param array|mixed $arguments
  5254. * @return bool
  5255. * @static
  5256. */
  5257. public static function any($abilities, $arguments = array())
  5258. {
  5259. /** @var \Illuminate\Auth\Access\Gate $instance */
  5260. return $instance->any($abilities, $arguments);
  5261. }
  5262. /**
  5263. * Determine if the given ability should be granted for the current user.
  5264. *
  5265. * @param string $ability
  5266. * @param array|mixed $arguments
  5267. * @return \Illuminate\Auth\Access\Response
  5268. * @throws \Illuminate\Auth\Access\AuthorizationException
  5269. * @static
  5270. */
  5271. public static function authorize($ability, $arguments = array())
  5272. {
  5273. /** @var \Illuminate\Auth\Access\Gate $instance */
  5274. return $instance->authorize($ability, $arguments);
  5275. }
  5276. /**
  5277. * Get a policy instance for a given class.
  5278. *
  5279. * @param object|string $class
  5280. * @return mixed
  5281. * @static
  5282. */
  5283. public static function getPolicyFor($class)
  5284. {
  5285. /** @var \Illuminate\Auth\Access\Gate $instance */
  5286. return $instance->getPolicyFor($class);
  5287. }
  5288. /**
  5289. * Build a policy class instance of the given type.
  5290. *
  5291. * @param object|string $class
  5292. * @return mixed
  5293. * @static
  5294. */
  5295. public static function resolvePolicy($class)
  5296. {
  5297. /** @var \Illuminate\Auth\Access\Gate $instance */
  5298. return $instance->resolvePolicy($class);
  5299. }
  5300. /**
  5301. * Get a gate instance for the given user.
  5302. *
  5303. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  5304. * @return static
  5305. * @static
  5306. */
  5307. public static function forUser($user)
  5308. {
  5309. /** @var \Illuminate\Auth\Access\Gate $instance */
  5310. return $instance->forUser($user);
  5311. }
  5312. /**
  5313. * Get all of the defined abilities.
  5314. *
  5315. * @return array
  5316. * @static
  5317. */
  5318. public static function abilities()
  5319. {
  5320. /** @var \Illuminate\Auth\Access\Gate $instance */
  5321. return $instance->abilities();
  5322. }
  5323. /**
  5324. * Get all of the defined policies.
  5325. *
  5326. * @return array
  5327. * @static
  5328. */
  5329. public static function policies()
  5330. {
  5331. /** @var \Illuminate\Auth\Access\Gate $instance */
  5332. return $instance->policies();
  5333. }
  5334. }
  5335. /**
  5336. *
  5337. *
  5338. * @see \Illuminate\Hashing\HashManager
  5339. */
  5340. class Hash {
  5341. /**
  5342. * Create an instance of the Bcrypt hash Driver.
  5343. *
  5344. * @return \Illuminate\Hashing\BcryptHasher
  5345. * @static
  5346. */
  5347. public static function createBcryptDriver()
  5348. {
  5349. /** @var \Illuminate\Hashing\HashManager $instance */
  5350. return $instance->createBcryptDriver();
  5351. }
  5352. /**
  5353. * Create an instance of the Argon2 hash Driver.
  5354. *
  5355. * @return \Illuminate\Hashing\ArgonHasher
  5356. * @static
  5357. */
  5358. public static function createArgonDriver()
  5359. {
  5360. /** @var \Illuminate\Hashing\HashManager $instance */
  5361. return $instance->createArgonDriver();
  5362. }
  5363. /**
  5364. * Get information about the given hashed value.
  5365. *
  5366. * @param string $hashedValue
  5367. * @return array
  5368. * @static
  5369. */
  5370. public static function info($hashedValue)
  5371. {
  5372. /** @var \Illuminate\Hashing\HashManager $instance */
  5373. return $instance->info($hashedValue);
  5374. }
  5375. /**
  5376. * Hash the given value.
  5377. *
  5378. * @param string $value
  5379. * @param array $options
  5380. * @return string
  5381. * @static
  5382. */
  5383. public static function make($value, $options = array())
  5384. {
  5385. /** @var \Illuminate\Hashing\HashManager $instance */
  5386. return $instance->make($value, $options);
  5387. }
  5388. /**
  5389. * Check the given plain value against a hash.
  5390. *
  5391. * @param string $value
  5392. * @param string $hashedValue
  5393. * @param array $options
  5394. * @return bool
  5395. * @static
  5396. */
  5397. public static function check($value, $hashedValue, $options = array())
  5398. {
  5399. /** @var \Illuminate\Hashing\HashManager $instance */
  5400. return $instance->check($value, $hashedValue, $options);
  5401. }
  5402. /**
  5403. * Check if the given hash has been hashed using the given options.
  5404. *
  5405. * @param string $hashedValue
  5406. * @param array $options
  5407. * @return bool
  5408. * @static
  5409. */
  5410. public static function needsRehash($hashedValue, $options = array())
  5411. {
  5412. /** @var \Illuminate\Hashing\HashManager $instance */
  5413. return $instance->needsRehash($hashedValue, $options);
  5414. }
  5415. /**
  5416. * Get the default driver name.
  5417. *
  5418. * @return string
  5419. * @static
  5420. */
  5421. public static function getDefaultDriver()
  5422. {
  5423. /** @var \Illuminate\Hashing\HashManager $instance */
  5424. return $instance->getDefaultDriver();
  5425. }
  5426. /**
  5427. * Get a driver instance.
  5428. *
  5429. * @param string $driver
  5430. * @return mixed
  5431. * @throws \InvalidArgumentException
  5432. * @static
  5433. */
  5434. public static function driver($driver = null)
  5435. {
  5436. //Method inherited from \Illuminate\Support\Manager
  5437. /** @var \Illuminate\Hashing\HashManager $instance */
  5438. return $instance->driver($driver);
  5439. }
  5440. /**
  5441. * Register a custom driver creator Closure.
  5442. *
  5443. * @param string $driver
  5444. * @param \Closure $callback
  5445. * @return \Illuminate\Hashing\HashManager
  5446. * @static
  5447. */
  5448. public static function extend($driver, $callback)
  5449. {
  5450. //Method inherited from \Illuminate\Support\Manager
  5451. /** @var \Illuminate\Hashing\HashManager $instance */
  5452. return $instance->extend($driver, $callback);
  5453. }
  5454. /**
  5455. * Get all of the created "drivers".
  5456. *
  5457. * @return array
  5458. * @static
  5459. */
  5460. public static function getDrivers()
  5461. {
  5462. //Method inherited from \Illuminate\Support\Manager
  5463. /** @var \Illuminate\Hashing\HashManager $instance */
  5464. return $instance->getDrivers();
  5465. }
  5466. }
  5467. /**
  5468. *
  5469. *
  5470. * @see \Illuminate\Translation\Translator
  5471. */
  5472. class Lang {
  5473. /**
  5474. * Determine if a translation exists for a given locale.
  5475. *
  5476. * @param string $key
  5477. * @param string|null $locale
  5478. * @return bool
  5479. * @static
  5480. */
  5481. public static function hasForLocale($key, $locale = null)
  5482. {
  5483. /** @var \Illuminate\Translation\Translator $instance */
  5484. return $instance->hasForLocale($key, $locale);
  5485. }
  5486. /**
  5487. * Determine if a translation exists.
  5488. *
  5489. * @param string $key
  5490. * @param string|null $locale
  5491. * @param bool $fallback
  5492. * @return bool
  5493. * @static
  5494. */
  5495. public static function has($key, $locale = null, $fallback = true)
  5496. {
  5497. /** @var \Illuminate\Translation\Translator $instance */
  5498. return $instance->has($key, $locale, $fallback);
  5499. }
  5500. /**
  5501. * Get the translation for a given key.
  5502. *
  5503. * @param string $key
  5504. * @param array $replace
  5505. * @param string $locale
  5506. * @return string|array|null
  5507. * @static
  5508. */
  5509. public static function trans($key, $replace = array(), $locale = null)
  5510. {
  5511. /** @var \Illuminate\Translation\Translator $instance */
  5512. return $instance->trans($key, $replace, $locale);
  5513. }
  5514. /**
  5515. * Get the translation for the given key.
  5516. *
  5517. * @param string $key
  5518. * @param array $replace
  5519. * @param string|null $locale
  5520. * @param bool $fallback
  5521. * @return string|array|null
  5522. * @static
  5523. */
  5524. public static function get($key, $replace = array(), $locale = null, $fallback = true)
  5525. {
  5526. /** @var \Illuminate\Translation\Translator $instance */
  5527. return $instance->get($key, $replace, $locale, $fallback);
  5528. }
  5529. /**
  5530. * Get the translation for a given key from the JSON translation files.
  5531. *
  5532. * @param string $key
  5533. * @param array $replace
  5534. * @param string $locale
  5535. * @return string|array|null
  5536. * @static
  5537. */
  5538. public static function getFromJson($key, $replace = array(), $locale = null)
  5539. {
  5540. /** @var \Illuminate\Translation\Translator $instance */
  5541. return $instance->getFromJson($key, $replace, $locale);
  5542. }
  5543. /**
  5544. * Get a translation according to an integer value.
  5545. *
  5546. * @param string $key
  5547. * @param int|array|\Countable $number
  5548. * @param array $replace
  5549. * @param string $locale
  5550. * @return string
  5551. * @static
  5552. */
  5553. public static function transChoice($key, $number, $replace = array(), $locale = null)
  5554. {
  5555. /** @var \Illuminate\Translation\Translator $instance */
  5556. return $instance->transChoice($key, $number, $replace, $locale);
  5557. }
  5558. /**
  5559. * Get a translation according to an integer value.
  5560. *
  5561. * @param string $key
  5562. * @param int|array|\Countable $number
  5563. * @param array $replace
  5564. * @param string $locale
  5565. * @return string
  5566. * @static
  5567. */
  5568. public static function choice($key, $number, $replace = array(), $locale = null)
  5569. {
  5570. /** @var \Illuminate\Translation\Translator $instance */
  5571. return $instance->choice($key, $number, $replace, $locale);
  5572. }
  5573. /**
  5574. * Add translation lines to the given locale.
  5575. *
  5576. * @param array $lines
  5577. * @param string $locale
  5578. * @param string $namespace
  5579. * @return void
  5580. * @static
  5581. */
  5582. public static function addLines($lines, $locale, $namespace = '*')
  5583. {
  5584. /** @var \Illuminate\Translation\Translator $instance */
  5585. $instance->addLines($lines, $locale, $namespace);
  5586. }
  5587. /**
  5588. * Load the specified language group.
  5589. *
  5590. * @param string $namespace
  5591. * @param string $group
  5592. * @param string $locale
  5593. * @return void
  5594. * @static
  5595. */
  5596. public static function load($namespace, $group, $locale)
  5597. {
  5598. /** @var \Illuminate\Translation\Translator $instance */
  5599. $instance->load($namespace, $group, $locale);
  5600. }
  5601. /**
  5602. * Add a new namespace to the loader.
  5603. *
  5604. * @param string $namespace
  5605. * @param string $hint
  5606. * @return void
  5607. * @static
  5608. */
  5609. public static function addNamespace($namespace, $hint)
  5610. {
  5611. /** @var \Illuminate\Translation\Translator $instance */
  5612. $instance->addNamespace($namespace, $hint);
  5613. }
  5614. /**
  5615. * Add a new JSON path to the loader.
  5616. *
  5617. * @param string $path
  5618. * @return void
  5619. * @static
  5620. */
  5621. public static function addJsonPath($path)
  5622. {
  5623. /** @var \Illuminate\Translation\Translator $instance */
  5624. $instance->addJsonPath($path);
  5625. }
  5626. /**
  5627. * Parse a key into namespace, group, and item.
  5628. *
  5629. * @param string $key
  5630. * @return array
  5631. * @static
  5632. */
  5633. public static function parseKey($key)
  5634. {
  5635. /** @var \Illuminate\Translation\Translator $instance */
  5636. return $instance->parseKey($key);
  5637. }
  5638. /**
  5639. * Get the message selector instance.
  5640. *
  5641. * @return \Illuminate\Translation\MessageSelector
  5642. * @static
  5643. */
  5644. public static function getSelector()
  5645. {
  5646. /** @var \Illuminate\Translation\Translator $instance */
  5647. return $instance->getSelector();
  5648. }
  5649. /**
  5650. * Set the message selector instance.
  5651. *
  5652. * @param \Illuminate\Translation\MessageSelector $selector
  5653. * @return void
  5654. * @static
  5655. */
  5656. public static function setSelector($selector)
  5657. {
  5658. /** @var \Illuminate\Translation\Translator $instance */
  5659. $instance->setSelector($selector);
  5660. }
  5661. /**
  5662. * Get the language line loader implementation.
  5663. *
  5664. * @return \Illuminate\Contracts\Translation\Loader
  5665. * @static
  5666. */
  5667. public static function getLoader()
  5668. {
  5669. /** @var \Illuminate\Translation\Translator $instance */
  5670. return $instance->getLoader();
  5671. }
  5672. /**
  5673. * Get the default locale being used.
  5674. *
  5675. * @return string
  5676. * @static
  5677. */
  5678. public static function locale()
  5679. {
  5680. /** @var \Illuminate\Translation\Translator $instance */
  5681. return $instance->locale();
  5682. }
  5683. /**
  5684. * Get the default locale being used.
  5685. *
  5686. * @return string
  5687. * @static
  5688. */
  5689. public static function getLocale()
  5690. {
  5691. /** @var \Illuminate\Translation\Translator $instance */
  5692. return $instance->getLocale();
  5693. }
  5694. /**
  5695. * Set the default locale.
  5696. *
  5697. * @param string $locale
  5698. * @return void
  5699. * @static
  5700. */
  5701. public static function setLocale($locale)
  5702. {
  5703. /** @var \Illuminate\Translation\Translator $instance */
  5704. $instance->setLocale($locale);
  5705. }
  5706. /**
  5707. * Get the fallback locale being used.
  5708. *
  5709. * @return string
  5710. * @static
  5711. */
  5712. public static function getFallback()
  5713. {
  5714. /** @var \Illuminate\Translation\Translator $instance */
  5715. return $instance->getFallback();
  5716. }
  5717. /**
  5718. * Set the fallback locale being used.
  5719. *
  5720. * @param string $fallback
  5721. * @return void
  5722. * @static
  5723. */
  5724. public static function setFallback($fallback)
  5725. {
  5726. /** @var \Illuminate\Translation\Translator $instance */
  5727. $instance->setFallback($fallback);
  5728. }
  5729. /**
  5730. * Set the loaded translation groups.
  5731. *
  5732. * @param array $loaded
  5733. * @return void
  5734. * @static
  5735. */
  5736. public static function setLoaded($loaded)
  5737. {
  5738. /** @var \Illuminate\Translation\Translator $instance */
  5739. $instance->setLoaded($loaded);
  5740. }
  5741. /**
  5742. * Set the parsed value of a key.
  5743. *
  5744. * @param string $key
  5745. * @param array $parsed
  5746. * @return void
  5747. * @static
  5748. */
  5749. public static function setParsedKey($key, $parsed)
  5750. {
  5751. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  5752. /** @var \Illuminate\Translation\Translator $instance */
  5753. $instance->setParsedKey($key, $parsed);
  5754. }
  5755. /**
  5756. * Register a custom macro.
  5757. *
  5758. * @param string $name
  5759. * @param object|callable $macro
  5760. * @return void
  5761. * @static
  5762. */
  5763. public static function macro($name, $macro)
  5764. {
  5765. \Illuminate\Translation\Translator::macro($name, $macro);
  5766. }
  5767. /**
  5768. * Mix another object into the class.
  5769. *
  5770. * @param object $mixin
  5771. * @return void
  5772. * @throws \ReflectionException
  5773. * @static
  5774. */
  5775. public static function mixin($mixin)
  5776. {
  5777. \Illuminate\Translation\Translator::mixin($mixin);
  5778. }
  5779. /**
  5780. * Checks if macro is registered.
  5781. *
  5782. * @param string $name
  5783. * @return bool
  5784. * @static
  5785. */
  5786. public static function hasMacro($name)
  5787. {
  5788. return \Illuminate\Translation\Translator::hasMacro($name);
  5789. }
  5790. }
  5791. /**
  5792. *
  5793. *
  5794. * @see \Illuminate\Log\Logger
  5795. */
  5796. class Log {
  5797. /**
  5798. * Adds a log record at the DEBUG level.
  5799. *
  5800. * @param string $message The log message
  5801. * @param array $context The log context
  5802. * @return bool Whether the record has been processed
  5803. * @static
  5804. */
  5805. public static function debug($message, $context = array())
  5806. {
  5807. /** @var \Monolog\Logger $instance */
  5808. return $instance->addDebug($message, $context);
  5809. }
  5810. /**
  5811. * Adds a log record at the INFO level.
  5812. *
  5813. * @param string $message The log message
  5814. * @param array $context The log context
  5815. * @return bool Whether the record has been processed
  5816. * @static
  5817. */
  5818. public static function info($message, $context = array())
  5819. {
  5820. /** @var \Monolog\Logger $instance */
  5821. return $instance->addInfo($message, $context);
  5822. }
  5823. /**
  5824. * Adds a log record at the NOTICE level.
  5825. *
  5826. * @param string $message The log message
  5827. * @param array $context The log context
  5828. * @return bool Whether the record has been processed
  5829. * @static
  5830. */
  5831. public static function notice($message, $context = array())
  5832. {
  5833. /** @var \Monolog\Logger $instance */
  5834. return $instance->addNotice($message, $context);
  5835. }
  5836. /**
  5837. * Adds a log record at the WARNING level.
  5838. *
  5839. * @param string $message The log message
  5840. * @param array $context The log context
  5841. * @return bool Whether the record has been processed
  5842. * @static
  5843. */
  5844. public static function warning($message, $context = array())
  5845. {
  5846. /** @var \Monolog\Logger $instance */
  5847. return $instance->addWarning($message, $context);
  5848. }
  5849. /**
  5850. * Adds a log record at the ERROR level.
  5851. *
  5852. * @param string $message The log message
  5853. * @param array $context The log context
  5854. * @return bool Whether the record has been processed
  5855. * @static
  5856. */
  5857. public static function error($message, $context = array())
  5858. {
  5859. /** @var \Monolog\Logger $instance */
  5860. return $instance->addError($message, $context);
  5861. }
  5862. /**
  5863. * Adds a log record at the CRITICAL level.
  5864. *
  5865. * @param string $message The log message
  5866. * @param array $context The log context
  5867. * @return bool Whether the record has been processed
  5868. * @static
  5869. */
  5870. public static function critical($message, $context = array())
  5871. {
  5872. /** @var \Monolog\Logger $instance */
  5873. return $instance->addCritical($message, $context);
  5874. }
  5875. /**
  5876. * Adds a log record at the ALERT level.
  5877. *
  5878. * @param string $message The log message
  5879. * @param array $context The log context
  5880. * @return bool Whether the record has been processed
  5881. * @static
  5882. */
  5883. public static function alert($message, $context = array())
  5884. {
  5885. /** @var \Monolog\Logger $instance */
  5886. return $instance->addAlert($message, $context);
  5887. }
  5888. /**
  5889. * Adds a log record at the EMERGENCY level.
  5890. *
  5891. * @param string $message The log message
  5892. * @param array $context The log context
  5893. * @return bool Whether the record has been processed
  5894. * @static
  5895. */
  5896. public static function emergency($message, $context = array())
  5897. {
  5898. /** @var \Monolog\Logger $instance */
  5899. return $instance->addEmergency($message, $context);
  5900. }
  5901. /**
  5902. * Create a new, on-demand aggregate logger instance.
  5903. *
  5904. * @param array $channels
  5905. * @param string|null $channel
  5906. * @return \Psr\Log\LoggerInterface
  5907. * @static
  5908. */
  5909. public static function stack($channels, $channel = null)
  5910. {
  5911. /** @var \Illuminate\Log\LogManager $instance */
  5912. return $instance->stack($channels, $channel);
  5913. }
  5914. /**
  5915. * Get a log channel instance.
  5916. *
  5917. * @param string|null $channel
  5918. * @return mixed
  5919. * @static
  5920. */
  5921. public static function channel($channel = null)
  5922. {
  5923. /** @var \Illuminate\Log\LogManager $instance */
  5924. return $instance->channel($channel);
  5925. }
  5926. /**
  5927. * Get a log driver instance.
  5928. *
  5929. * @param string|null $driver
  5930. * @return mixed
  5931. * @static
  5932. */
  5933. public static function driver($driver = null)
  5934. {
  5935. /** @var \Illuminate\Log\LogManager $instance */
  5936. return $instance->driver($driver);
  5937. }
  5938. /**
  5939. * Get the default log driver name.
  5940. *
  5941. * @return string
  5942. * @static
  5943. */
  5944. public static function getDefaultDriver()
  5945. {
  5946. /** @var \Illuminate\Log\LogManager $instance */
  5947. return $instance->getDefaultDriver();
  5948. }
  5949. /**
  5950. * Set the default log driver name.
  5951. *
  5952. * @param string $name
  5953. * @return void
  5954. * @static
  5955. */
  5956. public static function setDefaultDriver($name)
  5957. {
  5958. /** @var \Illuminate\Log\LogManager $instance */
  5959. $instance->setDefaultDriver($name);
  5960. }
  5961. /**
  5962. * Register a custom driver creator Closure.
  5963. *
  5964. * @param string $driver
  5965. * @param \Closure $callback
  5966. * @return \Illuminate\Log\LogManager
  5967. * @static
  5968. */
  5969. public static function extend($driver, $callback)
  5970. {
  5971. /** @var \Illuminate\Log\LogManager $instance */
  5972. return $instance->extend($driver, $callback);
  5973. }
  5974. /**
  5975. * Logs with an arbitrary level.
  5976. *
  5977. * @param mixed $level
  5978. * @param string $message
  5979. * @param array $context
  5980. * @return void
  5981. * @static
  5982. */
  5983. public static function log($level, $message, $context = array())
  5984. {
  5985. /** @var \Illuminate\Log\LogManager $instance */
  5986. $instance->log($level, $message, $context);
  5987. }
  5988. }
  5989. /**
  5990. *
  5991. *
  5992. * @see \Illuminate\Mail\Mailer
  5993. */
  5994. class Mail {
  5995. /**
  5996. * Set the global from address and name.
  5997. *
  5998. * @param string $address
  5999. * @param string|null $name
  6000. * @return void
  6001. * @static
  6002. */
  6003. public static function alwaysFrom($address, $name = null)
  6004. {
  6005. /** @var \Illuminate\Mail\Mailer $instance */
  6006. $instance->alwaysFrom($address, $name);
  6007. }
  6008. /**
  6009. * Set the global reply-to address and name.
  6010. *
  6011. * @param string $address
  6012. * @param string|null $name
  6013. * @return void
  6014. * @static
  6015. */
  6016. public static function alwaysReplyTo($address, $name = null)
  6017. {
  6018. /** @var \Illuminate\Mail\Mailer $instance */
  6019. $instance->alwaysReplyTo($address, $name);
  6020. }
  6021. /**
  6022. * Set the global to address and name.
  6023. *
  6024. * @param string $address
  6025. * @param string|null $name
  6026. * @return void
  6027. * @static
  6028. */
  6029. public static function alwaysTo($address, $name = null)
  6030. {
  6031. /** @var \Illuminate\Mail\Mailer $instance */
  6032. $instance->alwaysTo($address, $name);
  6033. }
  6034. /**
  6035. * Begin the process of mailing a mailable class instance.
  6036. *
  6037. * @param mixed $users
  6038. * @return \Illuminate\Mail\PendingMail
  6039. * @static
  6040. */
  6041. public static function to($users)
  6042. {
  6043. /** @var \Illuminate\Mail\Mailer $instance */
  6044. return $instance->to($users);
  6045. }
  6046. /**
  6047. * Begin the process of mailing a mailable class instance.
  6048. *
  6049. * @param mixed $users
  6050. * @return \Illuminate\Mail\PendingMail
  6051. * @static
  6052. */
  6053. public static function bcc($users)
  6054. {
  6055. /** @var \Illuminate\Mail\Mailer $instance */
  6056. return $instance->bcc($users);
  6057. }
  6058. /**
  6059. * Send a new message with only an HTML part.
  6060. *
  6061. * @param string $html
  6062. * @param mixed $callback
  6063. * @return void
  6064. * @static
  6065. */
  6066. public static function html($html, $callback)
  6067. {
  6068. /** @var \Illuminate\Mail\Mailer $instance */
  6069. $instance->html($html, $callback);
  6070. }
  6071. /**
  6072. * Send a new message when only a raw text part.
  6073. *
  6074. * @param string $text
  6075. * @param mixed $callback
  6076. * @return void
  6077. * @static
  6078. */
  6079. public static function raw($text, $callback)
  6080. {
  6081. /** @var \Illuminate\Mail\Mailer $instance */
  6082. $instance->raw($text, $callback);
  6083. }
  6084. /**
  6085. * Send a new message when only a plain part.
  6086. *
  6087. * @param string $view
  6088. * @param array $data
  6089. * @param mixed $callback
  6090. * @return void
  6091. * @static
  6092. */
  6093. public static function plain($view, $data, $callback)
  6094. {
  6095. /** @var \Illuminate\Mail\Mailer $instance */
  6096. $instance->plain($view, $data, $callback);
  6097. }
  6098. /**
  6099. * Render the given message as a view.
  6100. *
  6101. * @param string|array $view
  6102. * @param array $data
  6103. * @return string
  6104. * @static
  6105. */
  6106. public static function render($view, $data = array())
  6107. {
  6108. /** @var \Illuminate\Mail\Mailer $instance */
  6109. return $instance->render($view, $data);
  6110. }
  6111. /**
  6112. * Send a new message using a view.
  6113. *
  6114. * @param string|array|\Illuminate\Mail\MailableContract $view
  6115. * @param array $data
  6116. * @param \Closure|string $callback
  6117. * @return void
  6118. * @static
  6119. */
  6120. public static function send($view, $data = array(), $callback = null)
  6121. {
  6122. /** @var \Illuminate\Mail\Mailer $instance */
  6123. $instance->send($view, $data, $callback);
  6124. }
  6125. /**
  6126. * Queue a new e-mail message for sending.
  6127. *
  6128. * @param string|array|\Illuminate\Mail\MailableContract $view
  6129. * @param string|null $queue
  6130. * @return mixed
  6131. * @static
  6132. */
  6133. public static function queue($view, $queue = null)
  6134. {
  6135. /** @var \Illuminate\Mail\Mailer $instance */
  6136. return $instance->queue($view, $queue);
  6137. }
  6138. /**
  6139. * Queue a new e-mail message for sending on the given queue.
  6140. *
  6141. * @param string $queue
  6142. * @param string|array $view
  6143. * @return mixed
  6144. * @static
  6145. */
  6146. public static function onQueue($queue, $view)
  6147. {
  6148. /** @var \Illuminate\Mail\Mailer $instance */
  6149. return $instance->onQueue($queue, $view);
  6150. }
  6151. /**
  6152. * Queue a new e-mail message for sending on the given queue.
  6153. *
  6154. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  6155. *
  6156. * @param string $queue
  6157. * @param string|array $view
  6158. * @return mixed
  6159. * @static
  6160. */
  6161. public static function queueOn($queue, $view)
  6162. {
  6163. /** @var \Illuminate\Mail\Mailer $instance */
  6164. return $instance->queueOn($queue, $view);
  6165. }
  6166. /**
  6167. * Queue a new e-mail message for sending after (n) seconds.
  6168. *
  6169. * @param \DateTimeInterface|\DateInterval|int $delay
  6170. * @param string|array|\Illuminate\Mail\MailableContract $view
  6171. * @param string|null $queue
  6172. * @return mixed
  6173. * @static
  6174. */
  6175. public static function later($delay, $view, $queue = null)
  6176. {
  6177. /** @var \Illuminate\Mail\Mailer $instance */
  6178. return $instance->later($delay, $view, $queue);
  6179. }
  6180. /**
  6181. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  6182. *
  6183. * @param string $queue
  6184. * @param \DateTimeInterface|\DateInterval|int $delay
  6185. * @param string|array $view
  6186. * @return mixed
  6187. * @static
  6188. */
  6189. public static function laterOn($queue, $delay, $view)
  6190. {
  6191. /** @var \Illuminate\Mail\Mailer $instance */
  6192. return $instance->laterOn($queue, $delay, $view);
  6193. }
  6194. /**
  6195. * Get the view factory instance.
  6196. *
  6197. * @return \Illuminate\Contracts\View\Factory
  6198. * @static
  6199. */
  6200. public static function getViewFactory()
  6201. {
  6202. /** @var \Illuminate\Mail\Mailer $instance */
  6203. return $instance->getViewFactory();
  6204. }
  6205. /**
  6206. * Get the Swift Mailer instance.
  6207. *
  6208. * @return \Swift_Mailer
  6209. * @static
  6210. */
  6211. public static function getSwiftMailer()
  6212. {
  6213. /** @var \Illuminate\Mail\Mailer $instance */
  6214. return $instance->getSwiftMailer();
  6215. }
  6216. /**
  6217. * Get the array of failed recipients.
  6218. *
  6219. * @return array
  6220. * @static
  6221. */
  6222. public static function failures()
  6223. {
  6224. /** @var \Illuminate\Mail\Mailer $instance */
  6225. return $instance->failures();
  6226. }
  6227. /**
  6228. * Set the Swift Mailer instance.
  6229. *
  6230. * @param \Swift_Mailer $swift
  6231. * @return void
  6232. * @static
  6233. */
  6234. public static function setSwiftMailer($swift)
  6235. {
  6236. /** @var \Illuminate\Mail\Mailer $instance */
  6237. $instance->setSwiftMailer($swift);
  6238. }
  6239. /**
  6240. * Set the queue manager instance.
  6241. *
  6242. * @param \Illuminate\Contracts\Queue\Factory $queue
  6243. * @return \Illuminate\Mail\Mailer
  6244. * @static
  6245. */
  6246. public static function setQueue($queue)
  6247. {
  6248. /** @var \Illuminate\Mail\Mailer $instance */
  6249. return $instance->setQueue($queue);
  6250. }
  6251. /**
  6252. * Register a custom macro.
  6253. *
  6254. * @param string $name
  6255. * @param object|callable $macro
  6256. * @return void
  6257. * @static
  6258. */
  6259. public static function macro($name, $macro)
  6260. {
  6261. \Illuminate\Mail\Mailer::macro($name, $macro);
  6262. }
  6263. /**
  6264. * Mix another object into the class.
  6265. *
  6266. * @param object $mixin
  6267. * @return void
  6268. * @throws \ReflectionException
  6269. * @static
  6270. */
  6271. public static function mixin($mixin)
  6272. {
  6273. \Illuminate\Mail\Mailer::mixin($mixin);
  6274. }
  6275. /**
  6276. * Checks if macro is registered.
  6277. *
  6278. * @param string $name
  6279. * @return bool
  6280. * @static
  6281. */
  6282. public static function hasMacro($name)
  6283. {
  6284. return \Illuminate\Mail\Mailer::hasMacro($name);
  6285. }
  6286. /**
  6287. * Assert if a mailable was sent based on a truth-test callback.
  6288. *
  6289. * @param string $mailable
  6290. * @param callable|int|null $callback
  6291. * @return void
  6292. * @static
  6293. */
  6294. public static function assertSent($mailable, $callback = null)
  6295. {
  6296. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6297. $instance->assertSent($mailable, $callback);
  6298. }
  6299. /**
  6300. * Determine if a mailable was not sent based on a truth-test callback.
  6301. *
  6302. * @param string $mailable
  6303. * @param callable|null $callback
  6304. * @return void
  6305. * @static
  6306. */
  6307. public static function assertNotSent($mailable, $callback = null)
  6308. {
  6309. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6310. $instance->assertNotSent($mailable, $callback);
  6311. }
  6312. /**
  6313. * Assert that no mailables were sent.
  6314. *
  6315. * @return void
  6316. * @static
  6317. */
  6318. public static function assertNothingSent()
  6319. {
  6320. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6321. $instance->assertNothingSent();
  6322. }
  6323. /**
  6324. * Assert if a mailable was queued based on a truth-test callback.
  6325. *
  6326. * @param string $mailable
  6327. * @param callable|int|null $callback
  6328. * @return void
  6329. * @static
  6330. */
  6331. public static function assertQueued($mailable, $callback = null)
  6332. {
  6333. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6334. $instance->assertQueued($mailable, $callback);
  6335. }
  6336. /**
  6337. * Determine if a mailable was not queued based on a truth-test callback.
  6338. *
  6339. * @param string $mailable
  6340. * @param callable|null $callback
  6341. * @return void
  6342. * @static
  6343. */
  6344. public static function assertNotQueued($mailable, $callback = null)
  6345. {
  6346. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6347. $instance->assertNotQueued($mailable, $callback);
  6348. }
  6349. /**
  6350. * Assert that no mailables were queued.
  6351. *
  6352. * @return void
  6353. * @static
  6354. */
  6355. public static function assertNothingQueued()
  6356. {
  6357. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6358. $instance->assertNothingQueued();
  6359. }
  6360. /**
  6361. * Get all of the mailables matching a truth-test callback.
  6362. *
  6363. * @param string $mailable
  6364. * @param callable|null $callback
  6365. * @return \Illuminate\Support\Collection
  6366. * @static
  6367. */
  6368. public static function sent($mailable, $callback = null)
  6369. {
  6370. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6371. return $instance->sent($mailable, $callback);
  6372. }
  6373. /**
  6374. * Determine if the given mailable has been sent.
  6375. *
  6376. * @param string $mailable
  6377. * @return bool
  6378. * @static
  6379. */
  6380. public static function hasSent($mailable)
  6381. {
  6382. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6383. return $instance->hasSent($mailable);
  6384. }
  6385. /**
  6386. * Get all of the queued mailables matching a truth-test callback.
  6387. *
  6388. * @param string $mailable
  6389. * @param callable|null $callback
  6390. * @return \Illuminate\Support\Collection
  6391. * @static
  6392. */
  6393. public static function queued($mailable, $callback = null)
  6394. {
  6395. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6396. return $instance->queued($mailable, $callback);
  6397. }
  6398. /**
  6399. * Determine if the given mailable has been queued.
  6400. *
  6401. * @param string $mailable
  6402. * @return bool
  6403. * @static
  6404. */
  6405. public static function hasQueued($mailable)
  6406. {
  6407. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6408. return $instance->hasQueued($mailable);
  6409. }
  6410. }
  6411. /**
  6412. *
  6413. *
  6414. * @see \Illuminate\Notifications\ChannelManager
  6415. */
  6416. class Notification {
  6417. /**
  6418. * Send the given notification to the given notifiable entities.
  6419. *
  6420. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6421. * @param mixed $notification
  6422. * @return void
  6423. * @static
  6424. */
  6425. public static function send($notifiables, $notification)
  6426. {
  6427. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6428. $instance->send($notifiables, $notification);
  6429. }
  6430. /**
  6431. * Send the given notification immediately.
  6432. *
  6433. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6434. * @param mixed $notification
  6435. * @param array|null $channels
  6436. * @return void
  6437. * @static
  6438. */
  6439. public static function sendNow($notifiables, $notification, $channels = null)
  6440. {
  6441. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6442. $instance->sendNow($notifiables, $notification, $channels);
  6443. }
  6444. /**
  6445. * Get a channel instance.
  6446. *
  6447. * @param string|null $name
  6448. * @return mixed
  6449. * @static
  6450. */
  6451. public static function channel($name = null)
  6452. {
  6453. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6454. return $instance->channel($name);
  6455. }
  6456. /**
  6457. * Get the default channel driver name.
  6458. *
  6459. * @return string
  6460. * @static
  6461. */
  6462. public static function getDefaultDriver()
  6463. {
  6464. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6465. return $instance->getDefaultDriver();
  6466. }
  6467. /**
  6468. * Get the default channel driver name.
  6469. *
  6470. * @return string
  6471. * @static
  6472. */
  6473. public static function deliversVia()
  6474. {
  6475. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6476. return $instance->deliversVia();
  6477. }
  6478. /**
  6479. * Set the default channel driver name.
  6480. *
  6481. * @param string $channel
  6482. * @return void
  6483. * @static
  6484. */
  6485. public static function deliverVia($channel)
  6486. {
  6487. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6488. $instance->deliverVia($channel);
  6489. }
  6490. /**
  6491. * Get a driver instance.
  6492. *
  6493. * @param string $driver
  6494. * @return mixed
  6495. * @throws \InvalidArgumentException
  6496. * @static
  6497. */
  6498. public static function driver($driver = null)
  6499. {
  6500. //Method inherited from \Illuminate\Support\Manager
  6501. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6502. return $instance->driver($driver);
  6503. }
  6504. /**
  6505. * Register a custom driver creator Closure.
  6506. *
  6507. * @param string $driver
  6508. * @param \Closure $callback
  6509. * @return \Illuminate\Notifications\ChannelManager
  6510. * @static
  6511. */
  6512. public static function extend($driver, $callback)
  6513. {
  6514. //Method inherited from \Illuminate\Support\Manager
  6515. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6516. return $instance->extend($driver, $callback);
  6517. }
  6518. /**
  6519. * Get all of the created "drivers".
  6520. *
  6521. * @return array
  6522. * @static
  6523. */
  6524. public static function getDrivers()
  6525. {
  6526. //Method inherited from \Illuminate\Support\Manager
  6527. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6528. return $instance->getDrivers();
  6529. }
  6530. /**
  6531. * Assert if a notification was sent based on a truth-test callback.
  6532. *
  6533. * @param mixed $notifiable
  6534. * @param string $notification
  6535. * @param callable|null $callback
  6536. * @return void
  6537. * @static
  6538. */
  6539. public static function assertSentTo($notifiable, $notification, $callback = null)
  6540. {
  6541. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6542. $instance->assertSentTo($notifiable, $notification, $callback);
  6543. }
  6544. /**
  6545. * Assert if a notification was sent a number of times.
  6546. *
  6547. * @param mixed $notifiable
  6548. * @param string $notification
  6549. * @param int $times
  6550. * @return void
  6551. * @static
  6552. */
  6553. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  6554. {
  6555. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6556. $instance->assertSentToTimes($notifiable, $notification, $times);
  6557. }
  6558. /**
  6559. * Determine if a notification was sent based on a truth-test callback.
  6560. *
  6561. * @param mixed $notifiable
  6562. * @param string $notification
  6563. * @param callable|null $callback
  6564. * @return void
  6565. * @static
  6566. */
  6567. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  6568. {
  6569. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6570. $instance->assertNotSentTo($notifiable, $notification, $callback);
  6571. }
  6572. /**
  6573. * Assert that no notifications were sent.
  6574. *
  6575. * @return void
  6576. * @static
  6577. */
  6578. public static function assertNothingSent()
  6579. {
  6580. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6581. $instance->assertNothingSent();
  6582. }
  6583. /**
  6584. * Assert the total amount of times a notification was sent.
  6585. *
  6586. * @param int $expectedCount
  6587. * @param string $notification
  6588. * @return void
  6589. * @static
  6590. */
  6591. public static function assertTimesSent($expectedCount, $notification)
  6592. {
  6593. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6594. $instance->assertTimesSent($expectedCount, $notification);
  6595. }
  6596. /**
  6597. * Get all of the notifications matching a truth-test callback.
  6598. *
  6599. * @param mixed $notifiable
  6600. * @param string $notification
  6601. * @param callable|null $callback
  6602. * @return \Illuminate\Support\Collection
  6603. * @static
  6604. */
  6605. public static function sent($notifiable, $notification, $callback = null)
  6606. {
  6607. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6608. return $instance->sent($notifiable, $notification, $callback);
  6609. }
  6610. /**
  6611. * Determine if there are more notifications left to inspect.
  6612. *
  6613. * @param mixed $notifiable
  6614. * @param string $notification
  6615. * @return bool
  6616. * @static
  6617. */
  6618. public static function hasSent($notifiable, $notification)
  6619. {
  6620. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6621. return $instance->hasSent($notifiable, $notification);
  6622. }
  6623. }
  6624. /**
  6625. *
  6626. *
  6627. * @method static string sendResetLink(array $credentials)
  6628. * @method static mixed reset(array $credentials, \Closure $callback)
  6629. * @method static void validator(\Closure $callback)
  6630. * @method static bool validateNewPassword(array $credentials)
  6631. * @see \Illuminate\Auth\Passwords\PasswordBroker
  6632. */
  6633. class Password {
  6634. /**
  6635. * Attempt to get the broker from the local cache.
  6636. *
  6637. * @param string|null $name
  6638. * @return \Illuminate\Contracts\Auth\PasswordBroker
  6639. * @static
  6640. */
  6641. public static function broker($name = null)
  6642. {
  6643. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6644. return $instance->broker($name);
  6645. }
  6646. /**
  6647. * Get the default password broker name.
  6648. *
  6649. * @return string
  6650. * @static
  6651. */
  6652. public static function getDefaultDriver()
  6653. {
  6654. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6655. return $instance->getDefaultDriver();
  6656. }
  6657. /**
  6658. * Set the default password broker name.
  6659. *
  6660. * @param string $name
  6661. * @return void
  6662. * @static
  6663. */
  6664. public static function setDefaultDriver($name)
  6665. {
  6666. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6667. $instance->setDefaultDriver($name);
  6668. }
  6669. }
  6670. /**
  6671. *
  6672. *
  6673. * @see \Illuminate\Queue\QueueManager
  6674. * @see \Illuminate\Queue\Queue
  6675. */
  6676. class Queue {
  6677. /**
  6678. * Register an event listener for the before job event.
  6679. *
  6680. * @param mixed $callback
  6681. * @return void
  6682. * @static
  6683. */
  6684. public static function before($callback)
  6685. {
  6686. /** @var \Illuminate\Queue\QueueManager $instance */
  6687. $instance->before($callback);
  6688. }
  6689. /**
  6690. * Register an event listener for the after job event.
  6691. *
  6692. * @param mixed $callback
  6693. * @return void
  6694. * @static
  6695. */
  6696. public static function after($callback)
  6697. {
  6698. /** @var \Illuminate\Queue\QueueManager $instance */
  6699. $instance->after($callback);
  6700. }
  6701. /**
  6702. * Register an event listener for the exception occurred job event.
  6703. *
  6704. * @param mixed $callback
  6705. * @return void
  6706. * @static
  6707. */
  6708. public static function exceptionOccurred($callback)
  6709. {
  6710. /** @var \Illuminate\Queue\QueueManager $instance */
  6711. $instance->exceptionOccurred($callback);
  6712. }
  6713. /**
  6714. * Register an event listener for the daemon queue loop.
  6715. *
  6716. * @param mixed $callback
  6717. * @return void
  6718. * @static
  6719. */
  6720. public static function looping($callback)
  6721. {
  6722. /** @var \Illuminate\Queue\QueueManager $instance */
  6723. $instance->looping($callback);
  6724. }
  6725. /**
  6726. * Register an event listener for the failed job event.
  6727. *
  6728. * @param mixed $callback
  6729. * @return void
  6730. * @static
  6731. */
  6732. public static function failing($callback)
  6733. {
  6734. /** @var \Illuminate\Queue\QueueManager $instance */
  6735. $instance->failing($callback);
  6736. }
  6737. /**
  6738. * Register an event listener for the daemon queue stopping.
  6739. *
  6740. * @param mixed $callback
  6741. * @return void
  6742. * @static
  6743. */
  6744. public static function stopping($callback)
  6745. {
  6746. /** @var \Illuminate\Queue\QueueManager $instance */
  6747. $instance->stopping($callback);
  6748. }
  6749. /**
  6750. * Determine if the driver is connected.
  6751. *
  6752. * @param string $name
  6753. * @return bool
  6754. * @static
  6755. */
  6756. public static function connected($name = null)
  6757. {
  6758. /** @var \Illuminate\Queue\QueueManager $instance */
  6759. return $instance->connected($name);
  6760. }
  6761. /**
  6762. * Resolve a queue connection instance.
  6763. *
  6764. * @param string $name
  6765. * @return \Illuminate\Contracts\Queue\Queue
  6766. * @static
  6767. */
  6768. public static function connection($name = null)
  6769. {
  6770. /** @var \Illuminate\Queue\QueueManager $instance */
  6771. return $instance->connection($name);
  6772. }
  6773. /**
  6774. * Add a queue connection resolver.
  6775. *
  6776. * @param string $driver
  6777. * @param \Closure $resolver
  6778. * @return void
  6779. * @static
  6780. */
  6781. public static function extend($driver, $resolver)
  6782. {
  6783. /** @var \Illuminate\Queue\QueueManager $instance */
  6784. $instance->extend($driver, $resolver);
  6785. }
  6786. /**
  6787. * Add a queue connection resolver.
  6788. *
  6789. * @param string $driver
  6790. * @param \Closure $resolver
  6791. * @return void
  6792. * @static
  6793. */
  6794. public static function addConnector($driver, $resolver)
  6795. {
  6796. /** @var \Illuminate\Queue\QueueManager $instance */
  6797. $instance->addConnector($driver, $resolver);
  6798. }
  6799. /**
  6800. * Get the name of the default queue connection.
  6801. *
  6802. * @return string
  6803. * @static
  6804. */
  6805. public static function getDefaultDriver()
  6806. {
  6807. /** @var \Illuminate\Queue\QueueManager $instance */
  6808. return $instance->getDefaultDriver();
  6809. }
  6810. /**
  6811. * Set the name of the default queue connection.
  6812. *
  6813. * @param string $name
  6814. * @return void
  6815. * @static
  6816. */
  6817. public static function setDefaultDriver($name)
  6818. {
  6819. /** @var \Illuminate\Queue\QueueManager $instance */
  6820. $instance->setDefaultDriver($name);
  6821. }
  6822. /**
  6823. * Get the full name for the given connection.
  6824. *
  6825. * @param string $connection
  6826. * @return string
  6827. * @static
  6828. */
  6829. public static function getName($connection = null)
  6830. {
  6831. /** @var \Illuminate\Queue\QueueManager $instance */
  6832. return $instance->getName($connection);
  6833. }
  6834. /**
  6835. * Determine if the application is in maintenance mode.
  6836. *
  6837. * @return bool
  6838. * @static
  6839. */
  6840. public static function isDownForMaintenance()
  6841. {
  6842. /** @var \Illuminate\Queue\QueueManager $instance */
  6843. return $instance->isDownForMaintenance();
  6844. }
  6845. /**
  6846. * Assert if a job was pushed based on a truth-test callback.
  6847. *
  6848. * @param string $job
  6849. * @param callable|int|null $callback
  6850. * @return void
  6851. * @static
  6852. */
  6853. public static function assertPushed($job, $callback = null)
  6854. {
  6855. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6856. $instance->assertPushed($job, $callback);
  6857. }
  6858. /**
  6859. * Assert if a job was pushed based on a truth-test callback.
  6860. *
  6861. * @param string $queue
  6862. * @param string $job
  6863. * @param callable|null $callback
  6864. * @return void
  6865. * @static
  6866. */
  6867. public static function assertPushedOn($queue, $job, $callback = null)
  6868. {
  6869. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6870. $instance->assertPushedOn($queue, $job, $callback);
  6871. }
  6872. /**
  6873. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  6874. *
  6875. * @param string $job
  6876. * @param array $expectedChain
  6877. * @param callable|null $callback
  6878. * @return void
  6879. * @static
  6880. */
  6881. public static function assertPushedWithChain($job, $expectedChain = array(), $callback = null)
  6882. {
  6883. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6884. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  6885. }
  6886. /**
  6887. * Determine if a job was pushed based on a truth-test callback.
  6888. *
  6889. * @param string $job
  6890. * @param callable|null $callback
  6891. * @return void
  6892. * @static
  6893. */
  6894. public static function assertNotPushed($job, $callback = null)
  6895. {
  6896. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6897. $instance->assertNotPushed($job, $callback);
  6898. }
  6899. /**
  6900. * Assert that no jobs were pushed.
  6901. *
  6902. * @return void
  6903. * @static
  6904. */
  6905. public static function assertNothingPushed()
  6906. {
  6907. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6908. $instance->assertNothingPushed();
  6909. }
  6910. /**
  6911. * Get all of the jobs matching a truth-test callback.
  6912. *
  6913. * @param string $job
  6914. * @param callable|null $callback
  6915. * @return \Illuminate\Support\Collection
  6916. * @static
  6917. */
  6918. public static function pushed($job, $callback = null)
  6919. {
  6920. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6921. return $instance->pushed($job, $callback);
  6922. }
  6923. /**
  6924. * Determine if there are any stored jobs for a given class.
  6925. *
  6926. * @param string $job
  6927. * @return bool
  6928. * @static
  6929. */
  6930. public static function hasPushed($job)
  6931. {
  6932. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6933. return $instance->hasPushed($job);
  6934. }
  6935. /**
  6936. * Get the size of the queue.
  6937. *
  6938. * @param string $queue
  6939. * @return int
  6940. * @static
  6941. */
  6942. public static function size($queue = null)
  6943. {
  6944. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6945. return $instance->size($queue);
  6946. }
  6947. /**
  6948. * Push a new job onto the queue.
  6949. *
  6950. * @param string $job
  6951. * @param mixed $data
  6952. * @param string $queue
  6953. * @return mixed
  6954. * @static
  6955. */
  6956. public static function push($job, $data = '', $queue = null)
  6957. {
  6958. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6959. return $instance->push($job, $data, $queue);
  6960. }
  6961. /**
  6962. * Push a raw payload onto the queue.
  6963. *
  6964. * @param string $payload
  6965. * @param string $queue
  6966. * @param array $options
  6967. * @return mixed
  6968. * @static
  6969. */
  6970. public static function pushRaw($payload, $queue = null, $options = array())
  6971. {
  6972. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6973. return $instance->pushRaw($payload, $queue, $options);
  6974. }
  6975. /**
  6976. * Push a new job onto the queue after a delay.
  6977. *
  6978. * @param \DateTime|int $delay
  6979. * @param string $job
  6980. * @param mixed $data
  6981. * @param string $queue
  6982. * @return mixed
  6983. * @static
  6984. */
  6985. public static function later($delay, $job, $data = '', $queue = null)
  6986. {
  6987. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6988. return $instance->later($delay, $job, $data, $queue);
  6989. }
  6990. /**
  6991. * Push a new job onto the queue.
  6992. *
  6993. * @param string $queue
  6994. * @param string $job
  6995. * @param mixed $data
  6996. * @return mixed
  6997. * @static
  6998. */
  6999. public static function pushOn($queue, $job, $data = '')
  7000. {
  7001. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7002. return $instance->pushOn($queue, $job, $data);
  7003. }
  7004. /**
  7005. * Push a new job onto the queue after a delay.
  7006. *
  7007. * @param string $queue
  7008. * @param \DateTime|int $delay
  7009. * @param string $job
  7010. * @param mixed $data
  7011. * @return mixed
  7012. * @static
  7013. */
  7014. public static function laterOn($queue, $delay, $job, $data = '')
  7015. {
  7016. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7017. return $instance->laterOn($queue, $delay, $job, $data);
  7018. }
  7019. /**
  7020. * Pop the next job off of the queue.
  7021. *
  7022. * @param string $queue
  7023. * @return \Illuminate\Contracts\Queue\Job|null
  7024. * @static
  7025. */
  7026. public static function pop($queue = null)
  7027. {
  7028. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7029. return $instance->pop($queue);
  7030. }
  7031. /**
  7032. * Push an array of jobs onto the queue.
  7033. *
  7034. * @param array $jobs
  7035. * @param mixed $data
  7036. * @param string $queue
  7037. * @return mixed
  7038. * @static
  7039. */
  7040. public static function bulk($jobs, $data = '', $queue = null)
  7041. {
  7042. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7043. return $instance->bulk($jobs, $data, $queue);
  7044. }
  7045. /**
  7046. * Get the connection name for the queue.
  7047. *
  7048. * @return string
  7049. * @static
  7050. */
  7051. public static function getConnectionName()
  7052. {
  7053. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7054. return $instance->getConnectionName();
  7055. }
  7056. /**
  7057. * Set the connection name for the queue.
  7058. *
  7059. * @param string $name
  7060. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  7061. * @static
  7062. */
  7063. public static function setConnectionName($name)
  7064. {
  7065. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7066. return $instance->setConnectionName($name);
  7067. }
  7068. /**
  7069. * Release a reserved job back onto the queue.
  7070. *
  7071. * @param string $queue
  7072. * @param \Illuminate\Queue\Jobs\DatabaseJobRecord $job
  7073. * @param int $delay
  7074. * @return mixed
  7075. * @static
  7076. */
  7077. public static function release($queue, $job, $delay)
  7078. {
  7079. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7080. return $instance->release($queue, $job, $delay);
  7081. }
  7082. /**
  7083. * Delete a reserved job from the queue.
  7084. *
  7085. * @param string $queue
  7086. * @param string $id
  7087. * @return void
  7088. * @throws \Exception|\Throwable
  7089. * @static
  7090. */
  7091. public static function deleteReserved($queue, $id)
  7092. {
  7093. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7094. $instance->deleteReserved($queue, $id);
  7095. }
  7096. /**
  7097. * Get the queue or return the default.
  7098. *
  7099. * @param string|null $queue
  7100. * @return string
  7101. * @static
  7102. */
  7103. public static function getQueue($queue)
  7104. {
  7105. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7106. return $instance->getQueue($queue);
  7107. }
  7108. /**
  7109. * Get the underlying database instance.
  7110. *
  7111. * @return \Illuminate\Database\Connection
  7112. * @static
  7113. */
  7114. public static function getDatabase()
  7115. {
  7116. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7117. return $instance->getDatabase();
  7118. }
  7119. /**
  7120. * Get the expiration timestamp for an object-based queue handler.
  7121. *
  7122. * @param mixed $job
  7123. * @return mixed
  7124. * @static
  7125. */
  7126. public static function getJobExpiration($job)
  7127. {
  7128. //Method inherited from \Illuminate\Queue\Queue
  7129. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7130. return $instance->getJobExpiration($job);
  7131. }
  7132. /**
  7133. * Set the IoC container instance.
  7134. *
  7135. * @param \Illuminate\Container\Container $container
  7136. * @return void
  7137. * @static
  7138. */
  7139. public static function setContainer($container)
  7140. {
  7141. //Method inherited from \Illuminate\Queue\Queue
  7142. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7143. $instance->setContainer($container);
  7144. }
  7145. }
  7146. /**
  7147. *
  7148. *
  7149. * @see \Illuminate\Routing\Redirector
  7150. */
  7151. class Redirect {
  7152. /**
  7153. * Create a new redirect response to the "home" route.
  7154. *
  7155. * @param int $status
  7156. * @return \Illuminate\Http\RedirectResponse
  7157. * @static
  7158. */
  7159. public static function home($status = 302)
  7160. {
  7161. /** @var \Illuminate\Routing\Redirector $instance */
  7162. return $instance->home($status);
  7163. }
  7164. /**
  7165. * Create a new redirect response to the previous location.
  7166. *
  7167. * @param int $status
  7168. * @param array $headers
  7169. * @param mixed $fallback
  7170. * @return \Illuminate\Http\RedirectResponse
  7171. * @static
  7172. */
  7173. public static function back($status = 302, $headers = array(), $fallback = false)
  7174. {
  7175. /** @var \Illuminate\Routing\Redirector $instance */
  7176. return $instance->back($status, $headers, $fallback);
  7177. }
  7178. /**
  7179. * Create a new redirect response to the current URI.
  7180. *
  7181. * @param int $status
  7182. * @param array $headers
  7183. * @return \Illuminate\Http\RedirectResponse
  7184. * @static
  7185. */
  7186. public static function refresh($status = 302, $headers = array())
  7187. {
  7188. /** @var \Illuminate\Routing\Redirector $instance */
  7189. return $instance->refresh($status, $headers);
  7190. }
  7191. /**
  7192. * Create a new redirect response, while putting the current URL in the session.
  7193. *
  7194. * @param string $path
  7195. * @param int $status
  7196. * @param array $headers
  7197. * @param bool $secure
  7198. * @return \Illuminate\Http\RedirectResponse
  7199. * @static
  7200. */
  7201. public static function guest($path, $status = 302, $headers = array(), $secure = null)
  7202. {
  7203. /** @var \Illuminate\Routing\Redirector $instance */
  7204. return $instance->guest($path, $status, $headers, $secure);
  7205. }
  7206. /**
  7207. * Create a new redirect response to the previously intended location.
  7208. *
  7209. * @param string $default
  7210. * @param int $status
  7211. * @param array $headers
  7212. * @param bool $secure
  7213. * @return \Illuminate\Http\RedirectResponse
  7214. * @static
  7215. */
  7216. public static function intended($default = '/', $status = 302, $headers = array(), $secure = null)
  7217. {
  7218. /** @var \Illuminate\Routing\Redirector $instance */
  7219. return $instance->intended($default, $status, $headers, $secure);
  7220. }
  7221. /**
  7222. * Create a new redirect response to the given path.
  7223. *
  7224. * @param string $path
  7225. * @param int $status
  7226. * @param array $headers
  7227. * @param bool $secure
  7228. * @return \Illuminate\Http\RedirectResponse
  7229. * @static
  7230. */
  7231. public static function to($path, $status = 302, $headers = array(), $secure = null)
  7232. {
  7233. /** @var \Illuminate\Routing\Redirector $instance */
  7234. return $instance->to($path, $status, $headers, $secure);
  7235. }
  7236. /**
  7237. * Create a new redirect response to an external URL (no validation).
  7238. *
  7239. * @param string $path
  7240. * @param int $status
  7241. * @param array $headers
  7242. * @return \Illuminate\Http\RedirectResponse
  7243. * @static
  7244. */
  7245. public static function away($path, $status = 302, $headers = array())
  7246. {
  7247. /** @var \Illuminate\Routing\Redirector $instance */
  7248. return $instance->away($path, $status, $headers);
  7249. }
  7250. /**
  7251. * Create a new redirect response to the given HTTPS path.
  7252. *
  7253. * @param string $path
  7254. * @param int $status
  7255. * @param array $headers
  7256. * @return \Illuminate\Http\RedirectResponse
  7257. * @static
  7258. */
  7259. public static function secure($path, $status = 302, $headers = array())
  7260. {
  7261. /** @var \Illuminate\Routing\Redirector $instance */
  7262. return $instance->secure($path, $status, $headers);
  7263. }
  7264. /**
  7265. * Create a new redirect response to a named route.
  7266. *
  7267. * @param string $route
  7268. * @param mixed $parameters
  7269. * @param int $status
  7270. * @param array $headers
  7271. * @return \Illuminate\Http\RedirectResponse
  7272. * @static
  7273. */
  7274. public static function route($route, $parameters = array(), $status = 302, $headers = array())
  7275. {
  7276. /** @var \Illuminate\Routing\Redirector $instance */
  7277. return $instance->route($route, $parameters, $status, $headers);
  7278. }
  7279. /**
  7280. * Create a new redirect response to a controller action.
  7281. *
  7282. * @param string $action
  7283. * @param mixed $parameters
  7284. * @param int $status
  7285. * @param array $headers
  7286. * @return \Illuminate\Http\RedirectResponse
  7287. * @static
  7288. */
  7289. public static function action($action, $parameters = array(), $status = 302, $headers = array())
  7290. {
  7291. /** @var \Illuminate\Routing\Redirector $instance */
  7292. return $instance->action($action, $parameters, $status, $headers);
  7293. }
  7294. /**
  7295. * Get the URL generator instance.
  7296. *
  7297. * @return \Illuminate\Routing\UrlGenerator
  7298. * @static
  7299. */
  7300. public static function getUrlGenerator()
  7301. {
  7302. /** @var \Illuminate\Routing\Redirector $instance */
  7303. return $instance->getUrlGenerator();
  7304. }
  7305. /**
  7306. * Set the active session store.
  7307. *
  7308. * @param \Illuminate\Session\Store $session
  7309. * @return void
  7310. * @static
  7311. */
  7312. public static function setSession($session)
  7313. {
  7314. /** @var \Illuminate\Routing\Redirector $instance */
  7315. $instance->setSession($session);
  7316. }
  7317. /**
  7318. * Register a custom macro.
  7319. *
  7320. * @param string $name
  7321. * @param object|callable $macro
  7322. * @return void
  7323. * @static
  7324. */
  7325. public static function macro($name, $macro)
  7326. {
  7327. \Illuminate\Routing\Redirector::macro($name, $macro);
  7328. }
  7329. /**
  7330. * Mix another object into the class.
  7331. *
  7332. * @param object $mixin
  7333. * @return void
  7334. * @throws \ReflectionException
  7335. * @static
  7336. */
  7337. public static function mixin($mixin)
  7338. {
  7339. \Illuminate\Routing\Redirector::mixin($mixin);
  7340. }
  7341. /**
  7342. * Checks if macro is registered.
  7343. *
  7344. * @param string $name
  7345. * @return bool
  7346. * @static
  7347. */
  7348. public static function hasMacro($name)
  7349. {
  7350. return \Illuminate\Routing\Redirector::hasMacro($name);
  7351. }
  7352. }
  7353. /**
  7354. *
  7355. *
  7356. * @see \Illuminate\Redis\RedisManager
  7357. * @see \Illuminate\Contracts\Redis\Factory
  7358. */
  7359. class Redis {
  7360. /**
  7361. * Get a Redis connection by name.
  7362. *
  7363. * @param string|null $name
  7364. * @return \Illuminate\Redis\Connections\Connection
  7365. * @static
  7366. */
  7367. public static function connection($name = null)
  7368. {
  7369. /** @var \Illuminate\Redis\RedisManager $instance */
  7370. return $instance->connection($name);
  7371. }
  7372. /**
  7373. * Resolve the given connection by name.
  7374. *
  7375. * @param string|null $name
  7376. * @return \Illuminate\Redis\Connections\Connection
  7377. * @throws \InvalidArgumentException
  7378. * @static
  7379. */
  7380. public static function resolve($name = null)
  7381. {
  7382. /** @var \Illuminate\Redis\RedisManager $instance */
  7383. return $instance->resolve($name);
  7384. }
  7385. /**
  7386. * Return all of the created connections.
  7387. *
  7388. * @return array
  7389. * @static
  7390. */
  7391. public static function connections()
  7392. {
  7393. /** @var \Illuminate\Redis\RedisManager $instance */
  7394. return $instance->connections();
  7395. }
  7396. }
  7397. /**
  7398. *
  7399. *
  7400. * @see \Illuminate\Http\Request
  7401. */
  7402. class Request {
  7403. /**
  7404. * Create a new Illuminate HTTP request from server variables.
  7405. *
  7406. * @return static
  7407. * @static
  7408. */
  7409. public static function capture()
  7410. {
  7411. return \Illuminate\Http\Request::capture();
  7412. }
  7413. /**
  7414. * Return the Request instance.
  7415. *
  7416. * @return \Illuminate\Http\Request
  7417. * @static
  7418. */
  7419. public static function instance()
  7420. {
  7421. /** @var \Illuminate\Http\Request $instance */
  7422. return $instance->instance();
  7423. }
  7424. /**
  7425. * Get the request method.
  7426. *
  7427. * @return string
  7428. * @static
  7429. */
  7430. public static function method()
  7431. {
  7432. /** @var \Illuminate\Http\Request $instance */
  7433. return $instance->method();
  7434. }
  7435. /**
  7436. * Get the root URL for the application.
  7437. *
  7438. * @return string
  7439. * @static
  7440. */
  7441. public static function root()
  7442. {
  7443. /** @var \Illuminate\Http\Request $instance */
  7444. return $instance->root();
  7445. }
  7446. /**
  7447. * Get the URL (no query string) for the request.
  7448. *
  7449. * @return string
  7450. * @static
  7451. */
  7452. public static function url()
  7453. {
  7454. /** @var \Illuminate\Http\Request $instance */
  7455. return $instance->url();
  7456. }
  7457. /**
  7458. * Get the full URL for the request.
  7459. *
  7460. * @return string
  7461. * @static
  7462. */
  7463. public static function fullUrl()
  7464. {
  7465. /** @var \Illuminate\Http\Request $instance */
  7466. return $instance->fullUrl();
  7467. }
  7468. /**
  7469. * Get the full URL for the request with the added query string parameters.
  7470. *
  7471. * @param array $query
  7472. * @return string
  7473. * @static
  7474. */
  7475. public static function fullUrlWithQuery($query)
  7476. {
  7477. /** @var \Illuminate\Http\Request $instance */
  7478. return $instance->fullUrlWithQuery($query);
  7479. }
  7480. /**
  7481. * Get the current path info for the request.
  7482. *
  7483. * @return string
  7484. * @static
  7485. */
  7486. public static function path()
  7487. {
  7488. /** @var \Illuminate\Http\Request $instance */
  7489. return $instance->path();
  7490. }
  7491. /**
  7492. * Get the current decoded path info for the request.
  7493. *
  7494. * @return string
  7495. * @static
  7496. */
  7497. public static function decodedPath()
  7498. {
  7499. /** @var \Illuminate\Http\Request $instance */
  7500. return $instance->decodedPath();
  7501. }
  7502. /**
  7503. * Get a segment from the URI (1 based index).
  7504. *
  7505. * @param int $index
  7506. * @param string|null $default
  7507. * @return string|null
  7508. * @static
  7509. */
  7510. public static function segment($index, $default = null)
  7511. {
  7512. /** @var \Illuminate\Http\Request $instance */
  7513. return $instance->segment($index, $default);
  7514. }
  7515. /**
  7516. * Get all of the segments for the request path.
  7517. *
  7518. * @return array
  7519. * @static
  7520. */
  7521. public static function segments()
  7522. {
  7523. /** @var \Illuminate\Http\Request $instance */
  7524. return $instance->segments();
  7525. }
  7526. /**
  7527. * Determine if the current request URI matches a pattern.
  7528. *
  7529. * @param mixed $patterns
  7530. * @return bool
  7531. * @static
  7532. */
  7533. public static function is($patterns = null)
  7534. {
  7535. /** @var \Illuminate\Http\Request $instance */
  7536. return $instance->is($patterns);
  7537. }
  7538. /**
  7539. * Determine if the route name matches a given pattern.
  7540. *
  7541. * @param mixed $patterns
  7542. * @return bool
  7543. * @static
  7544. */
  7545. public static function routeIs($patterns = null)
  7546. {
  7547. /** @var \Illuminate\Http\Request $instance */
  7548. return $instance->routeIs($patterns);
  7549. }
  7550. /**
  7551. * Determine if the current request URL and query string matches a pattern.
  7552. *
  7553. * @param mixed $patterns
  7554. * @return bool
  7555. * @static
  7556. */
  7557. public static function fullUrlIs($patterns = null)
  7558. {
  7559. /** @var \Illuminate\Http\Request $instance */
  7560. return $instance->fullUrlIs($patterns);
  7561. }
  7562. /**
  7563. * Determine if the request is the result of an AJAX call.
  7564. *
  7565. * @return bool
  7566. * @static
  7567. */
  7568. public static function ajax()
  7569. {
  7570. /** @var \Illuminate\Http\Request $instance */
  7571. return $instance->ajax();
  7572. }
  7573. /**
  7574. * Determine if the request is the result of an PJAX call.
  7575. *
  7576. * @return bool
  7577. * @static
  7578. */
  7579. public static function pjax()
  7580. {
  7581. /** @var \Illuminate\Http\Request $instance */
  7582. return $instance->pjax();
  7583. }
  7584. /**
  7585. * Determine if the request is over HTTPS.
  7586. *
  7587. * @return bool
  7588. * @static
  7589. */
  7590. public static function secure()
  7591. {
  7592. /** @var \Illuminate\Http\Request $instance */
  7593. return $instance->secure();
  7594. }
  7595. /**
  7596. * Get the client IP address.
  7597. *
  7598. * @return string
  7599. * @static
  7600. */
  7601. public static function ip()
  7602. {
  7603. /** @var \Illuminate\Http\Request $instance */
  7604. return $instance->ip();
  7605. }
  7606. /**
  7607. * Get the client IP addresses.
  7608. *
  7609. * @return array
  7610. * @static
  7611. */
  7612. public static function ips()
  7613. {
  7614. /** @var \Illuminate\Http\Request $instance */
  7615. return $instance->ips();
  7616. }
  7617. /**
  7618. * Get the client user agent.
  7619. *
  7620. * @return string
  7621. * @static
  7622. */
  7623. public static function userAgent()
  7624. {
  7625. /** @var \Illuminate\Http\Request $instance */
  7626. return $instance->userAgent();
  7627. }
  7628. /**
  7629. * Merge new input into the current request's input array.
  7630. *
  7631. * @param array $input
  7632. * @return \Illuminate\Http\Request
  7633. * @static
  7634. */
  7635. public static function merge($input)
  7636. {
  7637. /** @var \Illuminate\Http\Request $instance */
  7638. return $instance->merge($input);
  7639. }
  7640. /**
  7641. * Replace the input for the current request.
  7642. *
  7643. * @param array $input
  7644. * @return \Illuminate\Http\Request
  7645. * @static
  7646. */
  7647. public static function replace($input)
  7648. {
  7649. /** @var \Illuminate\Http\Request $instance */
  7650. return $instance->replace($input);
  7651. }
  7652. /**
  7653. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  7654. *
  7655. * Instead, you may use the "input" method.
  7656. *
  7657. * @param string $key
  7658. * @param mixed $default
  7659. * @return mixed
  7660. * @static
  7661. */
  7662. public static function get($key, $default = null)
  7663. {
  7664. /** @var \Illuminate\Http\Request $instance */
  7665. return $instance->get($key, $default);
  7666. }
  7667. /**
  7668. * Get the JSON payload for the request.
  7669. *
  7670. * @param string $key
  7671. * @param mixed $default
  7672. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  7673. * @static
  7674. */
  7675. public static function json($key = null, $default = null)
  7676. {
  7677. /** @var \Illuminate\Http\Request $instance */
  7678. return $instance->json($key, $default);
  7679. }
  7680. /**
  7681. * Create a new request instance from the given Laravel request.
  7682. *
  7683. * @param \Illuminate\Http\Request $from
  7684. * @param \Illuminate\Http\Request|null $to
  7685. * @return static
  7686. * @static
  7687. */
  7688. public static function createFrom($from, $to = null)
  7689. {
  7690. return \Illuminate\Http\Request::createFrom($from, $to);
  7691. }
  7692. /**
  7693. * Create an Illuminate request from a Symfony instance.
  7694. *
  7695. * @param \Symfony\Component\HttpFoundation\Request $request
  7696. * @return \Illuminate\Http\Request
  7697. * @static
  7698. */
  7699. public static function createFromBase($request)
  7700. {
  7701. return \Illuminate\Http\Request::createFromBase($request);
  7702. }
  7703. /**
  7704. * Clones a request and overrides some of its parameters.
  7705. *
  7706. * @param array $query The GET parameters
  7707. * @param array $request The POST parameters
  7708. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7709. * @param array $cookies The COOKIE parameters
  7710. * @param array $files The FILES parameters
  7711. * @param array $server The SERVER parameters
  7712. * @return static
  7713. * @static
  7714. */
  7715. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  7716. {
  7717. /** @var \Illuminate\Http\Request $instance */
  7718. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  7719. }
  7720. /**
  7721. * Get the session associated with the request.
  7722. *
  7723. * @return \Illuminate\Session\Store
  7724. * @throws \RuntimeException
  7725. * @static
  7726. */
  7727. public static function session()
  7728. {
  7729. /** @var \Illuminate\Http\Request $instance */
  7730. return $instance->session();
  7731. }
  7732. /**
  7733. * Get the session associated with the request.
  7734. *
  7735. * @return \Illuminate\Session\Store|null
  7736. * @static
  7737. */
  7738. public static function getSession()
  7739. {
  7740. /** @var \Illuminate\Http\Request $instance */
  7741. return $instance->getSession();
  7742. }
  7743. /**
  7744. * Set the session instance on the request.
  7745. *
  7746. * @param \Illuminate\Contracts\Session\Session $session
  7747. * @return void
  7748. * @static
  7749. */
  7750. public static function setLaravelSession($session)
  7751. {
  7752. /** @var \Illuminate\Http\Request $instance */
  7753. $instance->setLaravelSession($session);
  7754. }
  7755. /**
  7756. * Get the user making the request.
  7757. *
  7758. * @param string|null $guard
  7759. * @return mixed
  7760. * @static
  7761. */
  7762. public static function user($guard = null)
  7763. {
  7764. /** @var \Illuminate\Http\Request $instance */
  7765. return $instance->user($guard);
  7766. }
  7767. /**
  7768. * Get the route handling the request.
  7769. *
  7770. * @param string|null $param
  7771. * @return \Illuminate\Routing\Route|object|string
  7772. * @static
  7773. */
  7774. public static function route($param = null)
  7775. {
  7776. /** @var \Illuminate\Http\Request $instance */
  7777. return $instance->route($param);
  7778. }
  7779. /**
  7780. * Get a unique fingerprint for the request / route / IP address.
  7781. *
  7782. * @return string
  7783. * @throws \RuntimeException
  7784. * @static
  7785. */
  7786. public static function fingerprint()
  7787. {
  7788. /** @var \Illuminate\Http\Request $instance */
  7789. return $instance->fingerprint();
  7790. }
  7791. /**
  7792. * Set the JSON payload for the request.
  7793. *
  7794. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  7795. * @return \Illuminate\Http\Request
  7796. * @static
  7797. */
  7798. public static function setJson($json)
  7799. {
  7800. /** @var \Illuminate\Http\Request $instance */
  7801. return $instance->setJson($json);
  7802. }
  7803. /**
  7804. * Get the user resolver callback.
  7805. *
  7806. * @return \Closure
  7807. * @static
  7808. */
  7809. public static function getUserResolver()
  7810. {
  7811. /** @var \Illuminate\Http\Request $instance */
  7812. return $instance->getUserResolver();
  7813. }
  7814. /**
  7815. * Set the user resolver callback.
  7816. *
  7817. * @param \Closure $callback
  7818. * @return \Illuminate\Http\Request
  7819. * @static
  7820. */
  7821. public static function setUserResolver($callback)
  7822. {
  7823. /** @var \Illuminate\Http\Request $instance */
  7824. return $instance->setUserResolver($callback);
  7825. }
  7826. /**
  7827. * Get the route resolver callback.
  7828. *
  7829. * @return \Closure
  7830. * @static
  7831. */
  7832. public static function getRouteResolver()
  7833. {
  7834. /** @var \Illuminate\Http\Request $instance */
  7835. return $instance->getRouteResolver();
  7836. }
  7837. /**
  7838. * Set the route resolver callback.
  7839. *
  7840. * @param \Closure $callback
  7841. * @return \Illuminate\Http\Request
  7842. * @static
  7843. */
  7844. public static function setRouteResolver($callback)
  7845. {
  7846. /** @var \Illuminate\Http\Request $instance */
  7847. return $instance->setRouteResolver($callback);
  7848. }
  7849. /**
  7850. * Get all of the input and files for the request.
  7851. *
  7852. * @return array
  7853. * @static
  7854. */
  7855. public static function toArray()
  7856. {
  7857. /** @var \Illuminate\Http\Request $instance */
  7858. return $instance->toArray();
  7859. }
  7860. /**
  7861. * Determine if the given offset exists.
  7862. *
  7863. * @param string $offset
  7864. * @return bool
  7865. * @static
  7866. */
  7867. public static function offsetExists($offset)
  7868. {
  7869. /** @var \Illuminate\Http\Request $instance */
  7870. return $instance->offsetExists($offset);
  7871. }
  7872. /**
  7873. * Get the value at the given offset.
  7874. *
  7875. * @param string $offset
  7876. * @return mixed
  7877. * @static
  7878. */
  7879. public static function offsetGet($offset)
  7880. {
  7881. /** @var \Illuminate\Http\Request $instance */
  7882. return $instance->offsetGet($offset);
  7883. }
  7884. /**
  7885. * Set the value at the given offset.
  7886. *
  7887. * @param string $offset
  7888. * @param mixed $value
  7889. * @return void
  7890. * @static
  7891. */
  7892. public static function offsetSet($offset, $value)
  7893. {
  7894. /** @var \Illuminate\Http\Request $instance */
  7895. $instance->offsetSet($offset, $value);
  7896. }
  7897. /**
  7898. * Remove the value at the given offset.
  7899. *
  7900. * @param string $offset
  7901. * @return void
  7902. * @static
  7903. */
  7904. public static function offsetUnset($offset)
  7905. {
  7906. /** @var \Illuminate\Http\Request $instance */
  7907. $instance->offsetUnset($offset);
  7908. }
  7909. /**
  7910. * Sets the parameters for this request.
  7911. *
  7912. * This method also re-initializes all properties.
  7913. *
  7914. * @param array $query The GET parameters
  7915. * @param array $request The POST parameters
  7916. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7917. * @param array $cookies The COOKIE parameters
  7918. * @param array $files The FILES parameters
  7919. * @param array $server The SERVER parameters
  7920. * @param string|resource|null $content The raw body data
  7921. * @static
  7922. */
  7923. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  7924. {
  7925. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7926. /** @var \Illuminate\Http\Request $instance */
  7927. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  7928. }
  7929. /**
  7930. * Creates a new request with values from PHP's super globals.
  7931. *
  7932. * @return static
  7933. * @static
  7934. */
  7935. public static function createFromGlobals()
  7936. {
  7937. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7938. return \Illuminate\Http\Request::createFromGlobals();
  7939. }
  7940. /**
  7941. * Creates a Request based on a given URI and configuration.
  7942. *
  7943. * The information contained in the URI always take precedence
  7944. * over the other information (server and parameters).
  7945. *
  7946. * @param string $uri The URI
  7947. * @param string $method The HTTP method
  7948. * @param array $parameters The query (GET) or request (POST) parameters
  7949. * @param array $cookies The request cookies ($_COOKIE)
  7950. * @param array $files The request files ($_FILES)
  7951. * @param array $server The server parameters ($_SERVER)
  7952. * @param string|resource|null $content The raw body data
  7953. * @return static
  7954. * @static
  7955. */
  7956. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  7957. {
  7958. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7959. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  7960. }
  7961. /**
  7962. * Sets a callable able to create a Request instance.
  7963. *
  7964. * This is mainly useful when you need to override the Request class
  7965. * to keep BC with an existing system. It should not be used for any
  7966. * other purpose.
  7967. *
  7968. * @param callable|null $callable A PHP callable
  7969. * @static
  7970. */
  7971. public static function setFactory($callable)
  7972. {
  7973. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7974. return \Illuminate\Http\Request::setFactory($callable);
  7975. }
  7976. /**
  7977. * Overrides the PHP global variables according to this request instance.
  7978. *
  7979. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  7980. * $_FILES is never overridden, see rfc1867
  7981. *
  7982. * @static
  7983. */
  7984. public static function overrideGlobals()
  7985. {
  7986. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7987. /** @var \Illuminate\Http\Request $instance */
  7988. return $instance->overrideGlobals();
  7989. }
  7990. /**
  7991. * Sets a list of trusted proxies.
  7992. *
  7993. * You should only list the reverse proxies that you manage directly.
  7994. *
  7995. * @param array $proxies A list of trusted proxies
  7996. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  7997. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  7998. * @static
  7999. */
  8000. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  8001. {
  8002. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8003. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  8004. }
  8005. /**
  8006. * Gets the list of trusted proxies.
  8007. *
  8008. * @return array An array of trusted proxies
  8009. * @static
  8010. */
  8011. public static function getTrustedProxies()
  8012. {
  8013. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8014. return \Illuminate\Http\Request::getTrustedProxies();
  8015. }
  8016. /**
  8017. * Gets the set of trusted headers from trusted proxies.
  8018. *
  8019. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  8020. * @static
  8021. */
  8022. public static function getTrustedHeaderSet()
  8023. {
  8024. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8025. return \Illuminate\Http\Request::getTrustedHeaderSet();
  8026. }
  8027. /**
  8028. * Sets a list of trusted host patterns.
  8029. *
  8030. * You should only list the hosts you manage using regexs.
  8031. *
  8032. * @param array $hostPatterns A list of trusted host patterns
  8033. * @static
  8034. */
  8035. public static function setTrustedHosts($hostPatterns)
  8036. {
  8037. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8038. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  8039. }
  8040. /**
  8041. * Gets the list of trusted host patterns.
  8042. *
  8043. * @return array An array of trusted host patterns
  8044. * @static
  8045. */
  8046. public static function getTrustedHosts()
  8047. {
  8048. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8049. return \Illuminate\Http\Request::getTrustedHosts();
  8050. }
  8051. /**
  8052. * Normalizes a query string.
  8053. *
  8054. * It builds a normalized query string, where keys/value pairs are alphabetized,
  8055. * have consistent escaping and unneeded delimiters are removed.
  8056. *
  8057. * @param string $qs Query string
  8058. * @return string A normalized query string for the Request
  8059. * @static
  8060. */
  8061. public static function normalizeQueryString($qs)
  8062. {
  8063. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8064. return \Illuminate\Http\Request::normalizeQueryString($qs);
  8065. }
  8066. /**
  8067. * Enables support for the _method request parameter to determine the intended HTTP method.
  8068. *
  8069. * Be warned that enabling this feature might lead to CSRF issues in your code.
  8070. * Check that you are using CSRF tokens when required.
  8071. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  8072. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  8073. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  8074. *
  8075. * The HTTP method can only be overridden when the real HTTP method is POST.
  8076. *
  8077. * @static
  8078. */
  8079. public static function enableHttpMethodParameterOverride()
  8080. {
  8081. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8082. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  8083. }
  8084. /**
  8085. * Checks whether support for the _method request parameter is enabled.
  8086. *
  8087. * @return bool True when the _method request parameter is enabled, false otherwise
  8088. * @static
  8089. */
  8090. public static function getHttpMethodParameterOverride()
  8091. {
  8092. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8093. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  8094. }
  8095. /**
  8096. * Whether the request contains a Session which was started in one of the
  8097. * previous requests.
  8098. *
  8099. * @return bool
  8100. * @static
  8101. */
  8102. public static function hasPreviousSession()
  8103. {
  8104. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8105. /** @var \Illuminate\Http\Request $instance */
  8106. return $instance->hasPreviousSession();
  8107. }
  8108. /**
  8109. * Whether the request contains a Session object.
  8110. *
  8111. * This method does not give any information about the state of the session object,
  8112. * like whether the session is started or not. It is just a way to check if this Request
  8113. * is associated with a Session instance.
  8114. *
  8115. * @return bool true when the Request contains a Session object, false otherwise
  8116. * @static
  8117. */
  8118. public static function hasSession()
  8119. {
  8120. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8121. /** @var \Illuminate\Http\Request $instance */
  8122. return $instance->hasSession();
  8123. }
  8124. /**
  8125. * Sets the Session.
  8126. *
  8127. * @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
  8128. * @static
  8129. */
  8130. public static function setSession($session)
  8131. {
  8132. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8133. /** @var \Illuminate\Http\Request $instance */
  8134. return $instance->setSession($session);
  8135. }
  8136. /**
  8137. *
  8138. *
  8139. * @internal
  8140. * @static
  8141. */
  8142. public static function setSessionFactory($factory)
  8143. {
  8144. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8145. /** @var \Illuminate\Http\Request $instance */
  8146. return $instance->setSessionFactory($factory);
  8147. }
  8148. /**
  8149. * Returns the client IP addresses.
  8150. *
  8151. * In the returned array the most trusted IP address is first, and the
  8152. * least trusted one last. The "real" client IP address is the last one,
  8153. * but this is also the least trusted one. Trusted proxies are stripped.
  8154. *
  8155. * Use this method carefully; you should use getClientIp() instead.
  8156. *
  8157. * @return array The client IP addresses
  8158. * @see getClientIp()
  8159. * @static
  8160. */
  8161. public static function getClientIps()
  8162. {
  8163. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8164. /** @var \Illuminate\Http\Request $instance */
  8165. return $instance->getClientIps();
  8166. }
  8167. /**
  8168. * Returns the client IP address.
  8169. *
  8170. * This method can read the client IP address from the "X-Forwarded-For" header
  8171. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  8172. * header value is a comma+space separated list of IP addresses, the left-most
  8173. * being the original client, and each successive proxy that passed the request
  8174. * adding the IP address where it received the request from.
  8175. *
  8176. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  8177. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  8178. * argument of the Request::setTrustedProxies() method instead.
  8179. *
  8180. * @return string|null The client IP address
  8181. * @see getClientIps()
  8182. * @see https://wikipedia.org/wiki/X-Forwarded-For
  8183. * @static
  8184. */
  8185. public static function getClientIp()
  8186. {
  8187. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8188. /** @var \Illuminate\Http\Request $instance */
  8189. return $instance->getClientIp();
  8190. }
  8191. /**
  8192. * Returns current script name.
  8193. *
  8194. * @return string
  8195. * @static
  8196. */
  8197. public static function getScriptName()
  8198. {
  8199. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8200. /** @var \Illuminate\Http\Request $instance */
  8201. return $instance->getScriptName();
  8202. }
  8203. /**
  8204. * Returns the path being requested relative to the executed script.
  8205. *
  8206. * The path info always starts with a /.
  8207. *
  8208. * Suppose this request is instantiated from /mysite on localhost:
  8209. *
  8210. * * http://localhost/mysite returns an empty string
  8211. * * http://localhost/mysite/about returns '/about'
  8212. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  8213. * * http://localhost/mysite/about?var=1 returns '/about'
  8214. *
  8215. * @return string The raw path (i.e. not urldecoded)
  8216. * @static
  8217. */
  8218. public static function getPathInfo()
  8219. {
  8220. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8221. /** @var \Illuminate\Http\Request $instance */
  8222. return $instance->getPathInfo();
  8223. }
  8224. /**
  8225. * Returns the root path from which this request is executed.
  8226. *
  8227. * Suppose that an index.php file instantiates this request object:
  8228. *
  8229. * * http://localhost/index.php returns an empty string
  8230. * * http://localhost/index.php/page returns an empty string
  8231. * * http://localhost/web/index.php returns '/web'
  8232. * * http://localhost/we%20b/index.php returns '/we%20b'
  8233. *
  8234. * @return string The raw path (i.e. not urldecoded)
  8235. * @static
  8236. */
  8237. public static function getBasePath()
  8238. {
  8239. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8240. /** @var \Illuminate\Http\Request $instance */
  8241. return $instance->getBasePath();
  8242. }
  8243. /**
  8244. * Returns the root URL from which this request is executed.
  8245. *
  8246. * The base URL never ends with a /.
  8247. *
  8248. * This is similar to getBasePath(), except that it also includes the
  8249. * script filename (e.g. index.php) if one exists.
  8250. *
  8251. * @return string The raw URL (i.e. not urldecoded)
  8252. * @static
  8253. */
  8254. public static function getBaseUrl()
  8255. {
  8256. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8257. /** @var \Illuminate\Http\Request $instance */
  8258. return $instance->getBaseUrl();
  8259. }
  8260. /**
  8261. * Gets the request's scheme.
  8262. *
  8263. * @return string
  8264. * @static
  8265. */
  8266. public static function getScheme()
  8267. {
  8268. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8269. /** @var \Illuminate\Http\Request $instance */
  8270. return $instance->getScheme();
  8271. }
  8272. /**
  8273. * Returns the port on which the request is made.
  8274. *
  8275. * This method can read the client port from the "X-Forwarded-Port" header
  8276. * when trusted proxies were set via "setTrustedProxies()".
  8277. *
  8278. * The "X-Forwarded-Port" header must contain the client port.
  8279. *
  8280. * @return int|string can be a string if fetched from the server bag
  8281. * @static
  8282. */
  8283. public static function getPort()
  8284. {
  8285. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8286. /** @var \Illuminate\Http\Request $instance */
  8287. return $instance->getPort();
  8288. }
  8289. /**
  8290. * Returns the user.
  8291. *
  8292. * @return string|null
  8293. * @static
  8294. */
  8295. public static function getUser()
  8296. {
  8297. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8298. /** @var \Illuminate\Http\Request $instance */
  8299. return $instance->getUser();
  8300. }
  8301. /**
  8302. * Returns the password.
  8303. *
  8304. * @return string|null
  8305. * @static
  8306. */
  8307. public static function getPassword()
  8308. {
  8309. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8310. /** @var \Illuminate\Http\Request $instance */
  8311. return $instance->getPassword();
  8312. }
  8313. /**
  8314. * Gets the user info.
  8315. *
  8316. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  8317. * @static
  8318. */
  8319. public static function getUserInfo()
  8320. {
  8321. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8322. /** @var \Illuminate\Http\Request $instance */
  8323. return $instance->getUserInfo();
  8324. }
  8325. /**
  8326. * Returns the HTTP host being requested.
  8327. *
  8328. * The port name will be appended to the host if it's non-standard.
  8329. *
  8330. * @return string
  8331. * @static
  8332. */
  8333. public static function getHttpHost()
  8334. {
  8335. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8336. /** @var \Illuminate\Http\Request $instance */
  8337. return $instance->getHttpHost();
  8338. }
  8339. /**
  8340. * Returns the requested URI (path and query string).
  8341. *
  8342. * @return string The raw URI (i.e. not URI decoded)
  8343. * @static
  8344. */
  8345. public static function getRequestUri()
  8346. {
  8347. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8348. /** @var \Illuminate\Http\Request $instance */
  8349. return $instance->getRequestUri();
  8350. }
  8351. /**
  8352. * Gets the scheme and HTTP host.
  8353. *
  8354. * If the URL was called with basic authentication, the user
  8355. * and the password are not added to the generated string.
  8356. *
  8357. * @return string The scheme and HTTP host
  8358. * @static
  8359. */
  8360. public static function getSchemeAndHttpHost()
  8361. {
  8362. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8363. /** @var \Illuminate\Http\Request $instance */
  8364. return $instance->getSchemeAndHttpHost();
  8365. }
  8366. /**
  8367. * Generates a normalized URI (URL) for the Request.
  8368. *
  8369. * @return string A normalized URI (URL) for the Request
  8370. * @see getQueryString()
  8371. * @static
  8372. */
  8373. public static function getUri()
  8374. {
  8375. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8376. /** @var \Illuminate\Http\Request $instance */
  8377. return $instance->getUri();
  8378. }
  8379. /**
  8380. * Generates a normalized URI for the given path.
  8381. *
  8382. * @param string $path A path to use instead of the current one
  8383. * @return string The normalized URI for the path
  8384. * @static
  8385. */
  8386. public static function getUriForPath($path)
  8387. {
  8388. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8389. /** @var \Illuminate\Http\Request $instance */
  8390. return $instance->getUriForPath($path);
  8391. }
  8392. /**
  8393. * Returns the path as relative reference from the current Request path.
  8394. *
  8395. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  8396. * Both paths must be absolute and not contain relative parts.
  8397. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  8398. * Furthermore, they can be used to reduce the link size in documents.
  8399. *
  8400. * Example target paths, given a base path of "/a/b/c/d":
  8401. * - "/a/b/c/d" -> ""
  8402. * - "/a/b/c/" -> "./"
  8403. * - "/a/b/" -> "../"
  8404. * - "/a/b/c/other" -> "other"
  8405. * - "/a/x/y" -> "../../x/y"
  8406. *
  8407. * @param string $path The target path
  8408. * @return string The relative target path
  8409. * @static
  8410. */
  8411. public static function getRelativeUriForPath($path)
  8412. {
  8413. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8414. /** @var \Illuminate\Http\Request $instance */
  8415. return $instance->getRelativeUriForPath($path);
  8416. }
  8417. /**
  8418. * Generates the normalized query string for the Request.
  8419. *
  8420. * It builds a normalized query string, where keys/value pairs are alphabetized
  8421. * and have consistent escaping.
  8422. *
  8423. * @return string|null A normalized query string for the Request
  8424. * @static
  8425. */
  8426. public static function getQueryString()
  8427. {
  8428. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8429. /** @var \Illuminate\Http\Request $instance */
  8430. return $instance->getQueryString();
  8431. }
  8432. /**
  8433. * Checks whether the request is secure or not.
  8434. *
  8435. * This method can read the client protocol from the "X-Forwarded-Proto" header
  8436. * when trusted proxies were set via "setTrustedProxies()".
  8437. *
  8438. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  8439. *
  8440. * @return bool
  8441. * @static
  8442. */
  8443. public static function isSecure()
  8444. {
  8445. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8446. /** @var \Illuminate\Http\Request $instance */
  8447. return $instance->isSecure();
  8448. }
  8449. /**
  8450. * Returns the host name.
  8451. *
  8452. * This method can read the client host name from the "X-Forwarded-Host" header
  8453. * when trusted proxies were set via "setTrustedProxies()".
  8454. *
  8455. * The "X-Forwarded-Host" header must contain the client host name.
  8456. *
  8457. * @return string
  8458. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  8459. * @static
  8460. */
  8461. public static function getHost()
  8462. {
  8463. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8464. /** @var \Illuminate\Http\Request $instance */
  8465. return $instance->getHost();
  8466. }
  8467. /**
  8468. * Sets the request method.
  8469. *
  8470. * @param string $method
  8471. * @static
  8472. */
  8473. public static function setMethod($method)
  8474. {
  8475. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8476. /** @var \Illuminate\Http\Request $instance */
  8477. return $instance->setMethod($method);
  8478. }
  8479. /**
  8480. * Gets the request "intended" method.
  8481. *
  8482. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  8483. * then it is used to determine the "real" intended HTTP method.
  8484. *
  8485. * The _method request parameter can also be used to determine the HTTP method,
  8486. * but only if enableHttpMethodParameterOverride() has been called.
  8487. *
  8488. * The method is always an uppercased string.
  8489. *
  8490. * @return string The request method
  8491. * @see getRealMethod()
  8492. * @static
  8493. */
  8494. public static function getMethod()
  8495. {
  8496. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8497. /** @var \Illuminate\Http\Request $instance */
  8498. return $instance->getMethod();
  8499. }
  8500. /**
  8501. * Gets the "real" request method.
  8502. *
  8503. * @return string The request method
  8504. * @see getMethod()
  8505. * @static
  8506. */
  8507. public static function getRealMethod()
  8508. {
  8509. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8510. /** @var \Illuminate\Http\Request $instance */
  8511. return $instance->getRealMethod();
  8512. }
  8513. /**
  8514. * Gets the mime type associated with the format.
  8515. *
  8516. * @param string $format The format
  8517. * @return string|null The associated mime type (null if not found)
  8518. * @static
  8519. */
  8520. public static function getMimeType($format)
  8521. {
  8522. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8523. /** @var \Illuminate\Http\Request $instance */
  8524. return $instance->getMimeType($format);
  8525. }
  8526. /**
  8527. * Gets the mime types associated with the format.
  8528. *
  8529. * @param string $format The format
  8530. * @return array The associated mime types
  8531. * @static
  8532. */
  8533. public static function getMimeTypes($format)
  8534. {
  8535. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8536. return \Illuminate\Http\Request::getMimeTypes($format);
  8537. }
  8538. /**
  8539. * Gets the format associated with the mime type.
  8540. *
  8541. * @param string $mimeType The associated mime type
  8542. * @return string|null The format (null if not found)
  8543. * @static
  8544. */
  8545. public static function getFormat($mimeType)
  8546. {
  8547. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8548. /** @var \Illuminate\Http\Request $instance */
  8549. return $instance->getFormat($mimeType);
  8550. }
  8551. /**
  8552. * Associates a format with mime types.
  8553. *
  8554. * @param string $format The format
  8555. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  8556. * @static
  8557. */
  8558. public static function setFormat($format, $mimeTypes)
  8559. {
  8560. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8561. /** @var \Illuminate\Http\Request $instance */
  8562. return $instance->setFormat($format, $mimeTypes);
  8563. }
  8564. /**
  8565. * Gets the request format.
  8566. *
  8567. * Here is the process to determine the format:
  8568. *
  8569. * * format defined by the user (with setRequestFormat())
  8570. * * _format request attribute
  8571. * * $default
  8572. *
  8573. * @param string|null $default The default format
  8574. * @return string|null The request format
  8575. * @static
  8576. */
  8577. public static function getRequestFormat($default = 'html')
  8578. {
  8579. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8580. /** @var \Illuminate\Http\Request $instance */
  8581. return $instance->getRequestFormat($default);
  8582. }
  8583. /**
  8584. * Sets the request format.
  8585. *
  8586. * @param string $format The request format
  8587. * @static
  8588. */
  8589. public static function setRequestFormat($format)
  8590. {
  8591. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8592. /** @var \Illuminate\Http\Request $instance */
  8593. return $instance->setRequestFormat($format);
  8594. }
  8595. /**
  8596. * Gets the format associated with the request.
  8597. *
  8598. * @return string|null The format (null if no content type is present)
  8599. * @static
  8600. */
  8601. public static function getContentType()
  8602. {
  8603. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8604. /** @var \Illuminate\Http\Request $instance */
  8605. return $instance->getContentType();
  8606. }
  8607. /**
  8608. * Sets the default locale.
  8609. *
  8610. * @param string $locale
  8611. * @static
  8612. */
  8613. public static function setDefaultLocale($locale)
  8614. {
  8615. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8616. /** @var \Illuminate\Http\Request $instance */
  8617. return $instance->setDefaultLocale($locale);
  8618. }
  8619. /**
  8620. * Get the default locale.
  8621. *
  8622. * @return string
  8623. * @static
  8624. */
  8625. public static function getDefaultLocale()
  8626. {
  8627. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8628. /** @var \Illuminate\Http\Request $instance */
  8629. return $instance->getDefaultLocale();
  8630. }
  8631. /**
  8632. * Sets the locale.
  8633. *
  8634. * @param string $locale
  8635. * @static
  8636. */
  8637. public static function setLocale($locale)
  8638. {
  8639. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8640. /** @var \Illuminate\Http\Request $instance */
  8641. return $instance->setLocale($locale);
  8642. }
  8643. /**
  8644. * Get the locale.
  8645. *
  8646. * @return string
  8647. * @static
  8648. */
  8649. public static function getLocale()
  8650. {
  8651. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8652. /** @var \Illuminate\Http\Request $instance */
  8653. return $instance->getLocale();
  8654. }
  8655. /**
  8656. * Checks if the request method is of specified type.
  8657. *
  8658. * @param string $method Uppercase request method (GET, POST etc)
  8659. * @return bool
  8660. * @static
  8661. */
  8662. public static function isMethod($method)
  8663. {
  8664. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8665. /** @var \Illuminate\Http\Request $instance */
  8666. return $instance->isMethod($method);
  8667. }
  8668. /**
  8669. * Checks whether or not the method is safe.
  8670. *
  8671. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  8672. * @return bool
  8673. * @static
  8674. */
  8675. public static function isMethodSafe()
  8676. {
  8677. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8678. /** @var \Illuminate\Http\Request $instance */
  8679. return $instance->isMethodSafe();
  8680. }
  8681. /**
  8682. * Checks whether or not the method is idempotent.
  8683. *
  8684. * @return bool
  8685. * @static
  8686. */
  8687. public static function isMethodIdempotent()
  8688. {
  8689. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8690. /** @var \Illuminate\Http\Request $instance */
  8691. return $instance->isMethodIdempotent();
  8692. }
  8693. /**
  8694. * Checks whether the method is cacheable or not.
  8695. *
  8696. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  8697. * @return bool True for GET and HEAD, false otherwise
  8698. * @static
  8699. */
  8700. public static function isMethodCacheable()
  8701. {
  8702. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8703. /** @var \Illuminate\Http\Request $instance */
  8704. return $instance->isMethodCacheable();
  8705. }
  8706. /**
  8707. * Returns the protocol version.
  8708. *
  8709. * If the application is behind a proxy, the protocol version used in the
  8710. * requests between the client and the proxy and between the proxy and the
  8711. * server might be different. This returns the former (from the "Via" header)
  8712. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  8713. * the latter (from the "SERVER_PROTOCOL" server parameter).
  8714. *
  8715. * @return string
  8716. * @static
  8717. */
  8718. public static function getProtocolVersion()
  8719. {
  8720. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8721. /** @var \Illuminate\Http\Request $instance */
  8722. return $instance->getProtocolVersion();
  8723. }
  8724. /**
  8725. * Returns the request body content.
  8726. *
  8727. * @param bool $asResource If true, a resource will be returned
  8728. * @return string|resource The request body content or a resource to read the body stream
  8729. * @throws \LogicException
  8730. * @static
  8731. */
  8732. public static function getContent($asResource = false)
  8733. {
  8734. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8735. /** @var \Illuminate\Http\Request $instance */
  8736. return $instance->getContent($asResource);
  8737. }
  8738. /**
  8739. * Gets the Etags.
  8740. *
  8741. * @return array The entity tags
  8742. * @static
  8743. */
  8744. public static function getETags()
  8745. {
  8746. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8747. /** @var \Illuminate\Http\Request $instance */
  8748. return $instance->getETags();
  8749. }
  8750. /**
  8751. *
  8752. *
  8753. * @return bool
  8754. * @static
  8755. */
  8756. public static function isNoCache()
  8757. {
  8758. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8759. /** @var \Illuminate\Http\Request $instance */
  8760. return $instance->isNoCache();
  8761. }
  8762. /**
  8763. * Returns the preferred language.
  8764. *
  8765. * @param array $locales An array of ordered available locales
  8766. * @return string|null The preferred locale
  8767. * @static
  8768. */
  8769. public static function getPreferredLanguage($locales = null)
  8770. {
  8771. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8772. /** @var \Illuminate\Http\Request $instance */
  8773. return $instance->getPreferredLanguage($locales);
  8774. }
  8775. /**
  8776. * Gets a list of languages acceptable by the client browser.
  8777. *
  8778. * @return array Languages ordered in the user browser preferences
  8779. * @static
  8780. */
  8781. public static function getLanguages()
  8782. {
  8783. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8784. /** @var \Illuminate\Http\Request $instance */
  8785. return $instance->getLanguages();
  8786. }
  8787. /**
  8788. * Gets a list of charsets acceptable by the client browser.
  8789. *
  8790. * @return array List of charsets in preferable order
  8791. * @static
  8792. */
  8793. public static function getCharsets()
  8794. {
  8795. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8796. /** @var \Illuminate\Http\Request $instance */
  8797. return $instance->getCharsets();
  8798. }
  8799. /**
  8800. * Gets a list of encodings acceptable by the client browser.
  8801. *
  8802. * @return array List of encodings in preferable order
  8803. * @static
  8804. */
  8805. public static function getEncodings()
  8806. {
  8807. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8808. /** @var \Illuminate\Http\Request $instance */
  8809. return $instance->getEncodings();
  8810. }
  8811. /**
  8812. * Gets a list of content types acceptable by the client browser.
  8813. *
  8814. * @return array List of content types in preferable order
  8815. * @static
  8816. */
  8817. public static function getAcceptableContentTypes()
  8818. {
  8819. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8820. /** @var \Illuminate\Http\Request $instance */
  8821. return $instance->getAcceptableContentTypes();
  8822. }
  8823. /**
  8824. * Returns true if the request is a XMLHttpRequest.
  8825. *
  8826. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  8827. * It is known to work with common JavaScript frameworks:
  8828. *
  8829. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  8830. * @return bool true if the request is an XMLHttpRequest, false otherwise
  8831. * @static
  8832. */
  8833. public static function isXmlHttpRequest()
  8834. {
  8835. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8836. /** @var \Illuminate\Http\Request $instance */
  8837. return $instance->isXmlHttpRequest();
  8838. }
  8839. /**
  8840. * Indicates whether this request originated from a trusted proxy.
  8841. *
  8842. * This can be useful to determine whether or not to trust the
  8843. * contents of a proxy-specific header.
  8844. *
  8845. * @return bool true if the request came from a trusted proxy, false otherwise
  8846. * @static
  8847. */
  8848. public static function isFromTrustedProxy()
  8849. {
  8850. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8851. /** @var \Illuminate\Http\Request $instance */
  8852. return $instance->isFromTrustedProxy();
  8853. }
  8854. /**
  8855. * Determine if the given content types match.
  8856. *
  8857. * @param string $actual
  8858. * @param string $type
  8859. * @return bool
  8860. * @static
  8861. */
  8862. public static function matchesType($actual, $type)
  8863. {
  8864. return \Illuminate\Http\Request::matchesType($actual, $type);
  8865. }
  8866. /**
  8867. * Determine if the request is sending JSON.
  8868. *
  8869. * @return bool
  8870. * @static
  8871. */
  8872. public static function isJson()
  8873. {
  8874. /** @var \Illuminate\Http\Request $instance */
  8875. return $instance->isJson();
  8876. }
  8877. /**
  8878. * Determine if the current request probably expects a JSON response.
  8879. *
  8880. * @return bool
  8881. * @static
  8882. */
  8883. public static function expectsJson()
  8884. {
  8885. /** @var \Illuminate\Http\Request $instance */
  8886. return $instance->expectsJson();
  8887. }
  8888. /**
  8889. * Determine if the current request is asking for JSON.
  8890. *
  8891. * @return bool
  8892. * @static
  8893. */
  8894. public static function wantsJson()
  8895. {
  8896. /** @var \Illuminate\Http\Request $instance */
  8897. return $instance->wantsJson();
  8898. }
  8899. /**
  8900. * Determines whether the current requests accepts a given content type.
  8901. *
  8902. * @param string|array $contentTypes
  8903. * @return bool
  8904. * @static
  8905. */
  8906. public static function accepts($contentTypes)
  8907. {
  8908. /** @var \Illuminate\Http\Request $instance */
  8909. return $instance->accepts($contentTypes);
  8910. }
  8911. /**
  8912. * Return the most suitable content type from the given array based on content negotiation.
  8913. *
  8914. * @param string|array $contentTypes
  8915. * @return string|null
  8916. * @static
  8917. */
  8918. public static function prefers($contentTypes)
  8919. {
  8920. /** @var \Illuminate\Http\Request $instance */
  8921. return $instance->prefers($contentTypes);
  8922. }
  8923. /**
  8924. * Determine if the current request accepts any content type.
  8925. *
  8926. * @return bool
  8927. * @static
  8928. */
  8929. public static function acceptsAnyContentType()
  8930. {
  8931. /** @var \Illuminate\Http\Request $instance */
  8932. return $instance->acceptsAnyContentType();
  8933. }
  8934. /**
  8935. * Determines whether a request accepts JSON.
  8936. *
  8937. * @return bool
  8938. * @static
  8939. */
  8940. public static function acceptsJson()
  8941. {
  8942. /** @var \Illuminate\Http\Request $instance */
  8943. return $instance->acceptsJson();
  8944. }
  8945. /**
  8946. * Determines whether a request accepts HTML.
  8947. *
  8948. * @return bool
  8949. * @static
  8950. */
  8951. public static function acceptsHtml()
  8952. {
  8953. /** @var \Illuminate\Http\Request $instance */
  8954. return $instance->acceptsHtml();
  8955. }
  8956. /**
  8957. * Get the data format expected in the response.
  8958. *
  8959. * @param string $default
  8960. * @return string
  8961. * @static
  8962. */
  8963. public static function format($default = 'html')
  8964. {
  8965. /** @var \Illuminate\Http\Request $instance */
  8966. return $instance->format($default);
  8967. }
  8968. /**
  8969. * Retrieve an old input item.
  8970. *
  8971. * @param string $key
  8972. * @param string|array|null $default
  8973. * @return string|array
  8974. * @static
  8975. */
  8976. public static function old($key = null, $default = null)
  8977. {
  8978. /** @var \Illuminate\Http\Request $instance */
  8979. return $instance->old($key, $default);
  8980. }
  8981. /**
  8982. * Flash the input for the current request to the session.
  8983. *
  8984. * @return void
  8985. * @static
  8986. */
  8987. public static function flash()
  8988. {
  8989. /** @var \Illuminate\Http\Request $instance */
  8990. $instance->flash();
  8991. }
  8992. /**
  8993. * Flash only some of the input to the session.
  8994. *
  8995. * @param array|mixed $keys
  8996. * @return void
  8997. * @static
  8998. */
  8999. public static function flashOnly($keys)
  9000. {
  9001. /** @var \Illuminate\Http\Request $instance */
  9002. $instance->flashOnly($keys);
  9003. }
  9004. /**
  9005. * Flash only some of the input to the session.
  9006. *
  9007. * @param array|mixed $keys
  9008. * @return void
  9009. * @static
  9010. */
  9011. public static function flashExcept($keys)
  9012. {
  9013. /** @var \Illuminate\Http\Request $instance */
  9014. $instance->flashExcept($keys);
  9015. }
  9016. /**
  9017. * Flush all of the old input from the session.
  9018. *
  9019. * @return void
  9020. * @static
  9021. */
  9022. public static function flush()
  9023. {
  9024. /** @var \Illuminate\Http\Request $instance */
  9025. $instance->flush();
  9026. }
  9027. /**
  9028. * Retrieve a server variable from the request.
  9029. *
  9030. * @param string $key
  9031. * @param string|array|null $default
  9032. * @return string|array
  9033. * @static
  9034. */
  9035. public static function server($key = null, $default = null)
  9036. {
  9037. /** @var \Illuminate\Http\Request $instance */
  9038. return $instance->server($key, $default);
  9039. }
  9040. /**
  9041. * Determine if a header is set on the request.
  9042. *
  9043. * @param string $key
  9044. * @return bool
  9045. * @static
  9046. */
  9047. public static function hasHeader($key)
  9048. {
  9049. /** @var \Illuminate\Http\Request $instance */
  9050. return $instance->hasHeader($key);
  9051. }
  9052. /**
  9053. * Retrieve a header from the request.
  9054. *
  9055. * @param string $key
  9056. * @param string|array|null $default
  9057. * @return string|array
  9058. * @static
  9059. */
  9060. public static function header($key = null, $default = null)
  9061. {
  9062. /** @var \Illuminate\Http\Request $instance */
  9063. return $instance->header($key, $default);
  9064. }
  9065. /**
  9066. * Get the bearer token from the request headers.
  9067. *
  9068. * @return string|null
  9069. * @static
  9070. */
  9071. public static function bearerToken()
  9072. {
  9073. /** @var \Illuminate\Http\Request $instance */
  9074. return $instance->bearerToken();
  9075. }
  9076. /**
  9077. * Determine if the request contains a given input item key.
  9078. *
  9079. * @param string|array $key
  9080. * @return bool
  9081. * @static
  9082. */
  9083. public static function exists($key)
  9084. {
  9085. /** @var \Illuminate\Http\Request $instance */
  9086. return $instance->exists($key);
  9087. }
  9088. /**
  9089. * Determine if the request contains a given input item key.
  9090. *
  9091. * @param string|array $key
  9092. * @return bool
  9093. * @static
  9094. */
  9095. public static function has($key)
  9096. {
  9097. /** @var \Illuminate\Http\Request $instance */
  9098. return $instance->has($key);
  9099. }
  9100. /**
  9101. * Determine if the request contains any of the given inputs.
  9102. *
  9103. * @param string|array $keys
  9104. * @return bool
  9105. * @static
  9106. */
  9107. public static function hasAny($keys)
  9108. {
  9109. /** @var \Illuminate\Http\Request $instance */
  9110. return $instance->hasAny($keys);
  9111. }
  9112. /**
  9113. * Determine if the request contains a non-empty value for an input item.
  9114. *
  9115. * @param string|array $key
  9116. * @return bool
  9117. * @static
  9118. */
  9119. public static function filled($key)
  9120. {
  9121. /** @var \Illuminate\Http\Request $instance */
  9122. return $instance->filled($key);
  9123. }
  9124. /**
  9125. * Determine if the request contains a non-empty value for any of the given inputs.
  9126. *
  9127. * @param string|array $keys
  9128. * @return bool
  9129. * @static
  9130. */
  9131. public static function anyFilled($keys)
  9132. {
  9133. /** @var \Illuminate\Http\Request $instance */
  9134. return $instance->anyFilled($keys);
  9135. }
  9136. /**
  9137. * Get the keys for all of the input and files.
  9138. *
  9139. * @return array
  9140. * @static
  9141. */
  9142. public static function keys()
  9143. {
  9144. /** @var \Illuminate\Http\Request $instance */
  9145. return $instance->keys();
  9146. }
  9147. /**
  9148. * Get all of the input and files for the request.
  9149. *
  9150. * @param array|mixed $keys
  9151. * @return array
  9152. * @static
  9153. */
  9154. public static function all($keys = null)
  9155. {
  9156. /** @var \Illuminate\Http\Request $instance */
  9157. return $instance->all($keys);
  9158. }
  9159. /**
  9160. * Retrieve an input item from the request.
  9161. *
  9162. * @param string|null $key
  9163. * @param string|array|null $default
  9164. * @return string|array|null
  9165. * @static
  9166. */
  9167. public static function input($key = null, $default = null)
  9168. {
  9169. /** @var \Illuminate\Http\Request $instance */
  9170. return $instance->input($key, $default);
  9171. }
  9172. /**
  9173. * Get a subset containing the provided keys with values from the input data.
  9174. *
  9175. * @param array|mixed $keys
  9176. * @return array
  9177. * @static
  9178. */
  9179. public static function only($keys)
  9180. {
  9181. /** @var \Illuminate\Http\Request $instance */
  9182. return $instance->only($keys);
  9183. }
  9184. /**
  9185. * Get all of the input except for a specified array of items.
  9186. *
  9187. * @param array|mixed $keys
  9188. * @return array
  9189. * @static
  9190. */
  9191. public static function except($keys)
  9192. {
  9193. /** @var \Illuminate\Http\Request $instance */
  9194. return $instance->except($keys);
  9195. }
  9196. /**
  9197. * Retrieve a query string item from the request.
  9198. *
  9199. * @param string $key
  9200. * @param string|array|null $default
  9201. * @return string|array
  9202. * @static
  9203. */
  9204. public static function query($key = null, $default = null)
  9205. {
  9206. /** @var \Illuminate\Http\Request $instance */
  9207. return $instance->query($key, $default);
  9208. }
  9209. /**
  9210. * Retrieve a request payload item from the request.
  9211. *
  9212. * @param string $key
  9213. * @param string|array|null $default
  9214. * @return string|array
  9215. * @static
  9216. */
  9217. public static function post($key = null, $default = null)
  9218. {
  9219. /** @var \Illuminate\Http\Request $instance */
  9220. return $instance->post($key, $default);
  9221. }
  9222. /**
  9223. * Determine if a cookie is set on the request.
  9224. *
  9225. * @param string $key
  9226. * @return bool
  9227. * @static
  9228. */
  9229. public static function hasCookie($key)
  9230. {
  9231. /** @var \Illuminate\Http\Request $instance */
  9232. return $instance->hasCookie($key);
  9233. }
  9234. /**
  9235. * Retrieve a cookie from the request.
  9236. *
  9237. * @param string $key
  9238. * @param string|array|null $default
  9239. * @return string|array
  9240. * @static
  9241. */
  9242. public static function cookie($key = null, $default = null)
  9243. {
  9244. /** @var \Illuminate\Http\Request $instance */
  9245. return $instance->cookie($key, $default);
  9246. }
  9247. /**
  9248. * Get an array of all of the files on the request.
  9249. *
  9250. * @return array
  9251. * @static
  9252. */
  9253. public static function allFiles()
  9254. {
  9255. /** @var \Illuminate\Http\Request $instance */
  9256. return $instance->allFiles();
  9257. }
  9258. /**
  9259. * Determine if the uploaded data contains a file.
  9260. *
  9261. * @param string $key
  9262. * @return bool
  9263. * @static
  9264. */
  9265. public static function hasFile($key)
  9266. {
  9267. /** @var \Illuminate\Http\Request $instance */
  9268. return $instance->hasFile($key);
  9269. }
  9270. /**
  9271. * Retrieve a file from the request.
  9272. *
  9273. * @param string $key
  9274. * @param mixed $default
  9275. * @return \Illuminate\Http\UploadedFile|array|null
  9276. * @static
  9277. */
  9278. public static function file($key = null, $default = null)
  9279. {
  9280. /** @var \Illuminate\Http\Request $instance */
  9281. return $instance->file($key, $default);
  9282. }
  9283. /**
  9284. * Register a custom macro.
  9285. *
  9286. * @param string $name
  9287. * @param object|callable $macro
  9288. * @return void
  9289. * @static
  9290. */
  9291. public static function macro($name, $macro)
  9292. {
  9293. \Illuminate\Http\Request::macro($name, $macro);
  9294. }
  9295. /**
  9296. * Mix another object into the class.
  9297. *
  9298. * @param object $mixin
  9299. * @return void
  9300. * @throws \ReflectionException
  9301. * @static
  9302. */
  9303. public static function mixin($mixin)
  9304. {
  9305. \Illuminate\Http\Request::mixin($mixin);
  9306. }
  9307. /**
  9308. * Checks if macro is registered.
  9309. *
  9310. * @param string $name
  9311. * @return bool
  9312. * @static
  9313. */
  9314. public static function hasMacro($name)
  9315. {
  9316. return \Illuminate\Http\Request::hasMacro($name);
  9317. }
  9318. /**
  9319. *
  9320. *
  9321. * @static
  9322. */
  9323. public static function validate($rules, $params = null)
  9324. {
  9325. return \Illuminate\Http\Request::validate($rules, $params);
  9326. }
  9327. /**
  9328. *
  9329. *
  9330. * @static
  9331. */
  9332. public static function hasValidSignature()
  9333. {
  9334. return \Illuminate\Http\Request::hasValidSignature();
  9335. }
  9336. }
  9337. /**
  9338. *
  9339. *
  9340. * @see \Illuminate\Contracts\Routing\ResponseFactory
  9341. */
  9342. class Response {
  9343. /**
  9344. * Return a new response from the application.
  9345. *
  9346. * @param string $content
  9347. * @param int $status
  9348. * @param array $headers
  9349. * @return \Illuminate\Http\Response
  9350. * @static
  9351. */
  9352. public static function make($content = '', $status = 200, $headers = array())
  9353. {
  9354. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9355. return $instance->make($content, $status, $headers);
  9356. }
  9357. /**
  9358. * Return a new view response from the application.
  9359. *
  9360. * @param string $view
  9361. * @param array $data
  9362. * @param int $status
  9363. * @param array $headers
  9364. * @return \Illuminate\Http\Response
  9365. * @static
  9366. */
  9367. public static function view($view, $data = array(), $status = 200, $headers = array())
  9368. {
  9369. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9370. return $instance->view($view, $data, $status, $headers);
  9371. }
  9372. /**
  9373. * Return a new JSON response from the application.
  9374. *
  9375. * @param mixed $data
  9376. * @param int $status
  9377. * @param array $headers
  9378. * @param int $options
  9379. * @return \Illuminate\Http\JsonResponse
  9380. * @static
  9381. */
  9382. public static function json($data = array(), $status = 200, $headers = array(), $options = 0)
  9383. {
  9384. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9385. return $instance->json($data, $status, $headers, $options);
  9386. }
  9387. /**
  9388. * Return a new JSONP response from the application.
  9389. *
  9390. * @param string $callback
  9391. * @param mixed $data
  9392. * @param int $status
  9393. * @param array $headers
  9394. * @param int $options
  9395. * @return \Illuminate\Http\JsonResponse
  9396. * @static
  9397. */
  9398. public static function jsonp($callback, $data = array(), $status = 200, $headers = array(), $options = 0)
  9399. {
  9400. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9401. return $instance->jsonp($callback, $data, $status, $headers, $options);
  9402. }
  9403. /**
  9404. * Return a new streamed response from the application.
  9405. *
  9406. * @param \Closure $callback
  9407. * @param int $status
  9408. * @param array $headers
  9409. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9410. * @static
  9411. */
  9412. public static function stream($callback, $status = 200, $headers = array())
  9413. {
  9414. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9415. return $instance->stream($callback, $status, $headers);
  9416. }
  9417. /**
  9418. * Return a new streamed response as a file download from the application.
  9419. *
  9420. * @param \Closure $callback
  9421. * @param string|null $name
  9422. * @param array $headers
  9423. * @param string|null $disposition
  9424. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9425. * @static
  9426. */
  9427. public static function streamDownload($callback, $name = null, $headers = array(), $disposition = 'attachment')
  9428. {
  9429. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9430. return $instance->streamDownload($callback, $name, $headers, $disposition);
  9431. }
  9432. /**
  9433. * Create a new file download response.
  9434. *
  9435. * @param \SplFileInfo|string $file
  9436. * @param string|null $name
  9437. * @param array $headers
  9438. * @param string|null $disposition
  9439. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9440. * @static
  9441. */
  9442. public static function download($file, $name = null, $headers = array(), $disposition = 'attachment')
  9443. {
  9444. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9445. return $instance->download($file, $name, $headers, $disposition);
  9446. }
  9447. /**
  9448. * Return the raw contents of a binary file.
  9449. *
  9450. * @param \SplFileInfo|string $file
  9451. * @param array $headers
  9452. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9453. * @static
  9454. */
  9455. public static function file($file, $headers = array())
  9456. {
  9457. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9458. return $instance->file($file, $headers);
  9459. }
  9460. /**
  9461. * Create a new redirect response to the given path.
  9462. *
  9463. * @param string $path
  9464. * @param int $status
  9465. * @param array $headers
  9466. * @param bool|null $secure
  9467. * @return \Illuminate\Http\RedirectResponse
  9468. * @static
  9469. */
  9470. public static function redirectTo($path, $status = 302, $headers = array(), $secure = null)
  9471. {
  9472. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9473. return $instance->redirectTo($path, $status, $headers, $secure);
  9474. }
  9475. /**
  9476. * Create a new redirect response to a named route.
  9477. *
  9478. * @param string $route
  9479. * @param array $parameters
  9480. * @param int $status
  9481. * @param array $headers
  9482. * @return \Illuminate\Http\RedirectResponse
  9483. * @static
  9484. */
  9485. public static function redirectToRoute($route, $parameters = array(), $status = 302, $headers = array())
  9486. {
  9487. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9488. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  9489. }
  9490. /**
  9491. * Create a new redirect response to a controller action.
  9492. *
  9493. * @param string $action
  9494. * @param array $parameters
  9495. * @param int $status
  9496. * @param array $headers
  9497. * @return \Illuminate\Http\RedirectResponse
  9498. * @static
  9499. */
  9500. public static function redirectToAction($action, $parameters = array(), $status = 302, $headers = array())
  9501. {
  9502. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9503. return $instance->redirectToAction($action, $parameters, $status, $headers);
  9504. }
  9505. /**
  9506. * Create a new redirect response, while putting the current URL in the session.
  9507. *
  9508. * @param string $path
  9509. * @param int $status
  9510. * @param array $headers
  9511. * @param bool|null $secure
  9512. * @return \Illuminate\Http\RedirectResponse
  9513. * @static
  9514. */
  9515. public static function redirectGuest($path, $status = 302, $headers = array(), $secure = null)
  9516. {
  9517. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9518. return $instance->redirectGuest($path, $status, $headers, $secure);
  9519. }
  9520. /**
  9521. * Create a new redirect response to the previously intended location.
  9522. *
  9523. * @param string $default
  9524. * @param int $status
  9525. * @param array $headers
  9526. * @param bool|null $secure
  9527. * @return \Illuminate\Http\RedirectResponse
  9528. * @static
  9529. */
  9530. public static function redirectToIntended($default = '/', $status = 302, $headers = array(), $secure = null)
  9531. {
  9532. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9533. return $instance->redirectToIntended($default, $status, $headers, $secure);
  9534. }
  9535. /**
  9536. * Register a custom macro.
  9537. *
  9538. * @param string $name
  9539. * @param object|callable $macro
  9540. * @return void
  9541. * @static
  9542. */
  9543. public static function macro($name, $macro)
  9544. {
  9545. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  9546. }
  9547. /**
  9548. * Mix another object into the class.
  9549. *
  9550. * @param object $mixin
  9551. * @return void
  9552. * @throws \ReflectionException
  9553. * @static
  9554. */
  9555. public static function mixin($mixin)
  9556. {
  9557. \Illuminate\Routing\ResponseFactory::mixin($mixin);
  9558. }
  9559. /**
  9560. * Checks if macro is registered.
  9561. *
  9562. * @param string $name
  9563. * @return bool
  9564. * @static
  9565. */
  9566. public static function hasMacro($name)
  9567. {
  9568. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  9569. }
  9570. }
  9571. /**
  9572. *
  9573. *
  9574. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  9575. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  9576. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  9577. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  9578. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  9579. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  9580. * @method static \Illuminate\Routing\RouteRegistrar namespace(string $value)
  9581. * @see \Illuminate\Routing\Router
  9582. */
  9583. class Route {
  9584. /**
  9585. * Register a new GET route with the router.
  9586. *
  9587. * @param string $uri
  9588. * @param \Closure|array|string|null $action
  9589. * @return \Illuminate\Routing\Route
  9590. * @static
  9591. */
  9592. public static function get($uri, $action = null)
  9593. {
  9594. /** @var \Illuminate\Routing\Router $instance */
  9595. return $instance->get($uri, $action);
  9596. }
  9597. /**
  9598. * Register a new POST route with the router.
  9599. *
  9600. * @param string $uri
  9601. * @param \Closure|array|string|null $action
  9602. * @return \Illuminate\Routing\Route
  9603. * @static
  9604. */
  9605. public static function post($uri, $action = null)
  9606. {
  9607. /** @var \Illuminate\Routing\Router $instance */
  9608. return $instance->post($uri, $action);
  9609. }
  9610. /**
  9611. * Register a new PUT route with the router.
  9612. *
  9613. * @param string $uri
  9614. * @param \Closure|array|string|null $action
  9615. * @return \Illuminate\Routing\Route
  9616. * @static
  9617. */
  9618. public static function put($uri, $action = null)
  9619. {
  9620. /** @var \Illuminate\Routing\Router $instance */
  9621. return $instance->put($uri, $action);
  9622. }
  9623. /**
  9624. * Register a new PATCH route with the router.
  9625. *
  9626. * @param string $uri
  9627. * @param \Closure|array|string|null $action
  9628. * @return \Illuminate\Routing\Route
  9629. * @static
  9630. */
  9631. public static function patch($uri, $action = null)
  9632. {
  9633. /** @var \Illuminate\Routing\Router $instance */
  9634. return $instance->patch($uri, $action);
  9635. }
  9636. /**
  9637. * Register a new DELETE route with the router.
  9638. *
  9639. * @param string $uri
  9640. * @param \Closure|array|string|null $action
  9641. * @return \Illuminate\Routing\Route
  9642. * @static
  9643. */
  9644. public static function delete($uri, $action = null)
  9645. {
  9646. /** @var \Illuminate\Routing\Router $instance */
  9647. return $instance->delete($uri, $action);
  9648. }
  9649. /**
  9650. * Register a new OPTIONS route with the router.
  9651. *
  9652. * @param string $uri
  9653. * @param \Closure|array|string|null $action
  9654. * @return \Illuminate\Routing\Route
  9655. * @static
  9656. */
  9657. public static function options($uri, $action = null)
  9658. {
  9659. /** @var \Illuminate\Routing\Router $instance */
  9660. return $instance->options($uri, $action);
  9661. }
  9662. /**
  9663. * Register a new route responding to all verbs.
  9664. *
  9665. * @param string $uri
  9666. * @param \Closure|array|string|null $action
  9667. * @return \Illuminate\Routing\Route
  9668. * @static
  9669. */
  9670. public static function any($uri, $action = null)
  9671. {
  9672. /** @var \Illuminate\Routing\Router $instance */
  9673. return $instance->any($uri, $action);
  9674. }
  9675. /**
  9676. * Register a new Fallback route with the router.
  9677. *
  9678. * @param \Closure|array|string|null $action
  9679. * @return \Illuminate\Routing\Route
  9680. * @static
  9681. */
  9682. public static function fallback($action)
  9683. {
  9684. /** @var \Illuminate\Routing\Router $instance */
  9685. return $instance->fallback($action);
  9686. }
  9687. /**
  9688. * Create a redirect from one URI to another.
  9689. *
  9690. * @param string $uri
  9691. * @param string $destination
  9692. * @param int $status
  9693. * @return \Illuminate\Routing\Route
  9694. * @static
  9695. */
  9696. public static function redirect($uri, $destination, $status = 301)
  9697. {
  9698. /** @var \Illuminate\Routing\Router $instance */
  9699. return $instance->redirect($uri, $destination, $status);
  9700. }
  9701. /**
  9702. * Register a new route that returns a view.
  9703. *
  9704. * @param string $uri
  9705. * @param string $view
  9706. * @param array $data
  9707. * @return \Illuminate\Routing\Route
  9708. * @static
  9709. */
  9710. public static function view($uri, $view, $data = array())
  9711. {
  9712. /** @var \Illuminate\Routing\Router $instance */
  9713. return $instance->view($uri, $view, $data);
  9714. }
  9715. /**
  9716. * Register a new route with the given verbs.
  9717. *
  9718. * @param array|string $methods
  9719. * @param string $uri
  9720. * @param \Closure|array|string|null $action
  9721. * @return \Illuminate\Routing\Route
  9722. * @static
  9723. */
  9724. public static function match($methods, $uri, $action = null)
  9725. {
  9726. /** @var \Illuminate\Routing\Router $instance */
  9727. return $instance->match($methods, $uri, $action);
  9728. }
  9729. /**
  9730. * Register an array of resource controllers.
  9731. *
  9732. * @param array $resources
  9733. * @return void
  9734. * @static
  9735. */
  9736. public static function resources($resources)
  9737. {
  9738. /** @var \Illuminate\Routing\Router $instance */
  9739. $instance->resources($resources);
  9740. }
  9741. /**
  9742. * Route a resource to a controller.
  9743. *
  9744. * @param string $name
  9745. * @param string $controller
  9746. * @param array $options
  9747. * @return \Illuminate\Routing\PendingResourceRegistration
  9748. * @static
  9749. */
  9750. public static function resource($name, $controller, $options = array())
  9751. {
  9752. /** @var \Illuminate\Routing\Router $instance */
  9753. return $instance->resource($name, $controller, $options);
  9754. }
  9755. /**
  9756. * Register an array of API resource controllers.
  9757. *
  9758. * @param array $resources
  9759. * @return void
  9760. * @static
  9761. */
  9762. public static function apiResources($resources)
  9763. {
  9764. /** @var \Illuminate\Routing\Router $instance */
  9765. $instance->apiResources($resources);
  9766. }
  9767. /**
  9768. * Route an API resource to a controller.
  9769. *
  9770. * @param string $name
  9771. * @param string $controller
  9772. * @param array $options
  9773. * @return \Illuminate\Routing\PendingResourceRegistration
  9774. * @static
  9775. */
  9776. public static function apiResource($name, $controller, $options = array())
  9777. {
  9778. /** @var \Illuminate\Routing\Router $instance */
  9779. return $instance->apiResource($name, $controller, $options);
  9780. }
  9781. /**
  9782. * Create a route group with shared attributes.
  9783. *
  9784. * @param array $attributes
  9785. * @param \Closure|string $routes
  9786. * @return void
  9787. * @static
  9788. */
  9789. public static function group($attributes, $routes)
  9790. {
  9791. /** @var \Illuminate\Routing\Router $instance */
  9792. $instance->group($attributes, $routes);
  9793. }
  9794. /**
  9795. * Merge the given array with the last group stack.
  9796. *
  9797. * @param array $new
  9798. * @return array
  9799. * @static
  9800. */
  9801. public static function mergeWithLastGroup($new)
  9802. {
  9803. /** @var \Illuminate\Routing\Router $instance */
  9804. return $instance->mergeWithLastGroup($new);
  9805. }
  9806. /**
  9807. * Get the prefix from the last group on the stack.
  9808. *
  9809. * @return string
  9810. * @static
  9811. */
  9812. public static function getLastGroupPrefix()
  9813. {
  9814. /** @var \Illuminate\Routing\Router $instance */
  9815. return $instance->getLastGroupPrefix();
  9816. }
  9817. /**
  9818. * Add a route to the underlying route collection.
  9819. *
  9820. * @param array|string $methods
  9821. * @param string $uri
  9822. * @param \Closure|array|string|null $action
  9823. * @return \Illuminate\Routing\Route
  9824. * @static
  9825. */
  9826. public static function addRoute($methods, $uri, $action)
  9827. {
  9828. /** @var \Illuminate\Routing\Router $instance */
  9829. return $instance->addRoute($methods, $uri, $action);
  9830. }
  9831. /**
  9832. * Return the response returned by the given route.
  9833. *
  9834. * @param string $name
  9835. * @return mixed
  9836. * @static
  9837. */
  9838. public static function respondWithRoute($name)
  9839. {
  9840. /** @var \Illuminate\Routing\Router $instance */
  9841. return $instance->respondWithRoute($name);
  9842. }
  9843. /**
  9844. * Dispatch the request to the application.
  9845. *
  9846. * @param \Illuminate\Http\Request $request
  9847. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9848. * @static
  9849. */
  9850. public static function dispatch($request)
  9851. {
  9852. /** @var \Illuminate\Routing\Router $instance */
  9853. return $instance->dispatch($request);
  9854. }
  9855. /**
  9856. * Dispatch the request to a route and return the response.
  9857. *
  9858. * @param \Illuminate\Http\Request $request
  9859. * @return mixed
  9860. * @static
  9861. */
  9862. public static function dispatchToRoute($request)
  9863. {
  9864. /** @var \Illuminate\Routing\Router $instance */
  9865. return $instance->dispatchToRoute($request);
  9866. }
  9867. /**
  9868. * Gather the middleware for the given route with resolved class names.
  9869. *
  9870. * @param \Illuminate\Routing\Route $route
  9871. * @return array
  9872. * @static
  9873. */
  9874. public static function gatherRouteMiddleware($route)
  9875. {
  9876. /** @var \Illuminate\Routing\Router $instance */
  9877. return $instance->gatherRouteMiddleware($route);
  9878. }
  9879. /**
  9880. * Create a response instance from the given value.
  9881. *
  9882. * @param \Symfony\Component\HttpFoundation\Request $request
  9883. * @param mixed $response
  9884. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9885. * @static
  9886. */
  9887. public static function prepareResponse($request, $response)
  9888. {
  9889. /** @var \Illuminate\Routing\Router $instance */
  9890. return $instance->prepareResponse($request, $response);
  9891. }
  9892. /**
  9893. * Static version of prepareResponse.
  9894. *
  9895. * @param \Symfony\Component\HttpFoundation\Request $request
  9896. * @param mixed $response
  9897. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9898. * @static
  9899. */
  9900. public static function toResponse($request, $response)
  9901. {
  9902. return \Illuminate\Routing\Router::toResponse($request, $response);
  9903. }
  9904. /**
  9905. * Substitute the route bindings onto the route.
  9906. *
  9907. * @param \Illuminate\Routing\Route $route
  9908. * @return \Illuminate\Routing\Route
  9909. * @static
  9910. */
  9911. public static function substituteBindings($route)
  9912. {
  9913. /** @var \Illuminate\Routing\Router $instance */
  9914. return $instance->substituteBindings($route);
  9915. }
  9916. /**
  9917. * Substitute the implicit Eloquent model bindings for the route.
  9918. *
  9919. * @param \Illuminate\Routing\Route $route
  9920. * @return void
  9921. * @static
  9922. */
  9923. public static function substituteImplicitBindings($route)
  9924. {
  9925. /** @var \Illuminate\Routing\Router $instance */
  9926. $instance->substituteImplicitBindings($route);
  9927. }
  9928. /**
  9929. * Register a route matched event listener.
  9930. *
  9931. * @param string|callable $callback
  9932. * @return void
  9933. * @static
  9934. */
  9935. public static function matched($callback)
  9936. {
  9937. /** @var \Illuminate\Routing\Router $instance */
  9938. $instance->matched($callback);
  9939. }
  9940. /**
  9941. * Get all of the defined middleware short-hand names.
  9942. *
  9943. * @return array
  9944. * @static
  9945. */
  9946. public static function getMiddleware()
  9947. {
  9948. /** @var \Illuminate\Routing\Router $instance */
  9949. return $instance->getMiddleware();
  9950. }
  9951. /**
  9952. * Register a short-hand name for a middleware.
  9953. *
  9954. * @param string $name
  9955. * @param string $class
  9956. * @return \Illuminate\Routing\Router
  9957. * @static
  9958. */
  9959. public static function aliasMiddleware($name, $class)
  9960. {
  9961. /** @var \Illuminate\Routing\Router $instance */
  9962. return $instance->aliasMiddleware($name, $class);
  9963. }
  9964. /**
  9965. * Check if a middlewareGroup with the given name exists.
  9966. *
  9967. * @param string $name
  9968. * @return bool
  9969. * @static
  9970. */
  9971. public static function hasMiddlewareGroup($name)
  9972. {
  9973. /** @var \Illuminate\Routing\Router $instance */
  9974. return $instance->hasMiddlewareGroup($name);
  9975. }
  9976. /**
  9977. * Get all of the defined middleware groups.
  9978. *
  9979. * @return array
  9980. * @static
  9981. */
  9982. public static function getMiddlewareGroups()
  9983. {
  9984. /** @var \Illuminate\Routing\Router $instance */
  9985. return $instance->getMiddlewareGroups();
  9986. }
  9987. /**
  9988. * Register a group of middleware.
  9989. *
  9990. * @param string $name
  9991. * @param array $middleware
  9992. * @return \Illuminate\Routing\Router
  9993. * @static
  9994. */
  9995. public static function middlewareGroup($name, $middleware)
  9996. {
  9997. /** @var \Illuminate\Routing\Router $instance */
  9998. return $instance->middlewareGroup($name, $middleware);
  9999. }
  10000. /**
  10001. * Add a middleware to the beginning of a middleware group.
  10002. *
  10003. * If the middleware is already in the group, it will not be added again.
  10004. *
  10005. * @param string $group
  10006. * @param string $middleware
  10007. * @return \Illuminate\Routing\Router
  10008. * @static
  10009. */
  10010. public static function prependMiddlewareToGroup($group, $middleware)
  10011. {
  10012. /** @var \Illuminate\Routing\Router $instance */
  10013. return $instance->prependMiddlewareToGroup($group, $middleware);
  10014. }
  10015. /**
  10016. * Add a middleware to the end of a middleware group.
  10017. *
  10018. * If the middleware is already in the group, it will not be added again.
  10019. *
  10020. * @param string $group
  10021. * @param string $middleware
  10022. * @return \Illuminate\Routing\Router
  10023. * @static
  10024. */
  10025. public static function pushMiddlewareToGroup($group, $middleware)
  10026. {
  10027. /** @var \Illuminate\Routing\Router $instance */
  10028. return $instance->pushMiddlewareToGroup($group, $middleware);
  10029. }
  10030. /**
  10031. * Add a new route parameter binder.
  10032. *
  10033. * @param string $key
  10034. * @param string|callable $binder
  10035. * @return void
  10036. * @static
  10037. */
  10038. public static function bind($key, $binder)
  10039. {
  10040. /** @var \Illuminate\Routing\Router $instance */
  10041. $instance->bind($key, $binder);
  10042. }
  10043. /**
  10044. * Register a model binder for a wildcard.
  10045. *
  10046. * @param string $key
  10047. * @param string $class
  10048. * @param \Closure|null $callback
  10049. * @return void
  10050. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10051. * @static
  10052. */
  10053. public static function model($key, $class, $callback = null)
  10054. {
  10055. /** @var \Illuminate\Routing\Router $instance */
  10056. $instance->model($key, $class, $callback);
  10057. }
  10058. /**
  10059. * Get the binding callback for a given binding.
  10060. *
  10061. * @param string $key
  10062. * @return \Closure|null
  10063. * @static
  10064. */
  10065. public static function getBindingCallback($key)
  10066. {
  10067. /** @var \Illuminate\Routing\Router $instance */
  10068. return $instance->getBindingCallback($key);
  10069. }
  10070. /**
  10071. * Get the global "where" patterns.
  10072. *
  10073. * @return array
  10074. * @static
  10075. */
  10076. public static function getPatterns()
  10077. {
  10078. /** @var \Illuminate\Routing\Router $instance */
  10079. return $instance->getPatterns();
  10080. }
  10081. /**
  10082. * Set a global where pattern on all routes.
  10083. *
  10084. * @param string $key
  10085. * @param string $pattern
  10086. * @return void
  10087. * @static
  10088. */
  10089. public static function pattern($key, $pattern)
  10090. {
  10091. /** @var \Illuminate\Routing\Router $instance */
  10092. $instance->pattern($key, $pattern);
  10093. }
  10094. /**
  10095. * Set a group of global where patterns on all routes.
  10096. *
  10097. * @param array $patterns
  10098. * @return void
  10099. * @static
  10100. */
  10101. public static function patterns($patterns)
  10102. {
  10103. /** @var \Illuminate\Routing\Router $instance */
  10104. $instance->patterns($patterns);
  10105. }
  10106. /**
  10107. * Determine if the router currently has a group stack.
  10108. *
  10109. * @return bool
  10110. * @static
  10111. */
  10112. public static function hasGroupStack()
  10113. {
  10114. /** @var \Illuminate\Routing\Router $instance */
  10115. return $instance->hasGroupStack();
  10116. }
  10117. /**
  10118. * Get the current group stack for the router.
  10119. *
  10120. * @return array
  10121. * @static
  10122. */
  10123. public static function getGroupStack()
  10124. {
  10125. /** @var \Illuminate\Routing\Router $instance */
  10126. return $instance->getGroupStack();
  10127. }
  10128. /**
  10129. * Get a route parameter for the current route.
  10130. *
  10131. * @param string $key
  10132. * @param string $default
  10133. * @return mixed
  10134. * @static
  10135. */
  10136. public static function input($key, $default = null)
  10137. {
  10138. /** @var \Illuminate\Routing\Router $instance */
  10139. return $instance->input($key, $default);
  10140. }
  10141. /**
  10142. * Get the request currently being dispatched.
  10143. *
  10144. * @return \Illuminate\Http\Request
  10145. * @static
  10146. */
  10147. public static function getCurrentRequest()
  10148. {
  10149. /** @var \Illuminate\Routing\Router $instance */
  10150. return $instance->getCurrentRequest();
  10151. }
  10152. /**
  10153. * Get the currently dispatched route instance.
  10154. *
  10155. * @return \Illuminate\Routing\Route
  10156. * @static
  10157. */
  10158. public static function getCurrentRoute()
  10159. {
  10160. /** @var \Illuminate\Routing\Router $instance */
  10161. return $instance->getCurrentRoute();
  10162. }
  10163. /**
  10164. * Get the currently dispatched route instance.
  10165. *
  10166. * @return \Illuminate\Routing\Route
  10167. * @static
  10168. */
  10169. public static function current()
  10170. {
  10171. /** @var \Illuminate\Routing\Router $instance */
  10172. return $instance->current();
  10173. }
  10174. /**
  10175. * Check if a route with the given name exists.
  10176. *
  10177. * @param string $name
  10178. * @return bool
  10179. * @static
  10180. */
  10181. public static function has($name)
  10182. {
  10183. /** @var \Illuminate\Routing\Router $instance */
  10184. return $instance->has($name);
  10185. }
  10186. /**
  10187. * Get the current route name.
  10188. *
  10189. * @return string|null
  10190. * @static
  10191. */
  10192. public static function currentRouteName()
  10193. {
  10194. /** @var \Illuminate\Routing\Router $instance */
  10195. return $instance->currentRouteName();
  10196. }
  10197. /**
  10198. * Alias for the "currentRouteNamed" method.
  10199. *
  10200. * @param mixed $patterns
  10201. * @return bool
  10202. * @static
  10203. */
  10204. public static function is($patterns = null)
  10205. {
  10206. /** @var \Illuminate\Routing\Router $instance */
  10207. return $instance->is($patterns);
  10208. }
  10209. /**
  10210. * Determine if the current route matches a pattern.
  10211. *
  10212. * @param mixed $patterns
  10213. * @return bool
  10214. * @static
  10215. */
  10216. public static function currentRouteNamed($patterns = null)
  10217. {
  10218. /** @var \Illuminate\Routing\Router $instance */
  10219. return $instance->currentRouteNamed($patterns);
  10220. }
  10221. /**
  10222. * Get the current route action.
  10223. *
  10224. * @return string|null
  10225. * @static
  10226. */
  10227. public static function currentRouteAction()
  10228. {
  10229. /** @var \Illuminate\Routing\Router $instance */
  10230. return $instance->currentRouteAction();
  10231. }
  10232. /**
  10233. * Alias for the "currentRouteUses" method.
  10234. *
  10235. * @param array $patterns
  10236. * @return bool
  10237. * @static
  10238. */
  10239. public static function uses($patterns = null)
  10240. {
  10241. /** @var \Illuminate\Routing\Router $instance */
  10242. return $instance->uses($patterns);
  10243. }
  10244. /**
  10245. * Determine if the current route action matches a given action.
  10246. *
  10247. * @param string $action
  10248. * @return bool
  10249. * @static
  10250. */
  10251. public static function currentRouteUses($action)
  10252. {
  10253. /** @var \Illuminate\Routing\Router $instance */
  10254. return $instance->currentRouteUses($action);
  10255. }
  10256. /**
  10257. * Register the typical authentication routes for an application.
  10258. *
  10259. * @return void
  10260. * @static
  10261. */
  10262. public static function auth()
  10263. {
  10264. /** @var \Illuminate\Routing\Router $instance */
  10265. $instance->auth();
  10266. }
  10267. /**
  10268. * Set the unmapped global resource parameters to singular.
  10269. *
  10270. * @param bool $singular
  10271. * @return void
  10272. * @static
  10273. */
  10274. public static function singularResourceParameters($singular = true)
  10275. {
  10276. /** @var \Illuminate\Routing\Router $instance */
  10277. $instance->singularResourceParameters($singular);
  10278. }
  10279. /**
  10280. * Set the global resource parameter mapping.
  10281. *
  10282. * @param array $parameters
  10283. * @return void
  10284. * @static
  10285. */
  10286. public static function resourceParameters($parameters = array())
  10287. {
  10288. /** @var \Illuminate\Routing\Router $instance */
  10289. $instance->resourceParameters($parameters);
  10290. }
  10291. /**
  10292. * Get or set the verbs used in the resource URIs.
  10293. *
  10294. * @param array $verbs
  10295. * @return array|null
  10296. * @static
  10297. */
  10298. public static function resourceVerbs($verbs = array())
  10299. {
  10300. /** @var \Illuminate\Routing\Router $instance */
  10301. return $instance->resourceVerbs($verbs);
  10302. }
  10303. /**
  10304. * Get the underlying route collection.
  10305. *
  10306. * @return \Illuminate\Routing\RouteCollection
  10307. * @static
  10308. */
  10309. public static function getRoutes()
  10310. {
  10311. /** @var \Illuminate\Routing\Router $instance */
  10312. return $instance->getRoutes();
  10313. }
  10314. /**
  10315. * Set the route collection instance.
  10316. *
  10317. * @param \Illuminate\Routing\RouteCollection $routes
  10318. * @return void
  10319. * @static
  10320. */
  10321. public static function setRoutes($routes)
  10322. {
  10323. /** @var \Illuminate\Routing\Router $instance */
  10324. $instance->setRoutes($routes);
  10325. }
  10326. /**
  10327. * Register a custom macro.
  10328. *
  10329. * @param string $name
  10330. * @param object|callable $macro
  10331. * @return void
  10332. * @static
  10333. */
  10334. public static function macro($name, $macro)
  10335. {
  10336. \Illuminate\Routing\Router::macro($name, $macro);
  10337. }
  10338. /**
  10339. * Mix another object into the class.
  10340. *
  10341. * @param object $mixin
  10342. * @return void
  10343. * @throws \ReflectionException
  10344. * @static
  10345. */
  10346. public static function mixin($mixin)
  10347. {
  10348. \Illuminate\Routing\Router::mixin($mixin);
  10349. }
  10350. /**
  10351. * Checks if macro is registered.
  10352. *
  10353. * @param string $name
  10354. * @return bool
  10355. * @static
  10356. */
  10357. public static function hasMacro($name)
  10358. {
  10359. return \Illuminate\Routing\Router::hasMacro($name);
  10360. }
  10361. /**
  10362. * Dynamically handle calls to the class.
  10363. *
  10364. * @param string $method
  10365. * @param array $parameters
  10366. * @return mixed
  10367. * @throws \BadMethodCallException
  10368. * @static
  10369. */
  10370. public static function macroCall($method, $parameters)
  10371. {
  10372. /** @var \Illuminate\Routing\Router $instance */
  10373. return $instance->macroCall($method, $parameters);
  10374. }
  10375. }
  10376. /**
  10377. *
  10378. *
  10379. * @see \Illuminate\Database\Schema\Builder
  10380. */
  10381. class Schema {
  10382. /**
  10383. * Determine if the given table exists.
  10384. *
  10385. * @param string $table
  10386. * @return bool
  10387. * @static
  10388. */
  10389. public static function hasTable($table)
  10390. {
  10391. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10392. return $instance->hasTable($table);
  10393. }
  10394. /**
  10395. * Get the column listing for a given table.
  10396. *
  10397. * @param string $table
  10398. * @return array
  10399. * @static
  10400. */
  10401. public static function getColumnListing($table)
  10402. {
  10403. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10404. return $instance->getColumnListing($table);
  10405. }
  10406. /**
  10407. * Drop all tables from the database.
  10408. *
  10409. * @return void
  10410. * @static
  10411. */
  10412. public static function dropAllTables()
  10413. {
  10414. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10415. $instance->dropAllTables();
  10416. }
  10417. /**
  10418. * Drop all views from the database.
  10419. *
  10420. * @return void
  10421. * @static
  10422. */
  10423. public static function dropAllViews()
  10424. {
  10425. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10426. $instance->dropAllViews();
  10427. }
  10428. /**
  10429. * Set the default string length for migrations.
  10430. *
  10431. * @param int $length
  10432. * @return void
  10433. * @static
  10434. */
  10435. public static function defaultStringLength($length)
  10436. {
  10437. //Method inherited from \Illuminate\Database\Schema\Builder
  10438. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  10439. }
  10440. /**
  10441. * Determine if the given table has a given column.
  10442. *
  10443. * @param string $table
  10444. * @param string $column
  10445. * @return bool
  10446. * @static
  10447. */
  10448. public static function hasColumn($table, $column)
  10449. {
  10450. //Method inherited from \Illuminate\Database\Schema\Builder
  10451. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10452. return $instance->hasColumn($table, $column);
  10453. }
  10454. /**
  10455. * Determine if the given table has given columns.
  10456. *
  10457. * @param string $table
  10458. * @param array $columns
  10459. * @return bool
  10460. * @static
  10461. */
  10462. public static function hasColumns($table, $columns)
  10463. {
  10464. //Method inherited from \Illuminate\Database\Schema\Builder
  10465. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10466. return $instance->hasColumns($table, $columns);
  10467. }
  10468. /**
  10469. * Get the data type for the given column name.
  10470. *
  10471. * @param string $table
  10472. * @param string $column
  10473. * @return string
  10474. * @static
  10475. */
  10476. public static function getColumnType($table, $column)
  10477. {
  10478. //Method inherited from \Illuminate\Database\Schema\Builder
  10479. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10480. return $instance->getColumnType($table, $column);
  10481. }
  10482. /**
  10483. * Modify a table on the schema.
  10484. *
  10485. * @param string $table
  10486. * @param \Closure $callback
  10487. * @return void
  10488. * @static
  10489. */
  10490. public static function table($table, $callback)
  10491. {
  10492. //Method inherited from \Illuminate\Database\Schema\Builder
  10493. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10494. $instance->table($table, $callback);
  10495. }
  10496. /**
  10497. * Create a new table on the schema.
  10498. *
  10499. * @param string $table
  10500. * @param \Closure $callback
  10501. * @return void
  10502. * @static
  10503. */
  10504. public static function create($table, $callback)
  10505. {
  10506. //Method inherited from \Illuminate\Database\Schema\Builder
  10507. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10508. $instance->create($table, $callback);
  10509. }
  10510. /**
  10511. * Drop a table from the schema.
  10512. *
  10513. * @param string $table
  10514. * @return void
  10515. * @static
  10516. */
  10517. public static function drop($table)
  10518. {
  10519. //Method inherited from \Illuminate\Database\Schema\Builder
  10520. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10521. $instance->drop($table);
  10522. }
  10523. /**
  10524. * Drop a table from the schema if it exists.
  10525. *
  10526. * @param string $table
  10527. * @return void
  10528. * @static
  10529. */
  10530. public static function dropIfExists($table)
  10531. {
  10532. //Method inherited from \Illuminate\Database\Schema\Builder
  10533. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10534. $instance->dropIfExists($table);
  10535. }
  10536. /**
  10537. * Rename a table on the schema.
  10538. *
  10539. * @param string $from
  10540. * @param string $to
  10541. * @return void
  10542. * @static
  10543. */
  10544. public static function rename($from, $to)
  10545. {
  10546. //Method inherited from \Illuminate\Database\Schema\Builder
  10547. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10548. $instance->rename($from, $to);
  10549. }
  10550. /**
  10551. * Enable foreign key constraints.
  10552. *
  10553. * @return bool
  10554. * @static
  10555. */
  10556. public static function enableForeignKeyConstraints()
  10557. {
  10558. //Method inherited from \Illuminate\Database\Schema\Builder
  10559. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10560. return $instance->enableForeignKeyConstraints();
  10561. }
  10562. /**
  10563. * Disable foreign key constraints.
  10564. *
  10565. * @return bool
  10566. * @static
  10567. */
  10568. public static function disableForeignKeyConstraints()
  10569. {
  10570. //Method inherited from \Illuminate\Database\Schema\Builder
  10571. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10572. return $instance->disableForeignKeyConstraints();
  10573. }
  10574. /**
  10575. * Get the database connection instance.
  10576. *
  10577. * @return \Illuminate\Database\Connection
  10578. * @static
  10579. */
  10580. public static function getConnection()
  10581. {
  10582. //Method inherited from \Illuminate\Database\Schema\Builder
  10583. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10584. return $instance->getConnection();
  10585. }
  10586. /**
  10587. * Set the database connection instance.
  10588. *
  10589. * @param \Illuminate\Database\Connection $connection
  10590. * @return \Illuminate\Database\Schema\MySqlBuilder
  10591. * @static
  10592. */
  10593. public static function setConnection($connection)
  10594. {
  10595. //Method inherited from \Illuminate\Database\Schema\Builder
  10596. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10597. return $instance->setConnection($connection);
  10598. }
  10599. /**
  10600. * Set the Schema Blueprint resolver callback.
  10601. *
  10602. * @param \Closure $resolver
  10603. * @return void
  10604. * @static
  10605. */
  10606. public static function blueprintResolver($resolver)
  10607. {
  10608. //Method inherited from \Illuminate\Database\Schema\Builder
  10609. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10610. $instance->blueprintResolver($resolver);
  10611. }
  10612. }
  10613. /**
  10614. *
  10615. *
  10616. * @see \Illuminate\Session\SessionManager
  10617. * @see \Illuminate\Session\Store
  10618. */
  10619. class Session {
  10620. /**
  10621. * Get the session configuration.
  10622. *
  10623. * @return array
  10624. * @static
  10625. */
  10626. public static function getSessionConfig()
  10627. {
  10628. /** @var \Illuminate\Session\SessionManager $instance */
  10629. return $instance->getSessionConfig();
  10630. }
  10631. /**
  10632. * Get the default session driver name.
  10633. *
  10634. * @return string
  10635. * @static
  10636. */
  10637. public static function getDefaultDriver()
  10638. {
  10639. /** @var \Illuminate\Session\SessionManager $instance */
  10640. return $instance->getDefaultDriver();
  10641. }
  10642. /**
  10643. * Set the default session driver name.
  10644. *
  10645. * @param string $name
  10646. * @return void
  10647. * @static
  10648. */
  10649. public static function setDefaultDriver($name)
  10650. {
  10651. /** @var \Illuminate\Session\SessionManager $instance */
  10652. $instance->setDefaultDriver($name);
  10653. }
  10654. /**
  10655. * Get a driver instance.
  10656. *
  10657. * @param string $driver
  10658. * @return mixed
  10659. * @throws \InvalidArgumentException
  10660. * @static
  10661. */
  10662. public static function driver($driver = null)
  10663. {
  10664. //Method inherited from \Illuminate\Support\Manager
  10665. /** @var \Illuminate\Session\SessionManager $instance */
  10666. return $instance->driver($driver);
  10667. }
  10668. /**
  10669. * Register a custom driver creator Closure.
  10670. *
  10671. * @param string $driver
  10672. * @param \Closure $callback
  10673. * @return \Illuminate\Session\SessionManager
  10674. * @static
  10675. */
  10676. public static function extend($driver, $callback)
  10677. {
  10678. //Method inherited from \Illuminate\Support\Manager
  10679. /** @var \Illuminate\Session\SessionManager $instance */
  10680. return $instance->extend($driver, $callback);
  10681. }
  10682. /**
  10683. * Get all of the created "drivers".
  10684. *
  10685. * @return array
  10686. * @static
  10687. */
  10688. public static function getDrivers()
  10689. {
  10690. //Method inherited from \Illuminate\Support\Manager
  10691. /** @var \Illuminate\Session\SessionManager $instance */
  10692. return $instance->getDrivers();
  10693. }
  10694. /**
  10695. * Start the session, reading the data from a handler.
  10696. *
  10697. * @return bool
  10698. * @static
  10699. */
  10700. public static function start()
  10701. {
  10702. /** @var \Illuminate\Session\Store $instance */
  10703. return $instance->start();
  10704. }
  10705. /**
  10706. * Save the session data to storage.
  10707. *
  10708. * @return bool
  10709. * @static
  10710. */
  10711. public static function save()
  10712. {
  10713. /** @var \Illuminate\Session\Store $instance */
  10714. return $instance->save();
  10715. }
  10716. /**
  10717. * Age the flash data for the session.
  10718. *
  10719. * @return void
  10720. * @static
  10721. */
  10722. public static function ageFlashData()
  10723. {
  10724. /** @var \Illuminate\Session\Store $instance */
  10725. $instance->ageFlashData();
  10726. }
  10727. /**
  10728. * Get all of the session data.
  10729. *
  10730. * @return array
  10731. * @static
  10732. */
  10733. public static function all()
  10734. {
  10735. /** @var \Illuminate\Session\Store $instance */
  10736. return $instance->all();
  10737. }
  10738. /**
  10739. * Checks if a key exists.
  10740. *
  10741. * @param string|array $key
  10742. * @return bool
  10743. * @static
  10744. */
  10745. public static function exists($key)
  10746. {
  10747. /** @var \Illuminate\Session\Store $instance */
  10748. return $instance->exists($key);
  10749. }
  10750. /**
  10751. * Checks if a key is present and not null.
  10752. *
  10753. * @param string|array $key
  10754. * @return bool
  10755. * @static
  10756. */
  10757. public static function has($key)
  10758. {
  10759. /** @var \Illuminate\Session\Store $instance */
  10760. return $instance->has($key);
  10761. }
  10762. /**
  10763. * Get an item from the session.
  10764. *
  10765. * @param string $key
  10766. * @param mixed $default
  10767. * @return mixed
  10768. * @static
  10769. */
  10770. public static function get($key, $default = null)
  10771. {
  10772. /** @var \Illuminate\Session\Store $instance */
  10773. return $instance->get($key, $default);
  10774. }
  10775. /**
  10776. * Get the value of a given key and then forget it.
  10777. *
  10778. * @param string $key
  10779. * @param string $default
  10780. * @return mixed
  10781. * @static
  10782. */
  10783. public static function pull($key, $default = null)
  10784. {
  10785. /** @var \Illuminate\Session\Store $instance */
  10786. return $instance->pull($key, $default);
  10787. }
  10788. /**
  10789. * Determine if the session contains old input.
  10790. *
  10791. * @param string $key
  10792. * @return bool
  10793. * @static
  10794. */
  10795. public static function hasOldInput($key = null)
  10796. {
  10797. /** @var \Illuminate\Session\Store $instance */
  10798. return $instance->hasOldInput($key);
  10799. }
  10800. /**
  10801. * Get the requested item from the flashed input array.
  10802. *
  10803. * @param string $key
  10804. * @param mixed $default
  10805. * @return mixed
  10806. * @static
  10807. */
  10808. public static function getOldInput($key = null, $default = null)
  10809. {
  10810. /** @var \Illuminate\Session\Store $instance */
  10811. return $instance->getOldInput($key, $default);
  10812. }
  10813. /**
  10814. * Replace the given session attributes entirely.
  10815. *
  10816. * @param array $attributes
  10817. * @return void
  10818. * @static
  10819. */
  10820. public static function replace($attributes)
  10821. {
  10822. /** @var \Illuminate\Session\Store $instance */
  10823. $instance->replace($attributes);
  10824. }
  10825. /**
  10826. * Put a key / value pair or array of key / value pairs in the session.
  10827. *
  10828. * @param string|array $key
  10829. * @param mixed $value
  10830. * @return void
  10831. * @static
  10832. */
  10833. public static function put($key, $value = null)
  10834. {
  10835. /** @var \Illuminate\Session\Store $instance */
  10836. $instance->put($key, $value);
  10837. }
  10838. /**
  10839. * Get an item from the session, or store the default value.
  10840. *
  10841. * @param string $key
  10842. * @param \Closure $callback
  10843. * @return mixed
  10844. * @static
  10845. */
  10846. public static function remember($key, $callback)
  10847. {
  10848. /** @var \Illuminate\Session\Store $instance */
  10849. return $instance->remember($key, $callback);
  10850. }
  10851. /**
  10852. * Push a value onto a session array.
  10853. *
  10854. * @param string $key
  10855. * @param mixed $value
  10856. * @return void
  10857. * @static
  10858. */
  10859. public static function push($key, $value)
  10860. {
  10861. /** @var \Illuminate\Session\Store $instance */
  10862. $instance->push($key, $value);
  10863. }
  10864. /**
  10865. * Increment the value of an item in the session.
  10866. *
  10867. * @param string $key
  10868. * @param int $amount
  10869. * @return mixed
  10870. * @static
  10871. */
  10872. public static function increment($key, $amount = 1)
  10873. {
  10874. /** @var \Illuminate\Session\Store $instance */
  10875. return $instance->increment($key, $amount);
  10876. }
  10877. /**
  10878. * Decrement the value of an item in the session.
  10879. *
  10880. * @param string $key
  10881. * @param int $amount
  10882. * @return int
  10883. * @static
  10884. */
  10885. public static function decrement($key, $amount = 1)
  10886. {
  10887. /** @var \Illuminate\Session\Store $instance */
  10888. return $instance->decrement($key, $amount);
  10889. }
  10890. /**
  10891. * Flash a key / value pair to the session.
  10892. *
  10893. * @param string $key
  10894. * @param mixed $value
  10895. * @return void
  10896. * @static
  10897. */
  10898. public static function flash($key, $value = true)
  10899. {
  10900. /** @var \Illuminate\Session\Store $instance */
  10901. $instance->flash($key, $value);
  10902. }
  10903. /**
  10904. * Flash a key / value pair to the session for immediate use.
  10905. *
  10906. * @param string $key
  10907. * @param mixed $value
  10908. * @return void
  10909. * @static
  10910. */
  10911. public static function now($key, $value)
  10912. {
  10913. /** @var \Illuminate\Session\Store $instance */
  10914. $instance->now($key, $value);
  10915. }
  10916. /**
  10917. * Reflash all of the session flash data.
  10918. *
  10919. * @return void
  10920. * @static
  10921. */
  10922. public static function reflash()
  10923. {
  10924. /** @var \Illuminate\Session\Store $instance */
  10925. $instance->reflash();
  10926. }
  10927. /**
  10928. * Reflash a subset of the current flash data.
  10929. *
  10930. * @param array|mixed $keys
  10931. * @return void
  10932. * @static
  10933. */
  10934. public static function keep($keys = null)
  10935. {
  10936. /** @var \Illuminate\Session\Store $instance */
  10937. $instance->keep($keys);
  10938. }
  10939. /**
  10940. * Flash an input array to the session.
  10941. *
  10942. * @param array $value
  10943. * @return void
  10944. * @static
  10945. */
  10946. public static function flashInput($value)
  10947. {
  10948. /** @var \Illuminate\Session\Store $instance */
  10949. $instance->flashInput($value);
  10950. }
  10951. /**
  10952. * Remove an item from the session, returning its value.
  10953. *
  10954. * @param string $key
  10955. * @return mixed
  10956. * @static
  10957. */
  10958. public static function remove($key)
  10959. {
  10960. /** @var \Illuminate\Session\Store $instance */
  10961. return $instance->remove($key);
  10962. }
  10963. /**
  10964. * Remove one or many items from the session.
  10965. *
  10966. * @param string|array $keys
  10967. * @return void
  10968. * @static
  10969. */
  10970. public static function forget($keys)
  10971. {
  10972. /** @var \Illuminate\Session\Store $instance */
  10973. $instance->forget($keys);
  10974. }
  10975. /**
  10976. * Remove all of the items from the session.
  10977. *
  10978. * @return void
  10979. * @static
  10980. */
  10981. public static function flush()
  10982. {
  10983. /** @var \Illuminate\Session\Store $instance */
  10984. $instance->flush();
  10985. }
  10986. /**
  10987. * Flush the session data and regenerate the ID.
  10988. *
  10989. * @return bool
  10990. * @static
  10991. */
  10992. public static function invalidate()
  10993. {
  10994. /** @var \Illuminate\Session\Store $instance */
  10995. return $instance->invalidate();
  10996. }
  10997. /**
  10998. * Generate a new session identifier.
  10999. *
  11000. * @param bool $destroy
  11001. * @return bool
  11002. * @static
  11003. */
  11004. public static function regenerate($destroy = false)
  11005. {
  11006. /** @var \Illuminate\Session\Store $instance */
  11007. return $instance->regenerate($destroy);
  11008. }
  11009. /**
  11010. * Generate a new session ID for the session.
  11011. *
  11012. * @param bool $destroy
  11013. * @return bool
  11014. * @static
  11015. */
  11016. public static function migrate($destroy = false)
  11017. {
  11018. /** @var \Illuminate\Session\Store $instance */
  11019. return $instance->migrate($destroy);
  11020. }
  11021. /**
  11022. * Determine if the session has been started.
  11023. *
  11024. * @return bool
  11025. * @static
  11026. */
  11027. public static function isStarted()
  11028. {
  11029. /** @var \Illuminate\Session\Store $instance */
  11030. return $instance->isStarted();
  11031. }
  11032. /**
  11033. * Get the name of the session.
  11034. *
  11035. * @return string
  11036. * @static
  11037. */
  11038. public static function getName()
  11039. {
  11040. /** @var \Illuminate\Session\Store $instance */
  11041. return $instance->getName();
  11042. }
  11043. /**
  11044. * Set the name of the session.
  11045. *
  11046. * @param string $name
  11047. * @return void
  11048. * @static
  11049. */
  11050. public static function setName($name)
  11051. {
  11052. /** @var \Illuminate\Session\Store $instance */
  11053. $instance->setName($name);
  11054. }
  11055. /**
  11056. * Get the current session ID.
  11057. *
  11058. * @return string
  11059. * @static
  11060. */
  11061. public static function getId()
  11062. {
  11063. /** @var \Illuminate\Session\Store $instance */
  11064. return $instance->getId();
  11065. }
  11066. /**
  11067. * Set the session ID.
  11068. *
  11069. * @param string $id
  11070. * @return void
  11071. * @static
  11072. */
  11073. public static function setId($id)
  11074. {
  11075. /** @var \Illuminate\Session\Store $instance */
  11076. $instance->setId($id);
  11077. }
  11078. /**
  11079. * Determine if this is a valid session ID.
  11080. *
  11081. * @param string $id
  11082. * @return bool
  11083. * @static
  11084. */
  11085. public static function isValidId($id)
  11086. {
  11087. /** @var \Illuminate\Session\Store $instance */
  11088. return $instance->isValidId($id);
  11089. }
  11090. /**
  11091. * Set the existence of the session on the handler if applicable.
  11092. *
  11093. * @param bool $value
  11094. * @return void
  11095. * @static
  11096. */
  11097. public static function setExists($value)
  11098. {
  11099. /** @var \Illuminate\Session\Store $instance */
  11100. $instance->setExists($value);
  11101. }
  11102. /**
  11103. * Get the CSRF token value.
  11104. *
  11105. * @return string
  11106. * @static
  11107. */
  11108. public static function token()
  11109. {
  11110. /** @var \Illuminate\Session\Store $instance */
  11111. return $instance->token();
  11112. }
  11113. /**
  11114. * Regenerate the CSRF token value.
  11115. *
  11116. * @return void
  11117. * @static
  11118. */
  11119. public static function regenerateToken()
  11120. {
  11121. /** @var \Illuminate\Session\Store $instance */
  11122. $instance->regenerateToken();
  11123. }
  11124. /**
  11125. * Get the previous URL from the session.
  11126. *
  11127. * @return string|null
  11128. * @static
  11129. */
  11130. public static function previousUrl()
  11131. {
  11132. /** @var \Illuminate\Session\Store $instance */
  11133. return $instance->previousUrl();
  11134. }
  11135. /**
  11136. * Set the "previous" URL in the session.
  11137. *
  11138. * @param string $url
  11139. * @return void
  11140. * @static
  11141. */
  11142. public static function setPreviousUrl($url)
  11143. {
  11144. /** @var \Illuminate\Session\Store $instance */
  11145. $instance->setPreviousUrl($url);
  11146. }
  11147. /**
  11148. * Get the underlying session handler implementation.
  11149. *
  11150. * @return \SessionHandlerInterface
  11151. * @static
  11152. */
  11153. public static function getHandler()
  11154. {
  11155. /** @var \Illuminate\Session\Store $instance */
  11156. return $instance->getHandler();
  11157. }
  11158. /**
  11159. * Determine if the session handler needs a request.
  11160. *
  11161. * @return bool
  11162. * @static
  11163. */
  11164. public static function handlerNeedsRequest()
  11165. {
  11166. /** @var \Illuminate\Session\Store $instance */
  11167. return $instance->handlerNeedsRequest();
  11168. }
  11169. /**
  11170. * Set the request on the handler instance.
  11171. *
  11172. * @param \Illuminate\Http\Request $request
  11173. * @return void
  11174. * @static
  11175. */
  11176. public static function setRequestOnHandler($request)
  11177. {
  11178. /** @var \Illuminate\Session\Store $instance */
  11179. $instance->setRequestOnHandler($request);
  11180. }
  11181. }
  11182. /**
  11183. *
  11184. *
  11185. * @see \Illuminate\Filesystem\FilesystemManager
  11186. */
  11187. class Storage {
  11188. /**
  11189. * Get a filesystem instance.
  11190. *
  11191. * @param string $name
  11192. * @return \Illuminate\Filesystem\FilesystemAdapter
  11193. * @static
  11194. */
  11195. public static function drive($name = null)
  11196. {
  11197. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11198. return $instance->drive($name);
  11199. }
  11200. /**
  11201. * Get a filesystem instance.
  11202. *
  11203. * @param string $name
  11204. * @return \Illuminate\Filesystem\FilesystemAdapter
  11205. * @static
  11206. */
  11207. public static function disk($name = null)
  11208. {
  11209. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11210. return $instance->disk($name);
  11211. }
  11212. /**
  11213. * Get a default cloud filesystem instance.
  11214. *
  11215. * @return \Illuminate\Filesystem\FilesystemAdapter
  11216. * @static
  11217. */
  11218. public static function cloud()
  11219. {
  11220. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11221. return $instance->cloud();
  11222. }
  11223. /**
  11224. * Create an instance of the local driver.
  11225. *
  11226. * @param array $config
  11227. * @return \Illuminate\Filesystem\FilesystemAdapter
  11228. * @static
  11229. */
  11230. public static function createLocalDriver($config)
  11231. {
  11232. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11233. return $instance->createLocalDriver($config);
  11234. }
  11235. /**
  11236. * Create an instance of the ftp driver.
  11237. *
  11238. * @param array $config
  11239. * @return \Illuminate\Filesystem\FilesystemAdapter
  11240. * @static
  11241. */
  11242. public static function createFtpDriver($config)
  11243. {
  11244. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11245. return $instance->createFtpDriver($config);
  11246. }
  11247. /**
  11248. * Create an instance of the sftp driver.
  11249. *
  11250. * @param array $config
  11251. * @return \Illuminate\Filesystem\FilesystemAdapter
  11252. * @static
  11253. */
  11254. public static function createSftpDriver($config)
  11255. {
  11256. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11257. return $instance->createSftpDriver($config);
  11258. }
  11259. /**
  11260. * Create an instance of the Amazon S3 driver.
  11261. *
  11262. * @param array $config
  11263. * @return \Illuminate\Contracts\Filesystem\Cloud
  11264. * @static
  11265. */
  11266. public static function createS3Driver($config)
  11267. {
  11268. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11269. return $instance->createS3Driver($config);
  11270. }
  11271. /**
  11272. * Create an instance of the Rackspace driver.
  11273. *
  11274. * @param array $config
  11275. * @return \Illuminate\Contracts\Filesystem\Cloud
  11276. * @static
  11277. */
  11278. public static function createRackspaceDriver($config)
  11279. {
  11280. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11281. return $instance->createRackspaceDriver($config);
  11282. }
  11283. /**
  11284. * Set the given disk instance.
  11285. *
  11286. * @param string $name
  11287. * @param mixed $disk
  11288. * @return \Illuminate\Filesystem\FilesystemManager
  11289. * @static
  11290. */
  11291. public static function set($name, $disk)
  11292. {
  11293. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11294. return $instance->set($name, $disk);
  11295. }
  11296. /**
  11297. * Get the default driver name.
  11298. *
  11299. * @return string
  11300. * @static
  11301. */
  11302. public static function getDefaultDriver()
  11303. {
  11304. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11305. return $instance->getDefaultDriver();
  11306. }
  11307. /**
  11308. * Get the default cloud driver name.
  11309. *
  11310. * @return string
  11311. * @static
  11312. */
  11313. public static function getDefaultCloudDriver()
  11314. {
  11315. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11316. return $instance->getDefaultCloudDriver();
  11317. }
  11318. /**
  11319. * Unset the given disk instances.
  11320. *
  11321. * @param array|string $disk
  11322. * @return \Illuminate\Filesystem\FilesystemManager
  11323. * @static
  11324. */
  11325. public static function forgetDisk($disk)
  11326. {
  11327. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11328. return $instance->forgetDisk($disk);
  11329. }
  11330. /**
  11331. * Register a custom driver creator Closure.
  11332. *
  11333. * @param string $driver
  11334. * @param \Closure $callback
  11335. * @return \Illuminate\Filesystem\FilesystemManager
  11336. * @static
  11337. */
  11338. public static function extend($driver, $callback)
  11339. {
  11340. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11341. return $instance->extend($driver, $callback);
  11342. }
  11343. /**
  11344. * Assert that the given file exists.
  11345. *
  11346. * @param string $path
  11347. * @return void
  11348. * @static
  11349. */
  11350. public static function assertExists($path)
  11351. {
  11352. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11353. $instance->assertExists($path);
  11354. }
  11355. /**
  11356. * Assert that the given file does not exist.
  11357. *
  11358. * @param string $path
  11359. * @return void
  11360. * @static
  11361. */
  11362. public static function assertMissing($path)
  11363. {
  11364. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11365. $instance->assertMissing($path);
  11366. }
  11367. /**
  11368. * Determine if a file exists.
  11369. *
  11370. * @param string $path
  11371. * @return bool
  11372. * @static
  11373. */
  11374. public static function exists($path)
  11375. {
  11376. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11377. return $instance->exists($path);
  11378. }
  11379. /**
  11380. * Get the full path for the file at the given "short" path.
  11381. *
  11382. * @param string $path
  11383. * @return string
  11384. * @static
  11385. */
  11386. public static function path($path)
  11387. {
  11388. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11389. return $instance->path($path);
  11390. }
  11391. /**
  11392. * Get the contents of a file.
  11393. *
  11394. * @param string $path
  11395. * @return string
  11396. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  11397. * @static
  11398. */
  11399. public static function get($path)
  11400. {
  11401. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11402. return $instance->get($path);
  11403. }
  11404. /**
  11405. * Create a streamed response for a given file.
  11406. *
  11407. * @param string $path
  11408. * @param string|null $name
  11409. * @param array|null $headers
  11410. * @param string|null $disposition
  11411. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11412. * @static
  11413. */
  11414. public static function response($path, $name = null, $headers = array(), $disposition = 'inline')
  11415. {
  11416. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11417. return $instance->response($path, $name, $headers, $disposition);
  11418. }
  11419. /**
  11420. * Create a streamed download response for a given file.
  11421. *
  11422. * @param string $path
  11423. * @param string|null $name
  11424. * @param array|null $headers
  11425. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11426. * @static
  11427. */
  11428. public static function download($path, $name = null, $headers = array())
  11429. {
  11430. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11431. return $instance->download($path, $name, $headers);
  11432. }
  11433. /**
  11434. * Write the contents of a file.
  11435. *
  11436. * @param string $path
  11437. * @param string|resource $contents
  11438. * @param mixed $options
  11439. * @return bool
  11440. * @static
  11441. */
  11442. public static function put($path, $contents, $options = array())
  11443. {
  11444. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11445. return $instance->put($path, $contents, $options);
  11446. }
  11447. /**
  11448. * Store the uploaded file on the disk.
  11449. *
  11450. * @param string $path
  11451. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11452. * @param array $options
  11453. * @return string|false
  11454. * @static
  11455. */
  11456. public static function putFile($path, $file, $options = array())
  11457. {
  11458. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11459. return $instance->putFile($path, $file, $options);
  11460. }
  11461. /**
  11462. * Store the uploaded file on the disk with a given name.
  11463. *
  11464. * @param string $path
  11465. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11466. * @param string $name
  11467. * @param array $options
  11468. * @return string|false
  11469. * @static
  11470. */
  11471. public static function putFileAs($path, $file, $name, $options = array())
  11472. {
  11473. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11474. return $instance->putFileAs($path, $file, $name, $options);
  11475. }
  11476. /**
  11477. * Get the visibility for the given path.
  11478. *
  11479. * @param string $path
  11480. * @return string
  11481. * @static
  11482. */
  11483. public static function getVisibility($path)
  11484. {
  11485. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11486. return $instance->getVisibility($path);
  11487. }
  11488. /**
  11489. * Set the visibility for the given path.
  11490. *
  11491. * @param string $path
  11492. * @param string $visibility
  11493. * @return void
  11494. * @static
  11495. */
  11496. public static function setVisibility($path, $visibility)
  11497. {
  11498. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11499. $instance->setVisibility($path, $visibility);
  11500. }
  11501. /**
  11502. * Prepend to a file.
  11503. *
  11504. * @param string $path
  11505. * @param string $data
  11506. * @param string $separator
  11507. * @return int
  11508. * @static
  11509. */
  11510. public static function prepend($path, $data, $separator = '')
  11511. {
  11512. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11513. return $instance->prepend($path, $data, $separator);
  11514. }
  11515. /**
  11516. * Append to a file.
  11517. *
  11518. * @param string $path
  11519. * @param string $data
  11520. * @param string $separator
  11521. * @return int
  11522. * @static
  11523. */
  11524. public static function append($path, $data, $separator = '')
  11525. {
  11526. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11527. return $instance->append($path, $data, $separator);
  11528. }
  11529. /**
  11530. * Delete the file at a given path.
  11531. *
  11532. * @param string|array $paths
  11533. * @return bool
  11534. * @static
  11535. */
  11536. public static function delete($paths)
  11537. {
  11538. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11539. return $instance->delete($paths);
  11540. }
  11541. /**
  11542. * Copy a file to a new location.
  11543. *
  11544. * @param string $from
  11545. * @param string $to
  11546. * @return bool
  11547. * @static
  11548. */
  11549. public static function copy($from, $to)
  11550. {
  11551. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11552. return $instance->copy($from, $to);
  11553. }
  11554. /**
  11555. * Move a file to a new location.
  11556. *
  11557. * @param string $from
  11558. * @param string $to
  11559. * @return bool
  11560. * @static
  11561. */
  11562. public static function move($from, $to)
  11563. {
  11564. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11565. return $instance->move($from, $to);
  11566. }
  11567. /**
  11568. * Get the file size of a given file.
  11569. *
  11570. * @param string $path
  11571. * @return int
  11572. * @static
  11573. */
  11574. public static function size($path)
  11575. {
  11576. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11577. return $instance->size($path);
  11578. }
  11579. /**
  11580. * Get the mime-type of a given file.
  11581. *
  11582. * @param string $path
  11583. * @return string|false
  11584. * @static
  11585. */
  11586. public static function mimeType($path)
  11587. {
  11588. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11589. return $instance->mimeType($path);
  11590. }
  11591. /**
  11592. * Get the file's last modification time.
  11593. *
  11594. * @param string $path
  11595. * @return int
  11596. * @static
  11597. */
  11598. public static function lastModified($path)
  11599. {
  11600. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11601. return $instance->lastModified($path);
  11602. }
  11603. /**
  11604. * Get the URL for the file at the given path.
  11605. *
  11606. * @param string $path
  11607. * @return string
  11608. * @static
  11609. */
  11610. public static function url($path)
  11611. {
  11612. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11613. return $instance->url($path);
  11614. }
  11615. /**
  11616. * Get a temporary URL for the file at the given path.
  11617. *
  11618. * @param string $path
  11619. * @param \DateTimeInterface $expiration
  11620. * @param array $options
  11621. * @return string
  11622. * @static
  11623. */
  11624. public static function temporaryUrl($path, $expiration, $options = array())
  11625. {
  11626. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11627. return $instance->temporaryUrl($path, $expiration, $options);
  11628. }
  11629. /**
  11630. * Get a temporary URL for the file at the given path.
  11631. *
  11632. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  11633. * @param string $path
  11634. * @param \DateTimeInterface $expiration
  11635. * @param array $options
  11636. * @return string
  11637. * @static
  11638. */
  11639. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  11640. {
  11641. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11642. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  11643. }
  11644. /**
  11645. * Get a temporary URL for the file at the given path.
  11646. *
  11647. * @param \League\Flysystem\Rackspace\RackspaceAdapter $adapter
  11648. * @param string $path
  11649. * @param \DateTimeInterface $expiration
  11650. * @param array $options
  11651. * @return string
  11652. * @static
  11653. */
  11654. public static function getRackspaceTemporaryUrl($adapter, $path, $expiration, $options)
  11655. {
  11656. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11657. return $instance->getRackspaceTemporaryUrl($adapter, $path, $expiration, $options);
  11658. }
  11659. /**
  11660. * Get an array of all files in a directory.
  11661. *
  11662. * @param string|null $directory
  11663. * @param bool $recursive
  11664. * @return array
  11665. * @static
  11666. */
  11667. public static function files($directory = null, $recursive = false)
  11668. {
  11669. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11670. return $instance->files($directory, $recursive);
  11671. }
  11672. /**
  11673. * Get all of the files from the given directory (recursive).
  11674. *
  11675. * @param string|null $directory
  11676. * @return array
  11677. * @static
  11678. */
  11679. public static function allFiles($directory = null)
  11680. {
  11681. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11682. return $instance->allFiles($directory);
  11683. }
  11684. /**
  11685. * Get all of the directories within a given directory.
  11686. *
  11687. * @param string|null $directory
  11688. * @param bool $recursive
  11689. * @return array
  11690. * @static
  11691. */
  11692. public static function directories($directory = null, $recursive = false)
  11693. {
  11694. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11695. return $instance->directories($directory, $recursive);
  11696. }
  11697. /**
  11698. * Get all (recursive) of the directories within a given directory.
  11699. *
  11700. * @param string|null $directory
  11701. * @return array
  11702. * @static
  11703. */
  11704. public static function allDirectories($directory = null)
  11705. {
  11706. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11707. return $instance->allDirectories($directory);
  11708. }
  11709. /**
  11710. * Create a directory.
  11711. *
  11712. * @param string $path
  11713. * @return bool
  11714. * @static
  11715. */
  11716. public static function makeDirectory($path)
  11717. {
  11718. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11719. return $instance->makeDirectory($path);
  11720. }
  11721. /**
  11722. * Recursively delete a directory.
  11723. *
  11724. * @param string $directory
  11725. * @return bool
  11726. * @static
  11727. */
  11728. public static function deleteDirectory($directory)
  11729. {
  11730. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11731. return $instance->deleteDirectory($directory);
  11732. }
  11733. /**
  11734. * Flush the Flysystem cache.
  11735. *
  11736. * @return void
  11737. * @static
  11738. */
  11739. public static function flushCache()
  11740. {
  11741. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11742. $instance->flushCache();
  11743. }
  11744. /**
  11745. * Get the Flysystem driver.
  11746. *
  11747. * @return \League\Flysystem\FilesystemInterface
  11748. * @static
  11749. */
  11750. public static function getDriver()
  11751. {
  11752. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11753. return $instance->getDriver();
  11754. }
  11755. }
  11756. /**
  11757. *
  11758. *
  11759. * @see \Illuminate\Routing\UrlGenerator
  11760. */
  11761. class URL {
  11762. /**
  11763. * Get the full URL for the current request.
  11764. *
  11765. * @return string
  11766. * @static
  11767. */
  11768. public static function full()
  11769. {
  11770. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11771. return $instance->full();
  11772. }
  11773. /**
  11774. * Get the current URL for the request.
  11775. *
  11776. * @return string
  11777. * @static
  11778. */
  11779. public static function current()
  11780. {
  11781. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11782. return $instance->current();
  11783. }
  11784. /**
  11785. * Get the URL for the previous request.
  11786. *
  11787. * @param mixed $fallback
  11788. * @return string
  11789. * @static
  11790. */
  11791. public static function previous($fallback = false)
  11792. {
  11793. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11794. return $instance->previous($fallback);
  11795. }
  11796. /**
  11797. * Generate an absolute URL to the given path.
  11798. *
  11799. * @param string $path
  11800. * @param mixed $extra
  11801. * @param bool|null $secure
  11802. * @return string
  11803. * @static
  11804. */
  11805. public static function to($path, $extra = array(), $secure = null)
  11806. {
  11807. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11808. return $instance->to($path, $extra, $secure);
  11809. }
  11810. /**
  11811. * Generate a secure, absolute URL to the given path.
  11812. *
  11813. * @param string $path
  11814. * @param array $parameters
  11815. * @return string
  11816. * @static
  11817. */
  11818. public static function secure($path, $parameters = array())
  11819. {
  11820. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11821. return $instance->secure($path, $parameters);
  11822. }
  11823. /**
  11824. * Generate the URL to an application asset.
  11825. *
  11826. * @param string $path
  11827. * @param bool|null $secure
  11828. * @return string
  11829. * @static
  11830. */
  11831. public static function asset($path, $secure = null)
  11832. {
  11833. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11834. return $instance->asset($path, $secure);
  11835. }
  11836. /**
  11837. * Generate the URL to a secure asset.
  11838. *
  11839. * @param string $path
  11840. * @return string
  11841. * @static
  11842. */
  11843. public static function secureAsset($path)
  11844. {
  11845. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11846. return $instance->secureAsset($path);
  11847. }
  11848. /**
  11849. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  11850. *
  11851. * @param string $root
  11852. * @param string $path
  11853. * @param bool|null $secure
  11854. * @return string
  11855. * @static
  11856. */
  11857. public static function assetFrom($root, $path, $secure = null)
  11858. {
  11859. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11860. return $instance->assetFrom($root, $path, $secure);
  11861. }
  11862. /**
  11863. * Get the default scheme for a raw URL.
  11864. *
  11865. * @param bool|null $secure
  11866. * @return string
  11867. * @static
  11868. */
  11869. public static function formatScheme($secure)
  11870. {
  11871. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11872. return $instance->formatScheme($secure);
  11873. }
  11874. /**
  11875. * Create a signed route URL for a named route.
  11876. *
  11877. * @param string $name
  11878. * @param array $parameters
  11879. * @param \DateTimeInterface|int $expiration
  11880. * @return string
  11881. * @static
  11882. */
  11883. public static function signedRoute($name, $parameters = array(), $expiration = null)
  11884. {
  11885. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11886. return $instance->signedRoute($name, $parameters, $expiration);
  11887. }
  11888. /**
  11889. * Create a temporary signed route URL for a named route.
  11890. *
  11891. * @param string $name
  11892. * @param \DateTimeInterface|int $expiration
  11893. * @param array $parameters
  11894. * @return string
  11895. * @static
  11896. */
  11897. public static function temporarySignedRoute($name, $expiration, $parameters = array())
  11898. {
  11899. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11900. return $instance->temporarySignedRoute($name, $expiration, $parameters);
  11901. }
  11902. /**
  11903. * Determine if the given request has a valid signature.
  11904. *
  11905. * @param \Illuminate\Http\Request $request
  11906. * @return bool
  11907. * @static
  11908. */
  11909. public static function hasValidSignature($request)
  11910. {
  11911. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11912. return $instance->hasValidSignature($request);
  11913. }
  11914. /**
  11915. * Get the URL to a named route.
  11916. *
  11917. * @param string $name
  11918. * @param mixed $parameters
  11919. * @param bool $absolute
  11920. * @return string
  11921. * @throws \InvalidArgumentException
  11922. * @static
  11923. */
  11924. public static function route($name, $parameters = array(), $absolute = true)
  11925. {
  11926. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11927. return $instance->route($name, $parameters, $absolute);
  11928. }
  11929. /**
  11930. * Get the URL to a controller action.
  11931. *
  11932. * @param string $action
  11933. * @param mixed $parameters
  11934. * @param bool $absolute
  11935. * @return string
  11936. * @throws \InvalidArgumentException
  11937. * @static
  11938. */
  11939. public static function action($action, $parameters = array(), $absolute = true)
  11940. {
  11941. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11942. return $instance->action($action, $parameters, $absolute);
  11943. }
  11944. /**
  11945. * Format the array of URL parameters.
  11946. *
  11947. * @param mixed|array $parameters
  11948. * @return array
  11949. * @static
  11950. */
  11951. public static function formatParameters($parameters)
  11952. {
  11953. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11954. return $instance->formatParameters($parameters);
  11955. }
  11956. /**
  11957. * Get the base URL for the request.
  11958. *
  11959. * @param string $scheme
  11960. * @param string $root
  11961. * @return string
  11962. * @static
  11963. */
  11964. public static function formatRoot($scheme, $root = null)
  11965. {
  11966. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11967. return $instance->formatRoot($scheme, $root);
  11968. }
  11969. /**
  11970. * Format the given URL segments into a single URL.
  11971. *
  11972. * @param string $root
  11973. * @param string $path
  11974. * @return string
  11975. * @static
  11976. */
  11977. public static function format($root, $path)
  11978. {
  11979. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11980. return $instance->format($root, $path);
  11981. }
  11982. /**
  11983. * Determine if the given path is a valid URL.
  11984. *
  11985. * @param string $path
  11986. * @return bool
  11987. * @static
  11988. */
  11989. public static function isValidUrl($path)
  11990. {
  11991. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11992. return $instance->isValidUrl($path);
  11993. }
  11994. /**
  11995. * Set the default named parameters used by the URL generator.
  11996. *
  11997. * @param array $defaults
  11998. * @return void
  11999. * @static
  12000. */
  12001. public static function defaults($defaults)
  12002. {
  12003. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12004. $instance->defaults($defaults);
  12005. }
  12006. /**
  12007. * Get the default named parameters used by the URL generator.
  12008. *
  12009. * @return array
  12010. * @static
  12011. */
  12012. public static function getDefaultParameters()
  12013. {
  12014. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12015. return $instance->getDefaultParameters();
  12016. }
  12017. /**
  12018. * Force the scheme for URLs.
  12019. *
  12020. * @param string $schema
  12021. * @return void
  12022. * @static
  12023. */
  12024. public static function forceScheme($schema)
  12025. {
  12026. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12027. $instance->forceScheme($schema);
  12028. }
  12029. /**
  12030. * Set the forced root URL.
  12031. *
  12032. * @param string $root
  12033. * @return void
  12034. * @static
  12035. */
  12036. public static function forceRootUrl($root)
  12037. {
  12038. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12039. $instance->forceRootUrl($root);
  12040. }
  12041. /**
  12042. * Set a callback to be used to format the host of generated URLs.
  12043. *
  12044. * @param \Closure $callback
  12045. * @return \Illuminate\Routing\UrlGenerator
  12046. * @static
  12047. */
  12048. public static function formatHostUsing($callback)
  12049. {
  12050. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12051. return $instance->formatHostUsing($callback);
  12052. }
  12053. /**
  12054. * Set a callback to be used to format the path of generated URLs.
  12055. *
  12056. * @param \Closure $callback
  12057. * @return \Illuminate\Routing\UrlGenerator
  12058. * @static
  12059. */
  12060. public static function formatPathUsing($callback)
  12061. {
  12062. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12063. return $instance->formatPathUsing($callback);
  12064. }
  12065. /**
  12066. * Get the path formatter being used by the URL generator.
  12067. *
  12068. * @return \Closure
  12069. * @static
  12070. */
  12071. public static function pathFormatter()
  12072. {
  12073. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12074. return $instance->pathFormatter();
  12075. }
  12076. /**
  12077. * Get the request instance.
  12078. *
  12079. * @return \Illuminate\Http\Request
  12080. * @static
  12081. */
  12082. public static function getRequest()
  12083. {
  12084. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12085. return $instance->getRequest();
  12086. }
  12087. /**
  12088. * Set the current request instance.
  12089. *
  12090. * @param \Illuminate\Http\Request $request
  12091. * @return void
  12092. * @static
  12093. */
  12094. public static function setRequest($request)
  12095. {
  12096. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12097. $instance->setRequest($request);
  12098. }
  12099. /**
  12100. * Set the route collection.
  12101. *
  12102. * @param \Illuminate\Routing\RouteCollection $routes
  12103. * @return \Illuminate\Routing\UrlGenerator
  12104. * @static
  12105. */
  12106. public static function setRoutes($routes)
  12107. {
  12108. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12109. return $instance->setRoutes($routes);
  12110. }
  12111. /**
  12112. * Set the session resolver for the generator.
  12113. *
  12114. * @param callable $sessionResolver
  12115. * @return \Illuminate\Routing\UrlGenerator
  12116. * @static
  12117. */
  12118. public static function setSessionResolver($sessionResolver)
  12119. {
  12120. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12121. return $instance->setSessionResolver($sessionResolver);
  12122. }
  12123. /**
  12124. * Set the encryption key resolver.
  12125. *
  12126. * @param callable $keyResolver
  12127. * @return \Illuminate\Routing\UrlGenerator
  12128. * @static
  12129. */
  12130. public static function setKeyResolver($keyResolver)
  12131. {
  12132. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12133. return $instance->setKeyResolver($keyResolver);
  12134. }
  12135. /**
  12136. * Set the root controller namespace.
  12137. *
  12138. * @param string $rootNamespace
  12139. * @return \Illuminate\Routing\UrlGenerator
  12140. * @static
  12141. */
  12142. public static function setRootControllerNamespace($rootNamespace)
  12143. {
  12144. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12145. return $instance->setRootControllerNamespace($rootNamespace);
  12146. }
  12147. /**
  12148. * Register a custom macro.
  12149. *
  12150. * @param string $name
  12151. * @param object|callable $macro
  12152. * @return void
  12153. * @static
  12154. */
  12155. public static function macro($name, $macro)
  12156. {
  12157. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  12158. }
  12159. /**
  12160. * Mix another object into the class.
  12161. *
  12162. * @param object $mixin
  12163. * @return void
  12164. * @throws \ReflectionException
  12165. * @static
  12166. */
  12167. public static function mixin($mixin)
  12168. {
  12169. \Illuminate\Routing\UrlGenerator::mixin($mixin);
  12170. }
  12171. /**
  12172. * Checks if macro is registered.
  12173. *
  12174. * @param string $name
  12175. * @return bool
  12176. * @static
  12177. */
  12178. public static function hasMacro($name)
  12179. {
  12180. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  12181. }
  12182. }
  12183. /**
  12184. *
  12185. *
  12186. * @see \Illuminate\Validation\Factory
  12187. */
  12188. class Validator {
  12189. /**
  12190. * Create a new Validator instance.
  12191. *
  12192. * @param array $data
  12193. * @param array $rules
  12194. * @param array $messages
  12195. * @param array $customAttributes
  12196. * @return \Illuminate\Validation\Validator
  12197. * @static
  12198. */
  12199. public static function make($data, $rules, $messages = array(), $customAttributes = array())
  12200. {
  12201. /** @var \Illuminate\Validation\Factory $instance */
  12202. return $instance->make($data, $rules, $messages, $customAttributes);
  12203. }
  12204. /**
  12205. * Validate the given data against the provided rules.
  12206. *
  12207. * @param array $data
  12208. * @param array $rules
  12209. * @param array $messages
  12210. * @param array $customAttributes
  12211. * @return array
  12212. * @throws \Illuminate\Validation\ValidationException
  12213. * @static
  12214. */
  12215. public static function validate($data, $rules, $messages = array(), $customAttributes = array())
  12216. {
  12217. /** @var \Illuminate\Validation\Factory $instance */
  12218. return $instance->validate($data, $rules, $messages, $customAttributes);
  12219. }
  12220. /**
  12221. * Register a custom validator extension.
  12222. *
  12223. * @param string $rule
  12224. * @param \Closure|string $extension
  12225. * @param string $message
  12226. * @return void
  12227. * @static
  12228. */
  12229. public static function extend($rule, $extension, $message = null)
  12230. {
  12231. /** @var \Illuminate\Validation\Factory $instance */
  12232. $instance->extend($rule, $extension, $message);
  12233. }
  12234. /**
  12235. * Register a custom implicit validator extension.
  12236. *
  12237. * @param string $rule
  12238. * @param \Closure|string $extension
  12239. * @param string $message
  12240. * @return void
  12241. * @static
  12242. */
  12243. public static function extendImplicit($rule, $extension, $message = null)
  12244. {
  12245. /** @var \Illuminate\Validation\Factory $instance */
  12246. $instance->extendImplicit($rule, $extension, $message);
  12247. }
  12248. /**
  12249. * Register a custom dependent validator extension.
  12250. *
  12251. * @param string $rule
  12252. * @param \Closure|string $extension
  12253. * @param string $message
  12254. * @return void
  12255. * @static
  12256. */
  12257. public static function extendDependent($rule, $extension, $message = null)
  12258. {
  12259. /** @var \Illuminate\Validation\Factory $instance */
  12260. $instance->extendDependent($rule, $extension, $message);
  12261. }
  12262. /**
  12263. * Register a custom validator message replacer.
  12264. *
  12265. * @param string $rule
  12266. * @param \Closure|string $replacer
  12267. * @return void
  12268. * @static
  12269. */
  12270. public static function replacer($rule, $replacer)
  12271. {
  12272. /** @var \Illuminate\Validation\Factory $instance */
  12273. $instance->replacer($rule, $replacer);
  12274. }
  12275. /**
  12276. * Set the Validator instance resolver.
  12277. *
  12278. * @param \Closure $resolver
  12279. * @return void
  12280. * @static
  12281. */
  12282. public static function resolver($resolver)
  12283. {
  12284. /** @var \Illuminate\Validation\Factory $instance */
  12285. $instance->resolver($resolver);
  12286. }
  12287. /**
  12288. * Get the Translator implementation.
  12289. *
  12290. * @return \Illuminate\Contracts\Translation\Translator
  12291. * @static
  12292. */
  12293. public static function getTranslator()
  12294. {
  12295. /** @var \Illuminate\Validation\Factory $instance */
  12296. return $instance->getTranslator();
  12297. }
  12298. /**
  12299. * Get the Presence Verifier implementation.
  12300. *
  12301. * @return \Illuminate\Validation\PresenceVerifierInterface
  12302. * @static
  12303. */
  12304. public static function getPresenceVerifier()
  12305. {
  12306. /** @var \Illuminate\Validation\Factory $instance */
  12307. return $instance->getPresenceVerifier();
  12308. }
  12309. /**
  12310. * Set the Presence Verifier implementation.
  12311. *
  12312. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  12313. * @return void
  12314. * @static
  12315. */
  12316. public static function setPresenceVerifier($presenceVerifier)
  12317. {
  12318. /** @var \Illuminate\Validation\Factory $instance */
  12319. $instance->setPresenceVerifier($presenceVerifier);
  12320. }
  12321. }
  12322. /**
  12323. *
  12324. *
  12325. * @see \Illuminate\View\Factory
  12326. */
  12327. class View {
  12328. /**
  12329. * Get the evaluated view contents for the given view.
  12330. *
  12331. * @param string $path
  12332. * @param array $data
  12333. * @param array $mergeData
  12334. * @return \Illuminate\Contracts\View\View
  12335. * @static
  12336. */
  12337. public static function file($path, $data = array(), $mergeData = array())
  12338. {
  12339. /** @var \Illuminate\View\Factory $instance */
  12340. return $instance->file($path, $data, $mergeData);
  12341. }
  12342. /**
  12343. * Get the evaluated view contents for the given view.
  12344. *
  12345. * @param string $view
  12346. * @param array $data
  12347. * @param array $mergeData
  12348. * @return \Illuminate\Contracts\View\View
  12349. * @static
  12350. */
  12351. public static function make($view, $data = array(), $mergeData = array())
  12352. {
  12353. /** @var \Illuminate\View\Factory $instance */
  12354. return $instance->make($view, $data, $mergeData);
  12355. }
  12356. /**
  12357. * Get the first view that actually exists from the given list.
  12358. *
  12359. * @param array $views
  12360. * @param array $data
  12361. * @param array $mergeData
  12362. * @return \Illuminate\Contracts\View\View
  12363. * @throws \InvalidArgumentException
  12364. * @static
  12365. */
  12366. public static function first($views, $data = array(), $mergeData = array())
  12367. {
  12368. /** @var \Illuminate\View\Factory $instance */
  12369. return $instance->first($views, $data, $mergeData);
  12370. }
  12371. /**
  12372. * Get the rendered content of the view based on a given condition.
  12373. *
  12374. * @param bool $condition
  12375. * @param string $view
  12376. * @param array $data
  12377. * @param array $mergeData
  12378. * @return string
  12379. * @static
  12380. */
  12381. public static function renderWhen($condition, $view, $data = array(), $mergeData = array())
  12382. {
  12383. /** @var \Illuminate\View\Factory $instance */
  12384. return $instance->renderWhen($condition, $view, $data, $mergeData);
  12385. }
  12386. /**
  12387. * Get the rendered contents of a partial from a loop.
  12388. *
  12389. * @param string $view
  12390. * @param array $data
  12391. * @param string $iterator
  12392. * @param string $empty
  12393. * @return string
  12394. * @static
  12395. */
  12396. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  12397. {
  12398. /** @var \Illuminate\View\Factory $instance */
  12399. return $instance->renderEach($view, $data, $iterator, $empty);
  12400. }
  12401. /**
  12402. * Determine if a given view exists.
  12403. *
  12404. * @param string $view
  12405. * @return bool
  12406. * @static
  12407. */
  12408. public static function exists($view)
  12409. {
  12410. /** @var \Illuminate\View\Factory $instance */
  12411. return $instance->exists($view);
  12412. }
  12413. /**
  12414. * Get the appropriate view engine for the given path.
  12415. *
  12416. * @param string $path
  12417. * @return \Illuminate\Contracts\View\Engine
  12418. * @throws \InvalidArgumentException
  12419. * @static
  12420. */
  12421. public static function getEngineFromPath($path)
  12422. {
  12423. /** @var \Illuminate\View\Factory $instance */
  12424. return $instance->getEngineFromPath($path);
  12425. }
  12426. /**
  12427. * Add a piece of shared data to the environment.
  12428. *
  12429. * @param array|string $key
  12430. * @param mixed $value
  12431. * @return mixed
  12432. * @static
  12433. */
  12434. public static function share($key, $value = null)
  12435. {
  12436. /** @var \Illuminate\View\Factory $instance */
  12437. return $instance->share($key, $value);
  12438. }
  12439. /**
  12440. * Increment the rendering counter.
  12441. *
  12442. * @return void
  12443. * @static
  12444. */
  12445. public static function incrementRender()
  12446. {
  12447. /** @var \Illuminate\View\Factory $instance */
  12448. $instance->incrementRender();
  12449. }
  12450. /**
  12451. * Decrement the rendering counter.
  12452. *
  12453. * @return void
  12454. * @static
  12455. */
  12456. public static function decrementRender()
  12457. {
  12458. /** @var \Illuminate\View\Factory $instance */
  12459. $instance->decrementRender();
  12460. }
  12461. /**
  12462. * Check if there are no active render operations.
  12463. *
  12464. * @return bool
  12465. * @static
  12466. */
  12467. public static function doneRendering()
  12468. {
  12469. /** @var \Illuminate\View\Factory $instance */
  12470. return $instance->doneRendering();
  12471. }
  12472. /**
  12473. * Add a location to the array of view locations.
  12474. *
  12475. * @param string $location
  12476. * @return void
  12477. * @static
  12478. */
  12479. public static function addLocation($location)
  12480. {
  12481. /** @var \Illuminate\View\Factory $instance */
  12482. $instance->addLocation($location);
  12483. }
  12484. /**
  12485. * Add a new namespace to the loader.
  12486. *
  12487. * @param string $namespace
  12488. * @param string|array $hints
  12489. * @return \Illuminate\View\Factory
  12490. * @static
  12491. */
  12492. public static function addNamespace($namespace, $hints)
  12493. {
  12494. /** @var \Illuminate\View\Factory $instance */
  12495. return $instance->addNamespace($namespace, $hints);
  12496. }
  12497. /**
  12498. * Prepend a new namespace to the loader.
  12499. *
  12500. * @param string $namespace
  12501. * @param string|array $hints
  12502. * @return \Illuminate\View\Factory
  12503. * @static
  12504. */
  12505. public static function prependNamespace($namespace, $hints)
  12506. {
  12507. /** @var \Illuminate\View\Factory $instance */
  12508. return $instance->prependNamespace($namespace, $hints);
  12509. }
  12510. /**
  12511. * Replace the namespace hints for the given namespace.
  12512. *
  12513. * @param string $namespace
  12514. * @param string|array $hints
  12515. * @return \Illuminate\View\Factory
  12516. * @static
  12517. */
  12518. public static function replaceNamespace($namespace, $hints)
  12519. {
  12520. /** @var \Illuminate\View\Factory $instance */
  12521. return $instance->replaceNamespace($namespace, $hints);
  12522. }
  12523. /**
  12524. * Register a valid view extension and its engine.
  12525. *
  12526. * @param string $extension
  12527. * @param string $engine
  12528. * @param \Closure $resolver
  12529. * @return void
  12530. * @static
  12531. */
  12532. public static function addExtension($extension, $engine, $resolver = null)
  12533. {
  12534. /** @var \Illuminate\View\Factory $instance */
  12535. $instance->addExtension($extension, $engine, $resolver);
  12536. }
  12537. /**
  12538. * Flush all of the factory state like sections and stacks.
  12539. *
  12540. * @return void
  12541. * @static
  12542. */
  12543. public static function flushState()
  12544. {
  12545. /** @var \Illuminate\View\Factory $instance */
  12546. $instance->flushState();
  12547. }
  12548. /**
  12549. * Flush all of the section contents if done rendering.
  12550. *
  12551. * @return void
  12552. * @static
  12553. */
  12554. public static function flushStateIfDoneRendering()
  12555. {
  12556. /** @var \Illuminate\View\Factory $instance */
  12557. $instance->flushStateIfDoneRendering();
  12558. }
  12559. /**
  12560. * Get the extension to engine bindings.
  12561. *
  12562. * @return array
  12563. * @static
  12564. */
  12565. public static function getExtensions()
  12566. {
  12567. /** @var \Illuminate\View\Factory $instance */
  12568. return $instance->getExtensions();
  12569. }
  12570. /**
  12571. * Get the engine resolver instance.
  12572. *
  12573. * @return \Illuminate\View\Engines\EngineResolver
  12574. * @static
  12575. */
  12576. public static function getEngineResolver()
  12577. {
  12578. /** @var \Illuminate\View\Factory $instance */
  12579. return $instance->getEngineResolver();
  12580. }
  12581. /**
  12582. * Get the view finder instance.
  12583. *
  12584. * @return \Illuminate\View\ViewFinderInterface
  12585. * @static
  12586. */
  12587. public static function getFinder()
  12588. {
  12589. /** @var \Illuminate\View\Factory $instance */
  12590. return $instance->getFinder();
  12591. }
  12592. /**
  12593. * Set the view finder instance.
  12594. *
  12595. * @param \Illuminate\View\ViewFinderInterface $finder
  12596. * @return void
  12597. * @static
  12598. */
  12599. public static function setFinder($finder)
  12600. {
  12601. /** @var \Illuminate\View\Factory $instance */
  12602. $instance->setFinder($finder);
  12603. }
  12604. /**
  12605. * Flush the cache of views located by the finder.
  12606. *
  12607. * @return void
  12608. * @static
  12609. */
  12610. public static function flushFinderCache()
  12611. {
  12612. /** @var \Illuminate\View\Factory $instance */
  12613. $instance->flushFinderCache();
  12614. }
  12615. /**
  12616. * Get the event dispatcher instance.
  12617. *
  12618. * @return \Illuminate\Contracts\Events\Dispatcher
  12619. * @static
  12620. */
  12621. public static function getDispatcher()
  12622. {
  12623. /** @var \Illuminate\View\Factory $instance */
  12624. return $instance->getDispatcher();
  12625. }
  12626. /**
  12627. * Set the event dispatcher instance.
  12628. *
  12629. * @param \Illuminate\Contracts\Events\Dispatcher $events
  12630. * @return void
  12631. * @static
  12632. */
  12633. public static function setDispatcher($events)
  12634. {
  12635. /** @var \Illuminate\View\Factory $instance */
  12636. $instance->setDispatcher($events);
  12637. }
  12638. /**
  12639. * Get the IoC container instance.
  12640. *
  12641. * @return \Illuminate\Contracts\Container\Container
  12642. * @static
  12643. */
  12644. public static function getContainer()
  12645. {
  12646. /** @var \Illuminate\View\Factory $instance */
  12647. return $instance->getContainer();
  12648. }
  12649. /**
  12650. * Set the IoC container instance.
  12651. *
  12652. * @param \Illuminate\Contracts\Container\Container $container
  12653. * @return void
  12654. * @static
  12655. */
  12656. public static function setContainer($container)
  12657. {
  12658. /** @var \Illuminate\View\Factory $instance */
  12659. $instance->setContainer($container);
  12660. }
  12661. /**
  12662. * Get an item from the shared data.
  12663. *
  12664. * @param string $key
  12665. * @param mixed $default
  12666. * @return mixed
  12667. * @static
  12668. */
  12669. public static function shared($key, $default = null)
  12670. {
  12671. /** @var \Illuminate\View\Factory $instance */
  12672. return $instance->shared($key, $default);
  12673. }
  12674. /**
  12675. * Get all of the shared data for the environment.
  12676. *
  12677. * @return array
  12678. * @static
  12679. */
  12680. public static function getShared()
  12681. {
  12682. /** @var \Illuminate\View\Factory $instance */
  12683. return $instance->getShared();
  12684. }
  12685. /**
  12686. * Start a component rendering process.
  12687. *
  12688. * @param string $name
  12689. * @param array $data
  12690. * @return void
  12691. * @static
  12692. */
  12693. public static function startComponent($name, $data = array())
  12694. {
  12695. /** @var \Illuminate\View\Factory $instance */
  12696. $instance->startComponent($name, $data);
  12697. }
  12698. /**
  12699. * Render the current component.
  12700. *
  12701. * @return string
  12702. * @static
  12703. */
  12704. public static function renderComponent()
  12705. {
  12706. /** @var \Illuminate\View\Factory $instance */
  12707. return $instance->renderComponent();
  12708. }
  12709. /**
  12710. * Start the slot rendering process.
  12711. *
  12712. * @param string $name
  12713. * @param string|null $content
  12714. * @return void
  12715. * @static
  12716. */
  12717. public static function slot($name, $content = null)
  12718. {
  12719. /** @var \Illuminate\View\Factory $instance */
  12720. $instance->slot($name, $content);
  12721. }
  12722. /**
  12723. * Save the slot content for rendering.
  12724. *
  12725. * @return void
  12726. * @static
  12727. */
  12728. public static function endSlot()
  12729. {
  12730. /** @var \Illuminate\View\Factory $instance */
  12731. $instance->endSlot();
  12732. }
  12733. /**
  12734. * Register a view creator event.
  12735. *
  12736. * @param array|string $views
  12737. * @param \Closure|string $callback
  12738. * @return array
  12739. * @static
  12740. */
  12741. public static function creator($views, $callback)
  12742. {
  12743. /** @var \Illuminate\View\Factory $instance */
  12744. return $instance->creator($views, $callback);
  12745. }
  12746. /**
  12747. * Register multiple view composers via an array.
  12748. *
  12749. * @param array $composers
  12750. * @return array
  12751. * @static
  12752. */
  12753. public static function composers($composers)
  12754. {
  12755. /** @var \Illuminate\View\Factory $instance */
  12756. return $instance->composers($composers);
  12757. }
  12758. /**
  12759. * Register a view composer event.
  12760. *
  12761. * @param array|string $views
  12762. * @param \Closure|string $callback
  12763. * @return array
  12764. * @static
  12765. */
  12766. public static function composer($views, $callback)
  12767. {
  12768. /** @var \Illuminate\View\Factory $instance */
  12769. return $instance->composer($views, $callback);
  12770. }
  12771. /**
  12772. * Call the composer for a given view.
  12773. *
  12774. * @param \Illuminate\Contracts\View\View $view
  12775. * @return void
  12776. * @static
  12777. */
  12778. public static function callComposer($view)
  12779. {
  12780. /** @var \Illuminate\View\Factory $instance */
  12781. $instance->callComposer($view);
  12782. }
  12783. /**
  12784. * Call the creator for a given view.
  12785. *
  12786. * @param \Illuminate\Contracts\View\View $view
  12787. * @return void
  12788. * @static
  12789. */
  12790. public static function callCreator($view)
  12791. {
  12792. /** @var \Illuminate\View\Factory $instance */
  12793. $instance->callCreator($view);
  12794. }
  12795. /**
  12796. * Start injecting content into a section.
  12797. *
  12798. * @param string $section
  12799. * @param string|null $content
  12800. * @return void
  12801. * @static
  12802. */
  12803. public static function startSection($section, $content = null)
  12804. {
  12805. /** @var \Illuminate\View\Factory $instance */
  12806. $instance->startSection($section, $content);
  12807. }
  12808. /**
  12809. * Inject inline content into a section.
  12810. *
  12811. * @param string $section
  12812. * @param string $content
  12813. * @return void
  12814. * @static
  12815. */
  12816. public static function inject($section, $content)
  12817. {
  12818. /** @var \Illuminate\View\Factory $instance */
  12819. $instance->inject($section, $content);
  12820. }
  12821. /**
  12822. * Stop injecting content into a section and return its contents.
  12823. *
  12824. * @return string
  12825. * @static
  12826. */
  12827. public static function yieldSection()
  12828. {
  12829. /** @var \Illuminate\View\Factory $instance */
  12830. return $instance->yieldSection();
  12831. }
  12832. /**
  12833. * Stop injecting content into a section.
  12834. *
  12835. * @param bool $overwrite
  12836. * @return string
  12837. * @throws \InvalidArgumentException
  12838. * @static
  12839. */
  12840. public static function stopSection($overwrite = false)
  12841. {
  12842. /** @var \Illuminate\View\Factory $instance */
  12843. return $instance->stopSection($overwrite);
  12844. }
  12845. /**
  12846. * Stop injecting content into a section and append it.
  12847. *
  12848. * @return string
  12849. * @throws \InvalidArgumentException
  12850. * @static
  12851. */
  12852. public static function appendSection()
  12853. {
  12854. /** @var \Illuminate\View\Factory $instance */
  12855. return $instance->appendSection();
  12856. }
  12857. /**
  12858. * Get the string contents of a section.
  12859. *
  12860. * @param string $section
  12861. * @param string $default
  12862. * @return string
  12863. * @static
  12864. */
  12865. public static function yieldContent($section, $default = '')
  12866. {
  12867. /** @var \Illuminate\View\Factory $instance */
  12868. return $instance->yieldContent($section, $default);
  12869. }
  12870. /**
  12871. * Get the parent placeholder for the current request.
  12872. *
  12873. * @param string $section
  12874. * @return string
  12875. * @static
  12876. */
  12877. public static function parentPlaceholder($section = '')
  12878. {
  12879. return \Illuminate\View\Factory::parentPlaceholder($section);
  12880. }
  12881. /**
  12882. * Check if section exists.
  12883. *
  12884. * @param string $name
  12885. * @return bool
  12886. * @static
  12887. */
  12888. public static function hasSection($name)
  12889. {
  12890. /** @var \Illuminate\View\Factory $instance */
  12891. return $instance->hasSection($name);
  12892. }
  12893. /**
  12894. * Get the contents of a section.
  12895. *
  12896. * @param string $name
  12897. * @param string $default
  12898. * @return mixed
  12899. * @static
  12900. */
  12901. public static function getSection($name, $default = null)
  12902. {
  12903. /** @var \Illuminate\View\Factory $instance */
  12904. return $instance->getSection($name, $default);
  12905. }
  12906. /**
  12907. * Get the entire array of sections.
  12908. *
  12909. * @return array
  12910. * @static
  12911. */
  12912. public static function getSections()
  12913. {
  12914. /** @var \Illuminate\View\Factory $instance */
  12915. return $instance->getSections();
  12916. }
  12917. /**
  12918. * Flush all of the sections.
  12919. *
  12920. * @return void
  12921. * @static
  12922. */
  12923. public static function flushSections()
  12924. {
  12925. /** @var \Illuminate\View\Factory $instance */
  12926. $instance->flushSections();
  12927. }
  12928. /**
  12929. * Add new loop to the stack.
  12930. *
  12931. * @param \Countable|array $data
  12932. * @return void
  12933. * @static
  12934. */
  12935. public static function addLoop($data)
  12936. {
  12937. /** @var \Illuminate\View\Factory $instance */
  12938. $instance->addLoop($data);
  12939. }
  12940. /**
  12941. * Increment the top loop's indices.
  12942. *
  12943. * @return void
  12944. * @static
  12945. */
  12946. public static function incrementLoopIndices()
  12947. {
  12948. /** @var \Illuminate\View\Factory $instance */
  12949. $instance->incrementLoopIndices();
  12950. }
  12951. /**
  12952. * Pop a loop from the top of the loop stack.
  12953. *
  12954. * @return void
  12955. * @static
  12956. */
  12957. public static function popLoop()
  12958. {
  12959. /** @var \Illuminate\View\Factory $instance */
  12960. $instance->popLoop();
  12961. }
  12962. /**
  12963. * Get an instance of the last loop in the stack.
  12964. *
  12965. * @return \stdClass|null
  12966. * @static
  12967. */
  12968. public static function getLastLoop()
  12969. {
  12970. /** @var \Illuminate\View\Factory $instance */
  12971. return $instance->getLastLoop();
  12972. }
  12973. /**
  12974. * Get the entire loop stack.
  12975. *
  12976. * @return array
  12977. * @static
  12978. */
  12979. public static function getLoopStack()
  12980. {
  12981. /** @var \Illuminate\View\Factory $instance */
  12982. return $instance->getLoopStack();
  12983. }
  12984. /**
  12985. * Start injecting content into a push section.
  12986. *
  12987. * @param string $section
  12988. * @param string $content
  12989. * @return void
  12990. * @static
  12991. */
  12992. public static function startPush($section, $content = '')
  12993. {
  12994. /** @var \Illuminate\View\Factory $instance */
  12995. $instance->startPush($section, $content);
  12996. }
  12997. /**
  12998. * Stop injecting content into a push section.
  12999. *
  13000. * @return string
  13001. * @throws \InvalidArgumentException
  13002. * @static
  13003. */
  13004. public static function stopPush()
  13005. {
  13006. /** @var \Illuminate\View\Factory $instance */
  13007. return $instance->stopPush();
  13008. }
  13009. /**
  13010. * Start prepending content into a push section.
  13011. *
  13012. * @param string $section
  13013. * @param string $content
  13014. * @return void
  13015. * @static
  13016. */
  13017. public static function startPrepend($section, $content = '')
  13018. {
  13019. /** @var \Illuminate\View\Factory $instance */
  13020. $instance->startPrepend($section, $content);
  13021. }
  13022. /**
  13023. * Stop prepending content into a push section.
  13024. *
  13025. * @return string
  13026. * @throws \InvalidArgumentException
  13027. * @static
  13028. */
  13029. public static function stopPrepend()
  13030. {
  13031. /** @var \Illuminate\View\Factory $instance */
  13032. return $instance->stopPrepend();
  13033. }
  13034. /**
  13035. * Get the string contents of a push section.
  13036. *
  13037. * @param string $section
  13038. * @param string $default
  13039. * @return string
  13040. * @static
  13041. */
  13042. public static function yieldPushContent($section, $default = '')
  13043. {
  13044. /** @var \Illuminate\View\Factory $instance */
  13045. return $instance->yieldPushContent($section, $default);
  13046. }
  13047. /**
  13048. * Flush all of the stacks.
  13049. *
  13050. * @return void
  13051. * @static
  13052. */
  13053. public static function flushStacks()
  13054. {
  13055. /** @var \Illuminate\View\Factory $instance */
  13056. $instance->flushStacks();
  13057. }
  13058. /**
  13059. * Start a translation block.
  13060. *
  13061. * @param array $replacements
  13062. * @return void
  13063. * @static
  13064. */
  13065. public static function startTranslation($replacements = array())
  13066. {
  13067. /** @var \Illuminate\View\Factory $instance */
  13068. $instance->startTranslation($replacements);
  13069. }
  13070. /**
  13071. * Render the current translation.
  13072. *
  13073. * @return string
  13074. * @static
  13075. */
  13076. public static function renderTranslation()
  13077. {
  13078. /** @var \Illuminate\View\Factory $instance */
  13079. return $instance->renderTranslation();
  13080. }
  13081. }
  13082. }
  13083. namespace Barryvdh\Debugbar {
  13084. /**
  13085. *
  13086. *
  13087. * @method static void alert(string $message)
  13088. * @method static void critical(string $message)
  13089. * @method static void debug(string $message)
  13090. * @method static void emergency(string $message)
  13091. * @method static void error(string $message)
  13092. * @method static void info(string $message)
  13093. * @method static void log(string $message)
  13094. * @method static void notice(string $message)
  13095. * @method static void warning(string $message)
  13096. * @see \Barryvdh\Debugbar\LaravelDebugbar
  13097. */
  13098. class Facade {
  13099. /**
  13100. * Enable the Debugbar and boot, if not already booted.
  13101. *
  13102. * @static
  13103. */
  13104. public static function enable()
  13105. {
  13106. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13107. return $instance->enable();
  13108. }
  13109. /**
  13110. * Boot the debugbar (add collectors, renderer and listener)
  13111. *
  13112. * @static
  13113. */
  13114. public static function boot()
  13115. {
  13116. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13117. return $instance->boot();
  13118. }
  13119. /**
  13120. *
  13121. *
  13122. * @static
  13123. */
  13124. public static function shouldCollect($name, $default = false)
  13125. {
  13126. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13127. return $instance->shouldCollect($name, $default);
  13128. }
  13129. /**
  13130. * Adds a data collector
  13131. *
  13132. * @param \Barryvdh\Debugbar\DataCollectorInterface $collector
  13133. * @throws DebugBarException
  13134. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13135. * @static
  13136. */
  13137. public static function addCollector($collector)
  13138. {
  13139. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13140. return $instance->addCollector($collector);
  13141. }
  13142. /**
  13143. * Handle silenced errors
  13144. *
  13145. * @param $level
  13146. * @param $message
  13147. * @param string $file
  13148. * @param int $line
  13149. * @param array $context
  13150. * @throws \ErrorException
  13151. * @static
  13152. */
  13153. public static function handleError($level, $message, $file = '', $line = 0, $context = array())
  13154. {
  13155. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13156. return $instance->handleError($level, $message, $file, $line, $context);
  13157. }
  13158. /**
  13159. * Starts a measure
  13160. *
  13161. * @param string $name Internal name, used to stop the measure
  13162. * @param string $label Public name
  13163. * @static
  13164. */
  13165. public static function startMeasure($name, $label = null)
  13166. {
  13167. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13168. return $instance->startMeasure($name, $label);
  13169. }
  13170. /**
  13171. * Stops a measure
  13172. *
  13173. * @param string $name
  13174. * @static
  13175. */
  13176. public static function stopMeasure($name)
  13177. {
  13178. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13179. return $instance->stopMeasure($name);
  13180. }
  13181. /**
  13182. * Adds an exception to be profiled in the debug bar
  13183. *
  13184. * @param \Exception $e
  13185. * @deprecated in favor of addThrowable
  13186. * @static
  13187. */
  13188. public static function addException($e)
  13189. {
  13190. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13191. return $instance->addException($e);
  13192. }
  13193. /**
  13194. * Adds an exception to be profiled in the debug bar
  13195. *
  13196. * @param \Exception $e
  13197. * @static
  13198. */
  13199. public static function addThrowable($e)
  13200. {
  13201. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13202. return $instance->addThrowable($e);
  13203. }
  13204. /**
  13205. * Returns a JavascriptRenderer for this instance
  13206. *
  13207. * @param string $baseUrl
  13208. * @param string $basePathng
  13209. * @return \Barryvdh\Debugbar\JavascriptRenderer
  13210. * @static
  13211. */
  13212. public static function getJavascriptRenderer($baseUrl = null, $basePath = null)
  13213. {
  13214. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13215. return $instance->getJavascriptRenderer($baseUrl, $basePath);
  13216. }
  13217. /**
  13218. * Modify the response and inject the debugbar (or data in headers)
  13219. *
  13220. * @param \Symfony\Component\HttpFoundation\Request $request
  13221. * @param \Symfony\Component\HttpFoundation\Response $response
  13222. * @return \Symfony\Component\HttpFoundation\Response
  13223. * @static
  13224. */
  13225. public static function modifyResponse($request, $response)
  13226. {
  13227. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13228. return $instance->modifyResponse($request, $response);
  13229. }
  13230. /**
  13231. * Check if the Debugbar is enabled
  13232. *
  13233. * @return boolean
  13234. * @static
  13235. */
  13236. public static function isEnabled()
  13237. {
  13238. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13239. return $instance->isEnabled();
  13240. }
  13241. /**
  13242. * Collects the data from the collectors
  13243. *
  13244. * @return array
  13245. * @static
  13246. */
  13247. public static function collect()
  13248. {
  13249. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13250. return $instance->collect();
  13251. }
  13252. /**
  13253. * Injects the web debug toolbar into the given Response.
  13254. *
  13255. * @param \Symfony\Component\HttpFoundation\Response $response A Response instance
  13256. * Based on https://github.com/symfony/WebProfilerBundle/blob/master/EventListener/WebDebugToolbarListener.php
  13257. * @static
  13258. */
  13259. public static function injectDebugbar($response)
  13260. {
  13261. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13262. return $instance->injectDebugbar($response);
  13263. }
  13264. /**
  13265. * Disable the Debugbar
  13266. *
  13267. * @static
  13268. */
  13269. public static function disable()
  13270. {
  13271. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13272. return $instance->disable();
  13273. }
  13274. /**
  13275. * Adds a measure
  13276. *
  13277. * @param string $label
  13278. * @param float $start
  13279. * @param float $end
  13280. * @static
  13281. */
  13282. public static function addMeasure($label, $start, $end)
  13283. {
  13284. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13285. return $instance->addMeasure($label, $start, $end);
  13286. }
  13287. /**
  13288. * Utility function to measure the execution of a Closure
  13289. *
  13290. * @param string $label
  13291. * @param \Closure $closure
  13292. * @static
  13293. */
  13294. public static function measure($label, $closure)
  13295. {
  13296. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13297. return $instance->measure($label, $closure);
  13298. }
  13299. /**
  13300. * Collect data in a CLI request
  13301. *
  13302. * @return array
  13303. * @static
  13304. */
  13305. public static function collectConsole()
  13306. {
  13307. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13308. return $instance->collectConsole();
  13309. }
  13310. /**
  13311. * Adds a message to the MessagesCollector
  13312. *
  13313. * A message can be anything from an object to a string
  13314. *
  13315. * @param mixed $message
  13316. * @param string $label
  13317. * @static
  13318. */
  13319. public static function addMessage($message, $label = 'info')
  13320. {
  13321. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13322. return $instance->addMessage($message, $label);
  13323. }
  13324. /**
  13325. * Checks if a data collector has been added
  13326. *
  13327. * @param string $name
  13328. * @return boolean
  13329. * @static
  13330. */
  13331. public static function hasCollector($name)
  13332. {
  13333. //Method inherited from \DebugBar\DebugBar
  13334. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13335. return $instance->hasCollector($name);
  13336. }
  13337. /**
  13338. * Returns a data collector
  13339. *
  13340. * @param string $name
  13341. * @return \DebugBar\DataCollectorInterface
  13342. * @throws DebugBarException
  13343. * @static
  13344. */
  13345. public static function getCollector($name)
  13346. {
  13347. //Method inherited from \DebugBar\DebugBar
  13348. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13349. return $instance->getCollector($name);
  13350. }
  13351. /**
  13352. * Returns an array of all data collectors
  13353. *
  13354. * @return \DebugBar\array[DataCollectorInterface]
  13355. * @static
  13356. */
  13357. public static function getCollectors()
  13358. {
  13359. //Method inherited from \DebugBar\DebugBar
  13360. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13361. return $instance->getCollectors();
  13362. }
  13363. /**
  13364. * Sets the request id generator
  13365. *
  13366. * @param \DebugBar\RequestIdGeneratorInterface $generator
  13367. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13368. * @static
  13369. */
  13370. public static function setRequestIdGenerator($generator)
  13371. {
  13372. //Method inherited from \DebugBar\DebugBar
  13373. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13374. return $instance->setRequestIdGenerator($generator);
  13375. }
  13376. /**
  13377. *
  13378. *
  13379. * @return \DebugBar\RequestIdGeneratorInterface
  13380. * @static
  13381. */
  13382. public static function getRequestIdGenerator()
  13383. {
  13384. //Method inherited from \DebugBar\DebugBar
  13385. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13386. return $instance->getRequestIdGenerator();
  13387. }
  13388. /**
  13389. * Returns the id of the current request
  13390. *
  13391. * @return string
  13392. * @static
  13393. */
  13394. public static function getCurrentRequestId()
  13395. {
  13396. //Method inherited from \DebugBar\DebugBar
  13397. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13398. return $instance->getCurrentRequestId();
  13399. }
  13400. /**
  13401. * Sets the storage backend to use to store the collected data
  13402. *
  13403. * @param \DebugBar\StorageInterface $storage
  13404. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13405. * @static
  13406. */
  13407. public static function setStorage($storage = null)
  13408. {
  13409. //Method inherited from \DebugBar\DebugBar
  13410. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13411. return $instance->setStorage($storage);
  13412. }
  13413. /**
  13414. *
  13415. *
  13416. * @return \DebugBar\StorageInterface
  13417. * @static
  13418. */
  13419. public static function getStorage()
  13420. {
  13421. //Method inherited from \DebugBar\DebugBar
  13422. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13423. return $instance->getStorage();
  13424. }
  13425. /**
  13426. * Checks if the data will be persisted
  13427. *
  13428. * @return boolean
  13429. * @static
  13430. */
  13431. public static function isDataPersisted()
  13432. {
  13433. //Method inherited from \DebugBar\DebugBar
  13434. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13435. return $instance->isDataPersisted();
  13436. }
  13437. /**
  13438. * Sets the HTTP driver
  13439. *
  13440. * @param \DebugBar\HttpDriverInterface $driver
  13441. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13442. * @static
  13443. */
  13444. public static function setHttpDriver($driver)
  13445. {
  13446. //Method inherited from \DebugBar\DebugBar
  13447. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13448. return $instance->setHttpDriver($driver);
  13449. }
  13450. /**
  13451. * Returns the HTTP driver
  13452. *
  13453. * If no http driver where defined, a PhpHttpDriver is automatically created
  13454. *
  13455. * @return \DebugBar\HttpDriverInterface
  13456. * @static
  13457. */
  13458. public static function getHttpDriver()
  13459. {
  13460. //Method inherited from \DebugBar\DebugBar
  13461. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13462. return $instance->getHttpDriver();
  13463. }
  13464. /**
  13465. * Returns collected data
  13466. *
  13467. * Will collect the data if none have been collected yet
  13468. *
  13469. * @return array
  13470. * @static
  13471. */
  13472. public static function getData()
  13473. {
  13474. //Method inherited from \DebugBar\DebugBar
  13475. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13476. return $instance->getData();
  13477. }
  13478. /**
  13479. * Returns an array of HTTP headers containing the data
  13480. *
  13481. * @param string $headerName
  13482. * @param integer $maxHeaderLength
  13483. * @return array
  13484. * @static
  13485. */
  13486. public static function getDataAsHeaders($headerName = 'phpdebugbar', $maxHeaderLength = 4096, $maxTotalHeaderLength = 250000)
  13487. {
  13488. //Method inherited from \DebugBar\DebugBar
  13489. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13490. return $instance->getDataAsHeaders($headerName, $maxHeaderLength, $maxTotalHeaderLength);
  13491. }
  13492. /**
  13493. * Sends the data through the HTTP headers
  13494. *
  13495. * @param bool $useOpenHandler
  13496. * @param string $headerName
  13497. * @param integer $maxHeaderLength
  13498. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13499. * @static
  13500. */
  13501. public static function sendDataInHeaders($useOpenHandler = null, $headerName = 'phpdebugbar', $maxHeaderLength = 4096)
  13502. {
  13503. //Method inherited from \DebugBar\DebugBar
  13504. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13505. return $instance->sendDataInHeaders($useOpenHandler, $headerName, $maxHeaderLength);
  13506. }
  13507. /**
  13508. * Stacks the data in the session for later rendering
  13509. *
  13510. * @static
  13511. */
  13512. public static function stackData()
  13513. {
  13514. //Method inherited from \DebugBar\DebugBar
  13515. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13516. return $instance->stackData();
  13517. }
  13518. /**
  13519. * Checks if there is stacked data in the session
  13520. *
  13521. * @return boolean
  13522. * @static
  13523. */
  13524. public static function hasStackedData()
  13525. {
  13526. //Method inherited from \DebugBar\DebugBar
  13527. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13528. return $instance->hasStackedData();
  13529. }
  13530. /**
  13531. * Returns the data stacked in the session
  13532. *
  13533. * @param boolean $delete Whether to delete the data in the session
  13534. * @return array
  13535. * @static
  13536. */
  13537. public static function getStackedData($delete = true)
  13538. {
  13539. //Method inherited from \DebugBar\DebugBar
  13540. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13541. return $instance->getStackedData($delete);
  13542. }
  13543. /**
  13544. * Sets the key to use in the $_SESSION array
  13545. *
  13546. * @param string $ns
  13547. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13548. * @static
  13549. */
  13550. public static function setStackDataSessionNamespace($ns)
  13551. {
  13552. //Method inherited from \DebugBar\DebugBar
  13553. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13554. return $instance->setStackDataSessionNamespace($ns);
  13555. }
  13556. /**
  13557. * Returns the key used in the $_SESSION array
  13558. *
  13559. * @return string
  13560. * @static
  13561. */
  13562. public static function getStackDataSessionNamespace()
  13563. {
  13564. //Method inherited from \DebugBar\DebugBar
  13565. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13566. return $instance->getStackDataSessionNamespace();
  13567. }
  13568. /**
  13569. * Sets whether to only use the session to store stacked data even
  13570. * if a storage is enabled
  13571. *
  13572. * @param boolean $enabled
  13573. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13574. * @static
  13575. */
  13576. public static function setStackAlwaysUseSessionStorage($enabled = true)
  13577. {
  13578. //Method inherited from \DebugBar\DebugBar
  13579. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13580. return $instance->setStackAlwaysUseSessionStorage($enabled);
  13581. }
  13582. /**
  13583. * Checks if the session is always used to store stacked data
  13584. * even if a storage is enabled
  13585. *
  13586. * @return boolean
  13587. * @static
  13588. */
  13589. public static function isStackAlwaysUseSessionStorage()
  13590. {
  13591. //Method inherited from \DebugBar\DebugBar
  13592. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13593. return $instance->isStackAlwaysUseSessionStorage();
  13594. }
  13595. /**
  13596. *
  13597. *
  13598. * @static
  13599. */
  13600. public static function offsetSet($key, $value)
  13601. {
  13602. //Method inherited from \DebugBar\DebugBar
  13603. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13604. return $instance->offsetSet($key, $value);
  13605. }
  13606. /**
  13607. *
  13608. *
  13609. * @static
  13610. */
  13611. public static function offsetGet($key)
  13612. {
  13613. //Method inherited from \DebugBar\DebugBar
  13614. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13615. return $instance->offsetGet($key);
  13616. }
  13617. /**
  13618. *
  13619. *
  13620. * @static
  13621. */
  13622. public static function offsetExists($key)
  13623. {
  13624. //Method inherited from \DebugBar\DebugBar
  13625. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13626. return $instance->offsetExists($key);
  13627. }
  13628. /**
  13629. *
  13630. *
  13631. * @static
  13632. */
  13633. public static function offsetUnset($key)
  13634. {
  13635. //Method inherited from \DebugBar\DebugBar
  13636. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13637. return $instance->offsetUnset($key);
  13638. }
  13639. }
  13640. }
  13641. namespace Mews\Captcha\Facades {
  13642. /**
  13643. *
  13644. *
  13645. * @see \Mews\Captcha
  13646. */
  13647. class Captcha {
  13648. /**
  13649. * Create captcha image
  13650. *
  13651. * @param string $config
  13652. * @param boolean $api
  13653. * @return \Mews\Captcha\ImageManager->response
  13654. * @static
  13655. */
  13656. public static function create($config = 'default', $api = false)
  13657. {
  13658. /** @var \Mews\Captcha\Captcha $instance */
  13659. return $instance->create($config, $api);
  13660. }
  13661. /**
  13662. * Captcha check
  13663. *
  13664. * @param $value
  13665. * @return bool
  13666. * @static
  13667. */
  13668. public static function check($value)
  13669. {
  13670. /** @var \Mews\Captcha\Captcha $instance */
  13671. return $instance->check($value);
  13672. }
  13673. /**
  13674. * Captcha check
  13675. *
  13676. * @param $value
  13677. * @return bool
  13678. * @static
  13679. */
  13680. public static function check_api($value, $key)
  13681. {
  13682. /** @var \Mews\Captcha\Captcha $instance */
  13683. return $instance->check_api($value, $key);
  13684. }
  13685. /**
  13686. * Generate captcha image source
  13687. *
  13688. * @param null $config
  13689. * @return string
  13690. * @static
  13691. */
  13692. public static function src($config = null)
  13693. {
  13694. /** @var \Mews\Captcha\Captcha $instance */
  13695. return $instance->src($config);
  13696. }
  13697. /**
  13698. * Generate captcha image html tag
  13699. *
  13700. * @param null $config
  13701. * @param array $attrs HTML attributes supplied to the image tag where key is the attribute
  13702. * and the value is the attribute value
  13703. * @return string
  13704. * @static
  13705. */
  13706. public static function img($config = null, $attrs = array())
  13707. {
  13708. /** @var \Mews\Captcha\Captcha $instance */
  13709. return $instance->img($config, $attrs);
  13710. }
  13711. }
  13712. }
  13713. namespace Jenssegers\Agent\Facades {
  13714. /**
  13715. *
  13716. *
  13717. */
  13718. class Agent {
  13719. /**
  13720. * Get all detection rules. These rules include the additional
  13721. * platforms and browsers and utilities.
  13722. *
  13723. * @return array
  13724. * @static
  13725. */
  13726. public static function getDetectionRulesExtended()
  13727. {
  13728. return \Jenssegers\Agent\Agent::getDetectionRulesExtended();
  13729. }
  13730. /**
  13731. *
  13732. *
  13733. * @static
  13734. */
  13735. public static function getRules()
  13736. {
  13737. /** @var \Jenssegers\Agent\Agent $instance */
  13738. return $instance->getRules();
  13739. }
  13740. /**
  13741. *
  13742. *
  13743. * @return \Jenssegers\Agent\CrawlerDetect
  13744. * @static
  13745. */
  13746. public static function getCrawlerDetect()
  13747. {
  13748. /** @var \Jenssegers\Agent\Agent $instance */
  13749. return $instance->getCrawlerDetect();
  13750. }
  13751. /**
  13752. *
  13753. *
  13754. * @static
  13755. */
  13756. public static function getBrowsers()
  13757. {
  13758. return \Jenssegers\Agent\Agent::getBrowsers();
  13759. }
  13760. /**
  13761. *
  13762. *
  13763. * @static
  13764. */
  13765. public static function getOperatingSystems()
  13766. {
  13767. return \Jenssegers\Agent\Agent::getOperatingSystems();
  13768. }
  13769. /**
  13770. *
  13771. *
  13772. * @static
  13773. */
  13774. public static function getPlatforms()
  13775. {
  13776. return \Jenssegers\Agent\Agent::getPlatforms();
  13777. }
  13778. /**
  13779. *
  13780. *
  13781. * @static
  13782. */
  13783. public static function getDesktopDevices()
  13784. {
  13785. return \Jenssegers\Agent\Agent::getDesktopDevices();
  13786. }
  13787. /**
  13788. *
  13789. *
  13790. * @static
  13791. */
  13792. public static function getProperties()
  13793. {
  13794. return \Jenssegers\Agent\Agent::getProperties();
  13795. }
  13796. /**
  13797. * Get accept languages.
  13798. *
  13799. * @param string $acceptLanguage
  13800. * @return array
  13801. * @static
  13802. */
  13803. public static function languages($acceptLanguage = null)
  13804. {
  13805. /** @var \Jenssegers\Agent\Agent $instance */
  13806. return $instance->languages($acceptLanguage);
  13807. }
  13808. /**
  13809. * Get the browser name.
  13810. *
  13811. * @param string|null $userAgent
  13812. * @return string
  13813. * @static
  13814. */
  13815. public static function browser($userAgent = null)
  13816. {
  13817. /** @var \Jenssegers\Agent\Agent $instance */
  13818. return $instance->browser($userAgent);
  13819. }
  13820. /**
  13821. * Get the platform name.
  13822. *
  13823. * @param string|null $userAgent
  13824. * @return string
  13825. * @static
  13826. */
  13827. public static function platform($userAgent = null)
  13828. {
  13829. /** @var \Jenssegers\Agent\Agent $instance */
  13830. return $instance->platform($userAgent);
  13831. }
  13832. /**
  13833. * Get the device name.
  13834. *
  13835. * @param string|null $userAgent
  13836. * @return string
  13837. * @static
  13838. */
  13839. public static function device($userAgent = null)
  13840. {
  13841. /** @var \Jenssegers\Agent\Agent $instance */
  13842. return $instance->device($userAgent);
  13843. }
  13844. /**
  13845. * Check if the device is a desktop computer.
  13846. *
  13847. * @param string|null $userAgent deprecated
  13848. * @param array $httpHeaders deprecated
  13849. * @return bool
  13850. * @static
  13851. */
  13852. public static function isDesktop($userAgent = null, $httpHeaders = null)
  13853. {
  13854. /** @var \Jenssegers\Agent\Agent $instance */
  13855. return $instance->isDesktop($userAgent, $httpHeaders);
  13856. }
  13857. /**
  13858. * Check if the device is a mobile phone.
  13859. *
  13860. * @param string|null $userAgent deprecated
  13861. * @param array $httpHeaders deprecated
  13862. * @return bool
  13863. * @static
  13864. */
  13865. public static function isPhone($userAgent = null, $httpHeaders = null)
  13866. {
  13867. /** @var \Jenssegers\Agent\Agent $instance */
  13868. return $instance->isPhone($userAgent, $httpHeaders);
  13869. }
  13870. /**
  13871. * Get the robot name.
  13872. *
  13873. * @param string|null $userAgent
  13874. * @return string|bool
  13875. * @static
  13876. */
  13877. public static function robot($userAgent = null)
  13878. {
  13879. /** @var \Jenssegers\Agent\Agent $instance */
  13880. return $instance->robot($userAgent);
  13881. }
  13882. /**
  13883. * Check if device is a robot.
  13884. *
  13885. * @param string|null $userAgent
  13886. * @return bool
  13887. * @static
  13888. */
  13889. public static function isRobot($userAgent = null)
  13890. {
  13891. /** @var \Jenssegers\Agent\Agent $instance */
  13892. return $instance->isRobot($userAgent);
  13893. }
  13894. /**
  13895. *
  13896. *
  13897. * @static
  13898. */
  13899. public static function version($propertyName, $type = 'text')
  13900. {
  13901. /** @var \Jenssegers\Agent\Agent $instance */
  13902. return $instance->version($propertyName, $type);
  13903. }
  13904. /**
  13905. * Get the current script version.
  13906. *
  13907. * This is useful for the demo.php file,
  13908. * so people can check on what version they are testing
  13909. * for mobile devices.
  13910. *
  13911. * @return string The version number in semantic version format.
  13912. * @static
  13913. */
  13914. public static function getScriptVersion()
  13915. {
  13916. //Method inherited from \Mobile_Detect
  13917. return \Jenssegers\Agent\Agent::getScriptVersion();
  13918. }
  13919. /**
  13920. * Set the HTTP Headers. Must be PHP-flavored. This method will reset existing headers.
  13921. *
  13922. * @param array $httpHeaders The headers to set. If null, then using PHP's _SERVER to extract
  13923. * the headers. The default null is left for backwards compatibility.
  13924. * @static
  13925. */
  13926. public static function setHttpHeaders($httpHeaders = null)
  13927. {
  13928. //Method inherited from \Mobile_Detect
  13929. /** @var \Jenssegers\Agent\Agent $instance */
  13930. return $instance->setHttpHeaders($httpHeaders);
  13931. }
  13932. /**
  13933. * Retrieves the HTTP headers.
  13934. *
  13935. * @return array
  13936. * @static
  13937. */
  13938. public static function getHttpHeaders()
  13939. {
  13940. //Method inherited from \Mobile_Detect
  13941. /** @var \Jenssegers\Agent\Agent $instance */
  13942. return $instance->getHttpHeaders();
  13943. }
  13944. /**
  13945. * Retrieves a particular header. If it doesn't exist, no exception/error is caused.
  13946. *
  13947. * Simply null is returned.
  13948. *
  13949. * @param string $header The name of the header to retrieve. Can be HTTP compliant such as
  13950. * "User-Agent" or "X-Device-User-Agent" or can be php-esque with the
  13951. * all-caps, HTTP_ prefixed, underscore seperated awesomeness.
  13952. * @return string|null The value of the header.
  13953. * @static
  13954. */
  13955. public static function getHttpHeader($header)
  13956. {
  13957. //Method inherited from \Mobile_Detect
  13958. /** @var \Jenssegers\Agent\Agent $instance */
  13959. return $instance->getHttpHeader($header);
  13960. }
  13961. /**
  13962. *
  13963. *
  13964. * @static
  13965. */
  13966. public static function getMobileHeaders()
  13967. {
  13968. //Method inherited from \Mobile_Detect
  13969. /** @var \Jenssegers\Agent\Agent $instance */
  13970. return $instance->getMobileHeaders();
  13971. }
  13972. /**
  13973. * Get all possible HTTP headers that
  13974. * can contain the User-Agent string.
  13975. *
  13976. * @return array List of HTTP headers.
  13977. * @static
  13978. */
  13979. public static function getUaHttpHeaders()
  13980. {
  13981. //Method inherited from \Mobile_Detect
  13982. /** @var \Jenssegers\Agent\Agent $instance */
  13983. return $instance->getUaHttpHeaders();
  13984. }
  13985. /**
  13986. * Set CloudFront headers
  13987. * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
  13988. *
  13989. * @param array $cfHeaders List of HTTP headers
  13990. * @return boolean If there were CloudFront headers to be set
  13991. * @static
  13992. */
  13993. public static function setCfHeaders($cfHeaders = null)
  13994. {
  13995. //Method inherited from \Mobile_Detect
  13996. /** @var \Jenssegers\Agent\Agent $instance */
  13997. return $instance->setCfHeaders($cfHeaders);
  13998. }
  13999. /**
  14000. * Retrieves the cloudfront headers.
  14001. *
  14002. * @return array
  14003. * @static
  14004. */
  14005. public static function getCfHeaders()
  14006. {
  14007. //Method inherited from \Mobile_Detect
  14008. /** @var \Jenssegers\Agent\Agent $instance */
  14009. return $instance->getCfHeaders();
  14010. }
  14011. /**
  14012. * Set the User-Agent to be used.
  14013. *
  14014. * @param string $userAgent The user agent string to set.
  14015. * @return string|null
  14016. * @static
  14017. */
  14018. public static function setUserAgent($userAgent = null)
  14019. {
  14020. //Method inherited from \Mobile_Detect
  14021. /** @var \Jenssegers\Agent\Agent $instance */
  14022. return $instance->setUserAgent($userAgent);
  14023. }
  14024. /**
  14025. * Retrieve the User-Agent.
  14026. *
  14027. * @return string|null The user agent if it's set.
  14028. * @static
  14029. */
  14030. public static function getUserAgent()
  14031. {
  14032. //Method inherited from \Mobile_Detect
  14033. /** @var \Jenssegers\Agent\Agent $instance */
  14034. return $instance->getUserAgent();
  14035. }
  14036. /**
  14037. * Set the detection type. Must be one of self::DETECTION_TYPE_MOBILE or
  14038. * self::DETECTION_TYPE_EXTENDED. Otherwise, nothing is set.
  14039. *
  14040. * @deprecated since version 2.6.9
  14041. * @param string $type The type. Must be a self::DETECTION_TYPE_* constant. The default
  14042. * parameter is null which will default to self::DETECTION_TYPE_MOBILE.
  14043. * @static
  14044. */
  14045. public static function setDetectionType($type = null)
  14046. {
  14047. //Method inherited from \Mobile_Detect
  14048. /** @var \Jenssegers\Agent\Agent $instance */
  14049. return $instance->setDetectionType($type);
  14050. }
  14051. /**
  14052. *
  14053. *
  14054. * @static
  14055. */
  14056. public static function getMatchingRegex()
  14057. {
  14058. //Method inherited from \Mobile_Detect
  14059. /** @var \Jenssegers\Agent\Agent $instance */
  14060. return $instance->getMatchingRegex();
  14061. }
  14062. /**
  14063. *
  14064. *
  14065. * @static
  14066. */
  14067. public static function getMatchesArray()
  14068. {
  14069. //Method inherited from \Mobile_Detect
  14070. /** @var \Jenssegers\Agent\Agent $instance */
  14071. return $instance->getMatchesArray();
  14072. }
  14073. /**
  14074. * Retrieve the list of known phone devices.
  14075. *
  14076. * @return array List of phone devices.
  14077. * @static
  14078. */
  14079. public static function getPhoneDevices()
  14080. {
  14081. //Method inherited from \Mobile_Detect
  14082. return \Jenssegers\Agent\Agent::getPhoneDevices();
  14083. }
  14084. /**
  14085. * Retrieve the list of known tablet devices.
  14086. *
  14087. * @return array List of tablet devices.
  14088. * @static
  14089. */
  14090. public static function getTabletDevices()
  14091. {
  14092. //Method inherited from \Mobile_Detect
  14093. return \Jenssegers\Agent\Agent::getTabletDevices();
  14094. }
  14095. /**
  14096. * Alias for getBrowsers() method.
  14097. *
  14098. * @return array List of user agents.
  14099. * @static
  14100. */
  14101. public static function getUserAgents()
  14102. {
  14103. //Method inherited from \Mobile_Detect
  14104. return \Jenssegers\Agent\Agent::getUserAgents();
  14105. }
  14106. /**
  14107. * Retrieve the list of known utilities.
  14108. *
  14109. * @return array List of utilities.
  14110. * @static
  14111. */
  14112. public static function getUtilities()
  14113. {
  14114. //Method inherited from \Mobile_Detect
  14115. return \Jenssegers\Agent\Agent::getUtilities();
  14116. }
  14117. /**
  14118. * Method gets the mobile detection rules. This method is used for the magic methods $detect->is*().
  14119. *
  14120. * @deprecated since version 2.6.9
  14121. * @return array All the rules (but not extended).
  14122. * @static
  14123. */
  14124. public static function getMobileDetectionRules()
  14125. {
  14126. //Method inherited from \Mobile_Detect
  14127. return \Jenssegers\Agent\Agent::getMobileDetectionRules();
  14128. }
  14129. /**
  14130. * Method gets the mobile detection rules + utilities.
  14131. *
  14132. * The reason this is separate is because utilities rules
  14133. * don't necessary imply mobile. This method is used inside
  14134. * the new $detect->is('stuff') method.
  14135. *
  14136. * @deprecated since version 2.6.9
  14137. * @return array All the rules + extended.
  14138. * @static
  14139. */
  14140. public static function getMobileDetectionRulesExtended()
  14141. {
  14142. //Method inherited from \Mobile_Detect
  14143. /** @var \Jenssegers\Agent\Agent $instance */
  14144. return $instance->getMobileDetectionRulesExtended();
  14145. }
  14146. /**
  14147. * Check the HTTP headers for signs of mobile.
  14148. *
  14149. * This is the fastest mobile check possible; it's used
  14150. * inside isMobile() method.
  14151. *
  14152. * @return bool
  14153. * @static
  14154. */
  14155. public static function checkHttpHeadersForMobile()
  14156. {
  14157. //Method inherited from \Mobile_Detect
  14158. /** @var \Jenssegers\Agent\Agent $instance */
  14159. return $instance->checkHttpHeadersForMobile();
  14160. }
  14161. /**
  14162. * Check if the device is mobile.
  14163. *
  14164. * Returns true if any type of mobile device detected, including special ones
  14165. *
  14166. * @param null $userAgent deprecated
  14167. * @param null $httpHeaders deprecated
  14168. * @return bool
  14169. * @static
  14170. */
  14171. public static function isMobile($userAgent = null, $httpHeaders = null)
  14172. {
  14173. //Method inherited from \Mobile_Detect
  14174. /** @var \Jenssegers\Agent\Agent $instance */
  14175. return $instance->isMobile($userAgent, $httpHeaders);
  14176. }
  14177. /**
  14178. * Check if the device is a tablet.
  14179. *
  14180. * Return true if any type of tablet device is detected.
  14181. *
  14182. * @param string $userAgent deprecated
  14183. * @param array $httpHeaders deprecated
  14184. * @return bool
  14185. * @static
  14186. */
  14187. public static function isTablet($userAgent = null, $httpHeaders = null)
  14188. {
  14189. //Method inherited from \Mobile_Detect
  14190. /** @var \Jenssegers\Agent\Agent $instance */
  14191. return $instance->isTablet($userAgent, $httpHeaders);
  14192. }
  14193. /**
  14194. * This method checks for a certain property in the
  14195. * userAgent.
  14196. *
  14197. * @todo : The httpHeaders part is not yet used.
  14198. * @param string $key
  14199. * @param string $userAgent deprecated
  14200. * @param string $httpHeaders deprecated
  14201. * @return bool|int|null
  14202. * @static
  14203. */
  14204. public static function is($key, $userAgent = null, $httpHeaders = null)
  14205. {
  14206. //Method inherited from \Mobile_Detect
  14207. /** @var \Jenssegers\Agent\Agent $instance */
  14208. return $instance->is($key, $userAgent, $httpHeaders);
  14209. }
  14210. /**
  14211. * Some detection rules are relative (not standard),
  14212. * because of the diversity of devices, vendors and
  14213. * their conventions in representing the User-Agent or
  14214. * the HTTP headers.
  14215. *
  14216. * This method will be used to check custom regexes against
  14217. * the User-Agent string.
  14218. *
  14219. * @param $regex
  14220. * @param string $userAgent
  14221. * @return bool
  14222. * @todo : search in the HTTP headers too.
  14223. * @static
  14224. */
  14225. public static function match($regex, $userAgent = null)
  14226. {
  14227. //Method inherited from \Mobile_Detect
  14228. /** @var \Jenssegers\Agent\Agent $instance */
  14229. return $instance->match($regex, $userAgent);
  14230. }
  14231. /**
  14232. * Prepare the version number.
  14233. *
  14234. * @todo Remove the error supression from str_replace() call.
  14235. * @param string $ver The string version, like "2.6.21.2152";
  14236. * @return float
  14237. * @static
  14238. */
  14239. public static function prepareVersionNo($ver)
  14240. {
  14241. //Method inherited from \Mobile_Detect
  14242. /** @var \Jenssegers\Agent\Agent $instance */
  14243. return $instance->prepareVersionNo($ver);
  14244. }
  14245. /**
  14246. * Retrieve the mobile grading, using self::MOBILE_GRADE_* constants.
  14247. *
  14248. * @return string One of the self::MOBILE_GRADE_* constants.
  14249. * @static
  14250. */
  14251. public static function mobileGrade()
  14252. {
  14253. //Method inherited from \Mobile_Detect
  14254. /** @var \Jenssegers\Agent\Agent $instance */
  14255. return $instance->mobileGrade();
  14256. }
  14257. }
  14258. }
  14259. namespace Mews\Purifier\Facades {
  14260. /**
  14261. *
  14262. *
  14263. * @see \Mews\Purifier
  14264. */
  14265. class Purifier {
  14266. /**
  14267. *
  14268. *
  14269. * @param $dirty
  14270. * @param null $config
  14271. * @return mixed
  14272. * @static
  14273. */
  14274. public static function clean($dirty, $config = null)
  14275. {
  14276. /** @var \Mews\Purifier\Purifier $instance */
  14277. return $instance->clean($dirty, $config);
  14278. }
  14279. /**
  14280. * Get HTMLPurifier instance.
  14281. *
  14282. * @return \HTMLPurifier
  14283. * @static
  14284. */
  14285. public static function getInstance()
  14286. {
  14287. /** @var \Mews\Purifier\Purifier $instance */
  14288. return $instance->getInstance();
  14289. }
  14290. }
  14291. }
  14292. namespace Misechow\Geetest {
  14293. /**
  14294. *
  14295. *
  14296. */
  14297. class Geetest {
  14298. /**
  14299. *
  14300. *
  14301. * @return string
  14302. * @static
  14303. */
  14304. public static function getGeetestUrl()
  14305. {
  14306. /** @var \Misechow\Geetest\GeetestLib $instance */
  14307. return $instance->getGeetestUrl();
  14308. }
  14309. /**
  14310. *
  14311. *
  14312. * @param string $geetestUrl
  14313. * @return \Misechow\Geetest\GeetestLib
  14314. * @static
  14315. */
  14316. public static function setGeetestUrl($url)
  14317. {
  14318. /** @var \Misechow\Geetest\GeetestLib $instance */
  14319. return $instance->setGeetestUrl($url);
  14320. }
  14321. /**
  14322. * Check Geetest server is running or not.
  14323. *
  14324. * @param null $user_id
  14325. * @return int
  14326. * @static
  14327. */
  14328. public static function preProcess($param, $new_captcha = 1)
  14329. {
  14330. /** @var \Misechow\Geetest\GeetestLib $instance */
  14331. return $instance->preProcess($param, $new_captcha);
  14332. }
  14333. /**
  14334. *
  14335. *
  14336. * @return mixed
  14337. * @static
  14338. */
  14339. public static function getResponseStr()
  14340. {
  14341. /** @var \Misechow\Geetest\GeetestLib $instance */
  14342. return $instance->getResponseStr();
  14343. }
  14344. /**
  14345. *
  14346. *
  14347. * @return mixed
  14348. * @static
  14349. */
  14350. public static function getResponse()
  14351. {
  14352. /** @var \Misechow\Geetest\GeetestLib $instance */
  14353. return $instance->getResponse();
  14354. }
  14355. /**
  14356. * Get success validate result.
  14357. *
  14358. * @param $challenge
  14359. * @param $validate
  14360. * @param $seccode
  14361. * @param null $user_id
  14362. * @return int
  14363. * @static
  14364. */
  14365. public static function successValidate($challenge, $validate, $seccode, $param, $json_format = 1)
  14366. {
  14367. /** @var \Misechow\Geetest\GeetestLib $instance */
  14368. return $instance->successValidate($challenge, $validate, $seccode, $param, $json_format);
  14369. }
  14370. /**
  14371. * Get fail result.
  14372. *
  14373. * @param $challenge
  14374. * @param $validate
  14375. * @param $seccode
  14376. * @return int
  14377. * @static
  14378. */
  14379. public static function failValidate($challenge, $validate, $seccode)
  14380. {
  14381. /** @var \Misechow\Geetest\GeetestLib $instance */
  14382. return $instance->failValidate($challenge, $validate, $seccode);
  14383. }
  14384. /**
  14385. *
  14386. *
  14387. * @param string $product
  14388. * @static
  14389. */
  14390. public static function render($product = 'float', $captchaId = 'geetest-captcha')
  14391. {
  14392. /** @var \Misechow\Geetest\GeetestLib $instance */
  14393. return $instance->render($product, $captchaId);
  14394. }
  14395. }
  14396. }
  14397. namespace Misechow\NoCaptcha\Facades {
  14398. /**
  14399. *
  14400. *
  14401. */
  14402. class NoCaptcha {
  14403. /**
  14404. * Render HTML captcha.
  14405. *
  14406. * @param array $attributes
  14407. * @return string
  14408. * @static
  14409. */
  14410. public static function display($attributes = array())
  14411. {
  14412. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14413. return $instance->display($attributes);
  14414. }
  14415. /**
  14416. *
  14417. *
  14418. * @see display()
  14419. * @static
  14420. */
  14421. public static function displayWidget($attributes = array())
  14422. {
  14423. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14424. return $instance->displayWidget($attributes);
  14425. }
  14426. /**
  14427. * Display a Invisible reCAPTCHA by embedding a callback into a form submit button.
  14428. *
  14429. * @param string $formIdentifier the html ID of the form that should be submitted.
  14430. * @param string $text the text inside the form button
  14431. * @param array $attributes array of additional html elements
  14432. * @return string
  14433. * @static
  14434. */
  14435. public static function displaySubmit($formIdentifier, $text = 'submit', $attributes = array())
  14436. {
  14437. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14438. return $instance->displaySubmit($formIdentifier, $text, $attributes);
  14439. }
  14440. /**
  14441. * Render js source
  14442. *
  14443. * @param null $lang
  14444. * @param bool $callback
  14445. * @param string $onLoadClass
  14446. * @return string
  14447. * @static
  14448. */
  14449. public static function renderJs($lang = null, $callback = false, $onLoadClass = 'onloadCallBack')
  14450. {
  14451. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14452. return $instance->renderJs($lang, $callback, $onLoadClass);
  14453. }
  14454. /**
  14455. * Verify no-captcha response.
  14456. *
  14457. * @param string $response
  14458. * @param string $clientIp
  14459. * @return bool
  14460. * @static
  14461. */
  14462. public static function verifyResponse($response, $clientIp = null)
  14463. {
  14464. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14465. return $instance->verifyResponse($response, $clientIp);
  14466. }
  14467. /**
  14468. * Verify no-captcha response by Symfony Request.
  14469. *
  14470. * @param \Request $request
  14471. * @return bool
  14472. * @static
  14473. */
  14474. public static function verifyRequest($request)
  14475. {
  14476. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14477. return $instance->verifyRequest($request);
  14478. }
  14479. /**
  14480. * Get recaptcha js link.
  14481. *
  14482. * @param string $lang
  14483. * @param boolean $callback
  14484. * @param string $onLoadClass
  14485. * @return string
  14486. * @static
  14487. */
  14488. public static function getJsLink($lang = null, $callback = false, $onLoadClass = 'onloadCallBack')
  14489. {
  14490. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14491. return $instance->getJsLink($lang, $callback, $onLoadClass);
  14492. }
  14493. }
  14494. }
  14495. namespace Intervention\Image\Facades {
  14496. /**
  14497. *
  14498. *
  14499. */
  14500. class Image {
  14501. /**
  14502. * Overrides configuration settings
  14503. *
  14504. * @param array $config
  14505. * @return self
  14506. * @static
  14507. */
  14508. public static function configure($config = array())
  14509. {
  14510. /** @var \Intervention\Image\ImageManager $instance */
  14511. return $instance->configure($config);
  14512. }
  14513. /**
  14514. * Initiates an Image instance from different input types
  14515. *
  14516. * @param mixed $data
  14517. * @return \Intervention\Image\Image
  14518. * @static
  14519. */
  14520. public static function make($data)
  14521. {
  14522. /** @var \Intervention\Image\ImageManager $instance */
  14523. return $instance->make($data);
  14524. }
  14525. /**
  14526. * Creates an empty image canvas
  14527. *
  14528. * @param int $width
  14529. * @param int $height
  14530. * @param mixed $background
  14531. * @return \Intervention\Image\Image
  14532. * @static
  14533. */
  14534. public static function canvas($width, $height, $background = null)
  14535. {
  14536. /** @var \Intervention\Image\ImageManager $instance */
  14537. return $instance->canvas($width, $height, $background);
  14538. }
  14539. /**
  14540. * Create new cached image and run callback
  14541. * (requires additional package intervention/imagecache)
  14542. *
  14543. * @param \Closure $callback
  14544. * @param int $lifetime
  14545. * @param boolean $returnObj
  14546. * @return \Image
  14547. * @static
  14548. */
  14549. public static function cache($callback, $lifetime = null, $returnObj = false)
  14550. {
  14551. /** @var \Intervention\Image\ImageManager $instance */
  14552. return $instance->cache($callback, $lifetime, $returnObj);
  14553. }
  14554. }
  14555. }
  14556. namespace {
  14557. class App extends \Illuminate\Support\Facades\App {}
  14558. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  14559. class Auth extends \Illuminate\Support\Facades\Auth {}
  14560. class Blade extends \Illuminate\Support\Facades\Blade {}
  14561. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  14562. class Debugbar extends \Barryvdh\Debugbar\Facade {}
  14563. class Bus extends \Illuminate\Support\Facades\Bus {}
  14564. class Cache extends \Illuminate\Support\Facades\Cache {}
  14565. class Config extends \Illuminate\Support\Facades\Config {}
  14566. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  14567. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  14568. class DB extends \Illuminate\Support\Facades\DB {}
  14569. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  14570. /**
  14571. * Create and return an un-saved model instance.
  14572. *
  14573. * @param array $attributes
  14574. * @return \Illuminate\Database\Eloquent\Model
  14575. * @static
  14576. */
  14577. public static function make($attributes = array())
  14578. {
  14579. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14580. return $instance->make($attributes);
  14581. }
  14582. /**
  14583. * Register a new global scope.
  14584. *
  14585. * @param string $identifier
  14586. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  14587. * @return \Illuminate\Database\Eloquent\Builder
  14588. * @static
  14589. */
  14590. public static function withGlobalScope($identifier, $scope)
  14591. {
  14592. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14593. return $instance->withGlobalScope($identifier, $scope);
  14594. }
  14595. /**
  14596. * Remove a registered global scope.
  14597. *
  14598. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  14599. * @return \Illuminate\Database\Eloquent\Builder
  14600. * @static
  14601. */
  14602. public static function withoutGlobalScope($scope)
  14603. {
  14604. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14605. return $instance->withoutGlobalScope($scope);
  14606. }
  14607. /**
  14608. * Remove all or passed registered global scopes.
  14609. *
  14610. * @param array|null $scopes
  14611. * @return \Illuminate\Database\Eloquent\Builder
  14612. * @static
  14613. */
  14614. public static function withoutGlobalScopes($scopes = null)
  14615. {
  14616. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14617. return $instance->withoutGlobalScopes($scopes);
  14618. }
  14619. /**
  14620. * Get an array of global scopes that were removed from the query.
  14621. *
  14622. * @return array
  14623. * @static
  14624. */
  14625. public static function removedScopes()
  14626. {
  14627. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14628. return $instance->removedScopes();
  14629. }
  14630. /**
  14631. * Add a where clause on the primary key to the query.
  14632. *
  14633. * @param mixed $id
  14634. * @return \Illuminate\Database\Eloquent\Builder
  14635. * @static
  14636. */
  14637. public static function whereKey($id)
  14638. {
  14639. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14640. return $instance->whereKey($id);
  14641. }
  14642. /**
  14643. * Add a where clause on the primary key to the query.
  14644. *
  14645. * @param mixed $id
  14646. * @return \Illuminate\Database\Eloquent\Builder
  14647. * @static
  14648. */
  14649. public static function whereKeyNot($id)
  14650. {
  14651. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14652. return $instance->whereKeyNot($id);
  14653. }
  14654. /**
  14655. * Add a basic where clause to the query.
  14656. *
  14657. * @param string|array|\Closure $column
  14658. * @param mixed $operator
  14659. * @param mixed $value
  14660. * @param string $boolean
  14661. * @return \Illuminate\Database\Eloquent\Builder
  14662. * @static
  14663. */
  14664. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  14665. {
  14666. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14667. return $instance->where($column, $operator, $value, $boolean);
  14668. }
  14669. /**
  14670. * Add an "or where" clause to the query.
  14671. *
  14672. * @param \Closure|array|string $column
  14673. * @param mixed $operator
  14674. * @param mixed $value
  14675. * @return \Illuminate\Database\Eloquent\Builder|static
  14676. * @static
  14677. */
  14678. public static function orWhere($column, $operator = null, $value = null)
  14679. {
  14680. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14681. return $instance->orWhere($column, $operator, $value);
  14682. }
  14683. /**
  14684. * Create a collection of models from plain arrays.
  14685. *
  14686. * @param array $items
  14687. * @return \Illuminate\Database\Eloquent\Collection
  14688. * @static
  14689. */
  14690. public static function hydrate($items)
  14691. {
  14692. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14693. return $instance->hydrate($items);
  14694. }
  14695. /**
  14696. * Create a collection of models from a raw query.
  14697. *
  14698. * @param string $query
  14699. * @param array $bindings
  14700. * @return \Illuminate\Database\Eloquent\Collection
  14701. * @static
  14702. */
  14703. public static function fromQuery($query, $bindings = array())
  14704. {
  14705. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14706. return $instance->fromQuery($query, $bindings);
  14707. }
  14708. /**
  14709. * Find a model by its primary key.
  14710. *
  14711. * @param mixed $id
  14712. * @param array $columns
  14713. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  14714. * @static
  14715. */
  14716. public static function find($id, $columns = array())
  14717. {
  14718. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14719. return $instance->find($id, $columns);
  14720. }
  14721. /**
  14722. * Find multiple models by their primary keys.
  14723. *
  14724. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  14725. * @param array $columns
  14726. * @return \Illuminate\Database\Eloquent\Collection
  14727. * @static
  14728. */
  14729. public static function findMany($ids, $columns = array())
  14730. {
  14731. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14732. return $instance->findMany($ids, $columns);
  14733. }
  14734. /**
  14735. * Find a model by its primary key or throw an exception.
  14736. *
  14737. * @param mixed $id
  14738. * @param array $columns
  14739. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  14740. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14741. * @static
  14742. */
  14743. public static function findOrFail($id, $columns = array())
  14744. {
  14745. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14746. return $instance->findOrFail($id, $columns);
  14747. }
  14748. /**
  14749. * Find a model by its primary key or return fresh model instance.
  14750. *
  14751. * @param mixed $id
  14752. * @param array $columns
  14753. * @return \Illuminate\Database\Eloquent\Model
  14754. * @static
  14755. */
  14756. public static function findOrNew($id, $columns = array())
  14757. {
  14758. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14759. return $instance->findOrNew($id, $columns);
  14760. }
  14761. /**
  14762. * Get the first record matching the attributes or instantiate it.
  14763. *
  14764. * @param array $attributes
  14765. * @param array $values
  14766. * @return \Illuminate\Database\Eloquent\Model
  14767. * @static
  14768. */
  14769. public static function firstOrNew($attributes, $values = array())
  14770. {
  14771. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14772. return $instance->firstOrNew($attributes, $values);
  14773. }
  14774. /**
  14775. * Get the first record matching the attributes or create it.
  14776. *
  14777. * @param array $attributes
  14778. * @param array $values
  14779. * @return \Illuminate\Database\Eloquent\Model
  14780. * @static
  14781. */
  14782. public static function firstOrCreate($attributes, $values = array())
  14783. {
  14784. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14785. return $instance->firstOrCreate($attributes, $values);
  14786. }
  14787. /**
  14788. * Create or update a record matching the attributes, and fill it with values.
  14789. *
  14790. * @param array $attributes
  14791. * @param array $values
  14792. * @return \Illuminate\Database\Eloquent\Model
  14793. * @static
  14794. */
  14795. public static function updateOrCreate($attributes, $values = array())
  14796. {
  14797. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14798. return $instance->updateOrCreate($attributes, $values);
  14799. }
  14800. /**
  14801. * Execute the query and get the first result or throw an exception.
  14802. *
  14803. * @param array $columns
  14804. * @return \Illuminate\Database\Eloquent\Model|static
  14805. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14806. * @static
  14807. */
  14808. public static function firstOrFail($columns = array())
  14809. {
  14810. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14811. return $instance->firstOrFail($columns);
  14812. }
  14813. /**
  14814. * Execute the query and get the first result or call a callback.
  14815. *
  14816. * @param \Closure|array $columns
  14817. * @param \Closure|null $callback
  14818. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  14819. * @static
  14820. */
  14821. public static function firstOr($columns = array(), $callback = null)
  14822. {
  14823. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14824. return $instance->firstOr($columns, $callback);
  14825. }
  14826. /**
  14827. * Get a single column's value from the first result of a query.
  14828. *
  14829. * @param string $column
  14830. * @return mixed
  14831. * @static
  14832. */
  14833. public static function value($column)
  14834. {
  14835. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14836. return $instance->value($column);
  14837. }
  14838. /**
  14839. * Execute the query as a "select" statement.
  14840. *
  14841. * @param array $columns
  14842. * @return \Illuminate\Database\Eloquent\Collection|static[]
  14843. * @static
  14844. */
  14845. public static function get($columns = array())
  14846. {
  14847. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14848. return $instance->get($columns);
  14849. }
  14850. /**
  14851. * Get the hydrated models without eager loading.
  14852. *
  14853. * @param array $columns
  14854. * @return \Illuminate\Database\Eloquent\Model[]
  14855. * @static
  14856. */
  14857. public static function getModels($columns = array())
  14858. {
  14859. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14860. return $instance->getModels($columns);
  14861. }
  14862. /**
  14863. * Eager load the relationships for the models.
  14864. *
  14865. * @param array $models
  14866. * @return array
  14867. * @static
  14868. */
  14869. public static function eagerLoadRelations($models)
  14870. {
  14871. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14872. return $instance->eagerLoadRelations($models);
  14873. }
  14874. /**
  14875. * Get a generator for the given query.
  14876. *
  14877. * @return \Generator
  14878. * @static
  14879. */
  14880. public static function cursor()
  14881. {
  14882. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14883. return $instance->cursor();
  14884. }
  14885. /**
  14886. * Chunk the results of a query by comparing numeric IDs.
  14887. *
  14888. * @param int $count
  14889. * @param callable $callback
  14890. * @param string|null $column
  14891. * @param string|null $alias
  14892. * @return bool
  14893. * @static
  14894. */
  14895. public static function chunkById($count, $callback, $column = null, $alias = null)
  14896. {
  14897. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14898. return $instance->chunkById($count, $callback, $column, $alias);
  14899. }
  14900. /**
  14901. * Get an array with the values of a given column.
  14902. *
  14903. * @param string $column
  14904. * @param string|null $key
  14905. * @return \Illuminate\Support\Collection
  14906. * @static
  14907. */
  14908. public static function pluck($column, $key = null)
  14909. {
  14910. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14911. return $instance->pluck($column, $key);
  14912. }
  14913. /**
  14914. * Paginate the given query.
  14915. *
  14916. * @param int $perPage
  14917. * @param array $columns
  14918. * @param string $pageName
  14919. * @param int|null $page
  14920. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  14921. * @throws \InvalidArgumentException
  14922. * @static
  14923. */
  14924. public static function paginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  14925. {
  14926. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14927. return $instance->paginate($perPage, $columns, $pageName, $page);
  14928. }
  14929. /**
  14930. * Paginate the given query into a simple paginator.
  14931. *
  14932. * @param int $perPage
  14933. * @param array $columns
  14934. * @param string $pageName
  14935. * @param int|null $page
  14936. * @return \Illuminate\Contracts\Pagination\Paginator
  14937. * @static
  14938. */
  14939. public static function simplePaginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  14940. {
  14941. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14942. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  14943. }
  14944. /**
  14945. * Save a new model and return the instance.
  14946. *
  14947. * @param array $attributes
  14948. * @return \Illuminate\Database\Eloquent\Model|$this
  14949. * @static
  14950. */
  14951. public static function create($attributes = array())
  14952. {
  14953. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14954. return $instance->create($attributes);
  14955. }
  14956. /**
  14957. * Save a new model and return the instance. Allow mass-assignment.
  14958. *
  14959. * @param array $attributes
  14960. * @return \Illuminate\Database\Eloquent\Model|$this
  14961. * @static
  14962. */
  14963. public static function forceCreate($attributes)
  14964. {
  14965. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14966. return $instance->forceCreate($attributes);
  14967. }
  14968. /**
  14969. * Register a replacement for the default delete function.
  14970. *
  14971. * @param \Closure $callback
  14972. * @return void
  14973. * @static
  14974. */
  14975. public static function onDelete($callback)
  14976. {
  14977. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14978. $instance->onDelete($callback);
  14979. }
  14980. /**
  14981. * Call the given local model scopes.
  14982. *
  14983. * @param array $scopes
  14984. * @return mixed
  14985. * @static
  14986. */
  14987. public static function scopes($scopes)
  14988. {
  14989. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14990. return $instance->scopes($scopes);
  14991. }
  14992. /**
  14993. * Apply the scopes to the Eloquent builder instance and return it.
  14994. *
  14995. * @return \Illuminate\Database\Eloquent\Builder|static
  14996. * @static
  14997. */
  14998. public static function applyScopes()
  14999. {
  15000. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15001. return $instance->applyScopes();
  15002. }
  15003. /**
  15004. * Prevent the specified relations from being eager loaded.
  15005. *
  15006. * @param mixed $relations
  15007. * @return \Illuminate\Database\Eloquent\Builder
  15008. * @static
  15009. */
  15010. public static function without($relations)
  15011. {
  15012. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15013. return $instance->without($relations);
  15014. }
  15015. /**
  15016. * Create a new instance of the model being queried.
  15017. *
  15018. * @param array $attributes
  15019. * @return \Illuminate\Database\Eloquent\Model
  15020. * @static
  15021. */
  15022. public static function newModelInstance($attributes = array())
  15023. {
  15024. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15025. return $instance->newModelInstance($attributes);
  15026. }
  15027. /**
  15028. * Get the underlying query builder instance.
  15029. *
  15030. * @return \Illuminate\Database\Query\Builder
  15031. * @static
  15032. */
  15033. public static function getQuery()
  15034. {
  15035. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15036. return $instance->getQuery();
  15037. }
  15038. /**
  15039. * Set the underlying query builder instance.
  15040. *
  15041. * @param \Illuminate\Database\Query\Builder $query
  15042. * @return \Illuminate\Database\Eloquent\Builder
  15043. * @static
  15044. */
  15045. public static function setQuery($query)
  15046. {
  15047. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15048. return $instance->setQuery($query);
  15049. }
  15050. /**
  15051. * Get a base query builder instance.
  15052. *
  15053. * @return \Illuminate\Database\Query\Builder
  15054. * @static
  15055. */
  15056. public static function toBase()
  15057. {
  15058. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15059. return $instance->toBase();
  15060. }
  15061. /**
  15062. * Get the relationships being eagerly loaded.
  15063. *
  15064. * @return array
  15065. * @static
  15066. */
  15067. public static function getEagerLoads()
  15068. {
  15069. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15070. return $instance->getEagerLoads();
  15071. }
  15072. /**
  15073. * Set the relationships being eagerly loaded.
  15074. *
  15075. * @param array $eagerLoad
  15076. * @return \Illuminate\Database\Eloquent\Builder
  15077. * @static
  15078. */
  15079. public static function setEagerLoads($eagerLoad)
  15080. {
  15081. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15082. return $instance->setEagerLoads($eagerLoad);
  15083. }
  15084. /**
  15085. * Get the model instance being queried.
  15086. *
  15087. * @return \Illuminate\Database\Eloquent\Model
  15088. * @static
  15089. */
  15090. public static function getModel()
  15091. {
  15092. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15093. return $instance->getModel();
  15094. }
  15095. /**
  15096. * Set a model instance for the model being queried.
  15097. *
  15098. * @param \Illuminate\Database\Eloquent\Model $model
  15099. * @return \Illuminate\Database\Eloquent\Builder
  15100. * @static
  15101. */
  15102. public static function setModel($model)
  15103. {
  15104. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15105. return $instance->setModel($model);
  15106. }
  15107. /**
  15108. * Get the given macro by name.
  15109. *
  15110. * @param string $name
  15111. * @return \Closure
  15112. * @static
  15113. */
  15114. public static function getMacro($name)
  15115. {
  15116. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15117. return $instance->getMacro($name);
  15118. }
  15119. /**
  15120. * Chunk the results of the query.
  15121. *
  15122. * @param int $count
  15123. * @param callable $callback
  15124. * @return bool
  15125. * @static
  15126. */
  15127. public static function chunk($count, $callback)
  15128. {
  15129. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15130. return $instance->chunk($count, $callback);
  15131. }
  15132. /**
  15133. * Execute a callback over each item while chunking.
  15134. *
  15135. * @param callable $callback
  15136. * @param int $count
  15137. * @return bool
  15138. * @static
  15139. */
  15140. public static function each($callback, $count = 1000)
  15141. {
  15142. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15143. return $instance->each($callback, $count);
  15144. }
  15145. /**
  15146. * Execute the query and get the first result.
  15147. *
  15148. * @param array $columns
  15149. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  15150. * @static
  15151. */
  15152. public static function first($columns = array())
  15153. {
  15154. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15155. return $instance->first($columns);
  15156. }
  15157. /**
  15158. * Apply the callback's query changes if the given "value" is true.
  15159. *
  15160. * @param mixed $value
  15161. * @param callable $callback
  15162. * @param callable $default
  15163. * @return mixed|$this
  15164. * @static
  15165. */
  15166. public static function when($value, $callback, $default = null)
  15167. {
  15168. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15169. return $instance->when($value, $callback, $default);
  15170. }
  15171. /**
  15172. * Pass the query to a given callback.
  15173. *
  15174. * @param \Closure $callback
  15175. * @return \Illuminate\Database\Query\Builder
  15176. * @static
  15177. */
  15178. public static function tap($callback)
  15179. {
  15180. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15181. return $instance->tap($callback);
  15182. }
  15183. /**
  15184. * Apply the callback's query changes if the given "value" is false.
  15185. *
  15186. * @param mixed $value
  15187. * @param callable $callback
  15188. * @param callable $default
  15189. * @return mixed|$this
  15190. * @static
  15191. */
  15192. public static function unless($value, $callback, $default = null)
  15193. {
  15194. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15195. return $instance->unless($value, $callback, $default);
  15196. }
  15197. /**
  15198. * Add a relationship count / exists condition to the query.
  15199. *
  15200. * @param string $relation
  15201. * @param string $operator
  15202. * @param int $count
  15203. * @param string $boolean
  15204. * @param \Closure|null $callback
  15205. * @return \Illuminate\Database\Eloquent\Builder|static
  15206. * @static
  15207. */
  15208. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15209. {
  15210. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15211. return $instance->has($relation, $operator, $count, $boolean, $callback);
  15212. }
  15213. /**
  15214. * Add a relationship count / exists condition to the query with an "or".
  15215. *
  15216. * @param string $relation
  15217. * @param string $operator
  15218. * @param int $count
  15219. * @return \Illuminate\Database\Eloquent\Builder|static
  15220. * @static
  15221. */
  15222. public static function orHas($relation, $operator = '>=', $count = 1)
  15223. {
  15224. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15225. return $instance->orHas($relation, $operator, $count);
  15226. }
  15227. /**
  15228. * Add a relationship count / exists condition to the query.
  15229. *
  15230. * @param string $relation
  15231. * @param string $boolean
  15232. * @param \Closure|null $callback
  15233. * @return \Illuminate\Database\Eloquent\Builder|static
  15234. * @static
  15235. */
  15236. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  15237. {
  15238. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15239. return $instance->doesntHave($relation, $boolean, $callback);
  15240. }
  15241. /**
  15242. * Add a relationship count / exists condition to the query with an "or".
  15243. *
  15244. * @param string $relation
  15245. * @return \Illuminate\Database\Eloquent\Builder|static
  15246. * @static
  15247. */
  15248. public static function orDoesntHave($relation)
  15249. {
  15250. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15251. return $instance->orDoesntHave($relation);
  15252. }
  15253. /**
  15254. * Add a relationship count / exists condition to the query with where clauses.
  15255. *
  15256. * @param string $relation
  15257. * @param \Closure|null $callback
  15258. * @param string $operator
  15259. * @param int $count
  15260. * @return \Illuminate\Database\Eloquent\Builder|static
  15261. * @static
  15262. */
  15263. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15264. {
  15265. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15266. return $instance->whereHas($relation, $callback, $operator, $count);
  15267. }
  15268. /**
  15269. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15270. *
  15271. * @param string $relation
  15272. * @param \Closure $callback
  15273. * @param string $operator
  15274. * @param int $count
  15275. * @return \Illuminate\Database\Eloquent\Builder|static
  15276. * @static
  15277. */
  15278. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15279. {
  15280. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15281. return $instance->orWhereHas($relation, $callback, $operator, $count);
  15282. }
  15283. /**
  15284. * Add a relationship count / exists condition to the query with where clauses.
  15285. *
  15286. * @param string $relation
  15287. * @param \Closure|null $callback
  15288. * @return \Illuminate\Database\Eloquent\Builder|static
  15289. * @static
  15290. */
  15291. public static function whereDoesntHave($relation, $callback = null)
  15292. {
  15293. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15294. return $instance->whereDoesntHave($relation, $callback);
  15295. }
  15296. /**
  15297. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15298. *
  15299. * @param string $relation
  15300. * @param \Closure $callback
  15301. * @return \Illuminate\Database\Eloquent\Builder|static
  15302. * @static
  15303. */
  15304. public static function orWhereDoesntHave($relation, $callback = null)
  15305. {
  15306. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15307. return $instance->orWhereDoesntHave($relation, $callback);
  15308. }
  15309. /**
  15310. * Add subselect queries to count the relations.
  15311. *
  15312. * @param mixed $relations
  15313. * @return \Illuminate\Database\Eloquent\Builder
  15314. * @static
  15315. */
  15316. public static function withCount($relations)
  15317. {
  15318. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15319. return $instance->withCount($relations);
  15320. }
  15321. /**
  15322. * Merge the where constraints from another query to the current query.
  15323. *
  15324. * @param \Illuminate\Database\Eloquent\Builder $from
  15325. * @return \Illuminate\Database\Eloquent\Builder|static
  15326. * @static
  15327. */
  15328. public static function mergeConstraintsFrom($from)
  15329. {
  15330. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15331. return $instance->mergeConstraintsFrom($from);
  15332. }
  15333. /**
  15334. * Set the columns to be selected.
  15335. *
  15336. * @param array|mixed $columns
  15337. * @return \Illuminate\Database\Query\Builder
  15338. * @static
  15339. */
  15340. public static function select($columns = array())
  15341. {
  15342. /** @var \Illuminate\Database\Query\Builder $instance */
  15343. return $instance->select($columns);
  15344. }
  15345. /**
  15346. * Add a subselect expression to the query.
  15347. *
  15348. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15349. * @param string $as
  15350. * @return \Illuminate\Database\Query\Builder|static
  15351. * @throws \InvalidArgumentException
  15352. * @static
  15353. */
  15354. public static function selectSub($query, $as)
  15355. {
  15356. /** @var \Illuminate\Database\Query\Builder $instance */
  15357. return $instance->selectSub($query, $as);
  15358. }
  15359. /**
  15360. * Add a new "raw" select expression to the query.
  15361. *
  15362. * @param string $expression
  15363. * @param array $bindings
  15364. * @return \Illuminate\Database\Query\Builder|static
  15365. * @static
  15366. */
  15367. public static function selectRaw($expression, $bindings = array())
  15368. {
  15369. /** @var \Illuminate\Database\Query\Builder $instance */
  15370. return $instance->selectRaw($expression, $bindings);
  15371. }
  15372. /**
  15373. * Makes "from" fetch from a subquery.
  15374. *
  15375. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15376. * @param string $as
  15377. * @return \Illuminate\Database\Query\Builder|static
  15378. * @throws \InvalidArgumentException
  15379. * @static
  15380. */
  15381. public static function fromSub($query, $as)
  15382. {
  15383. /** @var \Illuminate\Database\Query\Builder $instance */
  15384. return $instance->fromSub($query, $as);
  15385. }
  15386. /**
  15387. * Add a raw from clause to the query.
  15388. *
  15389. * @param string $expression
  15390. * @param mixed $bindings
  15391. * @return \Illuminate\Database\Query\Builder|static
  15392. * @static
  15393. */
  15394. public static function fromRaw($expression, $bindings = array())
  15395. {
  15396. /** @var \Illuminate\Database\Query\Builder $instance */
  15397. return $instance->fromRaw($expression, $bindings);
  15398. }
  15399. /**
  15400. * Add a new select column to the query.
  15401. *
  15402. * @param array|mixed $column
  15403. * @return \Illuminate\Database\Query\Builder
  15404. * @static
  15405. */
  15406. public static function addSelect($column)
  15407. {
  15408. /** @var \Illuminate\Database\Query\Builder $instance */
  15409. return $instance->addSelect($column);
  15410. }
  15411. /**
  15412. * Force the query to only return distinct results.
  15413. *
  15414. * @return \Illuminate\Database\Query\Builder
  15415. * @static
  15416. */
  15417. public static function distinct()
  15418. {
  15419. /** @var \Illuminate\Database\Query\Builder $instance */
  15420. return $instance->distinct();
  15421. }
  15422. /**
  15423. * Set the table which the query is targeting.
  15424. *
  15425. * @param string $table
  15426. * @return \Illuminate\Database\Query\Builder
  15427. * @static
  15428. */
  15429. public static function from($table)
  15430. {
  15431. /** @var \Illuminate\Database\Query\Builder $instance */
  15432. return $instance->from($table);
  15433. }
  15434. /**
  15435. * Add a join clause to the query.
  15436. *
  15437. * @param string $table
  15438. * @param string $first
  15439. * @param string|null $operator
  15440. * @param string|null $second
  15441. * @param string $type
  15442. * @param bool $where
  15443. * @return \Illuminate\Database\Query\Builder
  15444. * @static
  15445. */
  15446. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  15447. {
  15448. /** @var \Illuminate\Database\Query\Builder $instance */
  15449. return $instance->join($table, $first, $operator, $second, $type, $where);
  15450. }
  15451. /**
  15452. * Add a "join where" clause to the query.
  15453. *
  15454. * @param string $table
  15455. * @param string $first
  15456. * @param string $operator
  15457. * @param string $second
  15458. * @param string $type
  15459. * @return \Illuminate\Database\Query\Builder|static
  15460. * @static
  15461. */
  15462. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  15463. {
  15464. /** @var \Illuminate\Database\Query\Builder $instance */
  15465. return $instance->joinWhere($table, $first, $operator, $second, $type);
  15466. }
  15467. /**
  15468. * Add a subquery join clause to the query.
  15469. *
  15470. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15471. * @param string $as
  15472. * @param string $first
  15473. * @param string|null $operator
  15474. * @param string|null $second
  15475. * @param string $type
  15476. * @param bool $where
  15477. * @return \Illuminate\Database\Query\Builder|static
  15478. * @throws \InvalidArgumentException
  15479. * @static
  15480. */
  15481. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  15482. {
  15483. /** @var \Illuminate\Database\Query\Builder $instance */
  15484. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  15485. }
  15486. /**
  15487. * Add a left join to the query.
  15488. *
  15489. * @param string $table
  15490. * @param string $first
  15491. * @param string|null $operator
  15492. * @param string|null $second
  15493. * @return \Illuminate\Database\Query\Builder|static
  15494. * @static
  15495. */
  15496. public static function leftJoin($table, $first, $operator = null, $second = null)
  15497. {
  15498. /** @var \Illuminate\Database\Query\Builder $instance */
  15499. return $instance->leftJoin($table, $first, $operator, $second);
  15500. }
  15501. /**
  15502. * Add a "join where" clause to the query.
  15503. *
  15504. * @param string $table
  15505. * @param string $first
  15506. * @param string $operator
  15507. * @param string $second
  15508. * @return \Illuminate\Database\Query\Builder|static
  15509. * @static
  15510. */
  15511. public static function leftJoinWhere($table, $first, $operator, $second)
  15512. {
  15513. /** @var \Illuminate\Database\Query\Builder $instance */
  15514. return $instance->leftJoinWhere($table, $first, $operator, $second);
  15515. }
  15516. /**
  15517. * Add a subquery left join to the query.
  15518. *
  15519. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15520. * @param string $as
  15521. * @param string $first
  15522. * @param string|null $operator
  15523. * @param string|null $second
  15524. * @return \Illuminate\Database\Query\Builder|static
  15525. * @static
  15526. */
  15527. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  15528. {
  15529. /** @var \Illuminate\Database\Query\Builder $instance */
  15530. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  15531. }
  15532. /**
  15533. * Add a right join to the query.
  15534. *
  15535. * @param string $table
  15536. * @param string $first
  15537. * @param string|null $operator
  15538. * @param string|null $second
  15539. * @return \Illuminate\Database\Query\Builder|static
  15540. * @static
  15541. */
  15542. public static function rightJoin($table, $first, $operator = null, $second = null)
  15543. {
  15544. /** @var \Illuminate\Database\Query\Builder $instance */
  15545. return $instance->rightJoin($table, $first, $operator, $second);
  15546. }
  15547. /**
  15548. * Add a "right join where" clause to the query.
  15549. *
  15550. * @param string $table
  15551. * @param string $first
  15552. * @param string $operator
  15553. * @param string $second
  15554. * @return \Illuminate\Database\Query\Builder|static
  15555. * @static
  15556. */
  15557. public static function rightJoinWhere($table, $first, $operator, $second)
  15558. {
  15559. /** @var \Illuminate\Database\Query\Builder $instance */
  15560. return $instance->rightJoinWhere($table, $first, $operator, $second);
  15561. }
  15562. /**
  15563. * Add a subquery right join to the query.
  15564. *
  15565. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15566. * @param string $as
  15567. * @param string $first
  15568. * @param string|null $operator
  15569. * @param string|null $second
  15570. * @return \Illuminate\Database\Query\Builder|static
  15571. * @static
  15572. */
  15573. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  15574. {
  15575. /** @var \Illuminate\Database\Query\Builder $instance */
  15576. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  15577. }
  15578. /**
  15579. * Add a "cross join" clause to the query.
  15580. *
  15581. * @param string $table
  15582. * @param string|null $first
  15583. * @param string|null $operator
  15584. * @param string|null $second
  15585. * @return \Illuminate\Database\Query\Builder|static
  15586. * @static
  15587. */
  15588. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  15589. {
  15590. /** @var \Illuminate\Database\Query\Builder $instance */
  15591. return $instance->crossJoin($table, $first, $operator, $second);
  15592. }
  15593. /**
  15594. * Merge an array of where clauses and bindings.
  15595. *
  15596. * @param array $wheres
  15597. * @param array $bindings
  15598. * @return void
  15599. * @static
  15600. */
  15601. public static function mergeWheres($wheres, $bindings)
  15602. {
  15603. /** @var \Illuminate\Database\Query\Builder $instance */
  15604. $instance->mergeWheres($wheres, $bindings);
  15605. }
  15606. /**
  15607. * Prepare the value and operator for a where clause.
  15608. *
  15609. * @param string $value
  15610. * @param string $operator
  15611. * @param bool $useDefault
  15612. * @return array
  15613. * @throws \InvalidArgumentException
  15614. * @static
  15615. */
  15616. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  15617. {
  15618. /** @var \Illuminate\Database\Query\Builder $instance */
  15619. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  15620. }
  15621. /**
  15622. * Add a "where" clause comparing two columns to the query.
  15623. *
  15624. * @param string|array $first
  15625. * @param string|null $operator
  15626. * @param string|null $second
  15627. * @param string|null $boolean
  15628. * @return \Illuminate\Database\Query\Builder|static
  15629. * @static
  15630. */
  15631. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  15632. {
  15633. /** @var \Illuminate\Database\Query\Builder $instance */
  15634. return $instance->whereColumn($first, $operator, $second, $boolean);
  15635. }
  15636. /**
  15637. * Add an "or where" clause comparing two columns to the query.
  15638. *
  15639. * @param string|array $first
  15640. * @param string|null $operator
  15641. * @param string|null $second
  15642. * @return \Illuminate\Database\Query\Builder|static
  15643. * @static
  15644. */
  15645. public static function orWhereColumn($first, $operator = null, $second = null)
  15646. {
  15647. /** @var \Illuminate\Database\Query\Builder $instance */
  15648. return $instance->orWhereColumn($first, $operator, $second);
  15649. }
  15650. /**
  15651. * Add a raw where clause to the query.
  15652. *
  15653. * @param string $sql
  15654. * @param mixed $bindings
  15655. * @param string $boolean
  15656. * @return \Illuminate\Database\Query\Builder
  15657. * @static
  15658. */
  15659. public static function whereRaw($sql, $bindings = array(), $boolean = 'and')
  15660. {
  15661. /** @var \Illuminate\Database\Query\Builder $instance */
  15662. return $instance->whereRaw($sql, $bindings, $boolean);
  15663. }
  15664. /**
  15665. * Add a raw or where clause to the query.
  15666. *
  15667. * @param string $sql
  15668. * @param mixed $bindings
  15669. * @return \Illuminate\Database\Query\Builder|static
  15670. * @static
  15671. */
  15672. public static function orWhereRaw($sql, $bindings = array())
  15673. {
  15674. /** @var \Illuminate\Database\Query\Builder $instance */
  15675. return $instance->orWhereRaw($sql, $bindings);
  15676. }
  15677. /**
  15678. * Add a "where in" clause to the query.
  15679. *
  15680. * @param string $column
  15681. * @param mixed $values
  15682. * @param string $boolean
  15683. * @param bool $not
  15684. * @return \Illuminate\Database\Query\Builder
  15685. * @static
  15686. */
  15687. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  15688. {
  15689. /** @var \Illuminate\Database\Query\Builder $instance */
  15690. return $instance->whereIn($column, $values, $boolean, $not);
  15691. }
  15692. /**
  15693. * Add an "or where in" clause to the query.
  15694. *
  15695. * @param string $column
  15696. * @param mixed $values
  15697. * @return \Illuminate\Database\Query\Builder|static
  15698. * @static
  15699. */
  15700. public static function orWhereIn($column, $values)
  15701. {
  15702. /** @var \Illuminate\Database\Query\Builder $instance */
  15703. return $instance->orWhereIn($column, $values);
  15704. }
  15705. /**
  15706. * Add a "where not in" clause to the query.
  15707. *
  15708. * @param string $column
  15709. * @param mixed $values
  15710. * @param string $boolean
  15711. * @return \Illuminate\Database\Query\Builder|static
  15712. * @static
  15713. */
  15714. public static function whereNotIn($column, $values, $boolean = 'and')
  15715. {
  15716. /** @var \Illuminate\Database\Query\Builder $instance */
  15717. return $instance->whereNotIn($column, $values, $boolean);
  15718. }
  15719. /**
  15720. * Add an "or where not in" clause to the query.
  15721. *
  15722. * @param string $column
  15723. * @param mixed $values
  15724. * @return \Illuminate\Database\Query\Builder|static
  15725. * @static
  15726. */
  15727. public static function orWhereNotIn($column, $values)
  15728. {
  15729. /** @var \Illuminate\Database\Query\Builder $instance */
  15730. return $instance->orWhereNotIn($column, $values);
  15731. }
  15732. /**
  15733. * Add a "where null" clause to the query.
  15734. *
  15735. * @param string $column
  15736. * @param string $boolean
  15737. * @param bool $not
  15738. * @return \Illuminate\Database\Query\Builder
  15739. * @static
  15740. */
  15741. public static function whereNull($column, $boolean = 'and', $not = false)
  15742. {
  15743. /** @var \Illuminate\Database\Query\Builder $instance */
  15744. return $instance->whereNull($column, $boolean, $not);
  15745. }
  15746. /**
  15747. * Add an "or where null" clause to the query.
  15748. *
  15749. * @param string $column
  15750. * @return \Illuminate\Database\Query\Builder|static
  15751. * @static
  15752. */
  15753. public static function orWhereNull($column)
  15754. {
  15755. /** @var \Illuminate\Database\Query\Builder $instance */
  15756. return $instance->orWhereNull($column);
  15757. }
  15758. /**
  15759. * Add a "where not null" clause to the query.
  15760. *
  15761. * @param string $column
  15762. * @param string $boolean
  15763. * @return \Illuminate\Database\Query\Builder|static
  15764. * @static
  15765. */
  15766. public static function whereNotNull($column, $boolean = 'and')
  15767. {
  15768. /** @var \Illuminate\Database\Query\Builder $instance */
  15769. return $instance->whereNotNull($column, $boolean);
  15770. }
  15771. /**
  15772. * Add a where between statement to the query.
  15773. *
  15774. * @param string $column
  15775. * @param array $values
  15776. * @param string $boolean
  15777. * @param bool $not
  15778. * @return \Illuminate\Database\Query\Builder
  15779. * @static
  15780. */
  15781. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  15782. {
  15783. /** @var \Illuminate\Database\Query\Builder $instance */
  15784. return $instance->whereBetween($column, $values, $boolean, $not);
  15785. }
  15786. /**
  15787. * Add an or where between statement to the query.
  15788. *
  15789. * @param string $column
  15790. * @param array $values
  15791. * @return \Illuminate\Database\Query\Builder|static
  15792. * @static
  15793. */
  15794. public static function orWhereBetween($column, $values)
  15795. {
  15796. /** @var \Illuminate\Database\Query\Builder $instance */
  15797. return $instance->orWhereBetween($column, $values);
  15798. }
  15799. /**
  15800. * Add a where not between statement to the query.
  15801. *
  15802. * @param string $column
  15803. * @param array $values
  15804. * @param string $boolean
  15805. * @return \Illuminate\Database\Query\Builder|static
  15806. * @static
  15807. */
  15808. public static function whereNotBetween($column, $values, $boolean = 'and')
  15809. {
  15810. /** @var \Illuminate\Database\Query\Builder $instance */
  15811. return $instance->whereNotBetween($column, $values, $boolean);
  15812. }
  15813. /**
  15814. * Add an or where not between statement to the query.
  15815. *
  15816. * @param string $column
  15817. * @param array $values
  15818. * @return \Illuminate\Database\Query\Builder|static
  15819. * @static
  15820. */
  15821. public static function orWhereNotBetween($column, $values)
  15822. {
  15823. /** @var \Illuminate\Database\Query\Builder $instance */
  15824. return $instance->orWhereNotBetween($column, $values);
  15825. }
  15826. /**
  15827. * Add an "or where not null" clause to the query.
  15828. *
  15829. * @param string $column
  15830. * @return \Illuminate\Database\Query\Builder|static
  15831. * @static
  15832. */
  15833. public static function orWhereNotNull($column)
  15834. {
  15835. /** @var \Illuminate\Database\Query\Builder $instance */
  15836. return $instance->orWhereNotNull($column);
  15837. }
  15838. /**
  15839. * Add a "where date" statement to the query.
  15840. *
  15841. * @param string $column
  15842. * @param string $operator
  15843. * @param mixed $value
  15844. * @param string $boolean
  15845. * @return \Illuminate\Database\Query\Builder|static
  15846. * @static
  15847. */
  15848. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  15849. {
  15850. /** @var \Illuminate\Database\Query\Builder $instance */
  15851. return $instance->whereDate($column, $operator, $value, $boolean);
  15852. }
  15853. /**
  15854. * Add an "or where date" statement to the query.
  15855. *
  15856. * @param string $column
  15857. * @param string $operator
  15858. * @param mixed $value
  15859. * @return \Illuminate\Database\Query\Builder|static
  15860. * @static
  15861. */
  15862. public static function orWhereDate($column, $operator, $value = null)
  15863. {
  15864. /** @var \Illuminate\Database\Query\Builder $instance */
  15865. return $instance->orWhereDate($column, $operator, $value);
  15866. }
  15867. /**
  15868. * Add a "where time" statement to the query.
  15869. *
  15870. * @param string $column
  15871. * @param string $operator
  15872. * @param mixed $value
  15873. * @param string $boolean
  15874. * @return \Illuminate\Database\Query\Builder|static
  15875. * @static
  15876. */
  15877. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  15878. {
  15879. /** @var \Illuminate\Database\Query\Builder $instance */
  15880. return $instance->whereTime($column, $operator, $value, $boolean);
  15881. }
  15882. /**
  15883. * Add an "or where time" statement to the query.
  15884. *
  15885. * @param string $column
  15886. * @param string $operator
  15887. * @param mixed $value
  15888. * @return \Illuminate\Database\Query\Builder|static
  15889. * @static
  15890. */
  15891. public static function orWhereTime($column, $operator, $value = null)
  15892. {
  15893. /** @var \Illuminate\Database\Query\Builder $instance */
  15894. return $instance->orWhereTime($column, $operator, $value);
  15895. }
  15896. /**
  15897. * Add a "where day" statement to the query.
  15898. *
  15899. * @param string $column
  15900. * @param string $operator
  15901. * @param mixed $value
  15902. * @param string $boolean
  15903. * @return \Illuminate\Database\Query\Builder|static
  15904. * @static
  15905. */
  15906. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  15907. {
  15908. /** @var \Illuminate\Database\Query\Builder $instance */
  15909. return $instance->whereDay($column, $operator, $value, $boolean);
  15910. }
  15911. /**
  15912. * Add an "or where day" statement to the query.
  15913. *
  15914. * @param string $column
  15915. * @param string $operator
  15916. * @param mixed $value
  15917. * @return \Illuminate\Database\Query\Builder|static
  15918. * @static
  15919. */
  15920. public static function orWhereDay($column, $operator, $value = null)
  15921. {
  15922. /** @var \Illuminate\Database\Query\Builder $instance */
  15923. return $instance->orWhereDay($column, $operator, $value);
  15924. }
  15925. /**
  15926. * Add a "where month" statement to the query.
  15927. *
  15928. * @param string $column
  15929. * @param string $operator
  15930. * @param mixed $value
  15931. * @param string $boolean
  15932. * @return \Illuminate\Database\Query\Builder|static
  15933. * @static
  15934. */
  15935. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  15936. {
  15937. /** @var \Illuminate\Database\Query\Builder $instance */
  15938. return $instance->whereMonth($column, $operator, $value, $boolean);
  15939. }
  15940. /**
  15941. * Add an "or where month" statement to the query.
  15942. *
  15943. * @param string $column
  15944. * @param string $operator
  15945. * @param mixed $value
  15946. * @return \Illuminate\Database\Query\Builder|static
  15947. * @static
  15948. */
  15949. public static function orWhereMonth($column, $operator, $value = null)
  15950. {
  15951. /** @var \Illuminate\Database\Query\Builder $instance */
  15952. return $instance->orWhereMonth($column, $operator, $value);
  15953. }
  15954. /**
  15955. * Add a "where year" statement to the query.
  15956. *
  15957. * @param string $column
  15958. * @param string $operator
  15959. * @param mixed $value
  15960. * @param string $boolean
  15961. * @return \Illuminate\Database\Query\Builder|static
  15962. * @static
  15963. */
  15964. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  15965. {
  15966. /** @var \Illuminate\Database\Query\Builder $instance */
  15967. return $instance->whereYear($column, $operator, $value, $boolean);
  15968. }
  15969. /**
  15970. * Add an "or where year" statement to the query.
  15971. *
  15972. * @param string $column
  15973. * @param string $operator
  15974. * @param mixed $value
  15975. * @return \Illuminate\Database\Query\Builder|static
  15976. * @static
  15977. */
  15978. public static function orWhereYear($column, $operator, $value = null)
  15979. {
  15980. /** @var \Illuminate\Database\Query\Builder $instance */
  15981. return $instance->orWhereYear($column, $operator, $value);
  15982. }
  15983. /**
  15984. * Add a nested where statement to the query.
  15985. *
  15986. * @param \Closure $callback
  15987. * @param string $boolean
  15988. * @return \Illuminate\Database\Query\Builder|static
  15989. * @static
  15990. */
  15991. public static function whereNested($callback, $boolean = 'and')
  15992. {
  15993. /** @var \Illuminate\Database\Query\Builder $instance */
  15994. return $instance->whereNested($callback, $boolean);
  15995. }
  15996. /**
  15997. * Create a new query instance for nested where condition.
  15998. *
  15999. * @return \Illuminate\Database\Query\Builder
  16000. * @static
  16001. */
  16002. public static function forNestedWhere()
  16003. {
  16004. /** @var \Illuminate\Database\Query\Builder $instance */
  16005. return $instance->forNestedWhere();
  16006. }
  16007. /**
  16008. * Add another query builder as a nested where to the query builder.
  16009. *
  16010. * @param \Illuminate\Database\Query\Builder|static $query
  16011. * @param string $boolean
  16012. * @return \Illuminate\Database\Query\Builder
  16013. * @static
  16014. */
  16015. public static function addNestedWhereQuery($query, $boolean = 'and')
  16016. {
  16017. /** @var \Illuminate\Database\Query\Builder $instance */
  16018. return $instance->addNestedWhereQuery($query, $boolean);
  16019. }
  16020. /**
  16021. * Add an exists clause to the query.
  16022. *
  16023. * @param \Closure $callback
  16024. * @param string $boolean
  16025. * @param bool $not
  16026. * @return \Illuminate\Database\Query\Builder
  16027. * @static
  16028. */
  16029. public static function whereExists($callback, $boolean = 'and', $not = false)
  16030. {
  16031. /** @var \Illuminate\Database\Query\Builder $instance */
  16032. return $instance->whereExists($callback, $boolean, $not);
  16033. }
  16034. /**
  16035. * Add an or exists clause to the query.
  16036. *
  16037. * @param \Closure $callback
  16038. * @param bool $not
  16039. * @return \Illuminate\Database\Query\Builder|static
  16040. * @static
  16041. */
  16042. public static function orWhereExists($callback, $not = false)
  16043. {
  16044. /** @var \Illuminate\Database\Query\Builder $instance */
  16045. return $instance->orWhereExists($callback, $not);
  16046. }
  16047. /**
  16048. * Add a where not exists clause to the query.
  16049. *
  16050. * @param \Closure $callback
  16051. * @param string $boolean
  16052. * @return \Illuminate\Database\Query\Builder|static
  16053. * @static
  16054. */
  16055. public static function whereNotExists($callback, $boolean = 'and')
  16056. {
  16057. /** @var \Illuminate\Database\Query\Builder $instance */
  16058. return $instance->whereNotExists($callback, $boolean);
  16059. }
  16060. /**
  16061. * Add a where not exists clause to the query.
  16062. *
  16063. * @param \Closure $callback
  16064. * @return \Illuminate\Database\Query\Builder|static
  16065. * @static
  16066. */
  16067. public static function orWhereNotExists($callback)
  16068. {
  16069. /** @var \Illuminate\Database\Query\Builder $instance */
  16070. return $instance->orWhereNotExists($callback);
  16071. }
  16072. /**
  16073. * Add an exists clause to the query.
  16074. *
  16075. * @param \Illuminate\Database\Query\Builder $query
  16076. * @param string $boolean
  16077. * @param bool $not
  16078. * @return \Illuminate\Database\Query\Builder
  16079. * @static
  16080. */
  16081. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  16082. {
  16083. /** @var \Illuminate\Database\Query\Builder $instance */
  16084. return $instance->addWhereExistsQuery($query, $boolean, $not);
  16085. }
  16086. /**
  16087. * Adds a where condition using row values.
  16088. *
  16089. * @param array $columns
  16090. * @param string $operator
  16091. * @param array $values
  16092. * @param string $boolean
  16093. * @return \Illuminate\Database\Query\Builder
  16094. * @static
  16095. */
  16096. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  16097. {
  16098. /** @var \Illuminate\Database\Query\Builder $instance */
  16099. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  16100. }
  16101. /**
  16102. * Adds a or where condition using row values.
  16103. *
  16104. * @param array $columns
  16105. * @param string $operator
  16106. * @param array $values
  16107. * @return \Illuminate\Database\Query\Builder
  16108. * @static
  16109. */
  16110. public static function orWhereRowValues($columns, $operator, $values)
  16111. {
  16112. /** @var \Illuminate\Database\Query\Builder $instance */
  16113. return $instance->orWhereRowValues($columns, $operator, $values);
  16114. }
  16115. /**
  16116. * Add a "where JSON contains" clause to the query.
  16117. *
  16118. * @param string $column
  16119. * @param mixed $value
  16120. * @param string $boolean
  16121. * @param bool $not
  16122. * @return \Illuminate\Database\Query\Builder
  16123. * @static
  16124. */
  16125. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  16126. {
  16127. /** @var \Illuminate\Database\Query\Builder $instance */
  16128. return $instance->whereJsonContains($column, $value, $boolean, $not);
  16129. }
  16130. /**
  16131. * Add a "or where JSON contains" clause to the query.
  16132. *
  16133. * @param string $column
  16134. * @param mixed $value
  16135. * @return \Illuminate\Database\Query\Builder
  16136. * @static
  16137. */
  16138. public static function orWhereJsonContains($column, $value)
  16139. {
  16140. /** @var \Illuminate\Database\Query\Builder $instance */
  16141. return $instance->orWhereJsonContains($column, $value);
  16142. }
  16143. /**
  16144. * Add a "where JSON not contains" clause to the query.
  16145. *
  16146. * @param string $column
  16147. * @param mixed $value
  16148. * @param string $boolean
  16149. * @return \Illuminate\Database\Query\Builder
  16150. * @static
  16151. */
  16152. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  16153. {
  16154. /** @var \Illuminate\Database\Query\Builder $instance */
  16155. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  16156. }
  16157. /**
  16158. * Add a "or where JSON not contains" clause to the query.
  16159. *
  16160. * @param string $column
  16161. * @param mixed $value
  16162. * @return \Illuminate\Database\Query\Builder
  16163. * @static
  16164. */
  16165. public static function orWhereJsonDoesntContain($column, $value)
  16166. {
  16167. /** @var \Illuminate\Database\Query\Builder $instance */
  16168. return $instance->orWhereJsonDoesntContain($column, $value);
  16169. }
  16170. /**
  16171. * Handles dynamic "where" clauses to the query.
  16172. *
  16173. * @param string $method
  16174. * @param string $parameters
  16175. * @return \Illuminate\Database\Query\Builder
  16176. * @static
  16177. */
  16178. public static function dynamicWhere($method, $parameters)
  16179. {
  16180. /** @var \Illuminate\Database\Query\Builder $instance */
  16181. return $instance->dynamicWhere($method, $parameters);
  16182. }
  16183. /**
  16184. * Add a "group by" clause to the query.
  16185. *
  16186. * @param array $groups
  16187. * @return \Illuminate\Database\Query\Builder
  16188. * @static
  16189. */
  16190. public static function groupBy($groups = null)
  16191. {
  16192. /** @var \Illuminate\Database\Query\Builder $instance */
  16193. return $instance->groupBy($groups);
  16194. }
  16195. /**
  16196. * Add a "having" clause to the query.
  16197. *
  16198. * @param string $column
  16199. * @param string|null $operator
  16200. * @param string|null $value
  16201. * @param string $boolean
  16202. * @return \Illuminate\Database\Query\Builder
  16203. * @static
  16204. */
  16205. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  16206. {
  16207. /** @var \Illuminate\Database\Query\Builder $instance */
  16208. return $instance->having($column, $operator, $value, $boolean);
  16209. }
  16210. /**
  16211. * Add a "or having" clause to the query.
  16212. *
  16213. * @param string $column
  16214. * @param string|null $operator
  16215. * @param string|null $value
  16216. * @return \Illuminate\Database\Query\Builder|static
  16217. * @static
  16218. */
  16219. public static function orHaving($column, $operator = null, $value = null)
  16220. {
  16221. /** @var \Illuminate\Database\Query\Builder $instance */
  16222. return $instance->orHaving($column, $operator, $value);
  16223. }
  16224. /**
  16225. * Add a raw having clause to the query.
  16226. *
  16227. * @param string $sql
  16228. * @param array $bindings
  16229. * @param string $boolean
  16230. * @return \Illuminate\Database\Query\Builder
  16231. * @static
  16232. */
  16233. public static function havingRaw($sql, $bindings = array(), $boolean = 'and')
  16234. {
  16235. /** @var \Illuminate\Database\Query\Builder $instance */
  16236. return $instance->havingRaw($sql, $bindings, $boolean);
  16237. }
  16238. /**
  16239. * Add a raw or having clause to the query.
  16240. *
  16241. * @param string $sql
  16242. * @param array $bindings
  16243. * @return \Illuminate\Database\Query\Builder|static
  16244. * @static
  16245. */
  16246. public static function orHavingRaw($sql, $bindings = array())
  16247. {
  16248. /** @var \Illuminate\Database\Query\Builder $instance */
  16249. return $instance->orHavingRaw($sql, $bindings);
  16250. }
  16251. /**
  16252. * Add an "order by" clause to the query.
  16253. *
  16254. * @param string $column
  16255. * @param string $direction
  16256. * @return \Illuminate\Database\Query\Builder
  16257. * @static
  16258. */
  16259. public static function orderBy($column, $direction = 'asc')
  16260. {
  16261. /** @var \Illuminate\Database\Query\Builder $instance */
  16262. return $instance->orderBy($column, $direction);
  16263. }
  16264. /**
  16265. * Add a descending "order by" clause to the query.
  16266. *
  16267. * @param string $column
  16268. * @return \Illuminate\Database\Query\Builder
  16269. * @static
  16270. */
  16271. public static function orderByDesc($column)
  16272. {
  16273. /** @var \Illuminate\Database\Query\Builder $instance */
  16274. return $instance->orderByDesc($column);
  16275. }
  16276. /**
  16277. * Add an "order by" clause for a timestamp to the query.
  16278. *
  16279. * @param string $column
  16280. * @return \Illuminate\Database\Query\Builder|static
  16281. * @static
  16282. */
  16283. public static function latest($column = 'created_at')
  16284. {
  16285. /** @var \Illuminate\Database\Query\Builder $instance */
  16286. return $instance->latest($column);
  16287. }
  16288. /**
  16289. * Add an "order by" clause for a timestamp to the query.
  16290. *
  16291. * @param string $column
  16292. * @return \Illuminate\Database\Query\Builder|static
  16293. * @static
  16294. */
  16295. public static function oldest($column = 'created_at')
  16296. {
  16297. /** @var \Illuminate\Database\Query\Builder $instance */
  16298. return $instance->oldest($column);
  16299. }
  16300. /**
  16301. * Put the query's results in random order.
  16302. *
  16303. * @param string $seed
  16304. * @return \Illuminate\Database\Query\Builder
  16305. * @static
  16306. */
  16307. public static function inRandomOrder($seed = '')
  16308. {
  16309. /** @var \Illuminate\Database\Query\Builder $instance */
  16310. return $instance->inRandomOrder($seed);
  16311. }
  16312. /**
  16313. * Add a raw "order by" clause to the query.
  16314. *
  16315. * @param string $sql
  16316. * @param array $bindings
  16317. * @return \Illuminate\Database\Query\Builder
  16318. * @static
  16319. */
  16320. public static function orderByRaw($sql, $bindings = array())
  16321. {
  16322. /** @var \Illuminate\Database\Query\Builder $instance */
  16323. return $instance->orderByRaw($sql, $bindings);
  16324. }
  16325. /**
  16326. * Alias to set the "offset" value of the query.
  16327. *
  16328. * @param int $value
  16329. * @return \Illuminate\Database\Query\Builder|static
  16330. * @static
  16331. */
  16332. public static function skip($value)
  16333. {
  16334. /** @var \Illuminate\Database\Query\Builder $instance */
  16335. return $instance->skip($value);
  16336. }
  16337. /**
  16338. * Set the "offset" value of the query.
  16339. *
  16340. * @param int $value
  16341. * @return \Illuminate\Database\Query\Builder
  16342. * @static
  16343. */
  16344. public static function offset($value)
  16345. {
  16346. /** @var \Illuminate\Database\Query\Builder $instance */
  16347. return $instance->offset($value);
  16348. }
  16349. /**
  16350. * Alias to set the "limit" value of the query.
  16351. *
  16352. * @param int $value
  16353. * @return \Illuminate\Database\Query\Builder|static
  16354. * @static
  16355. */
  16356. public static function take($value)
  16357. {
  16358. /** @var \Illuminate\Database\Query\Builder $instance */
  16359. return $instance->take($value);
  16360. }
  16361. /**
  16362. * Set the "limit" value of the query.
  16363. *
  16364. * @param int $value
  16365. * @return \Illuminate\Database\Query\Builder
  16366. * @static
  16367. */
  16368. public static function limit($value)
  16369. {
  16370. /** @var \Illuminate\Database\Query\Builder $instance */
  16371. return $instance->limit($value);
  16372. }
  16373. /**
  16374. * Set the limit and offset for a given page.
  16375. *
  16376. * @param int $page
  16377. * @param int $perPage
  16378. * @return \Illuminate\Database\Query\Builder|static
  16379. * @static
  16380. */
  16381. public static function forPage($page, $perPage = 15)
  16382. {
  16383. /** @var \Illuminate\Database\Query\Builder $instance */
  16384. return $instance->forPage($page, $perPage);
  16385. }
  16386. /**
  16387. * Constrain the query to the next "page" of results after a given ID.
  16388. *
  16389. * @param int $perPage
  16390. * @param int|null $lastId
  16391. * @param string $column
  16392. * @return \Illuminate\Database\Query\Builder|static
  16393. * @static
  16394. */
  16395. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  16396. {
  16397. /** @var \Illuminate\Database\Query\Builder $instance */
  16398. return $instance->forPageAfterId($perPage, $lastId, $column);
  16399. }
  16400. /**
  16401. * Add a union statement to the query.
  16402. *
  16403. * @param \Illuminate\Database\Query\Builder|\Closure $query
  16404. * @param bool $all
  16405. * @return \Illuminate\Database\Query\Builder|static
  16406. * @static
  16407. */
  16408. public static function union($query, $all = false)
  16409. {
  16410. /** @var \Illuminate\Database\Query\Builder $instance */
  16411. return $instance->union($query, $all);
  16412. }
  16413. /**
  16414. * Add a union all statement to the query.
  16415. *
  16416. * @param \Illuminate\Database\Query\Builder|\Closure $query
  16417. * @return \Illuminate\Database\Query\Builder|static
  16418. * @static
  16419. */
  16420. public static function unionAll($query)
  16421. {
  16422. /** @var \Illuminate\Database\Query\Builder $instance */
  16423. return $instance->unionAll($query);
  16424. }
  16425. /**
  16426. * Lock the selected rows in the table.
  16427. *
  16428. * @param string|bool $value
  16429. * @return \Illuminate\Database\Query\Builder
  16430. * @static
  16431. */
  16432. public static function lock($value = true)
  16433. {
  16434. /** @var \Illuminate\Database\Query\Builder $instance */
  16435. return $instance->lock($value);
  16436. }
  16437. /**
  16438. * Lock the selected rows in the table for updating.
  16439. *
  16440. * @return \Illuminate\Database\Query\Builder
  16441. * @static
  16442. */
  16443. public static function lockForUpdate()
  16444. {
  16445. /** @var \Illuminate\Database\Query\Builder $instance */
  16446. return $instance->lockForUpdate();
  16447. }
  16448. /**
  16449. * Share lock the selected rows in the table.
  16450. *
  16451. * @return \Illuminate\Database\Query\Builder
  16452. * @static
  16453. */
  16454. public static function sharedLock()
  16455. {
  16456. /** @var \Illuminate\Database\Query\Builder $instance */
  16457. return $instance->sharedLock();
  16458. }
  16459. /**
  16460. * Get the SQL representation of the query.
  16461. *
  16462. * @return string
  16463. * @static
  16464. */
  16465. public static function toSql()
  16466. {
  16467. /** @var \Illuminate\Database\Query\Builder $instance */
  16468. return $instance->toSql();
  16469. }
  16470. /**
  16471. * Get the count of the total records for the paginator.
  16472. *
  16473. * @param array $columns
  16474. * @return int
  16475. * @static
  16476. */
  16477. public static function getCountForPagination($columns = array())
  16478. {
  16479. /** @var \Illuminate\Database\Query\Builder $instance */
  16480. return $instance->getCountForPagination($columns);
  16481. }
  16482. /**
  16483. * Concatenate values of a given column as a string.
  16484. *
  16485. * @param string $column
  16486. * @param string $glue
  16487. * @return string
  16488. * @static
  16489. */
  16490. public static function implode($column, $glue = '')
  16491. {
  16492. /** @var \Illuminate\Database\Query\Builder $instance */
  16493. return $instance->implode($column, $glue);
  16494. }
  16495. /**
  16496. * Determine if any rows exist for the current query.
  16497. *
  16498. * @return bool
  16499. * @static
  16500. */
  16501. public static function exists()
  16502. {
  16503. /** @var \Illuminate\Database\Query\Builder $instance */
  16504. return $instance->exists();
  16505. }
  16506. /**
  16507. * Determine if no rows exist for the current query.
  16508. *
  16509. * @return bool
  16510. * @static
  16511. */
  16512. public static function doesntExist()
  16513. {
  16514. /** @var \Illuminate\Database\Query\Builder $instance */
  16515. return $instance->doesntExist();
  16516. }
  16517. /**
  16518. * Retrieve the "count" result of the query.
  16519. *
  16520. * @param string $columns
  16521. * @return int
  16522. * @static
  16523. */
  16524. public static function count($columns = '*')
  16525. {
  16526. /** @var \Illuminate\Database\Query\Builder $instance */
  16527. return $instance->count($columns);
  16528. }
  16529. /**
  16530. * Retrieve the minimum value of a given column.
  16531. *
  16532. * @param string $column
  16533. * @return mixed
  16534. * @static
  16535. */
  16536. public static function min($column)
  16537. {
  16538. /** @var \Illuminate\Database\Query\Builder $instance */
  16539. return $instance->min($column);
  16540. }
  16541. /**
  16542. * Retrieve the maximum value of a given column.
  16543. *
  16544. * @param string $column
  16545. * @return mixed
  16546. * @static
  16547. */
  16548. public static function max($column)
  16549. {
  16550. /** @var \Illuminate\Database\Query\Builder $instance */
  16551. return $instance->max($column);
  16552. }
  16553. /**
  16554. * Retrieve the sum of the values of a given column.
  16555. *
  16556. * @param string $column
  16557. * @return mixed
  16558. * @static
  16559. */
  16560. public static function sum($column)
  16561. {
  16562. /** @var \Illuminate\Database\Query\Builder $instance */
  16563. return $instance->sum($column);
  16564. }
  16565. /**
  16566. * Retrieve the average of the values of a given column.
  16567. *
  16568. * @param string $column
  16569. * @return mixed
  16570. * @static
  16571. */
  16572. public static function avg($column)
  16573. {
  16574. /** @var \Illuminate\Database\Query\Builder $instance */
  16575. return $instance->avg($column);
  16576. }
  16577. /**
  16578. * Alias for the "avg" method.
  16579. *
  16580. * @param string $column
  16581. * @return mixed
  16582. * @static
  16583. */
  16584. public static function average($column)
  16585. {
  16586. /** @var \Illuminate\Database\Query\Builder $instance */
  16587. return $instance->average($column);
  16588. }
  16589. /**
  16590. * Execute an aggregate function on the database.
  16591. *
  16592. * @param string $function
  16593. * @param array $columns
  16594. * @return mixed
  16595. * @static
  16596. */
  16597. public static function aggregate($function, $columns = array())
  16598. {
  16599. /** @var \Illuminate\Database\Query\Builder $instance */
  16600. return $instance->aggregate($function, $columns);
  16601. }
  16602. /**
  16603. * Execute a numeric aggregate function on the database.
  16604. *
  16605. * @param string $function
  16606. * @param array $columns
  16607. * @return float|int
  16608. * @static
  16609. */
  16610. public static function numericAggregate($function, $columns = array())
  16611. {
  16612. /** @var \Illuminate\Database\Query\Builder $instance */
  16613. return $instance->numericAggregate($function, $columns);
  16614. }
  16615. /**
  16616. * Insert a new record into the database.
  16617. *
  16618. * @param array $values
  16619. * @return bool
  16620. * @static
  16621. */
  16622. public static function insert($values)
  16623. {
  16624. /** @var \Illuminate\Database\Query\Builder $instance */
  16625. return $instance->insert($values);
  16626. }
  16627. /**
  16628. * Insert a new record and get the value of the primary key.
  16629. *
  16630. * @param array $values
  16631. * @param string|null $sequence
  16632. * @return int
  16633. * @static
  16634. */
  16635. public static function insertGetId($values, $sequence = null)
  16636. {
  16637. /** @var \Illuminate\Database\Query\Builder $instance */
  16638. return $instance->insertGetId($values, $sequence);
  16639. }
  16640. /**
  16641. * Insert or update a record matching the attributes, and fill it with values.
  16642. *
  16643. * @param array $attributes
  16644. * @param array $values
  16645. * @return bool
  16646. * @static
  16647. */
  16648. public static function updateOrInsert($attributes, $values = array())
  16649. {
  16650. /** @var \Illuminate\Database\Query\Builder $instance */
  16651. return $instance->updateOrInsert($attributes, $values);
  16652. }
  16653. /**
  16654. * Run a truncate statement on the table.
  16655. *
  16656. * @return void
  16657. * @static
  16658. */
  16659. public static function truncate()
  16660. {
  16661. /** @var \Illuminate\Database\Query\Builder $instance */
  16662. $instance->truncate();
  16663. }
  16664. /**
  16665. * Create a raw database expression.
  16666. *
  16667. * @param mixed $value
  16668. * @return \Illuminate\Database\Query\Expression
  16669. * @static
  16670. */
  16671. public static function raw($value)
  16672. {
  16673. /** @var \Illuminate\Database\Query\Builder $instance */
  16674. return $instance->raw($value);
  16675. }
  16676. /**
  16677. * Get the current query value bindings in a flattened array.
  16678. *
  16679. * @return array
  16680. * @static
  16681. */
  16682. public static function getBindings()
  16683. {
  16684. /** @var \Illuminate\Database\Query\Builder $instance */
  16685. return $instance->getBindings();
  16686. }
  16687. /**
  16688. * Get the raw array of bindings.
  16689. *
  16690. * @return array
  16691. * @static
  16692. */
  16693. public static function getRawBindings()
  16694. {
  16695. /** @var \Illuminate\Database\Query\Builder $instance */
  16696. return $instance->getRawBindings();
  16697. }
  16698. /**
  16699. * Set the bindings on the query builder.
  16700. *
  16701. * @param array $bindings
  16702. * @param string $type
  16703. * @return \Illuminate\Database\Query\Builder
  16704. * @throws \InvalidArgumentException
  16705. * @static
  16706. */
  16707. public static function setBindings($bindings, $type = 'where')
  16708. {
  16709. /** @var \Illuminate\Database\Query\Builder $instance */
  16710. return $instance->setBindings($bindings, $type);
  16711. }
  16712. /**
  16713. * Add a binding to the query.
  16714. *
  16715. * @param mixed $value
  16716. * @param string $type
  16717. * @return \Illuminate\Database\Query\Builder
  16718. * @throws \InvalidArgumentException
  16719. * @static
  16720. */
  16721. public static function addBinding($value, $type = 'where')
  16722. {
  16723. /** @var \Illuminate\Database\Query\Builder $instance */
  16724. return $instance->addBinding($value, $type);
  16725. }
  16726. /**
  16727. * Merge an array of bindings into our bindings.
  16728. *
  16729. * @param \Illuminate\Database\Query\Builder $query
  16730. * @return \Illuminate\Database\Query\Builder
  16731. * @static
  16732. */
  16733. public static function mergeBindings($query)
  16734. {
  16735. /** @var \Illuminate\Database\Query\Builder $instance */
  16736. return $instance->mergeBindings($query);
  16737. }
  16738. /**
  16739. * Get the database query processor instance.
  16740. *
  16741. * @return \Illuminate\Database\Query\Processors\Processor
  16742. * @static
  16743. */
  16744. public static function getProcessor()
  16745. {
  16746. /** @var \Illuminate\Database\Query\Builder $instance */
  16747. return $instance->getProcessor();
  16748. }
  16749. /**
  16750. * Get the query grammar instance.
  16751. *
  16752. * @return \Illuminate\Database\Query\Grammars\Grammar
  16753. * @static
  16754. */
  16755. public static function getGrammar()
  16756. {
  16757. /** @var \Illuminate\Database\Query\Builder $instance */
  16758. return $instance->getGrammar();
  16759. }
  16760. /**
  16761. * Use the write pdo for query.
  16762. *
  16763. * @return \Illuminate\Database\Query\Builder
  16764. * @static
  16765. */
  16766. public static function useWritePdo()
  16767. {
  16768. /** @var \Illuminate\Database\Query\Builder $instance */
  16769. return $instance->useWritePdo();
  16770. }
  16771. /**
  16772. * Clone the query without the given properties.
  16773. *
  16774. * @param array $properties
  16775. * @return static
  16776. * @static
  16777. */
  16778. public static function cloneWithout($properties)
  16779. {
  16780. /** @var \Illuminate\Database\Query\Builder $instance */
  16781. return $instance->cloneWithout($properties);
  16782. }
  16783. /**
  16784. * Clone the query without the given bindings.
  16785. *
  16786. * @param array $except
  16787. * @return static
  16788. * @static
  16789. */
  16790. public static function cloneWithoutBindings($except)
  16791. {
  16792. /** @var \Illuminate\Database\Query\Builder $instance */
  16793. return $instance->cloneWithoutBindings($except);
  16794. }
  16795. /**
  16796. * Register a custom macro.
  16797. *
  16798. * @param string $name
  16799. * @param object|callable $macro
  16800. * @return void
  16801. * @static
  16802. */
  16803. public static function macro($name, $macro)
  16804. {
  16805. \Illuminate\Database\Query\Builder::macro($name, $macro);
  16806. }
  16807. /**
  16808. * Mix another object into the class.
  16809. *
  16810. * @param object $mixin
  16811. * @return void
  16812. * @throws \ReflectionException
  16813. * @static
  16814. */
  16815. public static function mixin($mixin)
  16816. {
  16817. \Illuminate\Database\Query\Builder::mixin($mixin);
  16818. }
  16819. /**
  16820. * Checks if macro is registered.
  16821. *
  16822. * @param string $name
  16823. * @return bool
  16824. * @static
  16825. */
  16826. public static function hasMacro($name)
  16827. {
  16828. return \Illuminate\Database\Query\Builder::hasMacro($name);
  16829. }
  16830. /**
  16831. * Dynamically handle calls to the class.
  16832. *
  16833. * @param string $method
  16834. * @param array $parameters
  16835. * @return mixed
  16836. * @throws \BadMethodCallException
  16837. * @static
  16838. */
  16839. public static function macroCall($method, $parameters)
  16840. {
  16841. /** @var \Illuminate\Database\Query\Builder $instance */
  16842. return $instance->macroCall($method, $parameters);
  16843. }
  16844. }
  16845. class Event extends \Illuminate\Support\Facades\Event {}
  16846. class File extends \Illuminate\Support\Facades\File {}
  16847. class Gate extends \Illuminate\Support\Facades\Gate {}
  16848. class Hash extends \Illuminate\Support\Facades\Hash {}
  16849. class Lang extends \Illuminate\Support\Facades\Lang {}
  16850. class Log extends \Illuminate\Support\Facades\Log {}
  16851. class Mail extends \Illuminate\Support\Facades\Mail {}
  16852. class Notification extends \Illuminate\Support\Facades\Notification {}
  16853. class Password extends \Illuminate\Support\Facades\Password {}
  16854. class Queue extends \Illuminate\Support\Facades\Queue {}
  16855. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  16856. class Redis extends \Illuminate\Support\Facades\Redis {}
  16857. class Request extends \Illuminate\Support\Facades\Request {}
  16858. class Response extends \Illuminate\Support\Facades\Response {}
  16859. class Route extends \Illuminate\Support\Facades\Route {}
  16860. class Schema extends \Illuminate\Support\Facades\Schema {}
  16861. class Session extends \Illuminate\Support\Facades\Session {}
  16862. class Storage extends \Illuminate\Support\Facades\Storage {}
  16863. class URL extends \Illuminate\Support\Facades\URL {}
  16864. class Validator extends \Illuminate\Support\Facades\Validator {}
  16865. class View extends \Illuminate\Support\Facades\View {}
  16866. class Captcha extends \Mews\Captcha\Facades\Captcha {}
  16867. class Agent extends \Jenssegers\Agent\Facades\Agent {}
  16868. class Purifier extends \Mews\Purifier\Facades\Purifier {}
  16869. class Geetest extends \Misechow\Geetest\Geetest {}
  16870. class NoCaptcha extends \Misechow\NoCaptcha\Facades\NoCaptcha {}
  16871. class Image extends \Intervention\Image\Facades\Image {}
  16872. }