_ide_helper.php 522 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148
  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.5.48 on 2020-03-26 08:01:37.
  6. *
  7. * This file should not be included in your code, only analyzed by your IDE!
  8. *
  9. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  10. * @see https://github.com/barryvdh/laravel-ide-helper
  11. */
  12. namespace Illuminate\Support\Facades {
  13. /**
  14. *
  15. *
  16. * @see \Illuminate\Foundation\Application
  17. */
  18. class App {
  19. /**
  20. * Get the version number of the application.
  21. *
  22. * @return string
  23. * @static
  24. */
  25. public static function version()
  26. {
  27. /** @var \Illuminate\Foundation\Application $instance */
  28. return $instance->version();
  29. }
  30. /**
  31. * Run the given array of bootstrap classes.
  32. *
  33. * @param array $bootstrappers
  34. * @return void
  35. * @static
  36. */
  37. public static function bootstrapWith($bootstrappers)
  38. {
  39. /** @var \Illuminate\Foundation\Application $instance */
  40. $instance->bootstrapWith($bootstrappers);
  41. }
  42. /**
  43. * Register a callback to run after loading the environment.
  44. *
  45. * @param \Closure $callback
  46. * @return void
  47. * @static
  48. */
  49. public static function afterLoadingEnvironment($callback)
  50. {
  51. /** @var \Illuminate\Foundation\Application $instance */
  52. $instance->afterLoadingEnvironment($callback);
  53. }
  54. /**
  55. * Register a callback to run before a bootstrapper.
  56. *
  57. * @param string $bootstrapper
  58. * @param \Closure $callback
  59. * @return void
  60. * @static
  61. */
  62. public static function beforeBootstrapping($bootstrapper, $callback)
  63. {
  64. /** @var \Illuminate\Foundation\Application $instance */
  65. $instance->beforeBootstrapping($bootstrapper, $callback);
  66. }
  67. /**
  68. * Register a callback to run after a bootstrapper.
  69. *
  70. * @param string $bootstrapper
  71. * @param \Closure $callback
  72. * @return void
  73. * @static
  74. */
  75. public static function afterBootstrapping($bootstrapper, $callback)
  76. {
  77. /** @var \Illuminate\Foundation\Application $instance */
  78. $instance->afterBootstrapping($bootstrapper, $callback);
  79. }
  80. /**
  81. * Determine if the application has been bootstrapped before.
  82. *
  83. * @return bool
  84. * @static
  85. */
  86. public static function hasBeenBootstrapped()
  87. {
  88. /** @var \Illuminate\Foundation\Application $instance */
  89. return $instance->hasBeenBootstrapped();
  90. }
  91. /**
  92. * Set the base path for the application.
  93. *
  94. * @param string $basePath
  95. * @return \Illuminate\Foundation\Application
  96. * @static
  97. */
  98. public static function setBasePath($basePath)
  99. {
  100. /** @var \Illuminate\Foundation\Application $instance */
  101. return $instance->setBasePath($basePath);
  102. }
  103. /**
  104. * Get the path to the application "app" directory.
  105. *
  106. * @param string $path Optionally, a path to append to the app path
  107. * @return string
  108. * @static
  109. */
  110. public static function path($path = '')
  111. {
  112. /** @var \Illuminate\Foundation\Application $instance */
  113. return $instance->path($path);
  114. }
  115. /**
  116. * Get the base path of the Laravel installation.
  117. *
  118. * @param string $path Optionally, a path to append to the base path
  119. * @return string
  120. * @static
  121. */
  122. public static function basePath($path = '')
  123. {
  124. /** @var \Illuminate\Foundation\Application $instance */
  125. return $instance->basePath($path);
  126. }
  127. /**
  128. * Get the path to the bootstrap directory.
  129. *
  130. * @param string $path Optionally, a path to append to the bootstrap path
  131. * @return string
  132. * @static
  133. */
  134. public static function bootstrapPath($path = '')
  135. {
  136. /** @var \Illuminate\Foundation\Application $instance */
  137. return $instance->bootstrapPath($path);
  138. }
  139. /**
  140. * Get the path to the application configuration files.
  141. *
  142. * @param string $path Optionally, a path to append to the config path
  143. * @return string
  144. * @static
  145. */
  146. public static function configPath($path = '')
  147. {
  148. /** @var \Illuminate\Foundation\Application $instance */
  149. return $instance->configPath($path);
  150. }
  151. /**
  152. * Get the path to the database directory.
  153. *
  154. * @param string $path Optionally, a path to append to the database path
  155. * @return string
  156. * @static
  157. */
  158. public static function databasePath($path = '')
  159. {
  160. /** @var \Illuminate\Foundation\Application $instance */
  161. return $instance->databasePath($path);
  162. }
  163. /**
  164. * Set the database directory.
  165. *
  166. * @param string $path
  167. * @return \Illuminate\Foundation\Application
  168. * @static
  169. */
  170. public static function useDatabasePath($path)
  171. {
  172. /** @var \Illuminate\Foundation\Application $instance */
  173. return $instance->useDatabasePath($path);
  174. }
  175. /**
  176. * Get the path to the language files.
  177. *
  178. * @return string
  179. * @static
  180. */
  181. public static function langPath()
  182. {
  183. /** @var \Illuminate\Foundation\Application $instance */
  184. return $instance->langPath();
  185. }
  186. /**
  187. * Get the path to the public / web directory.
  188. *
  189. * @return string
  190. * @static
  191. */
  192. public static function publicPath()
  193. {
  194. /** @var \Illuminate\Foundation\Application $instance */
  195. return $instance->publicPath();
  196. }
  197. /**
  198. * Get the path to the storage directory.
  199. *
  200. * @return string
  201. * @static
  202. */
  203. public static function storagePath()
  204. {
  205. /** @var \Illuminate\Foundation\Application $instance */
  206. return $instance->storagePath();
  207. }
  208. /**
  209. * Set the storage directory.
  210. *
  211. * @param string $path
  212. * @return \Illuminate\Foundation\Application
  213. * @static
  214. */
  215. public static function useStoragePath($path)
  216. {
  217. /** @var \Illuminate\Foundation\Application $instance */
  218. return $instance->useStoragePath($path);
  219. }
  220. /**
  221. * Get the path to the resources directory.
  222. *
  223. * @param string $path
  224. * @return string
  225. * @static
  226. */
  227. public static function resourcePath($path = '')
  228. {
  229. /** @var \Illuminate\Foundation\Application $instance */
  230. return $instance->resourcePath($path);
  231. }
  232. /**
  233. * Get the path to the environment file directory.
  234. *
  235. * @return string
  236. * @static
  237. */
  238. public static function environmentPath()
  239. {
  240. /** @var \Illuminate\Foundation\Application $instance */
  241. return $instance->environmentPath();
  242. }
  243. /**
  244. * Set the directory for the environment file.
  245. *
  246. * @param string $path
  247. * @return \Illuminate\Foundation\Application
  248. * @static
  249. */
  250. public static function useEnvironmentPath($path)
  251. {
  252. /** @var \Illuminate\Foundation\Application $instance */
  253. return $instance->useEnvironmentPath($path);
  254. }
  255. /**
  256. * Set the environment file to be loaded during bootstrapping.
  257. *
  258. * @param string $file
  259. * @return \Illuminate\Foundation\Application
  260. * @static
  261. */
  262. public static function loadEnvironmentFrom($file)
  263. {
  264. /** @var \Illuminate\Foundation\Application $instance */
  265. return $instance->loadEnvironmentFrom($file);
  266. }
  267. /**
  268. * Get the environment file the application is using.
  269. *
  270. * @return string
  271. * @static
  272. */
  273. public static function environmentFile()
  274. {
  275. /** @var \Illuminate\Foundation\Application $instance */
  276. return $instance->environmentFile();
  277. }
  278. /**
  279. * Get the fully qualified path to the environment file.
  280. *
  281. * @return string
  282. * @static
  283. */
  284. public static function environmentFilePath()
  285. {
  286. /** @var \Illuminate\Foundation\Application $instance */
  287. return $instance->environmentFilePath();
  288. }
  289. /**
  290. * Get or check the current application environment.
  291. *
  292. * @return string|bool
  293. * @static
  294. */
  295. public static function environment()
  296. {
  297. /** @var \Illuminate\Foundation\Application $instance */
  298. return $instance->environment();
  299. }
  300. /**
  301. * Determine if application is in local environment.
  302. *
  303. * @return bool
  304. * @static
  305. */
  306. public static function isLocal()
  307. {
  308. /** @var \Illuminate\Foundation\Application $instance */
  309. return $instance->isLocal();
  310. }
  311. /**
  312. * Detect the application's current environment.
  313. *
  314. * @param \Closure $callback
  315. * @return string
  316. * @static
  317. */
  318. public static function detectEnvironment($callback)
  319. {
  320. /** @var \Illuminate\Foundation\Application $instance */
  321. return $instance->detectEnvironment($callback);
  322. }
  323. /**
  324. * Determine if we are running in the console.
  325. *
  326. * @return bool
  327. * @static
  328. */
  329. public static function runningInConsole()
  330. {
  331. /** @var \Illuminate\Foundation\Application $instance */
  332. return $instance->runningInConsole();
  333. }
  334. /**
  335. * Determine if we are running unit tests.
  336. *
  337. * @return bool
  338. * @static
  339. */
  340. public static function runningUnitTests()
  341. {
  342. /** @var \Illuminate\Foundation\Application $instance */
  343. return $instance->runningUnitTests();
  344. }
  345. /**
  346. * Register all of the configured providers.
  347. *
  348. * @return void
  349. * @static
  350. */
  351. public static function registerConfiguredProviders()
  352. {
  353. /** @var \Illuminate\Foundation\Application $instance */
  354. $instance->registerConfiguredProviders();
  355. }
  356. /**
  357. * Register a service provider with the application.
  358. *
  359. * @param \Illuminate\Support\ServiceProvider|string $provider
  360. * @param array $options
  361. * @param bool $force
  362. * @return \Illuminate\Support\ServiceProvider
  363. * @static
  364. */
  365. public static function register($provider, $options = [], $force = false)
  366. {
  367. /** @var \Illuminate\Foundation\Application $instance */
  368. return $instance->register($provider, $options, $force);
  369. }
  370. /**
  371. * Get the registered service provider instance if it exists.
  372. *
  373. * @param \Illuminate\Support\ServiceProvider|string $provider
  374. * @return \Illuminate\Support\ServiceProvider|null
  375. * @static
  376. */
  377. public static function getProvider($provider)
  378. {
  379. /** @var \Illuminate\Foundation\Application $instance */
  380. return $instance->getProvider($provider);
  381. }
  382. /**
  383. * Get the registered service provider instances if any exist.
  384. *
  385. * @param \Illuminate\Support\ServiceProvider|string $provider
  386. * @return array
  387. * @static
  388. */
  389. public static function getProviders($provider)
  390. {
  391. /** @var \Illuminate\Foundation\Application $instance */
  392. return $instance->getProviders($provider);
  393. }
  394. /**
  395. * Resolve a service provider instance from the class name.
  396. *
  397. * @param string $provider
  398. * @return \Illuminate\Support\ServiceProvider
  399. * @static
  400. */
  401. public static function resolveProvider($provider)
  402. {
  403. /** @var \Illuminate\Foundation\Application $instance */
  404. return $instance->resolveProvider($provider);
  405. }
  406. /**
  407. * Load and boot all of the remaining deferred providers.
  408. *
  409. * @return void
  410. * @static
  411. */
  412. public static function loadDeferredProviders()
  413. {
  414. /** @var \Illuminate\Foundation\Application $instance */
  415. $instance->loadDeferredProviders();
  416. }
  417. /**
  418. * Load the provider for a deferred service.
  419. *
  420. * @param string $service
  421. * @return void
  422. * @static
  423. */
  424. public static function loadDeferredProvider($service)
  425. {
  426. /** @var \Illuminate\Foundation\Application $instance */
  427. $instance->loadDeferredProvider($service);
  428. }
  429. /**
  430. * Register a deferred provider and service.
  431. *
  432. * @param string $provider
  433. * @param string|null $service
  434. * @return void
  435. * @static
  436. */
  437. public static function registerDeferredProvider($provider, $service = null)
  438. {
  439. /** @var \Illuminate\Foundation\Application $instance */
  440. $instance->registerDeferredProvider($provider, $service);
  441. }
  442. /**
  443. * Resolve the given type from the container.
  444. *
  445. * (Overriding Container::make)
  446. *
  447. * @param string $abstract
  448. * @param array $parameters
  449. * @return mixed
  450. * @static
  451. */
  452. public static function make($abstract, $parameters = [])
  453. {
  454. /** @var \Illuminate\Foundation\Application $instance */
  455. return $instance->make($abstract, $parameters);
  456. }
  457. /**
  458. * Determine if the given abstract type has been bound.
  459. *
  460. * (Overriding Container::bound)
  461. *
  462. * @param string $abstract
  463. * @return bool
  464. * @static
  465. */
  466. public static function bound($abstract)
  467. {
  468. /** @var \Illuminate\Foundation\Application $instance */
  469. return $instance->bound($abstract);
  470. }
  471. /**
  472. * Determine if the application has booted.
  473. *
  474. * @return bool
  475. * @static
  476. */
  477. public static function isBooted()
  478. {
  479. /** @var \Illuminate\Foundation\Application $instance */
  480. return $instance->isBooted();
  481. }
  482. /**
  483. * Boot the application's service providers.
  484. *
  485. * @return void
  486. * @static
  487. */
  488. public static function boot()
  489. {
  490. /** @var \Illuminate\Foundation\Application $instance */
  491. $instance->boot();
  492. }
  493. /**
  494. * Register a new boot listener.
  495. *
  496. * @param mixed $callback
  497. * @return void
  498. * @static
  499. */
  500. public static function booting($callback)
  501. {
  502. /** @var \Illuminate\Foundation\Application $instance */
  503. $instance->booting($callback);
  504. }
  505. /**
  506. * Register a new "booted" listener.
  507. *
  508. * @param mixed $callback
  509. * @return void
  510. * @static
  511. */
  512. public static function booted($callback)
  513. {
  514. /** @var \Illuminate\Foundation\Application $instance */
  515. $instance->booted($callback);
  516. }
  517. /**
  518. * {@inheritdoc}
  519. *
  520. * @static
  521. */
  522. public static function handle($request, $type = 1, $catch = true)
  523. {
  524. /** @var \Illuminate\Foundation\Application $instance */
  525. return $instance->handle($request, $type, $catch);
  526. }
  527. /**
  528. * Determine if middleware has been disabled for the application.
  529. *
  530. * @return bool
  531. * @static
  532. */
  533. public static function shouldSkipMiddleware()
  534. {
  535. /** @var \Illuminate\Foundation\Application $instance */
  536. return $instance->shouldSkipMiddleware();
  537. }
  538. /**
  539. * Get the path to the cached services.php file.
  540. *
  541. * @return string
  542. * @static
  543. */
  544. public static function getCachedServicesPath()
  545. {
  546. /** @var \Illuminate\Foundation\Application $instance */
  547. return $instance->getCachedServicesPath();
  548. }
  549. /**
  550. * Get the path to the cached packages.php file.
  551. *
  552. * @return string
  553. * @static
  554. */
  555. public static function getCachedPackagesPath()
  556. {
  557. /** @var \Illuminate\Foundation\Application $instance */
  558. return $instance->getCachedPackagesPath();
  559. }
  560. /**
  561. * Determine if the application configuration is cached.
  562. *
  563. * @return bool
  564. * @static
  565. */
  566. public static function configurationIsCached()
  567. {
  568. /** @var \Illuminate\Foundation\Application $instance */
  569. return $instance->configurationIsCached();
  570. }
  571. /**
  572. * Get the path to the configuration cache file.
  573. *
  574. * @return string
  575. * @static
  576. */
  577. public static function getCachedConfigPath()
  578. {
  579. /** @var \Illuminate\Foundation\Application $instance */
  580. return $instance->getCachedConfigPath();
  581. }
  582. /**
  583. * Determine if the application routes are cached.
  584. *
  585. * @return bool
  586. * @static
  587. */
  588. public static function routesAreCached()
  589. {
  590. /** @var \Illuminate\Foundation\Application $instance */
  591. return $instance->routesAreCached();
  592. }
  593. /**
  594. * Get the path to the routes cache file.
  595. *
  596. * @return string
  597. * @static
  598. */
  599. public static function getCachedRoutesPath()
  600. {
  601. /** @var \Illuminate\Foundation\Application $instance */
  602. return $instance->getCachedRoutesPath();
  603. }
  604. /**
  605. * Determine if the application is currently down for maintenance.
  606. *
  607. * @return bool
  608. * @static
  609. */
  610. public static function isDownForMaintenance()
  611. {
  612. /** @var \Illuminate\Foundation\Application $instance */
  613. return $instance->isDownForMaintenance();
  614. }
  615. /**
  616. * Throw an HttpException with the given data.
  617. *
  618. * @param int $code
  619. * @param string $message
  620. * @param array $headers
  621. * @return void
  622. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  623. * @static
  624. */
  625. public static function abort($code, $message = '', $headers = [])
  626. {
  627. /** @var \Illuminate\Foundation\Application $instance */
  628. $instance->abort($code, $message, $headers);
  629. }
  630. /**
  631. * Register a terminating callback with the application.
  632. *
  633. * @param \Closure $callback
  634. * @return \Illuminate\Foundation\Application
  635. * @static
  636. */
  637. public static function terminating($callback)
  638. {
  639. /** @var \Illuminate\Foundation\Application $instance */
  640. return $instance->terminating($callback);
  641. }
  642. /**
  643. * Terminate the application.
  644. *
  645. * @return void
  646. * @static
  647. */
  648. public static function terminate()
  649. {
  650. /** @var \Illuminate\Foundation\Application $instance */
  651. $instance->terminate();
  652. }
  653. /**
  654. * Get the service providers that have been loaded.
  655. *
  656. * @return array
  657. * @static
  658. */
  659. public static function getLoadedProviders()
  660. {
  661. /** @var \Illuminate\Foundation\Application $instance */
  662. return $instance->getLoadedProviders();
  663. }
  664. /**
  665. * Get the application's deferred services.
  666. *
  667. * @return array
  668. * @static
  669. */
  670. public static function getDeferredServices()
  671. {
  672. /** @var \Illuminate\Foundation\Application $instance */
  673. return $instance->getDeferredServices();
  674. }
  675. /**
  676. * Set the application's deferred services.
  677. *
  678. * @param array $services
  679. * @return void
  680. * @static
  681. */
  682. public static function setDeferredServices($services)
  683. {
  684. /** @var \Illuminate\Foundation\Application $instance */
  685. $instance->setDeferredServices($services);
  686. }
  687. /**
  688. * Add an array of services to the application's deferred services.
  689. *
  690. * @param array $services
  691. * @return void
  692. * @static
  693. */
  694. public static function addDeferredServices($services)
  695. {
  696. /** @var \Illuminate\Foundation\Application $instance */
  697. $instance->addDeferredServices($services);
  698. }
  699. /**
  700. * Determine if the given service is a deferred service.
  701. *
  702. * @param string $service
  703. * @return bool
  704. * @static
  705. */
  706. public static function isDeferredService($service)
  707. {
  708. /** @var \Illuminate\Foundation\Application $instance */
  709. return $instance->isDeferredService($service);
  710. }
  711. /**
  712. * Configure the real-time facade namespace.
  713. *
  714. * @param string $namespace
  715. * @return void
  716. * @static
  717. */
  718. public static function provideFacades($namespace)
  719. {
  720. /** @var \Illuminate\Foundation\Application $instance */
  721. $instance->provideFacades($namespace);
  722. }
  723. /**
  724. * Define a callback to be used to configure Monolog.
  725. *
  726. * @param callable $callback
  727. * @return \Illuminate\Foundation\Application
  728. * @static
  729. */
  730. public static function configureMonologUsing($callback)
  731. {
  732. /** @var \Illuminate\Foundation\Application $instance */
  733. return $instance->configureMonologUsing($callback);
  734. }
  735. /**
  736. * Determine if the application has a custom Monolog configurator.
  737. *
  738. * @return bool
  739. * @static
  740. */
  741. public static function hasMonologConfigurator()
  742. {
  743. /** @var \Illuminate\Foundation\Application $instance */
  744. return $instance->hasMonologConfigurator();
  745. }
  746. /**
  747. * Get the custom Monolog configurator for the application.
  748. *
  749. * @return callable
  750. * @static
  751. */
  752. public static function getMonologConfigurator()
  753. {
  754. /** @var \Illuminate\Foundation\Application $instance */
  755. return $instance->getMonologConfigurator();
  756. }
  757. /**
  758. * Get the current application locale.
  759. *
  760. * @return string
  761. * @static
  762. */
  763. public static function getLocale()
  764. {
  765. /** @var \Illuminate\Foundation\Application $instance */
  766. return $instance->getLocale();
  767. }
  768. /**
  769. * Set the current application locale.
  770. *
  771. * @param string $locale
  772. * @return void
  773. * @static
  774. */
  775. public static function setLocale($locale)
  776. {
  777. /** @var \Illuminate\Foundation\Application $instance */
  778. $instance->setLocale($locale);
  779. }
  780. /**
  781. * Determine if application locale is the given locale.
  782. *
  783. * @param string $locale
  784. * @return bool
  785. * @static
  786. */
  787. public static function isLocale($locale)
  788. {
  789. /** @var \Illuminate\Foundation\Application $instance */
  790. return $instance->isLocale($locale);
  791. }
  792. /**
  793. * Register the core class aliases in the container.
  794. *
  795. * @return void
  796. * @static
  797. */
  798. public static function registerCoreContainerAliases()
  799. {
  800. /** @var \Illuminate\Foundation\Application $instance */
  801. $instance->registerCoreContainerAliases();
  802. }
  803. /**
  804. * Flush the container of all bindings and resolved instances.
  805. *
  806. * @return void
  807. * @static
  808. */
  809. public static function flush()
  810. {
  811. /** @var \Illuminate\Foundation\Application $instance */
  812. $instance->flush();
  813. }
  814. /**
  815. * Get the application namespace.
  816. *
  817. * @return string
  818. * @throws \RuntimeException
  819. * @static
  820. */
  821. public static function getNamespace()
  822. {
  823. /** @var \Illuminate\Foundation\Application $instance */
  824. return $instance->getNamespace();
  825. }
  826. /**
  827. * Define a contextual binding.
  828. *
  829. * @param string $concrete
  830. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  831. * @static
  832. */
  833. public static function when($concrete)
  834. {
  835. //Method inherited from \Illuminate\Container\Container
  836. /** @var \Illuminate\Foundation\Application $instance */
  837. return $instance->when($concrete);
  838. }
  839. /**
  840. * Returns true if the container can return an entry for the given identifier.
  841. *
  842. * Returns false otherwise.
  843. *
  844. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  845. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  846. *
  847. * @param string $id Identifier of the entry to look for.
  848. * @return bool
  849. * @static
  850. */
  851. public static function has($id)
  852. {
  853. //Method inherited from \Illuminate\Container\Container
  854. /** @var \Illuminate\Foundation\Application $instance */
  855. return $instance->has($id);
  856. }
  857. /**
  858. * Determine if the given abstract type has been resolved.
  859. *
  860. * @param string $abstract
  861. * @return bool
  862. * @static
  863. */
  864. public static function resolved($abstract)
  865. {
  866. //Method inherited from \Illuminate\Container\Container
  867. /** @var \Illuminate\Foundation\Application $instance */
  868. return $instance->resolved($abstract);
  869. }
  870. /**
  871. * Determine if a given type is shared.
  872. *
  873. * @param string $abstract
  874. * @return bool
  875. * @static
  876. */
  877. public static function isShared($abstract)
  878. {
  879. //Method inherited from \Illuminate\Container\Container
  880. /** @var \Illuminate\Foundation\Application $instance */
  881. return $instance->isShared($abstract);
  882. }
  883. /**
  884. * Determine if a given string is an alias.
  885. *
  886. * @param string $name
  887. * @return bool
  888. * @static
  889. */
  890. public static function isAlias($name)
  891. {
  892. //Method inherited from \Illuminate\Container\Container
  893. /** @var \Illuminate\Foundation\Application $instance */
  894. return $instance->isAlias($name);
  895. }
  896. /**
  897. * Register a binding with the container.
  898. *
  899. * @param string $abstract
  900. * @param \Closure|string|null $concrete
  901. * @param bool $shared
  902. * @return void
  903. * @static
  904. */
  905. public static function bind($abstract, $concrete = null, $shared = false)
  906. {
  907. //Method inherited from \Illuminate\Container\Container
  908. /** @var \Illuminate\Foundation\Application $instance */
  909. $instance->bind($abstract, $concrete, $shared);
  910. }
  911. /**
  912. * Determine if the container has a method binding.
  913. *
  914. * @param string $method
  915. * @return bool
  916. * @static
  917. */
  918. public static function hasMethodBinding($method)
  919. {
  920. //Method inherited from \Illuminate\Container\Container
  921. /** @var \Illuminate\Foundation\Application $instance */
  922. return $instance->hasMethodBinding($method);
  923. }
  924. /**
  925. * Bind a callback to resolve with Container::call.
  926. *
  927. * @param string $method
  928. * @param \Closure $callback
  929. * @return void
  930. * @static
  931. */
  932. public static function bindMethod($method, $callback)
  933. {
  934. //Method inherited from \Illuminate\Container\Container
  935. /** @var \Illuminate\Foundation\Application $instance */
  936. $instance->bindMethod($method, $callback);
  937. }
  938. /**
  939. * Get the method binding for the given method.
  940. *
  941. * @param string $method
  942. * @param mixed $instance
  943. * @return mixed
  944. * @static
  945. */
  946. public static function callMethodBinding($method, $instance)
  947. {
  948. //Method inherited from \Illuminate\Container\Container
  949. /** @var \Illuminate\Foundation\Application $instance */
  950. return $instance->callMethodBinding($method, $instance);
  951. }
  952. /**
  953. * Add a contextual binding to the container.
  954. *
  955. * @param string $concrete
  956. * @param string $abstract
  957. * @param \Closure|string $implementation
  958. * @return void
  959. * @static
  960. */
  961. public static function addContextualBinding($concrete, $abstract, $implementation)
  962. {
  963. //Method inherited from \Illuminate\Container\Container
  964. /** @var \Illuminate\Foundation\Application $instance */
  965. $instance->addContextualBinding($concrete, $abstract, $implementation);
  966. }
  967. /**
  968. * Register a binding if it hasn't already been registered.
  969. *
  970. * @param string $abstract
  971. * @param \Closure|string|null $concrete
  972. * @param bool $shared
  973. * @return void
  974. * @static
  975. */
  976. public static function bindIf($abstract, $concrete = null, $shared = false)
  977. {
  978. //Method inherited from \Illuminate\Container\Container
  979. /** @var \Illuminate\Foundation\Application $instance */
  980. $instance->bindIf($abstract, $concrete, $shared);
  981. }
  982. /**
  983. * Register a shared binding in the container.
  984. *
  985. * @param string $abstract
  986. * @param \Closure|string|null $concrete
  987. * @return void
  988. * @static
  989. */
  990. public static function singleton($abstract, $concrete = null)
  991. {
  992. //Method inherited from \Illuminate\Container\Container
  993. /** @var \Illuminate\Foundation\Application $instance */
  994. $instance->singleton($abstract, $concrete);
  995. }
  996. /**
  997. * "Extend" an abstract type in the container.
  998. *
  999. * @param string $abstract
  1000. * @param \Closure $closure
  1001. * @return void
  1002. * @throws \InvalidArgumentException
  1003. * @static
  1004. */
  1005. public static function extend($abstract, $closure)
  1006. {
  1007. //Method inherited from \Illuminate\Container\Container
  1008. /** @var \Illuminate\Foundation\Application $instance */
  1009. $instance->extend($abstract, $closure);
  1010. }
  1011. /**
  1012. * Register an existing instance as shared in the container.
  1013. *
  1014. * @param string $abstract
  1015. * @param mixed $instance
  1016. * @return mixed
  1017. * @static
  1018. */
  1019. public static function instance($abstract, $instance)
  1020. {
  1021. //Method inherited from \Illuminate\Container\Container
  1022. /** @var \Illuminate\Foundation\Application $instance */
  1023. return $instance->instance($abstract, $instance);
  1024. }
  1025. /**
  1026. * Assign a set of tags to a given binding.
  1027. *
  1028. * @param array|string $abstracts
  1029. * @param array|mixed $tags
  1030. * @return void
  1031. * @static
  1032. */
  1033. public static function tag($abstracts, $tags)
  1034. {
  1035. //Method inherited from \Illuminate\Container\Container
  1036. /** @var \Illuminate\Foundation\Application $instance */
  1037. $instance->tag($abstracts, $tags);
  1038. }
  1039. /**
  1040. * Resolve all of the bindings for a given tag.
  1041. *
  1042. * @param string $tag
  1043. * @return array
  1044. * @static
  1045. */
  1046. public static function tagged($tag)
  1047. {
  1048. //Method inherited from \Illuminate\Container\Container
  1049. /** @var \Illuminate\Foundation\Application $instance */
  1050. return $instance->tagged($tag);
  1051. }
  1052. /**
  1053. * Alias a type to a different name.
  1054. *
  1055. * @param string $abstract
  1056. * @param string $alias
  1057. * @return void
  1058. * @static
  1059. */
  1060. public static function alias($abstract, $alias)
  1061. {
  1062. //Method inherited from \Illuminate\Container\Container
  1063. /** @var \Illuminate\Foundation\Application $instance */
  1064. $instance->alias($abstract, $alias);
  1065. }
  1066. /**
  1067. * Bind a new callback to an abstract's rebind event.
  1068. *
  1069. * @param string $abstract
  1070. * @param \Closure $callback
  1071. * @return mixed
  1072. * @static
  1073. */
  1074. public static function rebinding($abstract, $callback)
  1075. {
  1076. //Method inherited from \Illuminate\Container\Container
  1077. /** @var \Illuminate\Foundation\Application $instance */
  1078. return $instance->rebinding($abstract, $callback);
  1079. }
  1080. /**
  1081. * Refresh an instance on the given target and method.
  1082. *
  1083. * @param string $abstract
  1084. * @param mixed $target
  1085. * @param string $method
  1086. * @return mixed
  1087. * @static
  1088. */
  1089. public static function refresh($abstract, $target, $method)
  1090. {
  1091. //Method inherited from \Illuminate\Container\Container
  1092. /** @var \Illuminate\Foundation\Application $instance */
  1093. return $instance->refresh($abstract, $target, $method);
  1094. }
  1095. /**
  1096. * Wrap the given closure such that its dependencies will be injected when executed.
  1097. *
  1098. * @param \Closure $callback
  1099. * @param array $parameters
  1100. * @return \Closure
  1101. * @static
  1102. */
  1103. public static function wrap($callback, $parameters = [])
  1104. {
  1105. //Method inherited from \Illuminate\Container\Container
  1106. /** @var \Illuminate\Foundation\Application $instance */
  1107. return $instance->wrap($callback, $parameters);
  1108. }
  1109. /**
  1110. * Call the given Closure / class@method and inject its dependencies.
  1111. *
  1112. * @param callable|string $callback
  1113. * @param array $parameters
  1114. * @param string|null $defaultMethod
  1115. * @return mixed
  1116. * @static
  1117. */
  1118. public static function call($callback, $parameters = [], $defaultMethod = null)
  1119. {
  1120. //Method inherited from \Illuminate\Container\Container
  1121. /** @var \Illuminate\Foundation\Application $instance */
  1122. return $instance->call($callback, $parameters, $defaultMethod);
  1123. }
  1124. /**
  1125. * Get a closure to resolve the given type from the container.
  1126. *
  1127. * @param string $abstract
  1128. * @return \Closure
  1129. * @static
  1130. */
  1131. public static function factory($abstract)
  1132. {
  1133. //Method inherited from \Illuminate\Container\Container
  1134. /** @var \Illuminate\Foundation\Application $instance */
  1135. return $instance->factory($abstract);
  1136. }
  1137. /**
  1138. * An alias function name for make().
  1139. *
  1140. * @param string $abstract
  1141. * @param array $parameters
  1142. * @return mixed
  1143. * @static
  1144. */
  1145. public static function makeWith($abstract, $parameters = [])
  1146. {
  1147. //Method inherited from \Illuminate\Container\Container
  1148. /** @var \Illuminate\Foundation\Application $instance */
  1149. return $instance->makeWith($abstract, $parameters);
  1150. }
  1151. /**
  1152. * Finds an entry of the container by its identifier and returns it.
  1153. *
  1154. * @param string $id Identifier of the entry to look for.
  1155. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1156. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1157. * @return mixed Entry.
  1158. * @static
  1159. */
  1160. public static function get($id)
  1161. {
  1162. //Method inherited from \Illuminate\Container\Container
  1163. /** @var \Illuminate\Foundation\Application $instance */
  1164. return $instance->get($id);
  1165. }
  1166. /**
  1167. * Instantiate a concrete instance of the given type.
  1168. *
  1169. * @param string $concrete
  1170. * @return mixed
  1171. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1172. * @static
  1173. */
  1174. public static function build($concrete)
  1175. {
  1176. //Method inherited from \Illuminate\Container\Container
  1177. /** @var \Illuminate\Foundation\Application $instance */
  1178. return $instance->build($concrete);
  1179. }
  1180. /**
  1181. * Register a new resolving callback.
  1182. *
  1183. * @param \Closure|string $abstract
  1184. * @param \Closure|null $callback
  1185. * @return void
  1186. * @static
  1187. */
  1188. public static function resolving($abstract, $callback = null)
  1189. {
  1190. //Method inherited from \Illuminate\Container\Container
  1191. /** @var \Illuminate\Foundation\Application $instance */
  1192. $instance->resolving($abstract, $callback);
  1193. }
  1194. /**
  1195. * Register a new after resolving callback for all types.
  1196. *
  1197. * @param \Closure|string $abstract
  1198. * @param \Closure|null $callback
  1199. * @return void
  1200. * @static
  1201. */
  1202. public static function afterResolving($abstract, $callback = null)
  1203. {
  1204. //Method inherited from \Illuminate\Container\Container
  1205. /** @var \Illuminate\Foundation\Application $instance */
  1206. $instance->afterResolving($abstract, $callback);
  1207. }
  1208. /**
  1209. * Get the container's bindings.
  1210. *
  1211. * @return array
  1212. * @static
  1213. */
  1214. public static function getBindings()
  1215. {
  1216. //Method inherited from \Illuminate\Container\Container
  1217. /** @var \Illuminate\Foundation\Application $instance */
  1218. return $instance->getBindings();
  1219. }
  1220. /**
  1221. * Get the alias for an abstract if available.
  1222. *
  1223. * @param string $abstract
  1224. * @return string
  1225. * @throws \LogicException
  1226. * @static
  1227. */
  1228. public static function getAlias($abstract)
  1229. {
  1230. //Method inherited from \Illuminate\Container\Container
  1231. /** @var \Illuminate\Foundation\Application $instance */
  1232. return $instance->getAlias($abstract);
  1233. }
  1234. /**
  1235. * Remove all of the extender callbacks for a given type.
  1236. *
  1237. * @param string $abstract
  1238. * @return void
  1239. * @static
  1240. */
  1241. public static function forgetExtenders($abstract)
  1242. {
  1243. //Method inherited from \Illuminate\Container\Container
  1244. /** @var \Illuminate\Foundation\Application $instance */
  1245. $instance->forgetExtenders($abstract);
  1246. }
  1247. /**
  1248. * Remove a resolved instance from the instance cache.
  1249. *
  1250. * @param string $abstract
  1251. * @return void
  1252. * @static
  1253. */
  1254. public static function forgetInstance($abstract)
  1255. {
  1256. //Method inherited from \Illuminate\Container\Container
  1257. /** @var \Illuminate\Foundation\Application $instance */
  1258. $instance->forgetInstance($abstract);
  1259. }
  1260. /**
  1261. * Clear all of the instances from the container.
  1262. *
  1263. * @return void
  1264. * @static
  1265. */
  1266. public static function forgetInstances()
  1267. {
  1268. //Method inherited from \Illuminate\Container\Container
  1269. /** @var \Illuminate\Foundation\Application $instance */
  1270. $instance->forgetInstances();
  1271. }
  1272. /**
  1273. * Set the globally available instance of the container.
  1274. *
  1275. * @return static
  1276. * @static
  1277. */
  1278. public static function getInstance()
  1279. {
  1280. //Method inherited from \Illuminate\Container\Container
  1281. return \Illuminate\Foundation\Application::getInstance();
  1282. }
  1283. /**
  1284. * Set the shared instance of the container.
  1285. *
  1286. * @param \Illuminate\Contracts\Container\Container|null $container
  1287. * @return static
  1288. * @static
  1289. */
  1290. public static function setInstance($container = null)
  1291. {
  1292. //Method inherited from \Illuminate\Container\Container
  1293. return \Illuminate\Foundation\Application::setInstance($container);
  1294. }
  1295. /**
  1296. * Determine if a given offset exists.
  1297. *
  1298. * @param string $key
  1299. * @return bool
  1300. * @static
  1301. */
  1302. public static function offsetExists($key)
  1303. {
  1304. //Method inherited from \Illuminate\Container\Container
  1305. /** @var \Illuminate\Foundation\Application $instance */
  1306. return $instance->offsetExists($key);
  1307. }
  1308. /**
  1309. * Get the value at a given offset.
  1310. *
  1311. * @param string $key
  1312. * @return mixed
  1313. * @static
  1314. */
  1315. public static function offsetGet($key)
  1316. {
  1317. //Method inherited from \Illuminate\Container\Container
  1318. /** @var \Illuminate\Foundation\Application $instance */
  1319. return $instance->offsetGet($key);
  1320. }
  1321. /**
  1322. * Set the value at a given offset.
  1323. *
  1324. * @param string $key
  1325. * @param mixed $value
  1326. * @return void
  1327. * @static
  1328. */
  1329. public static function offsetSet($key, $value)
  1330. {
  1331. //Method inherited from \Illuminate\Container\Container
  1332. /** @var \Illuminate\Foundation\Application $instance */
  1333. $instance->offsetSet($key, $value);
  1334. }
  1335. /**
  1336. * Unset the value at a given offset.
  1337. *
  1338. * @param string $key
  1339. * @return void
  1340. * @static
  1341. */
  1342. public static function offsetUnset($key)
  1343. {
  1344. //Method inherited from \Illuminate\Container\Container
  1345. /** @var \Illuminate\Foundation\Application $instance */
  1346. $instance->offsetUnset($key);
  1347. }
  1348. }
  1349. /**
  1350. *
  1351. *
  1352. * @see \Illuminate\Contracts\Console\Kernel
  1353. */
  1354. class Artisan {
  1355. /**
  1356. * Run the console application.
  1357. *
  1358. * @param \Symfony\Component\Console\Input\InputInterface $input
  1359. * @param \Symfony\Component\Console\Output\OutputInterface $output
  1360. * @return int
  1361. * @static
  1362. */
  1363. public static function handle($input, $output = null)
  1364. {
  1365. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1366. /** @var \App\Console\Kernel $instance */
  1367. return $instance->handle($input, $output);
  1368. }
  1369. /**
  1370. * Terminate the application.
  1371. *
  1372. * @param \Symfony\Component\Console\Input\InputInterface $input
  1373. * @param int $status
  1374. * @return void
  1375. * @static
  1376. */
  1377. public static function terminate($input, $status)
  1378. {
  1379. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1380. /** @var \App\Console\Kernel $instance */
  1381. $instance->terminate($input, $status);
  1382. }
  1383. /**
  1384. * Register a Closure based command with the application.
  1385. *
  1386. * @param string $signature
  1387. * @param \Closure $callback
  1388. * @return \Illuminate\Foundation\Console\ClosureCommand
  1389. * @static
  1390. */
  1391. public static function command($signature, $callback)
  1392. {
  1393. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1394. /** @var \App\Console\Kernel $instance */
  1395. return $instance->command($signature, $callback);
  1396. }
  1397. /**
  1398. * Register the given command with the console application.
  1399. *
  1400. * @param \Symfony\Component\Console\Command\Command $command
  1401. * @return void
  1402. * @static
  1403. */
  1404. public static function registerCommand($command)
  1405. {
  1406. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1407. /** @var \App\Console\Kernel $instance */
  1408. $instance->registerCommand($command);
  1409. }
  1410. /**
  1411. * Run an Artisan console command by name.
  1412. *
  1413. * @param string $command
  1414. * @param array $parameters
  1415. * @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
  1416. * @return int
  1417. * @static
  1418. */
  1419. public static function call($command, $parameters = [], $outputBuffer = null)
  1420. {
  1421. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1422. /** @var \App\Console\Kernel $instance */
  1423. return $instance->call($command, $parameters, $outputBuffer);
  1424. }
  1425. /**
  1426. * Queue the given console command.
  1427. *
  1428. * @param string $command
  1429. * @param array $parameters
  1430. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1431. * @static
  1432. */
  1433. public static function queue($command, $parameters = [])
  1434. {
  1435. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1436. /** @var \App\Console\Kernel $instance */
  1437. return $instance->queue($command, $parameters);
  1438. }
  1439. /**
  1440. * Get all of the commands registered with the console.
  1441. *
  1442. * @return array
  1443. * @static
  1444. */
  1445. public static function all()
  1446. {
  1447. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1448. /** @var \App\Console\Kernel $instance */
  1449. return $instance->all();
  1450. }
  1451. /**
  1452. * Get the output for the last run command.
  1453. *
  1454. * @return string
  1455. * @static
  1456. */
  1457. public static function output()
  1458. {
  1459. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1460. /** @var \App\Console\Kernel $instance */
  1461. return $instance->output();
  1462. }
  1463. /**
  1464. * Bootstrap the application for artisan commands.
  1465. *
  1466. * @return void
  1467. * @static
  1468. */
  1469. public static function bootstrap()
  1470. {
  1471. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1472. /** @var \App\Console\Kernel $instance */
  1473. $instance->bootstrap();
  1474. }
  1475. /**
  1476. * Set the Artisan application instance.
  1477. *
  1478. * @param \Illuminate\Console\Application $artisan
  1479. * @return void
  1480. * @static
  1481. */
  1482. public static function setArtisan($artisan)
  1483. {
  1484. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1485. /** @var \App\Console\Kernel $instance */
  1486. $instance->setArtisan($artisan);
  1487. }
  1488. }
  1489. /**
  1490. *
  1491. *
  1492. * @see \Illuminate\Auth\AuthManager
  1493. * @see \Illuminate\Contracts\Auth\Factory
  1494. * @see \Illuminate\Contracts\Auth\Guard
  1495. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1496. */
  1497. class Auth {
  1498. /**
  1499. * Attempt to get the guard from the local cache.
  1500. *
  1501. * @param string $name
  1502. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1503. * @static
  1504. */
  1505. public static function guard($name = null)
  1506. {
  1507. /** @var \Illuminate\Auth\AuthManager $instance */
  1508. return $instance->guard($name);
  1509. }
  1510. /**
  1511. * Create a session based authentication guard.
  1512. *
  1513. * @param string $name
  1514. * @param array $config
  1515. * @return \Illuminate\Auth\SessionGuard
  1516. * @static
  1517. */
  1518. public static function createSessionDriver($name, $config)
  1519. {
  1520. /** @var \Illuminate\Auth\AuthManager $instance */
  1521. return $instance->createSessionDriver($name, $config);
  1522. }
  1523. /**
  1524. * Create a token based authentication guard.
  1525. *
  1526. * @param string $name
  1527. * @param array $config
  1528. * @return \Illuminate\Auth\TokenGuard
  1529. * @static
  1530. */
  1531. public static function createTokenDriver($name, $config)
  1532. {
  1533. /** @var \Illuminate\Auth\AuthManager $instance */
  1534. return $instance->createTokenDriver($name, $config);
  1535. }
  1536. /**
  1537. * Get the default authentication driver name.
  1538. *
  1539. * @return string
  1540. * @static
  1541. */
  1542. public static function getDefaultDriver()
  1543. {
  1544. /** @var \Illuminate\Auth\AuthManager $instance */
  1545. return $instance->getDefaultDriver();
  1546. }
  1547. /**
  1548. * Set the default guard driver the factory should serve.
  1549. *
  1550. * @param string $name
  1551. * @return void
  1552. * @static
  1553. */
  1554. public static function shouldUse($name)
  1555. {
  1556. /** @var \Illuminate\Auth\AuthManager $instance */
  1557. $instance->shouldUse($name);
  1558. }
  1559. /**
  1560. * Set the default authentication driver name.
  1561. *
  1562. * @param string $name
  1563. * @return void
  1564. * @static
  1565. */
  1566. public static function setDefaultDriver($name)
  1567. {
  1568. /** @var \Illuminate\Auth\AuthManager $instance */
  1569. $instance->setDefaultDriver($name);
  1570. }
  1571. /**
  1572. * Register a new callback based request guard.
  1573. *
  1574. * @param string $driver
  1575. * @param callable $callback
  1576. * @return \Illuminate\Auth\AuthManager
  1577. * @static
  1578. */
  1579. public static function viaRequest($driver, $callback)
  1580. {
  1581. /** @var \Illuminate\Auth\AuthManager $instance */
  1582. return $instance->viaRequest($driver, $callback);
  1583. }
  1584. /**
  1585. * Get the user resolver callback.
  1586. *
  1587. * @return \Closure
  1588. * @static
  1589. */
  1590. public static function userResolver()
  1591. {
  1592. /** @var \Illuminate\Auth\AuthManager $instance */
  1593. return $instance->userResolver();
  1594. }
  1595. /**
  1596. * Set the callback to be used to resolve users.
  1597. *
  1598. * @param \Closure $userResolver
  1599. * @return \Illuminate\Auth\AuthManager
  1600. * @static
  1601. */
  1602. public static function resolveUsersUsing($userResolver)
  1603. {
  1604. /** @var \Illuminate\Auth\AuthManager $instance */
  1605. return $instance->resolveUsersUsing($userResolver);
  1606. }
  1607. /**
  1608. * Register a custom driver creator Closure.
  1609. *
  1610. * @param string $driver
  1611. * @param \Closure $callback
  1612. * @return \Illuminate\Auth\AuthManager
  1613. * @static
  1614. */
  1615. public static function extend($driver, $callback)
  1616. {
  1617. /** @var \Illuminate\Auth\AuthManager $instance */
  1618. return $instance->extend($driver, $callback);
  1619. }
  1620. /**
  1621. * Register a custom provider creator Closure.
  1622. *
  1623. * @param string $name
  1624. * @param \Closure $callback
  1625. * @return \Illuminate\Auth\AuthManager
  1626. * @static
  1627. */
  1628. public static function provider($name, $callback)
  1629. {
  1630. /** @var \Illuminate\Auth\AuthManager $instance */
  1631. return $instance->provider($name, $callback);
  1632. }
  1633. /**
  1634. * Create the user provider implementation for the driver.
  1635. *
  1636. * @param string|null $provider
  1637. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1638. * @throws \InvalidArgumentException
  1639. * @static
  1640. */
  1641. public static function createUserProvider($provider = null)
  1642. {
  1643. /** @var \Illuminate\Auth\AuthManager $instance */
  1644. return $instance->createUserProvider($provider);
  1645. }
  1646. /**
  1647. * Get the default user provider name.
  1648. *
  1649. * @return string
  1650. * @static
  1651. */
  1652. public static function getDefaultUserProvider()
  1653. {
  1654. /** @var \Illuminate\Auth\AuthManager $instance */
  1655. return $instance->getDefaultUserProvider();
  1656. }
  1657. /**
  1658. * Get the currently authenticated user.
  1659. *
  1660. * @return \App\User|null
  1661. * @static
  1662. */
  1663. public static function user()
  1664. {
  1665. /** @var \Illuminate\Auth\SessionGuard $instance */
  1666. return $instance->user();
  1667. }
  1668. /**
  1669. * Get the ID for the currently authenticated user.
  1670. *
  1671. * @return int|null
  1672. * @static
  1673. */
  1674. public static function id()
  1675. {
  1676. /** @var \Illuminate\Auth\SessionGuard $instance */
  1677. return $instance->id();
  1678. }
  1679. /**
  1680. * Log a user into the application without sessions or cookies.
  1681. *
  1682. * @param array $credentials
  1683. * @return bool
  1684. * @static
  1685. */
  1686. public static function once($credentials = [])
  1687. {
  1688. /** @var \Illuminate\Auth\SessionGuard $instance */
  1689. return $instance->once($credentials);
  1690. }
  1691. /**
  1692. * Log the given user ID into the application without sessions or cookies.
  1693. *
  1694. * @param mixed $id
  1695. * @return \App\User|false
  1696. * @static
  1697. */
  1698. public static function onceUsingId($id)
  1699. {
  1700. /** @var \Illuminate\Auth\SessionGuard $instance */
  1701. return $instance->onceUsingId($id);
  1702. }
  1703. /**
  1704. * Validate a user's credentials.
  1705. *
  1706. * @param array $credentials
  1707. * @return bool
  1708. * @static
  1709. */
  1710. public static function validate($credentials = [])
  1711. {
  1712. /** @var \Illuminate\Auth\SessionGuard $instance */
  1713. return $instance->validate($credentials);
  1714. }
  1715. /**
  1716. * Attempt to authenticate using HTTP Basic Auth.
  1717. *
  1718. * @param string $field
  1719. * @param array $extraConditions
  1720. * @return void
  1721. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  1722. * @static
  1723. */
  1724. public static function basic($field = 'email', $extraConditions = [])
  1725. {
  1726. /** @var \Illuminate\Auth\SessionGuard $instance */
  1727. $instance->basic($field, $extraConditions);
  1728. }
  1729. /**
  1730. * Perform a stateless HTTP Basic login attempt.
  1731. *
  1732. * @param string $field
  1733. * @param array $extraConditions
  1734. * @return void
  1735. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  1736. * @static
  1737. */
  1738. public static function onceBasic($field = 'email', $extraConditions = [])
  1739. {
  1740. /** @var \Illuminate\Auth\SessionGuard $instance */
  1741. $instance->onceBasic($field, $extraConditions);
  1742. }
  1743. /**
  1744. * Attempt to authenticate a user using the given credentials.
  1745. *
  1746. * @param array $credentials
  1747. * @param bool $remember
  1748. * @return bool
  1749. * @static
  1750. */
  1751. public static function attempt($credentials = [], $remember = false)
  1752. {
  1753. /** @var \Illuminate\Auth\SessionGuard $instance */
  1754. return $instance->attempt($credentials, $remember);
  1755. }
  1756. /**
  1757. * Log the given user ID into the application.
  1758. *
  1759. * @param mixed $id
  1760. * @param bool $remember
  1761. * @return \App\User|false
  1762. * @static
  1763. */
  1764. public static function loginUsingId($id, $remember = false)
  1765. {
  1766. /** @var \Illuminate\Auth\SessionGuard $instance */
  1767. return $instance->loginUsingId($id, $remember);
  1768. }
  1769. /**
  1770. * Log a user into the application.
  1771. *
  1772. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1773. * @param bool $remember
  1774. * @return void
  1775. * @static
  1776. */
  1777. public static function login($user, $remember = false)
  1778. {
  1779. /** @var \Illuminate\Auth\SessionGuard $instance */
  1780. $instance->login($user, $remember);
  1781. }
  1782. /**
  1783. * Log the user out of the application.
  1784. *
  1785. * @return void
  1786. * @static
  1787. */
  1788. public static function logout()
  1789. {
  1790. /** @var \Illuminate\Auth\SessionGuard $instance */
  1791. $instance->logout();
  1792. }
  1793. /**
  1794. * Register an authentication attempt event listener.
  1795. *
  1796. * @param mixed $callback
  1797. * @return void
  1798. * @static
  1799. */
  1800. public static function attempting($callback)
  1801. {
  1802. /** @var \Illuminate\Auth\SessionGuard $instance */
  1803. $instance->attempting($callback);
  1804. }
  1805. /**
  1806. * Get the last user we attempted to authenticate.
  1807. *
  1808. * @return \App\User
  1809. * @static
  1810. */
  1811. public static function getLastAttempted()
  1812. {
  1813. /** @var \Illuminate\Auth\SessionGuard $instance */
  1814. return $instance->getLastAttempted();
  1815. }
  1816. /**
  1817. * Get a unique identifier for the auth session value.
  1818. *
  1819. * @return string
  1820. * @static
  1821. */
  1822. public static function getName()
  1823. {
  1824. /** @var \Illuminate\Auth\SessionGuard $instance */
  1825. return $instance->getName();
  1826. }
  1827. /**
  1828. * Get the name of the cookie used to store the "recaller".
  1829. *
  1830. * @return string
  1831. * @static
  1832. */
  1833. public static function getRecallerName()
  1834. {
  1835. /** @var \Illuminate\Auth\SessionGuard $instance */
  1836. return $instance->getRecallerName();
  1837. }
  1838. /**
  1839. * Determine if the user was authenticated via "remember me" cookie.
  1840. *
  1841. * @return bool
  1842. * @static
  1843. */
  1844. public static function viaRemember()
  1845. {
  1846. /** @var \Illuminate\Auth\SessionGuard $instance */
  1847. return $instance->viaRemember();
  1848. }
  1849. /**
  1850. * Get the cookie creator instance used by the guard.
  1851. *
  1852. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1853. * @throws \RuntimeException
  1854. * @static
  1855. */
  1856. public static function getCookieJar()
  1857. {
  1858. /** @var \Illuminate\Auth\SessionGuard $instance */
  1859. return $instance->getCookieJar();
  1860. }
  1861. /**
  1862. * Set the cookie creator instance used by the guard.
  1863. *
  1864. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1865. * @return void
  1866. * @static
  1867. */
  1868. public static function setCookieJar($cookie)
  1869. {
  1870. /** @var \Illuminate\Auth\SessionGuard $instance */
  1871. $instance->setCookieJar($cookie);
  1872. }
  1873. /**
  1874. * Get the event dispatcher instance.
  1875. *
  1876. * @return \Illuminate\Contracts\Events\Dispatcher
  1877. * @static
  1878. */
  1879. public static function getDispatcher()
  1880. {
  1881. /** @var \Illuminate\Auth\SessionGuard $instance */
  1882. return $instance->getDispatcher();
  1883. }
  1884. /**
  1885. * Set the event dispatcher instance.
  1886. *
  1887. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1888. * @return void
  1889. * @static
  1890. */
  1891. public static function setDispatcher($events)
  1892. {
  1893. /** @var \Illuminate\Auth\SessionGuard $instance */
  1894. $instance->setDispatcher($events);
  1895. }
  1896. /**
  1897. * Get the session store used by the guard.
  1898. *
  1899. * @return \Illuminate\Contracts\Session\Session
  1900. * @static
  1901. */
  1902. public static function getSession()
  1903. {
  1904. /** @var \Illuminate\Auth\SessionGuard $instance */
  1905. return $instance->getSession();
  1906. }
  1907. /**
  1908. * Return the currently cached user.
  1909. *
  1910. * @return \App\User|null
  1911. * @static
  1912. */
  1913. public static function getUser()
  1914. {
  1915. /** @var \Illuminate\Auth\SessionGuard $instance */
  1916. return $instance->getUser();
  1917. }
  1918. /**
  1919. * Set the current user.
  1920. *
  1921. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1922. * @return \Illuminate\Auth\SessionGuard
  1923. * @static
  1924. */
  1925. public static function setUser($user)
  1926. {
  1927. /** @var \Illuminate\Auth\SessionGuard $instance */
  1928. return $instance->setUser($user);
  1929. }
  1930. /**
  1931. * Get the current request instance.
  1932. *
  1933. * @return \Symfony\Component\HttpFoundation\Request
  1934. * @static
  1935. */
  1936. public static function getRequest()
  1937. {
  1938. /** @var \Illuminate\Auth\SessionGuard $instance */
  1939. return $instance->getRequest();
  1940. }
  1941. /**
  1942. * Set the current request instance.
  1943. *
  1944. * @param \Symfony\Component\HttpFoundation\Request $request
  1945. * @return \Illuminate\Auth\SessionGuard
  1946. * @static
  1947. */
  1948. public static function setRequest($request)
  1949. {
  1950. /** @var \Illuminate\Auth\SessionGuard $instance */
  1951. return $instance->setRequest($request);
  1952. }
  1953. /**
  1954. * Determine if the current user is authenticated.
  1955. *
  1956. * @return \App\User
  1957. * @throws \Illuminate\Auth\AuthenticationException
  1958. * @static
  1959. */
  1960. public static function authenticate()
  1961. {
  1962. /** @var \Illuminate\Auth\SessionGuard $instance */
  1963. return $instance->authenticate();
  1964. }
  1965. /**
  1966. * Determine if the current user is authenticated.
  1967. *
  1968. * @return bool
  1969. * @static
  1970. */
  1971. public static function check()
  1972. {
  1973. /** @var \Illuminate\Auth\SessionGuard $instance */
  1974. return $instance->check();
  1975. }
  1976. /**
  1977. * Determine if the current user is a guest.
  1978. *
  1979. * @return bool
  1980. * @static
  1981. */
  1982. public static function guest()
  1983. {
  1984. /** @var \Illuminate\Auth\SessionGuard $instance */
  1985. return $instance->guest();
  1986. }
  1987. /**
  1988. * Get the user provider used by the guard.
  1989. *
  1990. * @return \Illuminate\Contracts\Auth\UserProvider
  1991. * @static
  1992. */
  1993. public static function getProvider()
  1994. {
  1995. /** @var \Illuminate\Auth\SessionGuard $instance */
  1996. return $instance->getProvider();
  1997. }
  1998. /**
  1999. * Set the user provider used by the guard.
  2000. *
  2001. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2002. * @return void
  2003. * @static
  2004. */
  2005. public static function setProvider($provider)
  2006. {
  2007. /** @var \Illuminate\Auth\SessionGuard $instance */
  2008. $instance->setProvider($provider);
  2009. }
  2010. /**
  2011. * Register a custom macro.
  2012. *
  2013. * @param string $name
  2014. * @param object|callable $macro
  2015. * @return void
  2016. * @static
  2017. */
  2018. public static function macro($name, $macro)
  2019. {
  2020. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2021. }
  2022. /**
  2023. * Mix another object into the class.
  2024. *
  2025. * @param object $mixin
  2026. * @return void
  2027. * @static
  2028. */
  2029. public static function mixin($mixin)
  2030. {
  2031. \Illuminate\Auth\SessionGuard::mixin($mixin);
  2032. }
  2033. /**
  2034. * Checks if macro is registered.
  2035. *
  2036. * @param string $name
  2037. * @return bool
  2038. * @static
  2039. */
  2040. public static function hasMacro($name)
  2041. {
  2042. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2043. }
  2044. }
  2045. /**
  2046. *
  2047. *
  2048. * @see \Illuminate\View\Compilers\BladeCompiler
  2049. */
  2050. class Blade {
  2051. /**
  2052. * Compile the view at the given path.
  2053. *
  2054. * @param string $path
  2055. * @return void
  2056. * @static
  2057. */
  2058. public static function compile($path = null)
  2059. {
  2060. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2061. $instance->compile($path);
  2062. }
  2063. /**
  2064. * Get the path currently being compiled.
  2065. *
  2066. * @return string
  2067. * @static
  2068. */
  2069. public static function getPath()
  2070. {
  2071. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2072. return $instance->getPath();
  2073. }
  2074. /**
  2075. * Set the path currently being compiled.
  2076. *
  2077. * @param string $path
  2078. * @return void
  2079. * @static
  2080. */
  2081. public static function setPath($path)
  2082. {
  2083. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2084. $instance->setPath($path);
  2085. }
  2086. /**
  2087. * Compile the given Blade template contents.
  2088. *
  2089. * @param string $value
  2090. * @return string
  2091. * @static
  2092. */
  2093. public static function compileString($value)
  2094. {
  2095. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2096. return $instance->compileString($value);
  2097. }
  2098. /**
  2099. * Strip the parentheses from the given expression.
  2100. *
  2101. * @param string $expression
  2102. * @return string
  2103. * @static
  2104. */
  2105. public static function stripParentheses($expression)
  2106. {
  2107. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2108. return $instance->stripParentheses($expression);
  2109. }
  2110. /**
  2111. * Register a custom Blade compiler.
  2112. *
  2113. * @param callable $compiler
  2114. * @return void
  2115. * @static
  2116. */
  2117. public static function extend($compiler)
  2118. {
  2119. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2120. $instance->extend($compiler);
  2121. }
  2122. /**
  2123. * Get the extensions used by the compiler.
  2124. *
  2125. * @return array
  2126. * @static
  2127. */
  2128. public static function getExtensions()
  2129. {
  2130. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2131. return $instance->getExtensions();
  2132. }
  2133. /**
  2134. * Register an "if" statement directive.
  2135. *
  2136. * @param string $name
  2137. * @param callable $callback
  2138. * @return void
  2139. * @static
  2140. */
  2141. public static function if($name, $callback)
  2142. {
  2143. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2144. $instance->if($name, $callback);
  2145. }
  2146. /**
  2147. * Check the result of a condition.
  2148. *
  2149. * @param string $name
  2150. * @param array $parameters
  2151. * @return bool
  2152. * @static
  2153. */
  2154. public static function check($name, ...$parameters)
  2155. {
  2156. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2157. return $instance->check($name, ...$parameters);
  2158. }
  2159. /**
  2160. * Register a handler for custom directives.
  2161. *
  2162. * @param string $name
  2163. * @param callable $handler
  2164. * @return void
  2165. * @static
  2166. */
  2167. public static function directive($name, $handler)
  2168. {
  2169. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2170. $instance->directive($name, $handler);
  2171. }
  2172. /**
  2173. * Get the list of custom directives.
  2174. *
  2175. * @return array
  2176. * @static
  2177. */
  2178. public static function getCustomDirectives()
  2179. {
  2180. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2181. return $instance->getCustomDirectives();
  2182. }
  2183. /**
  2184. * Set the echo format to be used by the compiler.
  2185. *
  2186. * @param string $format
  2187. * @return void
  2188. * @static
  2189. */
  2190. public static function setEchoFormat($format)
  2191. {
  2192. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2193. $instance->setEchoFormat($format);
  2194. }
  2195. /**
  2196. * Set the echo format to double encode entities.
  2197. *
  2198. * @return void
  2199. * @static
  2200. */
  2201. public static function doubleEncode()
  2202. {
  2203. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2204. $instance->doubleEncode();
  2205. }
  2206. /**
  2207. * Get the path to the compiled version of a view.
  2208. *
  2209. * @param string $path
  2210. * @return string
  2211. * @static
  2212. */
  2213. public static function getCompiledPath($path)
  2214. {
  2215. //Method inherited from \Illuminate\View\Compilers\Compiler
  2216. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2217. return $instance->getCompiledPath($path);
  2218. }
  2219. /**
  2220. * Determine if the view at the given path is expired.
  2221. *
  2222. * @param string $path
  2223. * @return bool
  2224. * @static
  2225. */
  2226. public static function isExpired($path)
  2227. {
  2228. //Method inherited from \Illuminate\View\Compilers\Compiler
  2229. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2230. return $instance->isExpired($path);
  2231. }
  2232. /**
  2233. * Compile the default values for the echo statement.
  2234. *
  2235. * @param string $value
  2236. * @return string
  2237. * @static
  2238. */
  2239. public static function compileEchoDefaults($value)
  2240. {
  2241. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2242. return $instance->compileEchoDefaults($value);
  2243. }
  2244. }
  2245. /**
  2246. *
  2247. *
  2248. * @see \Illuminate\Contracts\Broadcasting\Factory
  2249. */
  2250. class Broadcast {
  2251. /**
  2252. * Register the routes for handling broadcast authentication and sockets.
  2253. *
  2254. * @param array|null $attributes
  2255. * @return void
  2256. * @static
  2257. */
  2258. public static function routes($attributes = null)
  2259. {
  2260. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2261. $instance->routes($attributes);
  2262. }
  2263. /**
  2264. * Get the socket ID for the given request.
  2265. *
  2266. * @param \Illuminate\Http\Request|null $request
  2267. * @return string|null
  2268. * @static
  2269. */
  2270. public static function socket($request = null)
  2271. {
  2272. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2273. return $instance->socket($request);
  2274. }
  2275. /**
  2276. * Begin broadcasting an event.
  2277. *
  2278. * @param mixed|null $event
  2279. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  2280. * @static
  2281. */
  2282. public static function event($event = null)
  2283. {
  2284. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2285. return $instance->event($event);
  2286. }
  2287. /**
  2288. * Queue the given event for broadcast.
  2289. *
  2290. * @param mixed $event
  2291. * @return void
  2292. * @static
  2293. */
  2294. public static function queue($event)
  2295. {
  2296. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2297. $instance->queue($event);
  2298. }
  2299. /**
  2300. * Get a driver instance.
  2301. *
  2302. * @param string $driver
  2303. * @return mixed
  2304. * @static
  2305. */
  2306. public static function connection($driver = null)
  2307. {
  2308. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2309. return $instance->connection($driver);
  2310. }
  2311. /**
  2312. * Get a driver instance.
  2313. *
  2314. * @param string $name
  2315. * @return mixed
  2316. * @static
  2317. */
  2318. public static function driver($name = null)
  2319. {
  2320. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2321. return $instance->driver($name);
  2322. }
  2323. /**
  2324. * Get the default driver name.
  2325. *
  2326. * @return string
  2327. * @static
  2328. */
  2329. public static function getDefaultDriver()
  2330. {
  2331. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2332. return $instance->getDefaultDriver();
  2333. }
  2334. /**
  2335. * Set the default driver name.
  2336. *
  2337. * @param string $name
  2338. * @return void
  2339. * @static
  2340. */
  2341. public static function setDefaultDriver($name)
  2342. {
  2343. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2344. $instance->setDefaultDriver($name);
  2345. }
  2346. /**
  2347. * Register a custom driver creator Closure.
  2348. *
  2349. * @param string $driver
  2350. * @param \Closure $callback
  2351. * @return \Illuminate\Broadcasting\BroadcastManager
  2352. * @static
  2353. */
  2354. public static function extend($driver, $callback)
  2355. {
  2356. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2357. return $instance->extend($driver, $callback);
  2358. }
  2359. }
  2360. /**
  2361. *
  2362. *
  2363. * @see \Illuminate\Contracts\Bus\Dispatcher
  2364. */
  2365. class Bus {
  2366. /**
  2367. * Dispatch a command to its appropriate handler.
  2368. *
  2369. * @param mixed $command
  2370. * @return mixed
  2371. * @static
  2372. */
  2373. public static function dispatch($command)
  2374. {
  2375. /** @var \Illuminate\Bus\Dispatcher $instance */
  2376. return $instance->dispatch($command);
  2377. }
  2378. /**
  2379. * Dispatch a command to its appropriate handler in the current process.
  2380. *
  2381. * @param mixed $command
  2382. * @param mixed $handler
  2383. * @return mixed
  2384. * @static
  2385. */
  2386. public static function dispatchNow($command, $handler = null)
  2387. {
  2388. /** @var \Illuminate\Bus\Dispatcher $instance */
  2389. return $instance->dispatchNow($command, $handler);
  2390. }
  2391. /**
  2392. * Determine if the given command has a handler.
  2393. *
  2394. * @param mixed $command
  2395. * @return bool
  2396. * @static
  2397. */
  2398. public static function hasCommandHandler($command)
  2399. {
  2400. /** @var \Illuminate\Bus\Dispatcher $instance */
  2401. return $instance->hasCommandHandler($command);
  2402. }
  2403. /**
  2404. * Retrieve the handler for a command.
  2405. *
  2406. * @param mixed $command
  2407. * @return bool|mixed
  2408. * @static
  2409. */
  2410. public static function getCommandHandler($command)
  2411. {
  2412. /** @var \Illuminate\Bus\Dispatcher $instance */
  2413. return $instance->getCommandHandler($command);
  2414. }
  2415. /**
  2416. * Dispatch a command to its appropriate handler behind a queue.
  2417. *
  2418. * @param mixed $command
  2419. * @return mixed
  2420. * @throws \RuntimeException
  2421. * @static
  2422. */
  2423. public static function dispatchToQueue($command)
  2424. {
  2425. /** @var \Illuminate\Bus\Dispatcher $instance */
  2426. return $instance->dispatchToQueue($command);
  2427. }
  2428. /**
  2429. * Set the pipes through which commands should be piped before dispatching.
  2430. *
  2431. * @param array $pipes
  2432. * @return \Illuminate\Bus\Dispatcher
  2433. * @static
  2434. */
  2435. public static function pipeThrough($pipes)
  2436. {
  2437. /** @var \Illuminate\Bus\Dispatcher $instance */
  2438. return $instance->pipeThrough($pipes);
  2439. }
  2440. /**
  2441. * Map a command to a handler.
  2442. *
  2443. * @param array $map
  2444. * @return \Illuminate\Bus\Dispatcher
  2445. * @static
  2446. */
  2447. public static function map($map)
  2448. {
  2449. /** @var \Illuminate\Bus\Dispatcher $instance */
  2450. return $instance->map($map);
  2451. }
  2452. /**
  2453. * Assert if a job was dispatched based on a truth-test callback.
  2454. *
  2455. * @param string $command
  2456. * @param callable|int|null $callback
  2457. * @return void
  2458. * @static
  2459. */
  2460. public static function assertDispatched($command, $callback = null)
  2461. {
  2462. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2463. $instance->assertDispatched($command, $callback);
  2464. }
  2465. /**
  2466. * Determine if a job was dispatched based on a truth-test callback.
  2467. *
  2468. * @param string $command
  2469. * @param callable|null $callback
  2470. * @return void
  2471. * @static
  2472. */
  2473. public static function assertNotDispatched($command, $callback = null)
  2474. {
  2475. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2476. $instance->assertNotDispatched($command, $callback);
  2477. }
  2478. /**
  2479. * Get all of the jobs matching a truth-test callback.
  2480. *
  2481. * @param string $command
  2482. * @param callable|null $callback
  2483. * @return \Illuminate\Support\Collection
  2484. * @static
  2485. */
  2486. public static function dispatched($command, $callback = null)
  2487. {
  2488. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2489. return $instance->dispatched($command, $callback);
  2490. }
  2491. /**
  2492. * Determine if there are any stored commands for a given class.
  2493. *
  2494. * @param string $command
  2495. * @return bool
  2496. * @static
  2497. */
  2498. public static function hasDispatched($command)
  2499. {
  2500. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2501. return $instance->hasDispatched($command);
  2502. }
  2503. }
  2504. /**
  2505. *
  2506. *
  2507. * @see \Illuminate\Cache\CacheManager
  2508. * @see \Illuminate\Cache\Repository
  2509. */
  2510. class Cache {
  2511. /**
  2512. * Get a cache store instance by name.
  2513. *
  2514. * @param string|null $name
  2515. * @return \Illuminate\Contracts\Cache\Repository
  2516. * @static
  2517. */
  2518. public static function store($name = null)
  2519. {
  2520. /** @var \Illuminate\Cache\CacheManager $instance */
  2521. return $instance->store($name);
  2522. }
  2523. /**
  2524. * Get a cache driver instance.
  2525. *
  2526. * @param string $driver
  2527. * @return mixed
  2528. * @static
  2529. */
  2530. public static function driver($driver = null)
  2531. {
  2532. /** @var \Illuminate\Cache\CacheManager $instance */
  2533. return $instance->driver($driver);
  2534. }
  2535. /**
  2536. * Create a new cache repository with the given implementation.
  2537. *
  2538. * @param \Illuminate\Contracts\Cache\Store $store
  2539. * @return \Illuminate\Cache\Repository
  2540. * @static
  2541. */
  2542. public static function repository($store)
  2543. {
  2544. /** @var \Illuminate\Cache\CacheManager $instance */
  2545. return $instance->repository($store);
  2546. }
  2547. /**
  2548. * Get the default cache driver name.
  2549. *
  2550. * @return string
  2551. * @static
  2552. */
  2553. public static function getDefaultDriver()
  2554. {
  2555. /** @var \Illuminate\Cache\CacheManager $instance */
  2556. return $instance->getDefaultDriver();
  2557. }
  2558. /**
  2559. * Set the default cache driver name.
  2560. *
  2561. * @param string $name
  2562. * @return void
  2563. * @static
  2564. */
  2565. public static function setDefaultDriver($name)
  2566. {
  2567. /** @var \Illuminate\Cache\CacheManager $instance */
  2568. $instance->setDefaultDriver($name);
  2569. }
  2570. /**
  2571. * Register a custom driver creator Closure.
  2572. *
  2573. * @param string $driver
  2574. * @param \Closure $callback
  2575. * @return \Illuminate\Cache\CacheManager
  2576. * @static
  2577. */
  2578. public static function extend($driver, $callback)
  2579. {
  2580. /** @var \Illuminate\Cache\CacheManager $instance */
  2581. return $instance->extend($driver, $callback);
  2582. }
  2583. /**
  2584. * Determine if an item exists in the cache.
  2585. *
  2586. * @param string $key
  2587. * @return bool
  2588. * @static
  2589. */
  2590. public static function has($key)
  2591. {
  2592. /** @var \Illuminate\Cache\Repository $instance */
  2593. return $instance->has($key);
  2594. }
  2595. /**
  2596. * Retrieve an item from the cache by key.
  2597. *
  2598. * @param string $key
  2599. * @param mixed $default
  2600. * @return mixed
  2601. * @static
  2602. */
  2603. public static function get($key, $default = null)
  2604. {
  2605. /** @var \Illuminate\Cache\Repository $instance */
  2606. return $instance->get($key, $default);
  2607. }
  2608. /**
  2609. * Retrieve multiple items from the cache by key.
  2610. *
  2611. * Items not found in the cache will have a null value.
  2612. *
  2613. * @param array $keys
  2614. * @return array
  2615. * @static
  2616. */
  2617. public static function many($keys)
  2618. {
  2619. /** @var \Illuminate\Cache\Repository $instance */
  2620. return $instance->many($keys);
  2621. }
  2622. /**
  2623. * Obtains multiple cache items by their unique keys.
  2624. *
  2625. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  2626. * @param mixed $default Default value to return for keys that do not exist.
  2627. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  2628. * @throws \Psr\SimpleCache\InvalidArgumentException
  2629. * MUST be thrown if $keys is neither an array nor a Traversable,
  2630. * or if any of the $keys are not a legal value.
  2631. * @static
  2632. */
  2633. public static function getMultiple($keys, $default = null)
  2634. {
  2635. /** @var \Illuminate\Cache\Repository $instance */
  2636. return $instance->getMultiple($keys, $default);
  2637. }
  2638. /**
  2639. * Retrieve an item from the cache and delete it.
  2640. *
  2641. * @param string $key
  2642. * @param mixed $default
  2643. * @return mixed
  2644. * @static
  2645. */
  2646. public static function pull($key, $default = null)
  2647. {
  2648. /** @var \Illuminate\Cache\Repository $instance */
  2649. return $instance->pull($key, $default);
  2650. }
  2651. /**
  2652. * Store an item in the cache.
  2653. *
  2654. * @param string $key
  2655. * @param mixed $value
  2656. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2657. * @return void
  2658. * @static
  2659. */
  2660. public static function put($key, $value, $minutes = null)
  2661. {
  2662. /** @var \Illuminate\Cache\Repository $instance */
  2663. $instance->put($key, $value, $minutes);
  2664. }
  2665. /**
  2666. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  2667. *
  2668. * @param string $key The key of the item to store.
  2669. * @param mixed $value The value of the item to store, must be serializable.
  2670. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2671. * the driver supports TTL then the library may set a default value
  2672. * for it or let the driver take care of that.
  2673. * @return bool True on success and false on failure.
  2674. * @throws \Psr\SimpleCache\InvalidArgumentException
  2675. * MUST be thrown if the $key string is not a legal value.
  2676. * @static
  2677. */
  2678. public static function set($key, $value, $ttl = null)
  2679. {
  2680. /** @var \Illuminate\Cache\Repository $instance */
  2681. return $instance->set($key, $value, $ttl);
  2682. }
  2683. /**
  2684. * Store multiple items in the cache for a given number of minutes.
  2685. *
  2686. * @param array $values
  2687. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2688. * @return void
  2689. * @static
  2690. */
  2691. public static function putMany($values, $minutes)
  2692. {
  2693. /** @var \Illuminate\Cache\Repository $instance */
  2694. $instance->putMany($values, $minutes);
  2695. }
  2696. /**
  2697. * Persists a set of key => value pairs in the cache, with an optional TTL.
  2698. *
  2699. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  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 $values is neither an array nor a Traversable,
  2706. * or if any of the $values are not a legal value.
  2707. * @static
  2708. */
  2709. public static function setMultiple($values, $ttl = null)
  2710. {
  2711. /** @var \Illuminate\Cache\Repository $instance */
  2712. return $instance->setMultiple($values, $ttl);
  2713. }
  2714. /**
  2715. * Store an item in the cache if the key does not exist.
  2716. *
  2717. * @param string $key
  2718. * @param mixed $value
  2719. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2720. * @return bool
  2721. * @static
  2722. */
  2723. public static function add($key, $value, $minutes)
  2724. {
  2725. /** @var \Illuminate\Cache\Repository $instance */
  2726. return $instance->add($key, $value, $minutes);
  2727. }
  2728. /**
  2729. * Increment the value of an item in the cache.
  2730. *
  2731. * @param string $key
  2732. * @param mixed $value
  2733. * @return int|bool
  2734. * @static
  2735. */
  2736. public static function increment($key, $value = 1)
  2737. {
  2738. /** @var \Illuminate\Cache\Repository $instance */
  2739. return $instance->increment($key, $value);
  2740. }
  2741. /**
  2742. * Decrement the value of an item in the cache.
  2743. *
  2744. * @param string $key
  2745. * @param mixed $value
  2746. * @return int|bool
  2747. * @static
  2748. */
  2749. public static function decrement($key, $value = 1)
  2750. {
  2751. /** @var \Illuminate\Cache\Repository $instance */
  2752. return $instance->decrement($key, $value);
  2753. }
  2754. /**
  2755. * Store an item in the cache indefinitely.
  2756. *
  2757. * @param string $key
  2758. * @param mixed $value
  2759. * @return void
  2760. * @static
  2761. */
  2762. public static function forever($key, $value)
  2763. {
  2764. /** @var \Illuminate\Cache\Repository $instance */
  2765. $instance->forever($key, $value);
  2766. }
  2767. /**
  2768. * Get an item from the cache, or store the default value.
  2769. *
  2770. * @param string $key
  2771. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2772. * @param \Closure $callback
  2773. * @return mixed
  2774. * @static
  2775. */
  2776. public static function remember($key, $minutes, $callback)
  2777. {
  2778. /** @var \Illuminate\Cache\Repository $instance */
  2779. return $instance->remember($key, $minutes, $callback);
  2780. }
  2781. /**
  2782. * Get an item from the cache, or store the default value forever.
  2783. *
  2784. * @param string $key
  2785. * @param \Closure $callback
  2786. * @return mixed
  2787. * @static
  2788. */
  2789. public static function sear($key, $callback)
  2790. {
  2791. /** @var \Illuminate\Cache\Repository $instance */
  2792. return $instance->sear($key, $callback);
  2793. }
  2794. /**
  2795. * Get an item from the cache, or store the default value forever.
  2796. *
  2797. * @param string $key
  2798. * @param \Closure $callback
  2799. * @return mixed
  2800. * @static
  2801. */
  2802. public static function rememberForever($key, $callback)
  2803. {
  2804. /** @var \Illuminate\Cache\Repository $instance */
  2805. return $instance->rememberForever($key, $callback);
  2806. }
  2807. /**
  2808. * Remove an item from the cache.
  2809. *
  2810. * @param string $key
  2811. * @return bool
  2812. * @static
  2813. */
  2814. public static function forget($key)
  2815. {
  2816. /** @var \Illuminate\Cache\Repository $instance */
  2817. return $instance->forget($key);
  2818. }
  2819. /**
  2820. * Delete an item from the cache by its unique key.
  2821. *
  2822. * @param string $key The unique cache key of the item to delete.
  2823. * @return bool True if the item was successfully removed. False if there was an error.
  2824. * @throws \Psr\SimpleCache\InvalidArgumentException
  2825. * MUST be thrown if the $key string is not a legal value.
  2826. * @static
  2827. */
  2828. public static function delete($key)
  2829. {
  2830. /** @var \Illuminate\Cache\Repository $instance */
  2831. return $instance->delete($key);
  2832. }
  2833. /**
  2834. * Deletes multiple cache items in a single operation.
  2835. *
  2836. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  2837. * @return bool True if the items were successfully removed. False if there was an error.
  2838. * @throws \Psr\SimpleCache\InvalidArgumentException
  2839. * MUST be thrown if $keys is neither an array nor a Traversable,
  2840. * or if any of the $keys are not a legal value.
  2841. * @static
  2842. */
  2843. public static function deleteMultiple($keys)
  2844. {
  2845. /** @var \Illuminate\Cache\Repository $instance */
  2846. return $instance->deleteMultiple($keys);
  2847. }
  2848. /**
  2849. * Wipes clean the entire cache's keys.
  2850. *
  2851. * @return bool True on success and false on failure.
  2852. * @static
  2853. */
  2854. public static function clear()
  2855. {
  2856. /** @var \Illuminate\Cache\Repository $instance */
  2857. return $instance->clear();
  2858. }
  2859. /**
  2860. * Begin executing a new tags operation if the store supports it.
  2861. *
  2862. * @param array|mixed $names
  2863. * @return \Illuminate\Cache\TaggedCache
  2864. * @throws \BadMethodCallException
  2865. * @static
  2866. */
  2867. public static function tags($names)
  2868. {
  2869. /** @var \Illuminate\Cache\Repository $instance */
  2870. return $instance->tags($names);
  2871. }
  2872. /**
  2873. * Get the default cache time.
  2874. *
  2875. * @return float|int
  2876. * @static
  2877. */
  2878. public static function getDefaultCacheTime()
  2879. {
  2880. /** @var \Illuminate\Cache\Repository $instance */
  2881. return $instance->getDefaultCacheTime();
  2882. }
  2883. /**
  2884. * Set the default cache time in minutes.
  2885. *
  2886. * @param float|int $minutes
  2887. * @return \Illuminate\Cache\Repository
  2888. * @static
  2889. */
  2890. public static function setDefaultCacheTime($minutes)
  2891. {
  2892. /** @var \Illuminate\Cache\Repository $instance */
  2893. return $instance->setDefaultCacheTime($minutes);
  2894. }
  2895. /**
  2896. * Get the cache store implementation.
  2897. *
  2898. * @return \Illuminate\Contracts\Cache\Store
  2899. * @static
  2900. */
  2901. public static function getStore()
  2902. {
  2903. /** @var \Illuminate\Cache\Repository $instance */
  2904. return $instance->getStore();
  2905. }
  2906. /**
  2907. * Set the event dispatcher instance.
  2908. *
  2909. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2910. * @return void
  2911. * @static
  2912. */
  2913. public static function setEventDispatcher($events)
  2914. {
  2915. /** @var \Illuminate\Cache\Repository $instance */
  2916. $instance->setEventDispatcher($events);
  2917. }
  2918. /**
  2919. * Determine if a cached value exists.
  2920. *
  2921. * @param string $key
  2922. * @return bool
  2923. * @static
  2924. */
  2925. public static function offsetExists($key)
  2926. {
  2927. /** @var \Illuminate\Cache\Repository $instance */
  2928. return $instance->offsetExists($key);
  2929. }
  2930. /**
  2931. * Retrieve an item from the cache by key.
  2932. *
  2933. * @param string $key
  2934. * @return mixed
  2935. * @static
  2936. */
  2937. public static function offsetGet($key)
  2938. {
  2939. /** @var \Illuminate\Cache\Repository $instance */
  2940. return $instance->offsetGet($key);
  2941. }
  2942. /**
  2943. * Store an item in the cache for the default time.
  2944. *
  2945. * @param string $key
  2946. * @param mixed $value
  2947. * @return void
  2948. * @static
  2949. */
  2950. public static function offsetSet($key, $value)
  2951. {
  2952. /** @var \Illuminate\Cache\Repository $instance */
  2953. $instance->offsetSet($key, $value);
  2954. }
  2955. /**
  2956. * Remove an item from the cache.
  2957. *
  2958. * @param string $key
  2959. * @return void
  2960. * @static
  2961. */
  2962. public static function offsetUnset($key)
  2963. {
  2964. /** @var \Illuminate\Cache\Repository $instance */
  2965. $instance->offsetUnset($key);
  2966. }
  2967. /**
  2968. * Register a custom macro.
  2969. *
  2970. * @param string $name
  2971. * @param object|callable $macro
  2972. * @return void
  2973. * @static
  2974. */
  2975. public static function macro($name, $macro)
  2976. {
  2977. \Illuminate\Cache\Repository::macro($name, $macro);
  2978. }
  2979. /**
  2980. * Mix another object into the class.
  2981. *
  2982. * @param object $mixin
  2983. * @return void
  2984. * @static
  2985. */
  2986. public static function mixin($mixin)
  2987. {
  2988. \Illuminate\Cache\Repository::mixin($mixin);
  2989. }
  2990. /**
  2991. * Checks if macro is registered.
  2992. *
  2993. * @param string $name
  2994. * @return bool
  2995. * @static
  2996. */
  2997. public static function hasMacro($name)
  2998. {
  2999. return \Illuminate\Cache\Repository::hasMacro($name);
  3000. }
  3001. /**
  3002. * Dynamically handle calls to the class.
  3003. *
  3004. * @param string $method
  3005. * @param array $parameters
  3006. * @return mixed
  3007. * @throws \BadMethodCallException
  3008. * @static
  3009. */
  3010. public static function macroCall($method, $parameters)
  3011. {
  3012. /** @var \Illuminate\Cache\Repository $instance */
  3013. return $instance->macroCall($method, $parameters);
  3014. }
  3015. /**
  3016. * Remove all items from the cache.
  3017. *
  3018. * @return bool
  3019. * @static
  3020. */
  3021. public static function flush()
  3022. {
  3023. /** @var \Illuminate\Cache\FileStore $instance */
  3024. return $instance->flush();
  3025. }
  3026. /**
  3027. * Get the Filesystem instance.
  3028. *
  3029. * @return \Illuminate\Filesystem\Filesystem
  3030. * @static
  3031. */
  3032. public static function getFilesystem()
  3033. {
  3034. /** @var \Illuminate\Cache\FileStore $instance */
  3035. return $instance->getFilesystem();
  3036. }
  3037. /**
  3038. * Get the working directory of the cache.
  3039. *
  3040. * @return string
  3041. * @static
  3042. */
  3043. public static function getDirectory()
  3044. {
  3045. /** @var \Illuminate\Cache\FileStore $instance */
  3046. return $instance->getDirectory();
  3047. }
  3048. /**
  3049. * Get the cache key prefix.
  3050. *
  3051. * @return string
  3052. * @static
  3053. */
  3054. public static function getPrefix()
  3055. {
  3056. /** @var \Illuminate\Cache\FileStore $instance */
  3057. return $instance->getPrefix();
  3058. }
  3059. }
  3060. /**
  3061. *
  3062. *
  3063. * @see \Illuminate\Config\Repository
  3064. */
  3065. class Config {
  3066. /**
  3067. * Determine if the given configuration value exists.
  3068. *
  3069. * @param string $key
  3070. * @return bool
  3071. * @static
  3072. */
  3073. public static function has($key)
  3074. {
  3075. /** @var \Illuminate\Config\Repository $instance */
  3076. return $instance->has($key);
  3077. }
  3078. /**
  3079. * Get the specified configuration value.
  3080. *
  3081. * @param array|string $key
  3082. * @param mixed $default
  3083. * @return mixed
  3084. * @static
  3085. */
  3086. public static function get($key, $default = null)
  3087. {
  3088. /** @var \Illuminate\Config\Repository $instance */
  3089. return $instance->get($key, $default);
  3090. }
  3091. /**
  3092. * Get many configuration values.
  3093. *
  3094. * @param array $keys
  3095. * @return array
  3096. * @static
  3097. */
  3098. public static function getMany($keys)
  3099. {
  3100. /** @var \Illuminate\Config\Repository $instance */
  3101. return $instance->getMany($keys);
  3102. }
  3103. /**
  3104. * Set a given configuration value.
  3105. *
  3106. * @param array|string $key
  3107. * @param mixed $value
  3108. * @return void
  3109. * @static
  3110. */
  3111. public static function set($key, $value = null)
  3112. {
  3113. /** @var \Illuminate\Config\Repository $instance */
  3114. $instance->set($key, $value);
  3115. }
  3116. /**
  3117. * Prepend a value onto an array configuration value.
  3118. *
  3119. * @param string $key
  3120. * @param mixed $value
  3121. * @return void
  3122. * @static
  3123. */
  3124. public static function prepend($key, $value)
  3125. {
  3126. /** @var \Illuminate\Config\Repository $instance */
  3127. $instance->prepend($key, $value);
  3128. }
  3129. /**
  3130. * Push a value onto an array configuration value.
  3131. *
  3132. * @param string $key
  3133. * @param mixed $value
  3134. * @return void
  3135. * @static
  3136. */
  3137. public static function push($key, $value)
  3138. {
  3139. /** @var \Illuminate\Config\Repository $instance */
  3140. $instance->push($key, $value);
  3141. }
  3142. /**
  3143. * Get all of the configuration items for the application.
  3144. *
  3145. * @return array
  3146. * @static
  3147. */
  3148. public static function all()
  3149. {
  3150. /** @var \Illuminate\Config\Repository $instance */
  3151. return $instance->all();
  3152. }
  3153. /**
  3154. * Determine if the given configuration option exists.
  3155. *
  3156. * @param string $key
  3157. * @return bool
  3158. * @static
  3159. */
  3160. public static function offsetExists($key)
  3161. {
  3162. /** @var \Illuminate\Config\Repository $instance */
  3163. return $instance->offsetExists($key);
  3164. }
  3165. /**
  3166. * Get a configuration option.
  3167. *
  3168. * @param string $key
  3169. * @return mixed
  3170. * @static
  3171. */
  3172. public static function offsetGet($key)
  3173. {
  3174. /** @var \Illuminate\Config\Repository $instance */
  3175. return $instance->offsetGet($key);
  3176. }
  3177. /**
  3178. * Set a configuration option.
  3179. *
  3180. * @param string $key
  3181. * @param mixed $value
  3182. * @return void
  3183. * @static
  3184. */
  3185. public static function offsetSet($key, $value)
  3186. {
  3187. /** @var \Illuminate\Config\Repository $instance */
  3188. $instance->offsetSet($key, $value);
  3189. }
  3190. /**
  3191. * Unset a configuration option.
  3192. *
  3193. * @param string $key
  3194. * @return void
  3195. * @static
  3196. */
  3197. public static function offsetUnset($key)
  3198. {
  3199. /** @var \Illuminate\Config\Repository $instance */
  3200. $instance->offsetUnset($key);
  3201. }
  3202. }
  3203. /**
  3204. *
  3205. *
  3206. * @see \Illuminate\Cookie\CookieJar
  3207. */
  3208. class Cookie {
  3209. /**
  3210. * Create a new cookie instance.
  3211. *
  3212. * @param string $name
  3213. * @param string $value
  3214. * @param int $minutes
  3215. * @param string $path
  3216. * @param string $domain
  3217. * @param bool $secure
  3218. * @param bool $httpOnly
  3219. * @param bool $raw
  3220. * @param string|null $sameSite
  3221. * @return \Symfony\Component\HttpFoundation\Cookie
  3222. * @static
  3223. */
  3224. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null)
  3225. {
  3226. /** @var \Illuminate\Cookie\CookieJar $instance */
  3227. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3228. }
  3229. /**
  3230. * Create a cookie that lasts "forever" (five years).
  3231. *
  3232. * @param string $name
  3233. * @param string $value
  3234. * @param string $path
  3235. * @param string $domain
  3236. * @param bool $secure
  3237. * @param bool $httpOnly
  3238. * @param bool $raw
  3239. * @param string|null $sameSite
  3240. * @return \Symfony\Component\HttpFoundation\Cookie
  3241. * @static
  3242. */
  3243. public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null)
  3244. {
  3245. /** @var \Illuminate\Cookie\CookieJar $instance */
  3246. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3247. }
  3248. /**
  3249. * Expire the given cookie.
  3250. *
  3251. * @param string $name
  3252. * @param string $path
  3253. * @param string $domain
  3254. * @return \Symfony\Component\HttpFoundation\Cookie
  3255. * @static
  3256. */
  3257. public static function forget($name, $path = null, $domain = null)
  3258. {
  3259. /** @var \Illuminate\Cookie\CookieJar $instance */
  3260. return $instance->forget($name, $path, $domain);
  3261. }
  3262. /**
  3263. * Determine if a cookie has been queued.
  3264. *
  3265. * @param string $key
  3266. * @return bool
  3267. * @static
  3268. */
  3269. public static function hasQueued($key)
  3270. {
  3271. /** @var \Illuminate\Cookie\CookieJar $instance */
  3272. return $instance->hasQueued($key);
  3273. }
  3274. /**
  3275. * Get a queued cookie instance.
  3276. *
  3277. * @param string $key
  3278. * @param mixed $default
  3279. * @return \Symfony\Component\HttpFoundation\Cookie
  3280. * @static
  3281. */
  3282. public static function queued($key, $default = null)
  3283. {
  3284. /** @var \Illuminate\Cookie\CookieJar $instance */
  3285. return $instance->queued($key, $default);
  3286. }
  3287. /**
  3288. * Queue a cookie to send with the next response.
  3289. *
  3290. * @param array $parameters
  3291. * @return void
  3292. * @static
  3293. */
  3294. public static function queue(...$parameters)
  3295. {
  3296. /** @var \Illuminate\Cookie\CookieJar $instance */
  3297. $instance->queue(...$parameters);
  3298. }
  3299. /**
  3300. * Remove a cookie from the queue.
  3301. *
  3302. * @param string $name
  3303. * @return void
  3304. * @static
  3305. */
  3306. public static function unqueue($name)
  3307. {
  3308. /** @var \Illuminate\Cookie\CookieJar $instance */
  3309. $instance->unqueue($name);
  3310. }
  3311. /**
  3312. * Set the default path and domain for the jar.
  3313. *
  3314. * @param string $path
  3315. * @param string $domain
  3316. * @param bool $secure
  3317. * @param string $sameSite
  3318. * @return \Illuminate\Cookie\CookieJar
  3319. * @static
  3320. */
  3321. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3322. {
  3323. /** @var \Illuminate\Cookie\CookieJar $instance */
  3324. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3325. }
  3326. /**
  3327. * Get the cookies which have been queued for the next request.
  3328. *
  3329. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3330. * @static
  3331. */
  3332. public static function getQueuedCookies()
  3333. {
  3334. /** @var \Illuminate\Cookie\CookieJar $instance */
  3335. return $instance->getQueuedCookies();
  3336. }
  3337. }
  3338. /**
  3339. *
  3340. *
  3341. * @see \Illuminate\Encryption\Encrypter
  3342. */
  3343. class Crypt {
  3344. /**
  3345. * Determine if the given key and cipher combination is valid.
  3346. *
  3347. * @param string $key
  3348. * @param string $cipher
  3349. * @return bool
  3350. * @static
  3351. */
  3352. public static function supported($key, $cipher)
  3353. {
  3354. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3355. }
  3356. /**
  3357. * Create a new encryption key for the given cipher.
  3358. *
  3359. * @param string $cipher
  3360. * @return string
  3361. * @static
  3362. */
  3363. public static function generateKey($cipher)
  3364. {
  3365. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3366. }
  3367. /**
  3368. * Encrypt the given value.
  3369. *
  3370. * @param mixed $value
  3371. * @param bool $serialize
  3372. * @return string
  3373. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3374. * @static
  3375. */
  3376. public static function encrypt($value, $serialize = true)
  3377. {
  3378. /** @var \Illuminate\Encryption\Encrypter $instance */
  3379. return $instance->encrypt($value, $serialize);
  3380. }
  3381. /**
  3382. * Encrypt a string without serialization.
  3383. *
  3384. * @param string $value
  3385. * @return string
  3386. * @static
  3387. */
  3388. public static function encryptString($value)
  3389. {
  3390. /** @var \Illuminate\Encryption\Encrypter $instance */
  3391. return $instance->encryptString($value);
  3392. }
  3393. /**
  3394. * Decrypt the given value.
  3395. *
  3396. * @param mixed $payload
  3397. * @param bool $unserialize
  3398. * @return string
  3399. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3400. * @static
  3401. */
  3402. public static function decrypt($payload, $unserialize = true)
  3403. {
  3404. /** @var \Illuminate\Encryption\Encrypter $instance */
  3405. return $instance->decrypt($payload, $unserialize);
  3406. }
  3407. /**
  3408. * Decrypt the given string without unserialization.
  3409. *
  3410. * @param string $payload
  3411. * @return string
  3412. * @static
  3413. */
  3414. public static function decryptString($payload)
  3415. {
  3416. /** @var \Illuminate\Encryption\Encrypter $instance */
  3417. return $instance->decryptString($payload);
  3418. }
  3419. /**
  3420. * Get the encryption key.
  3421. *
  3422. * @return string
  3423. * @static
  3424. */
  3425. public static function getKey()
  3426. {
  3427. /** @var \Illuminate\Encryption\Encrypter $instance */
  3428. return $instance->getKey();
  3429. }
  3430. }
  3431. /**
  3432. *
  3433. *
  3434. * @see \Illuminate\Database\DatabaseManager
  3435. * @see \Illuminate\Database\Connection
  3436. */
  3437. class DB {
  3438. /**
  3439. * Get a database connection instance.
  3440. *
  3441. * @param string $name
  3442. * @return \Illuminate\Database\Connection
  3443. * @static
  3444. */
  3445. public static function connection($name = null)
  3446. {
  3447. /** @var \Illuminate\Database\DatabaseManager $instance */
  3448. return $instance->connection($name);
  3449. }
  3450. /**
  3451. * Disconnect from the given database and remove from local cache.
  3452. *
  3453. * @param string $name
  3454. * @return void
  3455. * @static
  3456. */
  3457. public static function purge($name = null)
  3458. {
  3459. /** @var \Illuminate\Database\DatabaseManager $instance */
  3460. $instance->purge($name);
  3461. }
  3462. /**
  3463. * Disconnect from the given database.
  3464. *
  3465. * @param string $name
  3466. * @return void
  3467. * @static
  3468. */
  3469. public static function disconnect($name = null)
  3470. {
  3471. /** @var \Illuminate\Database\DatabaseManager $instance */
  3472. $instance->disconnect($name);
  3473. }
  3474. /**
  3475. * Reconnect to the given database.
  3476. *
  3477. * @param string $name
  3478. * @return \Illuminate\Database\Connection
  3479. * @static
  3480. */
  3481. public static function reconnect($name = null)
  3482. {
  3483. /** @var \Illuminate\Database\DatabaseManager $instance */
  3484. return $instance->reconnect($name);
  3485. }
  3486. /**
  3487. * Get the default connection name.
  3488. *
  3489. * @return string
  3490. * @static
  3491. */
  3492. public static function getDefaultConnection()
  3493. {
  3494. /** @var \Illuminate\Database\DatabaseManager $instance */
  3495. return $instance->getDefaultConnection();
  3496. }
  3497. /**
  3498. * Set the default connection name.
  3499. *
  3500. * @param string $name
  3501. * @return void
  3502. * @static
  3503. */
  3504. public static function setDefaultConnection($name)
  3505. {
  3506. /** @var \Illuminate\Database\DatabaseManager $instance */
  3507. $instance->setDefaultConnection($name);
  3508. }
  3509. /**
  3510. * Get all of the support drivers.
  3511. *
  3512. * @return array
  3513. * @static
  3514. */
  3515. public static function supportedDrivers()
  3516. {
  3517. /** @var \Illuminate\Database\DatabaseManager $instance */
  3518. return $instance->supportedDrivers();
  3519. }
  3520. /**
  3521. * Get all of the drivers that are actually available.
  3522. *
  3523. * @return array
  3524. * @static
  3525. */
  3526. public static function availableDrivers()
  3527. {
  3528. /** @var \Illuminate\Database\DatabaseManager $instance */
  3529. return $instance->availableDrivers();
  3530. }
  3531. /**
  3532. * Register an extension connection resolver.
  3533. *
  3534. * @param string $name
  3535. * @param callable $resolver
  3536. * @return void
  3537. * @static
  3538. */
  3539. public static function extend($name, $resolver)
  3540. {
  3541. /** @var \Illuminate\Database\DatabaseManager $instance */
  3542. $instance->extend($name, $resolver);
  3543. }
  3544. /**
  3545. * Return all of the created connections.
  3546. *
  3547. * @return array
  3548. * @static
  3549. */
  3550. public static function getConnections()
  3551. {
  3552. /** @var \Illuminate\Database\DatabaseManager $instance */
  3553. return $instance->getConnections();
  3554. }
  3555. /**
  3556. * Get a schema builder instance for the connection.
  3557. *
  3558. * @return \Illuminate\Database\Schema\MySqlBuilder
  3559. * @static
  3560. */
  3561. public static function getSchemaBuilder()
  3562. {
  3563. /** @var \Illuminate\Database\MySqlConnection $instance */
  3564. return $instance->getSchemaBuilder();
  3565. }
  3566. /**
  3567. * Bind values to their parameters in the given statement.
  3568. *
  3569. * @param \PDOStatement $statement
  3570. * @param array $bindings
  3571. * @return void
  3572. * @static
  3573. */
  3574. public static function bindValues($statement, $bindings)
  3575. {
  3576. /** @var \Illuminate\Database\MySqlConnection $instance */
  3577. $instance->bindValues($statement, $bindings);
  3578. }
  3579. /**
  3580. * Set the query grammar to the default implementation.
  3581. *
  3582. * @return void
  3583. * @static
  3584. */
  3585. public static function useDefaultQueryGrammar()
  3586. {
  3587. //Method inherited from \Illuminate\Database\Connection
  3588. /** @var \Illuminate\Database\MySqlConnection $instance */
  3589. $instance->useDefaultQueryGrammar();
  3590. }
  3591. /**
  3592. * Set the schema grammar to the default implementation.
  3593. *
  3594. * @return void
  3595. * @static
  3596. */
  3597. public static function useDefaultSchemaGrammar()
  3598. {
  3599. //Method inherited from \Illuminate\Database\Connection
  3600. /** @var \Illuminate\Database\MySqlConnection $instance */
  3601. $instance->useDefaultSchemaGrammar();
  3602. }
  3603. /**
  3604. * Set the query post processor to the default implementation.
  3605. *
  3606. * @return void
  3607. * @static
  3608. */
  3609. public static function useDefaultPostProcessor()
  3610. {
  3611. //Method inherited from \Illuminate\Database\Connection
  3612. /** @var \Illuminate\Database\MySqlConnection $instance */
  3613. $instance->useDefaultPostProcessor();
  3614. }
  3615. /**
  3616. * Begin a fluent query against a database table.
  3617. *
  3618. * @param string $table
  3619. * @return \Illuminate\Database\Query\Builder
  3620. * @static
  3621. */
  3622. public static function table($table)
  3623. {
  3624. //Method inherited from \Illuminate\Database\Connection
  3625. /** @var \Illuminate\Database\MySqlConnection $instance */
  3626. return $instance->table($table);
  3627. }
  3628. /**
  3629. * Get a new query builder instance.
  3630. *
  3631. * @return \Illuminate\Database\Query\Builder
  3632. * @static
  3633. */
  3634. public static function query()
  3635. {
  3636. //Method inherited from \Illuminate\Database\Connection
  3637. /** @var \Illuminate\Database\MySqlConnection $instance */
  3638. return $instance->query();
  3639. }
  3640. /**
  3641. * Run a select statement and return a single result.
  3642. *
  3643. * @param string $query
  3644. * @param array $bindings
  3645. * @param bool $useReadPdo
  3646. * @return mixed
  3647. * @static
  3648. */
  3649. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  3650. {
  3651. //Method inherited from \Illuminate\Database\Connection
  3652. /** @var \Illuminate\Database\MySqlConnection $instance */
  3653. return $instance->selectOne($query, $bindings, $useReadPdo);
  3654. }
  3655. /**
  3656. * Run a select statement against the database.
  3657. *
  3658. * @param string $query
  3659. * @param array $bindings
  3660. * @return array
  3661. * @static
  3662. */
  3663. public static function selectFromWriteConnection($query, $bindings = [])
  3664. {
  3665. //Method inherited from \Illuminate\Database\Connection
  3666. /** @var \Illuminate\Database\MySqlConnection $instance */
  3667. return $instance->selectFromWriteConnection($query, $bindings);
  3668. }
  3669. /**
  3670. * Run a select statement against the database.
  3671. *
  3672. * @param string $query
  3673. * @param array $bindings
  3674. * @param bool $useReadPdo
  3675. * @return array
  3676. * @static
  3677. */
  3678. public static function select($query, $bindings = [], $useReadPdo = true)
  3679. {
  3680. //Method inherited from \Illuminate\Database\Connection
  3681. /** @var \Illuminate\Database\MySqlConnection $instance */
  3682. return $instance->select($query, $bindings, $useReadPdo);
  3683. }
  3684. /**
  3685. * Run a select statement against the database and returns a generator.
  3686. *
  3687. * @param string $query
  3688. * @param array $bindings
  3689. * @param bool $useReadPdo
  3690. * @return \Generator
  3691. * @static
  3692. */
  3693. public static function cursor($query, $bindings = [], $useReadPdo = true)
  3694. {
  3695. //Method inherited from \Illuminate\Database\Connection
  3696. /** @var \Illuminate\Database\MySqlConnection $instance */
  3697. return $instance->cursor($query, $bindings, $useReadPdo);
  3698. }
  3699. /**
  3700. * Run an insert statement against the database.
  3701. *
  3702. * @param string $query
  3703. * @param array $bindings
  3704. * @return bool
  3705. * @static
  3706. */
  3707. public static function insert($query, $bindings = [])
  3708. {
  3709. //Method inherited from \Illuminate\Database\Connection
  3710. /** @var \Illuminate\Database\MySqlConnection $instance */
  3711. return $instance->insert($query, $bindings);
  3712. }
  3713. /**
  3714. * Run an update statement against the database.
  3715. *
  3716. * @param string $query
  3717. * @param array $bindings
  3718. * @return int
  3719. * @static
  3720. */
  3721. public static function update($query, $bindings = [])
  3722. {
  3723. //Method inherited from \Illuminate\Database\Connection
  3724. /** @var \Illuminate\Database\MySqlConnection $instance */
  3725. return $instance->update($query, $bindings);
  3726. }
  3727. /**
  3728. * Run a delete statement against the database.
  3729. *
  3730. * @param string $query
  3731. * @param array $bindings
  3732. * @return int
  3733. * @static
  3734. */
  3735. public static function delete($query, $bindings = [])
  3736. {
  3737. //Method inherited from \Illuminate\Database\Connection
  3738. /** @var \Illuminate\Database\MySqlConnection $instance */
  3739. return $instance->delete($query, $bindings);
  3740. }
  3741. /**
  3742. * Execute an SQL statement and return the boolean result.
  3743. *
  3744. * @param string $query
  3745. * @param array $bindings
  3746. * @return bool
  3747. * @static
  3748. */
  3749. public static function statement($query, $bindings = [])
  3750. {
  3751. //Method inherited from \Illuminate\Database\Connection
  3752. /** @var \Illuminate\Database\MySqlConnection $instance */
  3753. return $instance->statement($query, $bindings);
  3754. }
  3755. /**
  3756. * Run an SQL statement and get the number of rows affected.
  3757. *
  3758. * @param string $query
  3759. * @param array $bindings
  3760. * @return int
  3761. * @static
  3762. */
  3763. public static function affectingStatement($query, $bindings = [])
  3764. {
  3765. //Method inherited from \Illuminate\Database\Connection
  3766. /** @var \Illuminate\Database\MySqlConnection $instance */
  3767. return $instance->affectingStatement($query, $bindings);
  3768. }
  3769. /**
  3770. * Run a raw, unprepared query against the PDO connection.
  3771. *
  3772. * @param string $query
  3773. * @return bool
  3774. * @static
  3775. */
  3776. public static function unprepared($query)
  3777. {
  3778. //Method inherited from \Illuminate\Database\Connection
  3779. /** @var \Illuminate\Database\MySqlConnection $instance */
  3780. return $instance->unprepared($query);
  3781. }
  3782. /**
  3783. * Execute the given callback in "dry run" mode.
  3784. *
  3785. * @param \Closure $callback
  3786. * @return array
  3787. * @static
  3788. */
  3789. public static function pretend($callback)
  3790. {
  3791. //Method inherited from \Illuminate\Database\Connection
  3792. /** @var \Illuminate\Database\MySqlConnection $instance */
  3793. return $instance->pretend($callback);
  3794. }
  3795. /**
  3796. * Prepare the query bindings for execution.
  3797. *
  3798. * @param array $bindings
  3799. * @return array
  3800. * @static
  3801. */
  3802. public static function prepareBindings($bindings)
  3803. {
  3804. //Method inherited from \Illuminate\Database\Connection
  3805. /** @var \Illuminate\Database\MySqlConnection $instance */
  3806. return $instance->prepareBindings($bindings);
  3807. }
  3808. /**
  3809. * Log a query in the connection's query log.
  3810. *
  3811. * @param string $query
  3812. * @param array $bindings
  3813. * @param float|null $time
  3814. * @return void
  3815. * @static
  3816. */
  3817. public static function logQuery($query, $bindings, $time = null)
  3818. {
  3819. //Method inherited from \Illuminate\Database\Connection
  3820. /** @var \Illuminate\Database\MySqlConnection $instance */
  3821. $instance->logQuery($query, $bindings, $time);
  3822. }
  3823. /**
  3824. * Register a database query listener with the connection.
  3825. *
  3826. * @param \Closure $callback
  3827. * @return void
  3828. * @static
  3829. */
  3830. public static function listen($callback)
  3831. {
  3832. //Method inherited from \Illuminate\Database\Connection
  3833. /** @var \Illuminate\Database\MySqlConnection $instance */
  3834. $instance->listen($callback);
  3835. }
  3836. /**
  3837. * Get a new raw query expression.
  3838. *
  3839. * @param mixed $value
  3840. * @return \Illuminate\Database\Query\Expression
  3841. * @static
  3842. */
  3843. public static function raw($value)
  3844. {
  3845. //Method inherited from \Illuminate\Database\Connection
  3846. /** @var \Illuminate\Database\MySqlConnection $instance */
  3847. return $instance->raw($value);
  3848. }
  3849. /**
  3850. * Indicate if any records have been modified.
  3851. *
  3852. * @param bool $value
  3853. * @return void
  3854. * @static
  3855. */
  3856. public static function recordsHaveBeenModified($value = true)
  3857. {
  3858. //Method inherited from \Illuminate\Database\Connection
  3859. /** @var \Illuminate\Database\MySqlConnection $instance */
  3860. $instance->recordsHaveBeenModified($value);
  3861. }
  3862. /**
  3863. * Is Doctrine available?
  3864. *
  3865. * @return bool
  3866. * @static
  3867. */
  3868. public static function isDoctrineAvailable()
  3869. {
  3870. //Method inherited from \Illuminate\Database\Connection
  3871. /** @var \Illuminate\Database\MySqlConnection $instance */
  3872. return $instance->isDoctrineAvailable();
  3873. }
  3874. /**
  3875. * Get a Doctrine Schema Column instance.
  3876. *
  3877. * @param string $table
  3878. * @param string $column
  3879. * @return \Doctrine\DBAL\Schema\Column
  3880. * @static
  3881. */
  3882. public static function getDoctrineColumn($table, $column)
  3883. {
  3884. //Method inherited from \Illuminate\Database\Connection
  3885. /** @var \Illuminate\Database\MySqlConnection $instance */
  3886. return $instance->getDoctrineColumn($table, $column);
  3887. }
  3888. /**
  3889. * Get the Doctrine DBAL schema manager for the connection.
  3890. *
  3891. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3892. * @static
  3893. */
  3894. public static function getDoctrineSchemaManager()
  3895. {
  3896. //Method inherited from \Illuminate\Database\Connection
  3897. /** @var \Illuminate\Database\MySqlConnection $instance */
  3898. return $instance->getDoctrineSchemaManager();
  3899. }
  3900. /**
  3901. * Get the Doctrine DBAL database connection instance.
  3902. *
  3903. * @return \Doctrine\DBAL\Connection
  3904. * @static
  3905. */
  3906. public static function getDoctrineConnection()
  3907. {
  3908. //Method inherited from \Illuminate\Database\Connection
  3909. /** @var \Illuminate\Database\MySqlConnection $instance */
  3910. return $instance->getDoctrineConnection();
  3911. }
  3912. /**
  3913. * Get the current PDO connection.
  3914. *
  3915. * @return \PDO
  3916. * @static
  3917. */
  3918. public static function getPdo()
  3919. {
  3920. //Method inherited from \Illuminate\Database\Connection
  3921. /** @var \Illuminate\Database\MySqlConnection $instance */
  3922. return $instance->getPdo();
  3923. }
  3924. /**
  3925. * Get the current PDO connection used for reading.
  3926. *
  3927. * @return \PDO
  3928. * @static
  3929. */
  3930. public static function getReadPdo()
  3931. {
  3932. //Method inherited from \Illuminate\Database\Connection
  3933. /** @var \Illuminate\Database\MySqlConnection $instance */
  3934. return $instance->getReadPdo();
  3935. }
  3936. /**
  3937. * Set the PDO connection.
  3938. *
  3939. * @param \PDO|\Closure|null $pdo
  3940. * @return \Illuminate\Database\MySqlConnection
  3941. * @static
  3942. */
  3943. public static function setPdo($pdo)
  3944. {
  3945. //Method inherited from \Illuminate\Database\Connection
  3946. /** @var \Illuminate\Database\MySqlConnection $instance */
  3947. return $instance->setPdo($pdo);
  3948. }
  3949. /**
  3950. * Set the PDO connection used for reading.
  3951. *
  3952. * @param \PDO|\Closure|null $pdo
  3953. * @return \Illuminate\Database\MySqlConnection
  3954. * @static
  3955. */
  3956. public static function setReadPdo($pdo)
  3957. {
  3958. //Method inherited from \Illuminate\Database\Connection
  3959. /** @var \Illuminate\Database\MySqlConnection $instance */
  3960. return $instance->setReadPdo($pdo);
  3961. }
  3962. /**
  3963. * Set the reconnect instance on the connection.
  3964. *
  3965. * @param callable $reconnector
  3966. * @return \Illuminate\Database\MySqlConnection
  3967. * @static
  3968. */
  3969. public static function setReconnector($reconnector)
  3970. {
  3971. //Method inherited from \Illuminate\Database\Connection
  3972. /** @var \Illuminate\Database\MySqlConnection $instance */
  3973. return $instance->setReconnector($reconnector);
  3974. }
  3975. /**
  3976. * Get the database connection name.
  3977. *
  3978. * @return string|null
  3979. * @static
  3980. */
  3981. public static function getName()
  3982. {
  3983. //Method inherited from \Illuminate\Database\Connection
  3984. /** @var \Illuminate\Database\MySqlConnection $instance */
  3985. return $instance->getName();
  3986. }
  3987. /**
  3988. * Get an option from the configuration options.
  3989. *
  3990. * @param string|null $option
  3991. * @return mixed
  3992. * @static
  3993. */
  3994. public static function getConfig($option = null)
  3995. {
  3996. //Method inherited from \Illuminate\Database\Connection
  3997. /** @var \Illuminate\Database\MySqlConnection $instance */
  3998. return $instance->getConfig($option);
  3999. }
  4000. /**
  4001. * Get the PDO driver name.
  4002. *
  4003. * @return string
  4004. * @static
  4005. */
  4006. public static function getDriverName()
  4007. {
  4008. //Method inherited from \Illuminate\Database\Connection
  4009. /** @var \Illuminate\Database\MySqlConnection $instance */
  4010. return $instance->getDriverName();
  4011. }
  4012. /**
  4013. * Get the query grammar used by the connection.
  4014. *
  4015. * @return \Illuminate\Database\Query\Grammars\Grammar
  4016. * @static
  4017. */
  4018. public static function getQueryGrammar()
  4019. {
  4020. //Method inherited from \Illuminate\Database\Connection
  4021. /** @var \Illuminate\Database\MySqlConnection $instance */
  4022. return $instance->getQueryGrammar();
  4023. }
  4024. /**
  4025. * Set the query grammar used by the connection.
  4026. *
  4027. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  4028. * @return void
  4029. * @static
  4030. */
  4031. public static function setQueryGrammar($grammar)
  4032. {
  4033. //Method inherited from \Illuminate\Database\Connection
  4034. /** @var \Illuminate\Database\MySqlConnection $instance */
  4035. $instance->setQueryGrammar($grammar);
  4036. }
  4037. /**
  4038. * Get the schema grammar used by the connection.
  4039. *
  4040. * @return \Illuminate\Database\Schema\Grammars\Grammar
  4041. * @static
  4042. */
  4043. public static function getSchemaGrammar()
  4044. {
  4045. //Method inherited from \Illuminate\Database\Connection
  4046. /** @var \Illuminate\Database\MySqlConnection $instance */
  4047. return $instance->getSchemaGrammar();
  4048. }
  4049. /**
  4050. * Set the schema grammar used by the connection.
  4051. *
  4052. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  4053. * @return void
  4054. * @static
  4055. */
  4056. public static function setSchemaGrammar($grammar)
  4057. {
  4058. //Method inherited from \Illuminate\Database\Connection
  4059. /** @var \Illuminate\Database\MySqlConnection $instance */
  4060. $instance->setSchemaGrammar($grammar);
  4061. }
  4062. /**
  4063. * Get the query post processor used by the connection.
  4064. *
  4065. * @return \Illuminate\Database\Query\Processors\Processor
  4066. * @static
  4067. */
  4068. public static function getPostProcessor()
  4069. {
  4070. //Method inherited from \Illuminate\Database\Connection
  4071. /** @var \Illuminate\Database\MySqlConnection $instance */
  4072. return $instance->getPostProcessor();
  4073. }
  4074. /**
  4075. * Set the query post processor used by the connection.
  4076. *
  4077. * @param \Illuminate\Database\Query\Processors\Processor $processor
  4078. * @return void
  4079. * @static
  4080. */
  4081. public static function setPostProcessor($processor)
  4082. {
  4083. //Method inherited from \Illuminate\Database\Connection
  4084. /** @var \Illuminate\Database\MySqlConnection $instance */
  4085. $instance->setPostProcessor($processor);
  4086. }
  4087. /**
  4088. * Get the event dispatcher used by the connection.
  4089. *
  4090. * @return \Illuminate\Contracts\Events\Dispatcher
  4091. * @static
  4092. */
  4093. public static function getEventDispatcher()
  4094. {
  4095. //Method inherited from \Illuminate\Database\Connection
  4096. /** @var \Illuminate\Database\MySqlConnection $instance */
  4097. return $instance->getEventDispatcher();
  4098. }
  4099. /**
  4100. * Set the event dispatcher instance on the connection.
  4101. *
  4102. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4103. * @return void
  4104. * @static
  4105. */
  4106. public static function setEventDispatcher($events)
  4107. {
  4108. //Method inherited from \Illuminate\Database\Connection
  4109. /** @var \Illuminate\Database\MySqlConnection $instance */
  4110. $instance->setEventDispatcher($events);
  4111. }
  4112. /**
  4113. * Determine if the connection in a "dry run".
  4114. *
  4115. * @return bool
  4116. * @static
  4117. */
  4118. public static function pretending()
  4119. {
  4120. //Method inherited from \Illuminate\Database\Connection
  4121. /** @var \Illuminate\Database\MySqlConnection $instance */
  4122. return $instance->pretending();
  4123. }
  4124. /**
  4125. * Get the connection query log.
  4126. *
  4127. * @return array
  4128. * @static
  4129. */
  4130. public static function getQueryLog()
  4131. {
  4132. //Method inherited from \Illuminate\Database\Connection
  4133. /** @var \Illuminate\Database\MySqlConnection $instance */
  4134. return $instance->getQueryLog();
  4135. }
  4136. /**
  4137. * Clear the query log.
  4138. *
  4139. * @return void
  4140. * @static
  4141. */
  4142. public static function flushQueryLog()
  4143. {
  4144. //Method inherited from \Illuminate\Database\Connection
  4145. /** @var \Illuminate\Database\MySqlConnection $instance */
  4146. $instance->flushQueryLog();
  4147. }
  4148. /**
  4149. * Enable the query log on the connection.
  4150. *
  4151. * @return void
  4152. * @static
  4153. */
  4154. public static function enableQueryLog()
  4155. {
  4156. //Method inherited from \Illuminate\Database\Connection
  4157. /** @var \Illuminate\Database\MySqlConnection $instance */
  4158. $instance->enableQueryLog();
  4159. }
  4160. /**
  4161. * Disable the query log on the connection.
  4162. *
  4163. * @return void
  4164. * @static
  4165. */
  4166. public static function disableQueryLog()
  4167. {
  4168. //Method inherited from \Illuminate\Database\Connection
  4169. /** @var \Illuminate\Database\MySqlConnection $instance */
  4170. $instance->disableQueryLog();
  4171. }
  4172. /**
  4173. * Determine whether we're logging queries.
  4174. *
  4175. * @return bool
  4176. * @static
  4177. */
  4178. public static function logging()
  4179. {
  4180. //Method inherited from \Illuminate\Database\Connection
  4181. /** @var \Illuminate\Database\MySqlConnection $instance */
  4182. return $instance->logging();
  4183. }
  4184. /**
  4185. * Get the name of the connected database.
  4186. *
  4187. * @return string
  4188. * @static
  4189. */
  4190. public static function getDatabaseName()
  4191. {
  4192. //Method inherited from \Illuminate\Database\Connection
  4193. /** @var \Illuminate\Database\MySqlConnection $instance */
  4194. return $instance->getDatabaseName();
  4195. }
  4196. /**
  4197. * Set the name of the connected database.
  4198. *
  4199. * @param string $database
  4200. * @return string
  4201. * @static
  4202. */
  4203. public static function setDatabaseName($database)
  4204. {
  4205. //Method inherited from \Illuminate\Database\Connection
  4206. /** @var \Illuminate\Database\MySqlConnection $instance */
  4207. return $instance->setDatabaseName($database);
  4208. }
  4209. /**
  4210. * Get the table prefix for the connection.
  4211. *
  4212. * @return string
  4213. * @static
  4214. */
  4215. public static function getTablePrefix()
  4216. {
  4217. //Method inherited from \Illuminate\Database\Connection
  4218. /** @var \Illuminate\Database\MySqlConnection $instance */
  4219. return $instance->getTablePrefix();
  4220. }
  4221. /**
  4222. * Set the table prefix in use by the connection.
  4223. *
  4224. * @param string $prefix
  4225. * @return void
  4226. * @static
  4227. */
  4228. public static function setTablePrefix($prefix)
  4229. {
  4230. //Method inherited from \Illuminate\Database\Connection
  4231. /** @var \Illuminate\Database\MySqlConnection $instance */
  4232. $instance->setTablePrefix($prefix);
  4233. }
  4234. /**
  4235. * Set the table prefix and return the grammar.
  4236. *
  4237. * @param \Illuminate\Database\Grammar $grammar
  4238. * @return \Illuminate\Database\Grammar
  4239. * @static
  4240. */
  4241. public static function withTablePrefix($grammar)
  4242. {
  4243. //Method inherited from \Illuminate\Database\Connection
  4244. /** @var \Illuminate\Database\MySqlConnection $instance */
  4245. return $instance->withTablePrefix($grammar);
  4246. }
  4247. /**
  4248. * Register a connection resolver.
  4249. *
  4250. * @param string $driver
  4251. * @param \Closure $callback
  4252. * @return void
  4253. * @static
  4254. */
  4255. public static function resolverFor($driver, $callback)
  4256. {
  4257. //Method inherited from \Illuminate\Database\Connection
  4258. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  4259. }
  4260. /**
  4261. * Get the connection resolver for the given driver.
  4262. *
  4263. * @param string $driver
  4264. * @return mixed
  4265. * @static
  4266. */
  4267. public static function getResolver($driver)
  4268. {
  4269. //Method inherited from \Illuminate\Database\Connection
  4270. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  4271. }
  4272. /**
  4273. * Execute a Closure within a transaction.
  4274. *
  4275. * @param \Closure $callback
  4276. * @param int $attempts
  4277. * @return mixed
  4278. * @throws \Exception|\Throwable
  4279. * @static
  4280. */
  4281. public static function transaction($callback, $attempts = 1)
  4282. {
  4283. //Method inherited from \Illuminate\Database\Connection
  4284. /** @var \Illuminate\Database\MySqlConnection $instance */
  4285. return $instance->transaction($callback, $attempts);
  4286. }
  4287. /**
  4288. * Start a new database transaction.
  4289. *
  4290. * @return void
  4291. * @throws \Exception
  4292. * @static
  4293. */
  4294. public static function beginTransaction()
  4295. {
  4296. //Method inherited from \Illuminate\Database\Connection
  4297. /** @var \Illuminate\Database\MySqlConnection $instance */
  4298. $instance->beginTransaction();
  4299. }
  4300. /**
  4301. * Commit the active database transaction.
  4302. *
  4303. * @return void
  4304. * @static
  4305. */
  4306. public static function commit()
  4307. {
  4308. //Method inherited from \Illuminate\Database\Connection
  4309. /** @var \Illuminate\Database\MySqlConnection $instance */
  4310. $instance->commit();
  4311. }
  4312. /**
  4313. * Rollback the active database transaction.
  4314. *
  4315. * @param int|null $toLevel
  4316. * @return void
  4317. * @static
  4318. */
  4319. public static function rollBack($toLevel = null)
  4320. {
  4321. //Method inherited from \Illuminate\Database\Connection
  4322. /** @var \Illuminate\Database\MySqlConnection $instance */
  4323. $instance->rollBack($toLevel);
  4324. }
  4325. /**
  4326. * Get the number of active transactions.
  4327. *
  4328. * @return int
  4329. * @static
  4330. */
  4331. public static function transactionLevel()
  4332. {
  4333. //Method inherited from \Illuminate\Database\Connection
  4334. /** @var \Illuminate\Database\MySqlConnection $instance */
  4335. return $instance->transactionLevel();
  4336. }
  4337. }
  4338. /**
  4339. *
  4340. *
  4341. * @see \Illuminate\Events\Dispatcher
  4342. */
  4343. class Event {
  4344. /**
  4345. * Register an event listener with the dispatcher.
  4346. *
  4347. * @param string|array $events
  4348. * @param mixed $listener
  4349. * @return void
  4350. * @static
  4351. */
  4352. public static function listen($events, $listener)
  4353. {
  4354. /** @var \Illuminate\Events\Dispatcher $instance */
  4355. $instance->listen($events, $listener);
  4356. }
  4357. /**
  4358. * Determine if a given event has listeners.
  4359. *
  4360. * @param string $eventName
  4361. * @return bool
  4362. * @static
  4363. */
  4364. public static function hasListeners($eventName)
  4365. {
  4366. /** @var \Illuminate\Events\Dispatcher $instance */
  4367. return $instance->hasListeners($eventName);
  4368. }
  4369. /**
  4370. * Register an event and payload to be fired later.
  4371. *
  4372. * @param string $event
  4373. * @param array $payload
  4374. * @return void
  4375. * @static
  4376. */
  4377. public static function push($event, $payload = [])
  4378. {
  4379. /** @var \Illuminate\Events\Dispatcher $instance */
  4380. $instance->push($event, $payload);
  4381. }
  4382. /**
  4383. * Flush a set of pushed events.
  4384. *
  4385. * @param string $event
  4386. * @return void
  4387. * @static
  4388. */
  4389. public static function flush($event)
  4390. {
  4391. /** @var \Illuminate\Events\Dispatcher $instance */
  4392. $instance->flush($event);
  4393. }
  4394. /**
  4395. * Register an event subscriber with the dispatcher.
  4396. *
  4397. * @param object|string $subscriber
  4398. * @return void
  4399. * @static
  4400. */
  4401. public static function subscribe($subscriber)
  4402. {
  4403. /** @var \Illuminate\Events\Dispatcher $instance */
  4404. $instance->subscribe($subscriber);
  4405. }
  4406. /**
  4407. * Fire an event until the first non-null response is returned.
  4408. *
  4409. * @param string|object $event
  4410. * @param mixed $payload
  4411. * @return array|null
  4412. * @static
  4413. */
  4414. public static function until($event, $payload = [])
  4415. {
  4416. /** @var \Illuminate\Events\Dispatcher $instance */
  4417. return $instance->until($event, $payload);
  4418. }
  4419. /**
  4420. * Fire an event and call the listeners.
  4421. *
  4422. * @param string|object $event
  4423. * @param mixed $payload
  4424. * @param bool $halt
  4425. * @return array|null
  4426. * @static
  4427. */
  4428. public static function fire($event, $payload = [], $halt = false)
  4429. {
  4430. /** @var \Illuminate\Events\Dispatcher $instance */
  4431. return $instance->fire($event, $payload, $halt);
  4432. }
  4433. /**
  4434. * Fire an event and call the listeners.
  4435. *
  4436. * @param string|object $event
  4437. * @param mixed $payload
  4438. * @param bool $halt
  4439. * @return array|null
  4440. * @static
  4441. */
  4442. public static function dispatch($event, $payload = [], $halt = false)
  4443. {
  4444. /** @var \Illuminate\Events\Dispatcher $instance */
  4445. return $instance->dispatch($event, $payload, $halt);
  4446. }
  4447. /**
  4448. * Get all of the listeners for a given event name.
  4449. *
  4450. * @param string $eventName
  4451. * @return array
  4452. * @static
  4453. */
  4454. public static function getListeners($eventName)
  4455. {
  4456. /** @var \Illuminate\Events\Dispatcher $instance */
  4457. return $instance->getListeners($eventName);
  4458. }
  4459. /**
  4460. * Register an event listener with the dispatcher.
  4461. *
  4462. * @param \Closure|string $listener
  4463. * @param bool $wildcard
  4464. * @return \Closure
  4465. * @static
  4466. */
  4467. public static function makeListener($listener, $wildcard = false)
  4468. {
  4469. /** @var \Illuminate\Events\Dispatcher $instance */
  4470. return $instance->makeListener($listener, $wildcard);
  4471. }
  4472. /**
  4473. * Create a class based listener using the IoC container.
  4474. *
  4475. * @param string $listener
  4476. * @param bool $wildcard
  4477. * @return \Closure
  4478. * @static
  4479. */
  4480. public static function createClassListener($listener, $wildcard = false)
  4481. {
  4482. /** @var \Illuminate\Events\Dispatcher $instance */
  4483. return $instance->createClassListener($listener, $wildcard);
  4484. }
  4485. /**
  4486. * Remove a set of listeners from the dispatcher.
  4487. *
  4488. * @param string $event
  4489. * @return void
  4490. * @static
  4491. */
  4492. public static function forget($event)
  4493. {
  4494. /** @var \Illuminate\Events\Dispatcher $instance */
  4495. $instance->forget($event);
  4496. }
  4497. /**
  4498. * Forget all of the pushed listeners.
  4499. *
  4500. * @return void
  4501. * @static
  4502. */
  4503. public static function forgetPushed()
  4504. {
  4505. /** @var \Illuminate\Events\Dispatcher $instance */
  4506. $instance->forgetPushed();
  4507. }
  4508. /**
  4509. * Set the queue resolver implementation.
  4510. *
  4511. * @param callable $resolver
  4512. * @return \Illuminate\Events\Dispatcher
  4513. * @static
  4514. */
  4515. public static function setQueueResolver($resolver)
  4516. {
  4517. /** @var \Illuminate\Events\Dispatcher $instance */
  4518. return $instance->setQueueResolver($resolver);
  4519. }
  4520. /**
  4521. * Assert if an event was dispatched based on a truth-test callback.
  4522. *
  4523. * @param string $event
  4524. * @param callable|int|null $callback
  4525. * @return void
  4526. * @static
  4527. */
  4528. public static function assertDispatched($event, $callback = null)
  4529. {
  4530. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4531. $instance->assertDispatched($event, $callback);
  4532. }
  4533. /**
  4534. * Assert if a event was dispatched a number of times.
  4535. *
  4536. * @param string $event
  4537. * @param int $times
  4538. * @return void
  4539. * @static
  4540. */
  4541. public static function assertDispatchedTimes($event, $times = 1)
  4542. {
  4543. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4544. $instance->assertDispatchedTimes($event, $times);
  4545. }
  4546. /**
  4547. * Determine if an event was dispatched based on a truth-test callback.
  4548. *
  4549. * @param string $event
  4550. * @param callable|null $callback
  4551. * @return void
  4552. * @static
  4553. */
  4554. public static function assertNotDispatched($event, $callback = null)
  4555. {
  4556. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4557. $instance->assertNotDispatched($event, $callback);
  4558. }
  4559. /**
  4560. * Get all of the events matching a truth-test callback.
  4561. *
  4562. * @param string $event
  4563. * @param callable|null $callback
  4564. * @return \Illuminate\Support\Collection
  4565. * @static
  4566. */
  4567. public static function dispatched($event, $callback = null)
  4568. {
  4569. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4570. return $instance->dispatched($event, $callback);
  4571. }
  4572. /**
  4573. * Determine if the given event has been dispatched.
  4574. *
  4575. * @param string $event
  4576. * @return bool
  4577. * @static
  4578. */
  4579. public static function hasDispatched($event)
  4580. {
  4581. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4582. return $instance->hasDispatched($event);
  4583. }
  4584. }
  4585. /**
  4586. *
  4587. *
  4588. * @see \Illuminate\Filesystem\Filesystem
  4589. */
  4590. class File {
  4591. /**
  4592. * Determine if a file or directory exists.
  4593. *
  4594. * @param string $path
  4595. * @return bool
  4596. * @static
  4597. */
  4598. public static function exists($path)
  4599. {
  4600. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4601. return $instance->exists($path);
  4602. }
  4603. /**
  4604. * Get the contents of a file.
  4605. *
  4606. * @param string $path
  4607. * @param bool $lock
  4608. * @return string
  4609. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4610. * @static
  4611. */
  4612. public static function get($path, $lock = false)
  4613. {
  4614. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4615. return $instance->get($path, $lock);
  4616. }
  4617. /**
  4618. * Get contents of a file with shared access.
  4619. *
  4620. * @param string $path
  4621. * @return string
  4622. * @static
  4623. */
  4624. public static function sharedGet($path)
  4625. {
  4626. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4627. return $instance->sharedGet($path);
  4628. }
  4629. /**
  4630. * Get the returned value of a file.
  4631. *
  4632. * @param string $path
  4633. * @return mixed
  4634. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4635. * @static
  4636. */
  4637. public static function getRequire($path)
  4638. {
  4639. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4640. return $instance->getRequire($path);
  4641. }
  4642. /**
  4643. * Require the given file once.
  4644. *
  4645. * @param string $file
  4646. * @return mixed
  4647. * @static
  4648. */
  4649. public static function requireOnce($file)
  4650. {
  4651. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4652. return $instance->requireOnce($file);
  4653. }
  4654. /**
  4655. * Get the MD5 hash of the file at the given path.
  4656. *
  4657. * @param string $path
  4658. * @return string
  4659. * @static
  4660. */
  4661. public static function hash($path)
  4662. {
  4663. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4664. return $instance->hash($path);
  4665. }
  4666. /**
  4667. * Write the contents of a file.
  4668. *
  4669. * @param string $path
  4670. * @param string $contents
  4671. * @param bool $lock
  4672. * @return int
  4673. * @static
  4674. */
  4675. public static function put($path, $contents, $lock = false)
  4676. {
  4677. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4678. return $instance->put($path, $contents, $lock);
  4679. }
  4680. /**
  4681. * Prepend to a file.
  4682. *
  4683. * @param string $path
  4684. * @param string $data
  4685. * @return int
  4686. * @static
  4687. */
  4688. public static function prepend($path, $data)
  4689. {
  4690. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4691. return $instance->prepend($path, $data);
  4692. }
  4693. /**
  4694. * Append to a file.
  4695. *
  4696. * @param string $path
  4697. * @param string $data
  4698. * @return int
  4699. * @static
  4700. */
  4701. public static function append($path, $data)
  4702. {
  4703. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4704. return $instance->append($path, $data);
  4705. }
  4706. /**
  4707. * Get or set UNIX mode of a file or directory.
  4708. *
  4709. * @param string $path
  4710. * @param int $mode
  4711. * @return mixed
  4712. * @static
  4713. */
  4714. public static function chmod($path, $mode = null)
  4715. {
  4716. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4717. return $instance->chmod($path, $mode);
  4718. }
  4719. /**
  4720. * Delete the file at a given path.
  4721. *
  4722. * @param string|array $paths
  4723. * @return bool
  4724. * @static
  4725. */
  4726. public static function delete($paths)
  4727. {
  4728. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4729. return $instance->delete($paths);
  4730. }
  4731. /**
  4732. * Move a file to a new location.
  4733. *
  4734. * @param string $path
  4735. * @param string $target
  4736. * @return bool
  4737. * @static
  4738. */
  4739. public static function move($path, $target)
  4740. {
  4741. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4742. return $instance->move($path, $target);
  4743. }
  4744. /**
  4745. * Copy a file to a new location.
  4746. *
  4747. * @param string $path
  4748. * @param string $target
  4749. * @return bool
  4750. * @static
  4751. */
  4752. public static function copy($path, $target)
  4753. {
  4754. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4755. return $instance->copy($path, $target);
  4756. }
  4757. /**
  4758. * Create a hard link to the target file or directory.
  4759. *
  4760. * @param string $target
  4761. * @param string $link
  4762. * @return void
  4763. * @static
  4764. */
  4765. public static function link($target, $link)
  4766. {
  4767. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4768. $instance->link($target, $link);
  4769. }
  4770. /**
  4771. * Extract the file name from a file path.
  4772. *
  4773. * @param string $path
  4774. * @return string
  4775. * @static
  4776. */
  4777. public static function name($path)
  4778. {
  4779. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4780. return $instance->name($path);
  4781. }
  4782. /**
  4783. * Extract the trailing name component from a file path.
  4784. *
  4785. * @param string $path
  4786. * @return string
  4787. * @static
  4788. */
  4789. public static function basename($path)
  4790. {
  4791. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4792. return $instance->basename($path);
  4793. }
  4794. /**
  4795. * Extract the parent directory from a file path.
  4796. *
  4797. * @param string $path
  4798. * @return string
  4799. * @static
  4800. */
  4801. public static function dirname($path)
  4802. {
  4803. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4804. return $instance->dirname($path);
  4805. }
  4806. /**
  4807. * Extract the file extension from a file path.
  4808. *
  4809. * @param string $path
  4810. * @return string
  4811. * @static
  4812. */
  4813. public static function extension($path)
  4814. {
  4815. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4816. return $instance->extension($path);
  4817. }
  4818. /**
  4819. * Get the file type of a given file.
  4820. *
  4821. * @param string $path
  4822. * @return string
  4823. * @static
  4824. */
  4825. public static function type($path)
  4826. {
  4827. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4828. return $instance->type($path);
  4829. }
  4830. /**
  4831. * Get the mime-type of a given file.
  4832. *
  4833. * @param string $path
  4834. * @return string|false
  4835. * @static
  4836. */
  4837. public static function mimeType($path)
  4838. {
  4839. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4840. return $instance->mimeType($path);
  4841. }
  4842. /**
  4843. * Get the file size of a given file.
  4844. *
  4845. * @param string $path
  4846. * @return int
  4847. * @static
  4848. */
  4849. public static function size($path)
  4850. {
  4851. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4852. return $instance->size($path);
  4853. }
  4854. /**
  4855. * Get the file's last modification time.
  4856. *
  4857. * @param string $path
  4858. * @return int
  4859. * @static
  4860. */
  4861. public static function lastModified($path)
  4862. {
  4863. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4864. return $instance->lastModified($path);
  4865. }
  4866. /**
  4867. * Determine if the given path is a directory.
  4868. *
  4869. * @param string $directory
  4870. * @return bool
  4871. * @static
  4872. */
  4873. public static function isDirectory($directory)
  4874. {
  4875. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4876. return $instance->isDirectory($directory);
  4877. }
  4878. /**
  4879. * Determine if the given path is readable.
  4880. *
  4881. * @param string $path
  4882. * @return bool
  4883. * @static
  4884. */
  4885. public static function isReadable($path)
  4886. {
  4887. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4888. return $instance->isReadable($path);
  4889. }
  4890. /**
  4891. * Determine if the given path is writable.
  4892. *
  4893. * @param string $path
  4894. * @return bool
  4895. * @static
  4896. */
  4897. public static function isWritable($path)
  4898. {
  4899. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4900. return $instance->isWritable($path);
  4901. }
  4902. /**
  4903. * Determine if the given path is a file.
  4904. *
  4905. * @param string $file
  4906. * @return bool
  4907. * @static
  4908. */
  4909. public static function isFile($file)
  4910. {
  4911. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4912. return $instance->isFile($file);
  4913. }
  4914. /**
  4915. * Find path names matching a given pattern.
  4916. *
  4917. * @param string $pattern
  4918. * @param int $flags
  4919. * @return array
  4920. * @static
  4921. */
  4922. public static function glob($pattern, $flags = 0)
  4923. {
  4924. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4925. return $instance->glob($pattern, $flags);
  4926. }
  4927. /**
  4928. * Get an array of all files in a directory.
  4929. *
  4930. * @param string $directory
  4931. * @param bool $hidden
  4932. * @return \Symfony\Component\Finder\SplFileInfo[]
  4933. * @static
  4934. */
  4935. public static function files($directory, $hidden = false)
  4936. {
  4937. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4938. return $instance->files($directory, $hidden);
  4939. }
  4940. /**
  4941. * Get all of the files from the given directory (recursive).
  4942. *
  4943. * @param string $directory
  4944. * @param bool $hidden
  4945. * @return \Symfony\Component\Finder\SplFileInfo[]
  4946. * @static
  4947. */
  4948. public static function allFiles($directory, $hidden = false)
  4949. {
  4950. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4951. return $instance->allFiles($directory, $hidden);
  4952. }
  4953. /**
  4954. * Get all of the directories within a given directory.
  4955. *
  4956. * @param string $directory
  4957. * @return array
  4958. * @static
  4959. */
  4960. public static function directories($directory)
  4961. {
  4962. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4963. return $instance->directories($directory);
  4964. }
  4965. /**
  4966. * Create a directory.
  4967. *
  4968. * @param string $path
  4969. * @param int $mode
  4970. * @param bool $recursive
  4971. * @param bool $force
  4972. * @return bool
  4973. * @static
  4974. */
  4975. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  4976. {
  4977. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4978. return $instance->makeDirectory($path, $mode, $recursive, $force);
  4979. }
  4980. /**
  4981. * Move a directory.
  4982. *
  4983. * @param string $from
  4984. * @param string $to
  4985. * @param bool $overwrite
  4986. * @return bool
  4987. * @static
  4988. */
  4989. public static function moveDirectory($from, $to, $overwrite = false)
  4990. {
  4991. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4992. return $instance->moveDirectory($from, $to, $overwrite);
  4993. }
  4994. /**
  4995. * Copy a directory from one location to another.
  4996. *
  4997. * @param string $directory
  4998. * @param string $destination
  4999. * @param int $options
  5000. * @return bool
  5001. * @static
  5002. */
  5003. public static function copyDirectory($directory, $destination, $options = null)
  5004. {
  5005. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5006. return $instance->copyDirectory($directory, $destination, $options);
  5007. }
  5008. /**
  5009. * Recursively delete a directory.
  5010. *
  5011. * The directory itself may be optionally preserved.
  5012. *
  5013. * @param string $directory
  5014. * @param bool $preserve
  5015. * @return bool
  5016. * @static
  5017. */
  5018. public static function deleteDirectory($directory, $preserve = false)
  5019. {
  5020. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5021. return $instance->deleteDirectory($directory, $preserve);
  5022. }
  5023. /**
  5024. * Empty the specified directory of all files and folders.
  5025. *
  5026. * @param string $directory
  5027. * @return bool
  5028. * @static
  5029. */
  5030. public static function cleanDirectory($directory)
  5031. {
  5032. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5033. return $instance->cleanDirectory($directory);
  5034. }
  5035. /**
  5036. * Register a custom macro.
  5037. *
  5038. * @param string $name
  5039. * @param object|callable $macro
  5040. * @return void
  5041. * @static
  5042. */
  5043. public static function macro($name, $macro)
  5044. {
  5045. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  5046. }
  5047. /**
  5048. * Mix another object into the class.
  5049. *
  5050. * @param object $mixin
  5051. * @return void
  5052. * @static
  5053. */
  5054. public static function mixin($mixin)
  5055. {
  5056. \Illuminate\Filesystem\Filesystem::mixin($mixin);
  5057. }
  5058. /**
  5059. * Checks if macro is registered.
  5060. *
  5061. * @param string $name
  5062. * @return bool
  5063. * @static
  5064. */
  5065. public static function hasMacro($name)
  5066. {
  5067. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  5068. }
  5069. }
  5070. /**
  5071. *
  5072. *
  5073. * @see \Illuminate\Contracts\Auth\Access\Gate
  5074. */
  5075. class Gate {
  5076. /**
  5077. * Determine if a given ability has been defined.
  5078. *
  5079. * @param string|array $ability
  5080. * @return bool
  5081. * @static
  5082. */
  5083. public static function has($ability)
  5084. {
  5085. /** @var \Illuminate\Auth\Access\Gate $instance */
  5086. return $instance->has($ability);
  5087. }
  5088. /**
  5089. * Define a new ability.
  5090. *
  5091. * @param string $ability
  5092. * @param callable|string $callback
  5093. * @return \Illuminate\Auth\Access\Gate
  5094. * @throws \InvalidArgumentException
  5095. * @static
  5096. */
  5097. public static function define($ability, $callback)
  5098. {
  5099. /** @var \Illuminate\Auth\Access\Gate $instance */
  5100. return $instance->define($ability, $callback);
  5101. }
  5102. /**
  5103. * Define abilities for a resource.
  5104. *
  5105. * @param string $name
  5106. * @param string $class
  5107. * @param array $abilities
  5108. * @return \Illuminate\Auth\Access\Gate
  5109. * @static
  5110. */
  5111. public static function resource($name, $class, $abilities = null)
  5112. {
  5113. /** @var \Illuminate\Auth\Access\Gate $instance */
  5114. return $instance->resource($name, $class, $abilities);
  5115. }
  5116. /**
  5117. * Define a policy class for a given class type.
  5118. *
  5119. * @param string $class
  5120. * @param string $policy
  5121. * @return \Illuminate\Auth\Access\Gate
  5122. * @static
  5123. */
  5124. public static function policy($class, $policy)
  5125. {
  5126. /** @var \Illuminate\Auth\Access\Gate $instance */
  5127. return $instance->policy($class, $policy);
  5128. }
  5129. /**
  5130. * Register a callback to run before all Gate checks.
  5131. *
  5132. * @param callable $callback
  5133. * @return \Illuminate\Auth\Access\Gate
  5134. * @static
  5135. */
  5136. public static function before($callback)
  5137. {
  5138. /** @var \Illuminate\Auth\Access\Gate $instance */
  5139. return $instance->before($callback);
  5140. }
  5141. /**
  5142. * Register a callback to run after all Gate checks.
  5143. *
  5144. * @param callable $callback
  5145. * @return \Illuminate\Auth\Access\Gate
  5146. * @static
  5147. */
  5148. public static function after($callback)
  5149. {
  5150. /** @var \Illuminate\Auth\Access\Gate $instance */
  5151. return $instance->after($callback);
  5152. }
  5153. /**
  5154. * Determine if the given ability should be granted for the current user.
  5155. *
  5156. * @param string $ability
  5157. * @param array|mixed $arguments
  5158. * @return bool
  5159. * @static
  5160. */
  5161. public static function allows($ability, $arguments = [])
  5162. {
  5163. /** @var \Illuminate\Auth\Access\Gate $instance */
  5164. return $instance->allows($ability, $arguments);
  5165. }
  5166. /**
  5167. * Determine if the given ability should be denied for the current user.
  5168. *
  5169. * @param string $ability
  5170. * @param array|mixed $arguments
  5171. * @return bool
  5172. * @static
  5173. */
  5174. public static function denies($ability, $arguments = [])
  5175. {
  5176. /** @var \Illuminate\Auth\Access\Gate $instance */
  5177. return $instance->denies($ability, $arguments);
  5178. }
  5179. /**
  5180. * Determine if all of the given abilities should be granted for the current user.
  5181. *
  5182. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5183. * @param array|mixed $arguments
  5184. * @return bool
  5185. * @static
  5186. */
  5187. public static function check($abilities, $arguments = [])
  5188. {
  5189. /** @var \Illuminate\Auth\Access\Gate $instance */
  5190. return $instance->check($abilities, $arguments);
  5191. }
  5192. /**
  5193. * Determine if any one of the given abilities should be granted for the current user.
  5194. *
  5195. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5196. * @param array|mixed $arguments
  5197. * @return bool
  5198. * @static
  5199. */
  5200. public static function any($abilities, $arguments = [])
  5201. {
  5202. /** @var \Illuminate\Auth\Access\Gate $instance */
  5203. return $instance->any($abilities, $arguments);
  5204. }
  5205. /**
  5206. * Determine if the given ability should be granted for the current user.
  5207. *
  5208. * @param string $ability
  5209. * @param array|mixed $arguments
  5210. * @return \Illuminate\Auth\Access\Response
  5211. * @throws \Illuminate\Auth\Access\AuthorizationException
  5212. * @static
  5213. */
  5214. public static function authorize($ability, $arguments = [])
  5215. {
  5216. /** @var \Illuminate\Auth\Access\Gate $instance */
  5217. return $instance->authorize($ability, $arguments);
  5218. }
  5219. /**
  5220. * Get a policy instance for a given class.
  5221. *
  5222. * @param object|string $class
  5223. * @return mixed
  5224. * @static
  5225. */
  5226. public static function getPolicyFor($class)
  5227. {
  5228. /** @var \Illuminate\Auth\Access\Gate $instance */
  5229. return $instance->getPolicyFor($class);
  5230. }
  5231. /**
  5232. * Build a policy class instance of the given type.
  5233. *
  5234. * @param object|string $class
  5235. * @return mixed
  5236. * @static
  5237. */
  5238. public static function resolvePolicy($class)
  5239. {
  5240. /** @var \Illuminate\Auth\Access\Gate $instance */
  5241. return $instance->resolvePolicy($class);
  5242. }
  5243. /**
  5244. * Get a gate instance for the given user.
  5245. *
  5246. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  5247. * @return static
  5248. * @static
  5249. */
  5250. public static function forUser($user)
  5251. {
  5252. /** @var \Illuminate\Auth\Access\Gate $instance */
  5253. return $instance->forUser($user);
  5254. }
  5255. /**
  5256. * Get all of the defined abilities.
  5257. *
  5258. * @return array
  5259. * @static
  5260. */
  5261. public static function abilities()
  5262. {
  5263. /** @var \Illuminate\Auth\Access\Gate $instance */
  5264. return $instance->abilities();
  5265. }
  5266. /**
  5267. * Get all of the defined policies.
  5268. *
  5269. * @return array
  5270. * @static
  5271. */
  5272. public static function policies()
  5273. {
  5274. /** @var \Illuminate\Auth\Access\Gate $instance */
  5275. return $instance->policies();
  5276. }
  5277. }
  5278. /**
  5279. *
  5280. *
  5281. * @see \Illuminate\Hashing\BcryptHasher
  5282. */
  5283. class Hash {
  5284. /**
  5285. * Hash the given value.
  5286. *
  5287. * @param string $value
  5288. * @param array $options
  5289. * @return string
  5290. * @throws \RuntimeException
  5291. * @static
  5292. */
  5293. public static function make($value, $options = [])
  5294. {
  5295. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5296. return $instance->make($value, $options);
  5297. }
  5298. /**
  5299. * Check the given plain value against a hash.
  5300. *
  5301. * @param string $value
  5302. * @param string $hashedValue
  5303. * @param array $options
  5304. * @return bool
  5305. * @static
  5306. */
  5307. public static function check($value, $hashedValue, $options = [])
  5308. {
  5309. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5310. return $instance->check($value, $hashedValue, $options);
  5311. }
  5312. /**
  5313. * Check if the given hash has been hashed using the given options.
  5314. *
  5315. * @param string $hashedValue
  5316. * @param array $options
  5317. * @return bool
  5318. * @static
  5319. */
  5320. public static function needsRehash($hashedValue, $options = [])
  5321. {
  5322. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5323. return $instance->needsRehash($hashedValue, $options);
  5324. }
  5325. /**
  5326. * Set the default password work factor.
  5327. *
  5328. * @param int $rounds
  5329. * @return \Illuminate\Hashing\BcryptHasher
  5330. * @static
  5331. */
  5332. public static function setRounds($rounds)
  5333. {
  5334. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5335. return $instance->setRounds($rounds);
  5336. }
  5337. }
  5338. /**
  5339. *
  5340. *
  5341. * @see \Illuminate\Translation\Translator
  5342. */
  5343. class Lang {
  5344. /**
  5345. * Determine if a translation exists for a given locale.
  5346. *
  5347. * @param string $key
  5348. * @param string|null $locale
  5349. * @return bool
  5350. * @static
  5351. */
  5352. public static function hasForLocale($key, $locale = null)
  5353. {
  5354. /** @var \Illuminate\Translation\Translator $instance */
  5355. return $instance->hasForLocale($key, $locale);
  5356. }
  5357. /**
  5358. * Determine if a translation exists.
  5359. *
  5360. * @param string $key
  5361. * @param string|null $locale
  5362. * @param bool $fallback
  5363. * @return bool
  5364. * @static
  5365. */
  5366. public static function has($key, $locale = null, $fallback = true)
  5367. {
  5368. /** @var \Illuminate\Translation\Translator $instance */
  5369. return $instance->has($key, $locale, $fallback);
  5370. }
  5371. /**
  5372. * Get the translation for a given key.
  5373. *
  5374. * @param string $key
  5375. * @param array $replace
  5376. * @param string $locale
  5377. * @return string|array|null
  5378. * @static
  5379. */
  5380. public static function trans($key, $replace = [], $locale = null)
  5381. {
  5382. /** @var \Illuminate\Translation\Translator $instance */
  5383. return $instance->trans($key, $replace, $locale);
  5384. }
  5385. /**
  5386. * Get the translation for the given key.
  5387. *
  5388. * @param string $key
  5389. * @param array $replace
  5390. * @param string|null $locale
  5391. * @param bool $fallback
  5392. * @return string|array|null
  5393. * @static
  5394. */
  5395. public static function get($key, $replace = [], $locale = null, $fallback = true)
  5396. {
  5397. /** @var \Illuminate\Translation\Translator $instance */
  5398. return $instance->get($key, $replace, $locale, $fallback);
  5399. }
  5400. /**
  5401. * Get the translation for a given key from the JSON translation files.
  5402. *
  5403. * @param string $key
  5404. * @param array $replace
  5405. * @param string $locale
  5406. * @return string|array|null
  5407. * @static
  5408. */
  5409. public static function getFromJson($key, $replace = [], $locale = null)
  5410. {
  5411. /** @var \Illuminate\Translation\Translator $instance */
  5412. return $instance->getFromJson($key, $replace, $locale);
  5413. }
  5414. /**
  5415. * Get a translation according to an integer value.
  5416. *
  5417. * @param string $key
  5418. * @param int|array|\Countable $number
  5419. * @param array $replace
  5420. * @param string $locale
  5421. * @return string
  5422. * @static
  5423. */
  5424. public static function transChoice($key, $number, $replace = [], $locale = null)
  5425. {
  5426. /** @var \Illuminate\Translation\Translator $instance */
  5427. return $instance->transChoice($key, $number, $replace, $locale);
  5428. }
  5429. /**
  5430. * Get a translation according to an integer value.
  5431. *
  5432. * @param string $key
  5433. * @param int|array|\Countable $number
  5434. * @param array $replace
  5435. * @param string $locale
  5436. * @return string
  5437. * @static
  5438. */
  5439. public static function choice($key, $number, $replace = [], $locale = null)
  5440. {
  5441. /** @var \Illuminate\Translation\Translator $instance */
  5442. return $instance->choice($key, $number, $replace, $locale);
  5443. }
  5444. /**
  5445. * Add translation lines to the given locale.
  5446. *
  5447. * @param array $lines
  5448. * @param string $locale
  5449. * @param string $namespace
  5450. * @return void
  5451. * @static
  5452. */
  5453. public static function addLines($lines, $locale, $namespace = '*')
  5454. {
  5455. /** @var \Illuminate\Translation\Translator $instance */
  5456. $instance->addLines($lines, $locale, $namespace);
  5457. }
  5458. /**
  5459. * Load the specified language group.
  5460. *
  5461. * @param string $namespace
  5462. * @param string $group
  5463. * @param string $locale
  5464. * @return void
  5465. * @static
  5466. */
  5467. public static function load($namespace, $group, $locale)
  5468. {
  5469. /** @var \Illuminate\Translation\Translator $instance */
  5470. $instance->load($namespace, $group, $locale);
  5471. }
  5472. /**
  5473. * Add a new namespace to the loader.
  5474. *
  5475. * @param string $namespace
  5476. * @param string $hint
  5477. * @return void
  5478. * @static
  5479. */
  5480. public static function addNamespace($namespace, $hint)
  5481. {
  5482. /** @var \Illuminate\Translation\Translator $instance */
  5483. $instance->addNamespace($namespace, $hint);
  5484. }
  5485. /**
  5486. * Add a new JSON path to the loader.
  5487. *
  5488. * @param string $path
  5489. * @return void
  5490. * @static
  5491. */
  5492. public static function addJsonPath($path)
  5493. {
  5494. /** @var \Illuminate\Translation\Translator $instance */
  5495. $instance->addJsonPath($path);
  5496. }
  5497. /**
  5498. * Parse a key into namespace, group, and item.
  5499. *
  5500. * @param string $key
  5501. * @return array
  5502. * @static
  5503. */
  5504. public static function parseKey($key)
  5505. {
  5506. /** @var \Illuminate\Translation\Translator $instance */
  5507. return $instance->parseKey($key);
  5508. }
  5509. /**
  5510. * Get the message selector instance.
  5511. *
  5512. * @return \Illuminate\Translation\MessageSelector
  5513. * @static
  5514. */
  5515. public static function getSelector()
  5516. {
  5517. /** @var \Illuminate\Translation\Translator $instance */
  5518. return $instance->getSelector();
  5519. }
  5520. /**
  5521. * Set the message selector instance.
  5522. *
  5523. * @param \Illuminate\Translation\MessageSelector $selector
  5524. * @return void
  5525. * @static
  5526. */
  5527. public static function setSelector($selector)
  5528. {
  5529. /** @var \Illuminate\Translation\Translator $instance */
  5530. $instance->setSelector($selector);
  5531. }
  5532. /**
  5533. * Get the language line loader implementation.
  5534. *
  5535. * @return \Illuminate\Contracts\Translation\Loader
  5536. * @static
  5537. */
  5538. public static function getLoader()
  5539. {
  5540. /** @var \Illuminate\Translation\Translator $instance */
  5541. return $instance->getLoader();
  5542. }
  5543. /**
  5544. * Get the default locale being used.
  5545. *
  5546. * @return string
  5547. * @static
  5548. */
  5549. public static function locale()
  5550. {
  5551. /** @var \Illuminate\Translation\Translator $instance */
  5552. return $instance->locale();
  5553. }
  5554. /**
  5555. * Get the default locale being used.
  5556. *
  5557. * @return string
  5558. * @static
  5559. */
  5560. public static function getLocale()
  5561. {
  5562. /** @var \Illuminate\Translation\Translator $instance */
  5563. return $instance->getLocale();
  5564. }
  5565. /**
  5566. * Set the default locale.
  5567. *
  5568. * @param string $locale
  5569. * @return void
  5570. * @static
  5571. */
  5572. public static function setLocale($locale)
  5573. {
  5574. /** @var \Illuminate\Translation\Translator $instance */
  5575. $instance->setLocale($locale);
  5576. }
  5577. /**
  5578. * Get the fallback locale being used.
  5579. *
  5580. * @return string
  5581. * @static
  5582. */
  5583. public static function getFallback()
  5584. {
  5585. /** @var \Illuminate\Translation\Translator $instance */
  5586. return $instance->getFallback();
  5587. }
  5588. /**
  5589. * Set the fallback locale being used.
  5590. *
  5591. * @param string $fallback
  5592. * @return void
  5593. * @static
  5594. */
  5595. public static function setFallback($fallback)
  5596. {
  5597. /** @var \Illuminate\Translation\Translator $instance */
  5598. $instance->setFallback($fallback);
  5599. }
  5600. /**
  5601. * Set the parsed value of a key.
  5602. *
  5603. * @param string $key
  5604. * @param array $parsed
  5605. * @return void
  5606. * @static
  5607. */
  5608. public static function setParsedKey($key, $parsed)
  5609. {
  5610. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  5611. /** @var \Illuminate\Translation\Translator $instance */
  5612. $instance->setParsedKey($key, $parsed);
  5613. }
  5614. /**
  5615. * Register a custom macro.
  5616. *
  5617. * @param string $name
  5618. * @param object|callable $macro
  5619. * @return void
  5620. * @static
  5621. */
  5622. public static function macro($name, $macro)
  5623. {
  5624. \Illuminate\Translation\Translator::macro($name, $macro);
  5625. }
  5626. /**
  5627. * Mix another object into the class.
  5628. *
  5629. * @param object $mixin
  5630. * @return void
  5631. * @static
  5632. */
  5633. public static function mixin($mixin)
  5634. {
  5635. \Illuminate\Translation\Translator::mixin($mixin);
  5636. }
  5637. /**
  5638. * Checks if macro is registered.
  5639. *
  5640. * @param string $name
  5641. * @return bool
  5642. * @static
  5643. */
  5644. public static function hasMacro($name)
  5645. {
  5646. return \Illuminate\Translation\Translator::hasMacro($name);
  5647. }
  5648. }
  5649. /**
  5650. *
  5651. *
  5652. * @see \Illuminate\Log\Writer
  5653. */
  5654. class Log {
  5655. /**
  5656. * Log an emergency message to the logs.
  5657. *
  5658. * @param string $message
  5659. * @param array $context
  5660. * @return void
  5661. * @static
  5662. */
  5663. public static function emergency($message, $context = [])
  5664. {
  5665. /** @var \Illuminate\Log\Writer $instance */
  5666. $instance->emergency($message, $context);
  5667. }
  5668. /**
  5669. * Log an alert message to the logs.
  5670. *
  5671. * @param string $message
  5672. * @param array $context
  5673. * @return void
  5674. * @static
  5675. */
  5676. public static function alert($message, $context = [])
  5677. {
  5678. /** @var \Illuminate\Log\Writer $instance */
  5679. $instance->alert($message, $context);
  5680. }
  5681. /**
  5682. * Log a critical message to the logs.
  5683. *
  5684. * @param string $message
  5685. * @param array $context
  5686. * @return void
  5687. * @static
  5688. */
  5689. public static function critical($message, $context = [])
  5690. {
  5691. /** @var \Illuminate\Log\Writer $instance */
  5692. $instance->critical($message, $context);
  5693. }
  5694. /**
  5695. * Log an error message to the logs.
  5696. *
  5697. * @param string $message
  5698. * @param array $context
  5699. * @return void
  5700. * @static
  5701. */
  5702. public static function error($message, $context = [])
  5703. {
  5704. /** @var \Illuminate\Log\Writer $instance */
  5705. $instance->error($message, $context);
  5706. }
  5707. /**
  5708. * Log a warning message to the logs.
  5709. *
  5710. * @param string $message
  5711. * @param array $context
  5712. * @return void
  5713. * @static
  5714. */
  5715. public static function warning($message, $context = [])
  5716. {
  5717. /** @var \Illuminate\Log\Writer $instance */
  5718. $instance->warning($message, $context);
  5719. }
  5720. /**
  5721. * Log a notice to the logs.
  5722. *
  5723. * @param string $message
  5724. * @param array $context
  5725. * @return void
  5726. * @static
  5727. */
  5728. public static function notice($message, $context = [])
  5729. {
  5730. /** @var \Illuminate\Log\Writer $instance */
  5731. $instance->notice($message, $context);
  5732. }
  5733. /**
  5734. * Log an informational message to the logs.
  5735. *
  5736. * @param string $message
  5737. * @param array $context
  5738. * @return void
  5739. * @static
  5740. */
  5741. public static function info($message, $context = [])
  5742. {
  5743. /** @var \Illuminate\Log\Writer $instance */
  5744. $instance->info($message, $context);
  5745. }
  5746. /**
  5747. * Log a debug message to the logs.
  5748. *
  5749. * @param string $message
  5750. * @param array $context
  5751. * @return void
  5752. * @static
  5753. */
  5754. public static function debug($message, $context = [])
  5755. {
  5756. /** @var \Illuminate\Log\Writer $instance */
  5757. $instance->debug($message, $context);
  5758. }
  5759. /**
  5760. * Log a message to the logs.
  5761. *
  5762. * @param string $level
  5763. * @param string $message
  5764. * @param array $context
  5765. * @return void
  5766. * @static
  5767. */
  5768. public static function log($level, $message, $context = [])
  5769. {
  5770. /** @var \Illuminate\Log\Writer $instance */
  5771. $instance->log($level, $message, $context);
  5772. }
  5773. /**
  5774. * Dynamically pass log calls into the writer.
  5775. *
  5776. * @param string $level
  5777. * @param string $message
  5778. * @param array $context
  5779. * @return void
  5780. * @static
  5781. */
  5782. public static function write($level, $message, $context = [])
  5783. {
  5784. /** @var \Illuminate\Log\Writer $instance */
  5785. $instance->write($level, $message, $context);
  5786. }
  5787. /**
  5788. * Register a file log handler.
  5789. *
  5790. * @param string $path
  5791. * @param string $level
  5792. * @return void
  5793. * @static
  5794. */
  5795. public static function useFiles($path, $level = 'debug')
  5796. {
  5797. /** @var \Illuminate\Log\Writer $instance */
  5798. $instance->useFiles($path, $level);
  5799. }
  5800. /**
  5801. * Register a daily file log handler.
  5802. *
  5803. * @param string $path
  5804. * @param int $days
  5805. * @param string $level
  5806. * @return void
  5807. * @static
  5808. */
  5809. public static function useDailyFiles($path, $days = 0, $level = 'debug')
  5810. {
  5811. /** @var \Illuminate\Log\Writer $instance */
  5812. $instance->useDailyFiles($path, $days, $level);
  5813. }
  5814. /**
  5815. * Register a Syslog handler.
  5816. *
  5817. * @param string $name
  5818. * @param string $level
  5819. * @param mixed $facility
  5820. * @return \Psr\Log\LoggerInterface
  5821. * @static
  5822. */
  5823. public static function useSyslog($name = 'laravel', $level = 'debug', $facility = 8)
  5824. {
  5825. /** @var \Illuminate\Log\Writer $instance */
  5826. return $instance->useSyslog($name, $level, $facility);
  5827. }
  5828. /**
  5829. * Register an error_log handler.
  5830. *
  5831. * @param string $level
  5832. * @param int $messageType
  5833. * @return void
  5834. * @static
  5835. */
  5836. public static function useErrorLog($level = 'debug', $messageType = 0)
  5837. {
  5838. /** @var \Illuminate\Log\Writer $instance */
  5839. $instance->useErrorLog($level, $messageType);
  5840. }
  5841. /**
  5842. * Register a new callback handler for when a log event is triggered.
  5843. *
  5844. * @param \Closure $callback
  5845. * @return void
  5846. * @throws \RuntimeException
  5847. * @static
  5848. */
  5849. public static function listen($callback)
  5850. {
  5851. /** @var \Illuminate\Log\Writer $instance */
  5852. $instance->listen($callback);
  5853. }
  5854. /**
  5855. * Get the underlying Monolog instance.
  5856. *
  5857. * @return \Monolog\Logger
  5858. * @static
  5859. */
  5860. public static function getMonolog()
  5861. {
  5862. /** @var \Illuminate\Log\Writer $instance */
  5863. return $instance->getMonolog();
  5864. }
  5865. /**
  5866. * Get the event dispatcher instance.
  5867. *
  5868. * @return \Illuminate\Contracts\Events\Dispatcher
  5869. * @static
  5870. */
  5871. public static function getEventDispatcher()
  5872. {
  5873. /** @var \Illuminate\Log\Writer $instance */
  5874. return $instance->getEventDispatcher();
  5875. }
  5876. /**
  5877. * Set the event dispatcher instance.
  5878. *
  5879. * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher
  5880. * @return void
  5881. * @static
  5882. */
  5883. public static function setEventDispatcher($dispatcher)
  5884. {
  5885. /** @var \Illuminate\Log\Writer $instance */
  5886. $instance->setEventDispatcher($dispatcher);
  5887. }
  5888. }
  5889. /**
  5890. *
  5891. *
  5892. * @see \Illuminate\Mail\Mailer
  5893. */
  5894. class Mail {
  5895. /**
  5896. * Set the global from address and name.
  5897. *
  5898. * @param string $address
  5899. * @param string|null $name
  5900. * @return void
  5901. * @static
  5902. */
  5903. public static function alwaysFrom($address, $name = null)
  5904. {
  5905. /** @var \Illuminate\Mail\Mailer $instance */
  5906. $instance->alwaysFrom($address, $name);
  5907. }
  5908. /**
  5909. * Set the global reply-to address and name.
  5910. *
  5911. * @param string $address
  5912. * @param string|null $name
  5913. * @return void
  5914. * @static
  5915. */
  5916. public static function alwaysReplyTo($address, $name = null)
  5917. {
  5918. /** @var \Illuminate\Mail\Mailer $instance */
  5919. $instance->alwaysReplyTo($address, $name);
  5920. }
  5921. /**
  5922. * Set the global to address and name.
  5923. *
  5924. * @param string $address
  5925. * @param string|null $name
  5926. * @return void
  5927. * @static
  5928. */
  5929. public static function alwaysTo($address, $name = null)
  5930. {
  5931. /** @var \Illuminate\Mail\Mailer $instance */
  5932. $instance->alwaysTo($address, $name);
  5933. }
  5934. /**
  5935. * Begin the process of mailing a mailable class instance.
  5936. *
  5937. * @param mixed $users
  5938. * @return \Illuminate\Mail\PendingMail
  5939. * @static
  5940. */
  5941. public static function to($users)
  5942. {
  5943. /** @var \Illuminate\Mail\Mailer $instance */
  5944. return $instance->to($users);
  5945. }
  5946. /**
  5947. * Begin the process of mailing a mailable class instance.
  5948. *
  5949. * @param mixed $users
  5950. * @return \Illuminate\Mail\PendingMail
  5951. * @static
  5952. */
  5953. public static function bcc($users)
  5954. {
  5955. /** @var \Illuminate\Mail\Mailer $instance */
  5956. return $instance->bcc($users);
  5957. }
  5958. /**
  5959. * Send a new message when only a raw text part.
  5960. *
  5961. * @param string $text
  5962. * @param mixed $callback
  5963. * @return void
  5964. * @static
  5965. */
  5966. public static function raw($text, $callback)
  5967. {
  5968. /** @var \Illuminate\Mail\Mailer $instance */
  5969. $instance->raw($text, $callback);
  5970. }
  5971. /**
  5972. * Send a new message when only a plain part.
  5973. *
  5974. * @param string $view
  5975. * @param array $data
  5976. * @param mixed $callback
  5977. * @return void
  5978. * @static
  5979. */
  5980. public static function plain($view, $data, $callback)
  5981. {
  5982. /** @var \Illuminate\Mail\Mailer $instance */
  5983. $instance->plain($view, $data, $callback);
  5984. }
  5985. /**
  5986. * Render the given message as a view.
  5987. *
  5988. * @param string|array $view
  5989. * @param array $data
  5990. * @return string
  5991. * @static
  5992. */
  5993. public static function render($view, $data = [])
  5994. {
  5995. /** @var \Illuminate\Mail\Mailer $instance */
  5996. return $instance->render($view, $data);
  5997. }
  5998. /**
  5999. * Send a new message using a view.
  6000. *
  6001. * @param string|array|\Illuminate\Mail\MailableContract $view
  6002. * @param array $data
  6003. * @param \Closure|string $callback
  6004. * @return void
  6005. * @static
  6006. */
  6007. public static function send($view, $data = [], $callback = null)
  6008. {
  6009. /** @var \Illuminate\Mail\Mailer $instance */
  6010. $instance->send($view, $data, $callback);
  6011. }
  6012. /**
  6013. * Queue a new e-mail message for sending.
  6014. *
  6015. * @param string|array|\Illuminate\Mail\MailableContract $view
  6016. * @param string|null $queue
  6017. * @return mixed
  6018. * @static
  6019. */
  6020. public static function queue($view, $queue = null)
  6021. {
  6022. /** @var \Illuminate\Mail\Mailer $instance */
  6023. return $instance->queue($view, $queue);
  6024. }
  6025. /**
  6026. * Queue a new e-mail message for sending on the given queue.
  6027. *
  6028. * @param string $queue
  6029. * @param string|array $view
  6030. * @return mixed
  6031. * @static
  6032. */
  6033. public static function onQueue($queue, $view)
  6034. {
  6035. /** @var \Illuminate\Mail\Mailer $instance */
  6036. return $instance->onQueue($queue, $view);
  6037. }
  6038. /**
  6039. * Queue a new e-mail message for sending on the given queue.
  6040. *
  6041. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  6042. *
  6043. * @param string $queue
  6044. * @param string|array $view
  6045. * @return mixed
  6046. * @static
  6047. */
  6048. public static function queueOn($queue, $view)
  6049. {
  6050. /** @var \Illuminate\Mail\Mailer $instance */
  6051. return $instance->queueOn($queue, $view);
  6052. }
  6053. /**
  6054. * Queue a new e-mail message for sending after (n) seconds.
  6055. *
  6056. * @param \DateTimeInterface|\DateInterval|int $delay
  6057. * @param string|array|\Illuminate\Mail\MailableContract $view
  6058. * @param string|null $queue
  6059. * @return mixed
  6060. * @static
  6061. */
  6062. public static function later($delay, $view, $queue = null)
  6063. {
  6064. /** @var \Illuminate\Mail\Mailer $instance */
  6065. return $instance->later($delay, $view, $queue);
  6066. }
  6067. /**
  6068. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  6069. *
  6070. * @param string $queue
  6071. * @param \DateTimeInterface|\DateInterval|int $delay
  6072. * @param string|array $view
  6073. * @return mixed
  6074. * @static
  6075. */
  6076. public static function laterOn($queue, $delay, $view)
  6077. {
  6078. /** @var \Illuminate\Mail\Mailer $instance */
  6079. return $instance->laterOn($queue, $delay, $view);
  6080. }
  6081. /**
  6082. * Get the view factory instance.
  6083. *
  6084. * @return \Illuminate\Contracts\View\Factory
  6085. * @static
  6086. */
  6087. public static function getViewFactory()
  6088. {
  6089. /** @var \Illuminate\Mail\Mailer $instance */
  6090. return $instance->getViewFactory();
  6091. }
  6092. /**
  6093. * Get the Swift Mailer instance.
  6094. *
  6095. * @return \Swift_Mailer
  6096. * @static
  6097. */
  6098. public static function getSwiftMailer()
  6099. {
  6100. /** @var \Illuminate\Mail\Mailer $instance */
  6101. return $instance->getSwiftMailer();
  6102. }
  6103. /**
  6104. * Get the array of failed recipients.
  6105. *
  6106. * @return array
  6107. * @static
  6108. */
  6109. public static function failures()
  6110. {
  6111. /** @var \Illuminate\Mail\Mailer $instance */
  6112. return $instance->failures();
  6113. }
  6114. /**
  6115. * Set the Swift Mailer instance.
  6116. *
  6117. * @param \Swift_Mailer $swift
  6118. * @return void
  6119. * @static
  6120. */
  6121. public static function setSwiftMailer($swift)
  6122. {
  6123. /** @var \Illuminate\Mail\Mailer $instance */
  6124. $instance->setSwiftMailer($swift);
  6125. }
  6126. /**
  6127. * Set the queue manager instance.
  6128. *
  6129. * @param \Illuminate\Contracts\Queue\Factory $queue
  6130. * @return \Illuminate\Mail\Mailer
  6131. * @static
  6132. */
  6133. public static function setQueue($queue)
  6134. {
  6135. /** @var \Illuminate\Mail\Mailer $instance */
  6136. return $instance->setQueue($queue);
  6137. }
  6138. /**
  6139. * Register a custom macro.
  6140. *
  6141. * @param string $name
  6142. * @param object|callable $macro
  6143. * @return void
  6144. * @static
  6145. */
  6146. public static function macro($name, $macro)
  6147. {
  6148. \Illuminate\Mail\Mailer::macro($name, $macro);
  6149. }
  6150. /**
  6151. * Mix another object into the class.
  6152. *
  6153. * @param object $mixin
  6154. * @return void
  6155. * @static
  6156. */
  6157. public static function mixin($mixin)
  6158. {
  6159. \Illuminate\Mail\Mailer::mixin($mixin);
  6160. }
  6161. /**
  6162. * Checks if macro is registered.
  6163. *
  6164. * @param string $name
  6165. * @return bool
  6166. * @static
  6167. */
  6168. public static function hasMacro($name)
  6169. {
  6170. return \Illuminate\Mail\Mailer::hasMacro($name);
  6171. }
  6172. /**
  6173. * Assert if a mailable was sent based on a truth-test callback.
  6174. *
  6175. * @param string $mailable
  6176. * @param callable|int|null $callback
  6177. * @return void
  6178. * @static
  6179. */
  6180. public static function assertSent($mailable, $callback = null)
  6181. {
  6182. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6183. $instance->assertSent($mailable, $callback);
  6184. }
  6185. /**
  6186. * Determine if a mailable was not sent based on a truth-test callback.
  6187. *
  6188. * @param string $mailable
  6189. * @param callable|null $callback
  6190. * @return void
  6191. * @static
  6192. */
  6193. public static function assertNotSent($mailable, $callback = null)
  6194. {
  6195. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6196. $instance->assertNotSent($mailable, $callback);
  6197. }
  6198. /**
  6199. * Assert that no mailables were sent.
  6200. *
  6201. * @return void
  6202. * @static
  6203. */
  6204. public static function assertNothingSent()
  6205. {
  6206. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6207. $instance->assertNothingSent();
  6208. }
  6209. /**
  6210. * Assert if a mailable was queued based on a truth-test callback.
  6211. *
  6212. * @param string $mailable
  6213. * @param callable|int|null $callback
  6214. * @return void
  6215. * @static
  6216. */
  6217. public static function assertQueued($mailable, $callback = null)
  6218. {
  6219. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6220. $instance->assertQueued($mailable, $callback);
  6221. }
  6222. /**
  6223. * Determine if a mailable was not queued based on a truth-test callback.
  6224. *
  6225. * @param string $mailable
  6226. * @param callable|null $callback
  6227. * @return void
  6228. * @static
  6229. */
  6230. public static function assertNotQueued($mailable, $callback = null)
  6231. {
  6232. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6233. $instance->assertNotQueued($mailable, $callback);
  6234. }
  6235. /**
  6236. * Assert that no mailables were queued.
  6237. *
  6238. * @return void
  6239. * @static
  6240. */
  6241. public static function assertNothingQueued()
  6242. {
  6243. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6244. $instance->assertNothingQueued();
  6245. }
  6246. /**
  6247. * Get all of the mailables matching a truth-test callback.
  6248. *
  6249. * @param string $mailable
  6250. * @param callable|null $callback
  6251. * @return \Illuminate\Support\Collection
  6252. * @static
  6253. */
  6254. public static function sent($mailable, $callback = null)
  6255. {
  6256. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6257. return $instance->sent($mailable, $callback);
  6258. }
  6259. /**
  6260. * Determine if the given mailable has been sent.
  6261. *
  6262. * @param string $mailable
  6263. * @return bool
  6264. * @static
  6265. */
  6266. public static function hasSent($mailable)
  6267. {
  6268. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6269. return $instance->hasSent($mailable);
  6270. }
  6271. /**
  6272. * Get all of the queued mailables matching a truth-test callback.
  6273. *
  6274. * @param string $mailable
  6275. * @param callable|null $callback
  6276. * @return \Illuminate\Support\Collection
  6277. * @static
  6278. */
  6279. public static function queued($mailable, $callback = null)
  6280. {
  6281. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6282. return $instance->queued($mailable, $callback);
  6283. }
  6284. /**
  6285. * Determine if the given mailable has been queued.
  6286. *
  6287. * @param string $mailable
  6288. * @return bool
  6289. * @static
  6290. */
  6291. public static function hasQueued($mailable)
  6292. {
  6293. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6294. return $instance->hasQueued($mailable);
  6295. }
  6296. }
  6297. /**
  6298. *
  6299. *
  6300. * @see \Illuminate\Notifications\ChannelManager
  6301. */
  6302. class Notification {
  6303. /**
  6304. * Send the given notification to the given notifiable entities.
  6305. *
  6306. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6307. * @param mixed $notification
  6308. * @return void
  6309. * @static
  6310. */
  6311. public static function send($notifiables, $notification)
  6312. {
  6313. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6314. $instance->send($notifiables, $notification);
  6315. }
  6316. /**
  6317. * Send the given notification immediately.
  6318. *
  6319. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6320. * @param mixed $notification
  6321. * @param array|null $channels
  6322. * @return void
  6323. * @static
  6324. */
  6325. public static function sendNow($notifiables, $notification, $channels = null)
  6326. {
  6327. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6328. $instance->sendNow($notifiables, $notification, $channels);
  6329. }
  6330. /**
  6331. * Get a channel instance.
  6332. *
  6333. * @param string|null $name
  6334. * @return mixed
  6335. * @static
  6336. */
  6337. public static function channel($name = null)
  6338. {
  6339. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6340. return $instance->channel($name);
  6341. }
  6342. /**
  6343. * Get the default channel driver name.
  6344. *
  6345. * @return string
  6346. * @static
  6347. */
  6348. public static function getDefaultDriver()
  6349. {
  6350. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6351. return $instance->getDefaultDriver();
  6352. }
  6353. /**
  6354. * Get the default channel driver name.
  6355. *
  6356. * @return string
  6357. * @static
  6358. */
  6359. public static function deliversVia()
  6360. {
  6361. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6362. return $instance->deliversVia();
  6363. }
  6364. /**
  6365. * Set the default channel driver name.
  6366. *
  6367. * @param string $channel
  6368. * @return void
  6369. * @static
  6370. */
  6371. public static function deliverVia($channel)
  6372. {
  6373. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6374. $instance->deliverVia($channel);
  6375. }
  6376. /**
  6377. * Get a driver instance.
  6378. *
  6379. * @param string $driver
  6380. * @return mixed
  6381. * @static
  6382. */
  6383. public static function driver($driver = null)
  6384. {
  6385. //Method inherited from \Illuminate\Support\Manager
  6386. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6387. return $instance->driver($driver);
  6388. }
  6389. /**
  6390. * Register a custom driver creator Closure.
  6391. *
  6392. * @param string $driver
  6393. * @param \Closure $callback
  6394. * @return \Illuminate\Notifications\ChannelManager
  6395. * @static
  6396. */
  6397. public static function extend($driver, $callback)
  6398. {
  6399. //Method inherited from \Illuminate\Support\Manager
  6400. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6401. return $instance->extend($driver, $callback);
  6402. }
  6403. /**
  6404. * Get all of the created "drivers".
  6405. *
  6406. * @return array
  6407. * @static
  6408. */
  6409. public static function getDrivers()
  6410. {
  6411. //Method inherited from \Illuminate\Support\Manager
  6412. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6413. return $instance->getDrivers();
  6414. }
  6415. /**
  6416. * Assert if a notification was sent based on a truth-test callback.
  6417. *
  6418. * @param mixed $notifiable
  6419. * @param string $notification
  6420. * @param callable|null $callback
  6421. * @return void
  6422. * @static
  6423. */
  6424. public static function assertSentTo($notifiable, $notification, $callback = null)
  6425. {
  6426. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6427. $instance->assertSentTo($notifiable, $notification, $callback);
  6428. }
  6429. /**
  6430. * Assert if a notification was sent a number of times.
  6431. *
  6432. * @param mixed $notifiable
  6433. * @param string $notification
  6434. * @param int $times
  6435. * @return void
  6436. * @static
  6437. */
  6438. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  6439. {
  6440. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6441. $instance->assertSentToTimes($notifiable, $notification, $times);
  6442. }
  6443. /**
  6444. * Determine if a notification was sent based on a truth-test callback.
  6445. *
  6446. * @param mixed $notifiable
  6447. * @param string $notification
  6448. * @param callable|null $callback
  6449. * @return void
  6450. * @static
  6451. */
  6452. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  6453. {
  6454. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6455. $instance->assertNotSentTo($notifiable, $notification, $callback);
  6456. }
  6457. /**
  6458. * Assert that no notifications were sent.
  6459. *
  6460. * @return void
  6461. * @static
  6462. */
  6463. public static function assertNothingSent()
  6464. {
  6465. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6466. $instance->assertNothingSent();
  6467. }
  6468. /**
  6469. * Get all of the notifications matching a truth-test callback.
  6470. *
  6471. * @param mixed $notifiable
  6472. * @param string $notification
  6473. * @param callable|null $callback
  6474. * @return \Illuminate\Support\Collection
  6475. * @static
  6476. */
  6477. public static function sent($notifiable, $notification, $callback = null)
  6478. {
  6479. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6480. return $instance->sent($notifiable, $notification, $callback);
  6481. }
  6482. /**
  6483. * Determine if there are more notifications left to inspect.
  6484. *
  6485. * @param mixed $notifiable
  6486. * @param string $notification
  6487. * @return bool
  6488. * @static
  6489. */
  6490. public static function hasSent($notifiable, $notification)
  6491. {
  6492. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6493. return $instance->hasSent($notifiable, $notification);
  6494. }
  6495. }
  6496. /**
  6497. *
  6498. *
  6499. * @see \Illuminate\Auth\Passwords\PasswordBroker
  6500. */
  6501. class Password {
  6502. /**
  6503. * Attempt to get the broker from the local cache.
  6504. *
  6505. * @param string $name
  6506. * @return \Illuminate\Contracts\Auth\PasswordBroker
  6507. * @static
  6508. */
  6509. public static function broker($name = null)
  6510. {
  6511. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6512. return $instance->broker($name);
  6513. }
  6514. /**
  6515. * Get the default password broker name.
  6516. *
  6517. * @return string
  6518. * @static
  6519. */
  6520. public static function getDefaultDriver()
  6521. {
  6522. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6523. return $instance->getDefaultDriver();
  6524. }
  6525. /**
  6526. * Set the default password broker name.
  6527. *
  6528. * @param string $name
  6529. * @return void
  6530. * @static
  6531. */
  6532. public static function setDefaultDriver($name)
  6533. {
  6534. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6535. $instance->setDefaultDriver($name);
  6536. }
  6537. }
  6538. /**
  6539. *
  6540. *
  6541. * @see \Illuminate\Queue\QueueManager
  6542. * @see \Illuminate\Queue\Queue
  6543. */
  6544. class Queue {
  6545. /**
  6546. * Register an event listener for the before job event.
  6547. *
  6548. * @param mixed $callback
  6549. * @return void
  6550. * @static
  6551. */
  6552. public static function before($callback)
  6553. {
  6554. /** @var \Illuminate\Queue\QueueManager $instance */
  6555. $instance->before($callback);
  6556. }
  6557. /**
  6558. * Register an event listener for the after job event.
  6559. *
  6560. * @param mixed $callback
  6561. * @return void
  6562. * @static
  6563. */
  6564. public static function after($callback)
  6565. {
  6566. /** @var \Illuminate\Queue\QueueManager $instance */
  6567. $instance->after($callback);
  6568. }
  6569. /**
  6570. * Register an event listener for the exception occurred job event.
  6571. *
  6572. * @param mixed $callback
  6573. * @return void
  6574. * @static
  6575. */
  6576. public static function exceptionOccurred($callback)
  6577. {
  6578. /** @var \Illuminate\Queue\QueueManager $instance */
  6579. $instance->exceptionOccurred($callback);
  6580. }
  6581. /**
  6582. * Register an event listener for the daemon queue loop.
  6583. *
  6584. * @param mixed $callback
  6585. * @return void
  6586. * @static
  6587. */
  6588. public static function looping($callback)
  6589. {
  6590. /** @var \Illuminate\Queue\QueueManager $instance */
  6591. $instance->looping($callback);
  6592. }
  6593. /**
  6594. * Register an event listener for the failed job event.
  6595. *
  6596. * @param mixed $callback
  6597. * @return void
  6598. * @static
  6599. */
  6600. public static function failing($callback)
  6601. {
  6602. /** @var \Illuminate\Queue\QueueManager $instance */
  6603. $instance->failing($callback);
  6604. }
  6605. /**
  6606. * Register an event listener for the daemon queue stopping.
  6607. *
  6608. * @param mixed $callback
  6609. * @return void
  6610. * @static
  6611. */
  6612. public static function stopping($callback)
  6613. {
  6614. /** @var \Illuminate\Queue\QueueManager $instance */
  6615. $instance->stopping($callback);
  6616. }
  6617. /**
  6618. * Determine if the driver is connected.
  6619. *
  6620. * @param string $name
  6621. * @return bool
  6622. * @static
  6623. */
  6624. public static function connected($name = null)
  6625. {
  6626. /** @var \Illuminate\Queue\QueueManager $instance */
  6627. return $instance->connected($name);
  6628. }
  6629. /**
  6630. * Resolve a queue connection instance.
  6631. *
  6632. * @param string $name
  6633. * @return \Illuminate\Contracts\Queue\Queue
  6634. * @static
  6635. */
  6636. public static function connection($name = null)
  6637. {
  6638. /** @var \Illuminate\Queue\QueueManager $instance */
  6639. return $instance->connection($name);
  6640. }
  6641. /**
  6642. * Add a queue connection resolver.
  6643. *
  6644. * @param string $driver
  6645. * @param \Closure $resolver
  6646. * @return void
  6647. * @static
  6648. */
  6649. public static function extend($driver, $resolver)
  6650. {
  6651. /** @var \Illuminate\Queue\QueueManager $instance */
  6652. $instance->extend($driver, $resolver);
  6653. }
  6654. /**
  6655. * Add a queue connection resolver.
  6656. *
  6657. * @param string $driver
  6658. * @param \Closure $resolver
  6659. * @return void
  6660. * @static
  6661. */
  6662. public static function addConnector($driver, $resolver)
  6663. {
  6664. /** @var \Illuminate\Queue\QueueManager $instance */
  6665. $instance->addConnector($driver, $resolver);
  6666. }
  6667. /**
  6668. * Get the name of the default queue connection.
  6669. *
  6670. * @return string
  6671. * @static
  6672. */
  6673. public static function getDefaultDriver()
  6674. {
  6675. /** @var \Illuminate\Queue\QueueManager $instance */
  6676. return $instance->getDefaultDriver();
  6677. }
  6678. /**
  6679. * Set the name of the default queue connection.
  6680. *
  6681. * @param string $name
  6682. * @return void
  6683. * @static
  6684. */
  6685. public static function setDefaultDriver($name)
  6686. {
  6687. /** @var \Illuminate\Queue\QueueManager $instance */
  6688. $instance->setDefaultDriver($name);
  6689. }
  6690. /**
  6691. * Get the full name for the given connection.
  6692. *
  6693. * @param string $connection
  6694. * @return string
  6695. * @static
  6696. */
  6697. public static function getName($connection = null)
  6698. {
  6699. /** @var \Illuminate\Queue\QueueManager $instance */
  6700. return $instance->getName($connection);
  6701. }
  6702. /**
  6703. * Determine if the application is in maintenance mode.
  6704. *
  6705. * @return bool
  6706. * @static
  6707. */
  6708. public static function isDownForMaintenance()
  6709. {
  6710. /** @var \Illuminate\Queue\QueueManager $instance */
  6711. return $instance->isDownForMaintenance();
  6712. }
  6713. /**
  6714. * Assert if a job was pushed based on a truth-test callback.
  6715. *
  6716. * @param string $job
  6717. * @param callable|int|null $callback
  6718. * @return void
  6719. * @static
  6720. */
  6721. public static function assertPushed($job, $callback = null)
  6722. {
  6723. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6724. $instance->assertPushed($job, $callback);
  6725. }
  6726. /**
  6727. * Assert if a job was pushed based on a truth-test callback.
  6728. *
  6729. * @param string $queue
  6730. * @param string $job
  6731. * @param callable|null $callback
  6732. * @return void
  6733. * @static
  6734. */
  6735. public static function assertPushedOn($queue, $job, $callback = null)
  6736. {
  6737. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6738. $instance->assertPushedOn($queue, $job, $callback);
  6739. }
  6740. /**
  6741. * Determine if a job was pushed based on a truth-test callback.
  6742. *
  6743. * @param string $job
  6744. * @param callable|null $callback
  6745. * @return void
  6746. * @static
  6747. */
  6748. public static function assertNotPushed($job, $callback = null)
  6749. {
  6750. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6751. $instance->assertNotPushed($job, $callback);
  6752. }
  6753. /**
  6754. * Assert that no jobs were pushed.
  6755. *
  6756. * @return void
  6757. * @static
  6758. */
  6759. public static function assertNothingPushed()
  6760. {
  6761. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6762. $instance->assertNothingPushed();
  6763. }
  6764. /**
  6765. * Get all of the jobs matching a truth-test callback.
  6766. *
  6767. * @param string $job
  6768. * @param callable|null $callback
  6769. * @return \Illuminate\Support\Collection
  6770. * @static
  6771. */
  6772. public static function pushed($job, $callback = null)
  6773. {
  6774. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6775. return $instance->pushed($job, $callback);
  6776. }
  6777. /**
  6778. * Determine if there are any stored jobs for a given class.
  6779. *
  6780. * @param string $job
  6781. * @return bool
  6782. * @static
  6783. */
  6784. public static function hasPushed($job)
  6785. {
  6786. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6787. return $instance->hasPushed($job);
  6788. }
  6789. /**
  6790. * Get the size of the queue.
  6791. *
  6792. * @param string $queue
  6793. * @return int
  6794. * @static
  6795. */
  6796. public static function size($queue = null)
  6797. {
  6798. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6799. return $instance->size($queue);
  6800. }
  6801. /**
  6802. * Push a new job onto the queue.
  6803. *
  6804. * @param string $job
  6805. * @param mixed $data
  6806. * @param string $queue
  6807. * @return mixed
  6808. * @static
  6809. */
  6810. public static function push($job, $data = '', $queue = null)
  6811. {
  6812. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6813. return $instance->push($job, $data, $queue);
  6814. }
  6815. /**
  6816. * Push a raw payload onto the queue.
  6817. *
  6818. * @param string $payload
  6819. * @param string $queue
  6820. * @param array $options
  6821. * @return mixed
  6822. * @static
  6823. */
  6824. public static function pushRaw($payload, $queue = null, $options = [])
  6825. {
  6826. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6827. return $instance->pushRaw($payload, $queue, $options);
  6828. }
  6829. /**
  6830. * Push a new job onto the queue after a delay.
  6831. *
  6832. * @param \DateTime|int $delay
  6833. * @param string $job
  6834. * @param mixed $data
  6835. * @param string $queue
  6836. * @return mixed
  6837. * @static
  6838. */
  6839. public static function later($delay, $job, $data = '', $queue = null)
  6840. {
  6841. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6842. return $instance->later($delay, $job, $data, $queue);
  6843. }
  6844. /**
  6845. * Push a new job onto the queue.
  6846. *
  6847. * @param string $queue
  6848. * @param string $job
  6849. * @param mixed $data
  6850. * @return mixed
  6851. * @static
  6852. */
  6853. public static function pushOn($queue, $job, $data = '')
  6854. {
  6855. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6856. return $instance->pushOn($queue, $job, $data);
  6857. }
  6858. /**
  6859. * Push a new job onto the queue after a delay.
  6860. *
  6861. * @param string $queue
  6862. * @param \DateTime|int $delay
  6863. * @param string $job
  6864. * @param mixed $data
  6865. * @return mixed
  6866. * @static
  6867. */
  6868. public static function laterOn($queue, $delay, $job, $data = '')
  6869. {
  6870. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6871. return $instance->laterOn($queue, $delay, $job, $data);
  6872. }
  6873. /**
  6874. * Pop the next job off of the queue.
  6875. *
  6876. * @param string $queue
  6877. * @return \Illuminate\Contracts\Queue\Job|null
  6878. * @static
  6879. */
  6880. public static function pop($queue = null)
  6881. {
  6882. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6883. return $instance->pop($queue);
  6884. }
  6885. /**
  6886. * Push an array of jobs onto the queue.
  6887. *
  6888. * @param array $jobs
  6889. * @param mixed $data
  6890. * @param string $queue
  6891. * @return mixed
  6892. * @static
  6893. */
  6894. public static function bulk($jobs, $data = '', $queue = null)
  6895. {
  6896. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6897. return $instance->bulk($jobs, $data, $queue);
  6898. }
  6899. /**
  6900. * Get the connection name for the queue.
  6901. *
  6902. * @return string
  6903. * @static
  6904. */
  6905. public static function getConnectionName()
  6906. {
  6907. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6908. return $instance->getConnectionName();
  6909. }
  6910. /**
  6911. * Set the connection name for the queue.
  6912. *
  6913. * @param string $name
  6914. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  6915. * @static
  6916. */
  6917. public static function setConnectionName($name)
  6918. {
  6919. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6920. return $instance->setConnectionName($name);
  6921. }
  6922. /**
  6923. * Get the expiration timestamp for an object-based queue handler.
  6924. *
  6925. * @param mixed $job
  6926. * @return mixed
  6927. * @static
  6928. */
  6929. public static function getJobExpiration($job)
  6930. {
  6931. //Method inherited from \Illuminate\Queue\Queue
  6932. /** @var \Illuminate\Queue\SyncQueue $instance */
  6933. return $instance->getJobExpiration($job);
  6934. }
  6935. /**
  6936. * Set the IoC container instance.
  6937. *
  6938. * @param \Illuminate\Container\Container $container
  6939. * @return void
  6940. * @static
  6941. */
  6942. public static function setContainer($container)
  6943. {
  6944. //Method inherited from \Illuminate\Queue\Queue
  6945. /** @var \Illuminate\Queue\SyncQueue $instance */
  6946. $instance->setContainer($container);
  6947. }
  6948. }
  6949. /**
  6950. *
  6951. *
  6952. * @see \Illuminate\Routing\Redirector
  6953. */
  6954. class Redirect {
  6955. /**
  6956. * Create a new redirect response to the "home" route.
  6957. *
  6958. * @param int $status
  6959. * @return \Illuminate\Http\RedirectResponse
  6960. * @static
  6961. */
  6962. public static function home($status = 302)
  6963. {
  6964. /** @var \Illuminate\Routing\Redirector $instance */
  6965. return $instance->home($status);
  6966. }
  6967. /**
  6968. * Create a new redirect response to the previous location.
  6969. *
  6970. * @param int $status
  6971. * @param array $headers
  6972. * @param mixed $fallback
  6973. * @return \Illuminate\Http\RedirectResponse
  6974. * @static
  6975. */
  6976. public static function back($status = 302, $headers = [], $fallback = false)
  6977. {
  6978. /** @var \Illuminate\Routing\Redirector $instance */
  6979. return $instance->back($status, $headers, $fallback);
  6980. }
  6981. /**
  6982. * Create a new redirect response to the current URI.
  6983. *
  6984. * @param int $status
  6985. * @param array $headers
  6986. * @return \Illuminate\Http\RedirectResponse
  6987. * @static
  6988. */
  6989. public static function refresh($status = 302, $headers = [])
  6990. {
  6991. /** @var \Illuminate\Routing\Redirector $instance */
  6992. return $instance->refresh($status, $headers);
  6993. }
  6994. /**
  6995. * Create a new redirect response, while putting the current URL in the session.
  6996. *
  6997. * @param string $path
  6998. * @param int $status
  6999. * @param array $headers
  7000. * @param bool $secure
  7001. * @return \Illuminate\Http\RedirectResponse
  7002. * @static
  7003. */
  7004. public static function guest($path, $status = 302, $headers = [], $secure = null)
  7005. {
  7006. /** @var \Illuminate\Routing\Redirector $instance */
  7007. return $instance->guest($path, $status, $headers, $secure);
  7008. }
  7009. /**
  7010. * Create a new redirect response to the previously intended location.
  7011. *
  7012. * @param string $default
  7013. * @param int $status
  7014. * @param array $headers
  7015. * @param bool $secure
  7016. * @return \Illuminate\Http\RedirectResponse
  7017. * @static
  7018. */
  7019. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  7020. {
  7021. /** @var \Illuminate\Routing\Redirector $instance */
  7022. return $instance->intended($default, $status, $headers, $secure);
  7023. }
  7024. /**
  7025. * Create a new redirect response to the given path.
  7026. *
  7027. * @param string $path
  7028. * @param int $status
  7029. * @param array $headers
  7030. * @param bool $secure
  7031. * @return \Illuminate\Http\RedirectResponse
  7032. * @static
  7033. */
  7034. public static function to($path, $status = 302, $headers = [], $secure = null)
  7035. {
  7036. /** @var \Illuminate\Routing\Redirector $instance */
  7037. return $instance->to($path, $status, $headers, $secure);
  7038. }
  7039. /**
  7040. * Create a new redirect response to an external URL (no validation).
  7041. *
  7042. * @param string $path
  7043. * @param int $status
  7044. * @param array $headers
  7045. * @return \Illuminate\Http\RedirectResponse
  7046. * @static
  7047. */
  7048. public static function away($path, $status = 302, $headers = [])
  7049. {
  7050. /** @var \Illuminate\Routing\Redirector $instance */
  7051. return $instance->away($path, $status, $headers);
  7052. }
  7053. /**
  7054. * Create a new redirect response to the given HTTPS path.
  7055. *
  7056. * @param string $path
  7057. * @param int $status
  7058. * @param array $headers
  7059. * @return \Illuminate\Http\RedirectResponse
  7060. * @static
  7061. */
  7062. public static function secure($path, $status = 302, $headers = [])
  7063. {
  7064. /** @var \Illuminate\Routing\Redirector $instance */
  7065. return $instance->secure($path, $status, $headers);
  7066. }
  7067. /**
  7068. * Create a new redirect response to a named route.
  7069. *
  7070. * @param string $route
  7071. * @param array $parameters
  7072. * @param int $status
  7073. * @param array $headers
  7074. * @return \Illuminate\Http\RedirectResponse
  7075. * @static
  7076. */
  7077. public static function route($route, $parameters = [], $status = 302, $headers = [])
  7078. {
  7079. /** @var \Illuminate\Routing\Redirector $instance */
  7080. return $instance->route($route, $parameters, $status, $headers);
  7081. }
  7082. /**
  7083. * Create a new redirect response to a controller action.
  7084. *
  7085. * @param string $action
  7086. * @param array $parameters
  7087. * @param int $status
  7088. * @param array $headers
  7089. * @return \Illuminate\Http\RedirectResponse
  7090. * @static
  7091. */
  7092. public static function action($action, $parameters = [], $status = 302, $headers = [])
  7093. {
  7094. /** @var \Illuminate\Routing\Redirector $instance */
  7095. return $instance->action($action, $parameters, $status, $headers);
  7096. }
  7097. /**
  7098. * Get the URL generator instance.
  7099. *
  7100. * @return \Illuminate\Routing\UrlGenerator
  7101. * @static
  7102. */
  7103. public static function getUrlGenerator()
  7104. {
  7105. /** @var \Illuminate\Routing\Redirector $instance */
  7106. return $instance->getUrlGenerator();
  7107. }
  7108. /**
  7109. * Set the active session store.
  7110. *
  7111. * @param \Illuminate\Session\Store $session
  7112. * @return void
  7113. * @static
  7114. */
  7115. public static function setSession($session)
  7116. {
  7117. /** @var \Illuminate\Routing\Redirector $instance */
  7118. $instance->setSession($session);
  7119. }
  7120. /**
  7121. * Register a custom macro.
  7122. *
  7123. * @param string $name
  7124. * @param object|callable $macro
  7125. * @return void
  7126. * @static
  7127. */
  7128. public static function macro($name, $macro)
  7129. {
  7130. \Illuminate\Routing\Redirector::macro($name, $macro);
  7131. }
  7132. /**
  7133. * Mix another object into the class.
  7134. *
  7135. * @param object $mixin
  7136. * @return void
  7137. * @static
  7138. */
  7139. public static function mixin($mixin)
  7140. {
  7141. \Illuminate\Routing\Redirector::mixin($mixin);
  7142. }
  7143. /**
  7144. * Checks if macro is registered.
  7145. *
  7146. * @param string $name
  7147. * @return bool
  7148. * @static
  7149. */
  7150. public static function hasMacro($name)
  7151. {
  7152. return \Illuminate\Routing\Redirector::hasMacro($name);
  7153. }
  7154. }
  7155. /**
  7156. *
  7157. *
  7158. * @see \Illuminate\Http\Request
  7159. */
  7160. class Request {
  7161. /**
  7162. * Create a new Illuminate HTTP request from server variables.
  7163. *
  7164. * @return static
  7165. * @static
  7166. */
  7167. public static function capture()
  7168. {
  7169. return \Illuminate\Http\Request::capture();
  7170. }
  7171. /**
  7172. * Return the Request instance.
  7173. *
  7174. * @return \Illuminate\Http\Request
  7175. * @static
  7176. */
  7177. public static function instance()
  7178. {
  7179. /** @var \Illuminate\Http\Request $instance */
  7180. return $instance->instance();
  7181. }
  7182. /**
  7183. * Get the request method.
  7184. *
  7185. * @return string
  7186. * @static
  7187. */
  7188. public static function method()
  7189. {
  7190. /** @var \Illuminate\Http\Request $instance */
  7191. return $instance->method();
  7192. }
  7193. /**
  7194. * Get the root URL for the application.
  7195. *
  7196. * @return string
  7197. * @static
  7198. */
  7199. public static function root()
  7200. {
  7201. /** @var \Illuminate\Http\Request $instance */
  7202. return $instance->root();
  7203. }
  7204. /**
  7205. * Get the URL (no query string) for the request.
  7206. *
  7207. * @return string
  7208. * @static
  7209. */
  7210. public static function url()
  7211. {
  7212. /** @var \Illuminate\Http\Request $instance */
  7213. return $instance->url();
  7214. }
  7215. /**
  7216. * Get the full URL for the request.
  7217. *
  7218. * @return string
  7219. * @static
  7220. */
  7221. public static function fullUrl()
  7222. {
  7223. /** @var \Illuminate\Http\Request $instance */
  7224. return $instance->fullUrl();
  7225. }
  7226. /**
  7227. * Get the full URL for the request with the added query string parameters.
  7228. *
  7229. * @param array $query
  7230. * @return string
  7231. * @static
  7232. */
  7233. public static function fullUrlWithQuery($query)
  7234. {
  7235. /** @var \Illuminate\Http\Request $instance */
  7236. return $instance->fullUrlWithQuery($query);
  7237. }
  7238. /**
  7239. * Get the current path info for the request.
  7240. *
  7241. * @return string
  7242. * @static
  7243. */
  7244. public static function path()
  7245. {
  7246. /** @var \Illuminate\Http\Request $instance */
  7247. return $instance->path();
  7248. }
  7249. /**
  7250. * Get the current decoded path info for the request.
  7251. *
  7252. * @return string
  7253. * @static
  7254. */
  7255. public static function decodedPath()
  7256. {
  7257. /** @var \Illuminate\Http\Request $instance */
  7258. return $instance->decodedPath();
  7259. }
  7260. /**
  7261. * Get a segment from the URI (1 based index).
  7262. *
  7263. * @param int $index
  7264. * @param string|null $default
  7265. * @return string|null
  7266. * @static
  7267. */
  7268. public static function segment($index, $default = null)
  7269. {
  7270. /** @var \Illuminate\Http\Request $instance */
  7271. return $instance->segment($index, $default);
  7272. }
  7273. /**
  7274. * Get all of the segments for the request path.
  7275. *
  7276. * @return array
  7277. * @static
  7278. */
  7279. public static function segments()
  7280. {
  7281. /** @var \Illuminate\Http\Request $instance */
  7282. return $instance->segments();
  7283. }
  7284. /**
  7285. * Determine if the current request URI matches a pattern.
  7286. *
  7287. * @param mixed $patterns
  7288. * @return bool
  7289. * @static
  7290. */
  7291. public static function is(...$patterns)
  7292. {
  7293. /** @var \Illuminate\Http\Request $instance */
  7294. return $instance->is(...$patterns);
  7295. }
  7296. /**
  7297. * Determine if the route name matches a given pattern.
  7298. *
  7299. * @param mixed $patterns
  7300. * @return bool
  7301. * @static
  7302. */
  7303. public static function routeIs(...$patterns)
  7304. {
  7305. /** @var \Illuminate\Http\Request $instance */
  7306. return $instance->routeIs(...$patterns);
  7307. }
  7308. /**
  7309. * Determine if the current request URL and query string matches a pattern.
  7310. *
  7311. * @param mixed $patterns
  7312. * @return bool
  7313. * @static
  7314. */
  7315. public static function fullUrlIs(...$patterns)
  7316. {
  7317. /** @var \Illuminate\Http\Request $instance */
  7318. return $instance->fullUrlIs(...$patterns);
  7319. }
  7320. /**
  7321. * Determine if the request is the result of an AJAX call.
  7322. *
  7323. * @return bool
  7324. * @static
  7325. */
  7326. public static function ajax()
  7327. {
  7328. /** @var \Illuminate\Http\Request $instance */
  7329. return $instance->ajax();
  7330. }
  7331. /**
  7332. * Determine if the request is the result of an PJAX call.
  7333. *
  7334. * @return bool
  7335. * @static
  7336. */
  7337. public static function pjax()
  7338. {
  7339. /** @var \Illuminate\Http\Request $instance */
  7340. return $instance->pjax();
  7341. }
  7342. /**
  7343. * Determine if the request is over HTTPS.
  7344. *
  7345. * @return bool
  7346. * @static
  7347. */
  7348. public static function secure()
  7349. {
  7350. /** @var \Illuminate\Http\Request $instance */
  7351. return $instance->secure();
  7352. }
  7353. /**
  7354. * Get the client IP address.
  7355. *
  7356. * @return string
  7357. * @static
  7358. */
  7359. public static function ip()
  7360. {
  7361. /** @var \Illuminate\Http\Request $instance */
  7362. return $instance->ip();
  7363. }
  7364. /**
  7365. * Get the client IP addresses.
  7366. *
  7367. * @return array
  7368. * @static
  7369. */
  7370. public static function ips()
  7371. {
  7372. /** @var \Illuminate\Http\Request $instance */
  7373. return $instance->ips();
  7374. }
  7375. /**
  7376. * Get the client user agent.
  7377. *
  7378. * @return string
  7379. * @static
  7380. */
  7381. public static function userAgent()
  7382. {
  7383. /** @var \Illuminate\Http\Request $instance */
  7384. return $instance->userAgent();
  7385. }
  7386. /**
  7387. * Merge new input into the current request's input array.
  7388. *
  7389. * @param array $input
  7390. * @return \Illuminate\Http\Request
  7391. * @static
  7392. */
  7393. public static function merge($input)
  7394. {
  7395. /** @var \Illuminate\Http\Request $instance */
  7396. return $instance->merge($input);
  7397. }
  7398. /**
  7399. * Replace the input for the current request.
  7400. *
  7401. * @param array $input
  7402. * @return \Illuminate\Http\Request
  7403. * @static
  7404. */
  7405. public static function replace($input)
  7406. {
  7407. /** @var \Illuminate\Http\Request $instance */
  7408. return $instance->replace($input);
  7409. }
  7410. /**
  7411. * Get the JSON payload for the request.
  7412. *
  7413. * @param string $key
  7414. * @param mixed $default
  7415. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  7416. * @static
  7417. */
  7418. public static function json($key = null, $default = null)
  7419. {
  7420. /** @var \Illuminate\Http\Request $instance */
  7421. return $instance->json($key, $default);
  7422. }
  7423. /**
  7424. * Create an Illuminate request from a Symfony instance.
  7425. *
  7426. * @param \Symfony\Component\HttpFoundation\Request $request
  7427. * @return \Illuminate\Http\Request
  7428. * @static
  7429. */
  7430. public static function createFromBase($request)
  7431. {
  7432. return \Illuminate\Http\Request::createFromBase($request);
  7433. }
  7434. /**
  7435. * Clones a request and overrides some of its parameters.
  7436. *
  7437. * @param array $query The GET parameters
  7438. * @param array $request The POST parameters
  7439. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7440. * @param array $cookies The COOKIE parameters
  7441. * @param array $files The FILES parameters
  7442. * @param array $server The SERVER parameters
  7443. * @return static
  7444. * @static
  7445. */
  7446. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  7447. {
  7448. /** @var \Illuminate\Http\Request $instance */
  7449. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  7450. }
  7451. /**
  7452. * Get the session associated with the request.
  7453. *
  7454. * @return \Illuminate\Session\Store
  7455. * @throws \RuntimeException
  7456. * @static
  7457. */
  7458. public static function session()
  7459. {
  7460. /** @var \Illuminate\Http\Request $instance */
  7461. return $instance->session();
  7462. }
  7463. /**
  7464. * Set the session instance on the request.
  7465. *
  7466. * @param \Illuminate\Contracts\Session\Session $session
  7467. * @return void
  7468. * @static
  7469. */
  7470. public static function setLaravelSession($session)
  7471. {
  7472. /** @var \Illuminate\Http\Request $instance */
  7473. $instance->setLaravelSession($session);
  7474. }
  7475. /**
  7476. * Get the user making the request.
  7477. *
  7478. * @param string|null $guard
  7479. * @return mixed
  7480. * @static
  7481. */
  7482. public static function user($guard = null)
  7483. {
  7484. /** @var \Illuminate\Http\Request $instance */
  7485. return $instance->user($guard);
  7486. }
  7487. /**
  7488. * Get the route handling the request.
  7489. *
  7490. * @param string|null $param
  7491. * @return \Illuminate\Routing\Route|object|string
  7492. * @static
  7493. */
  7494. public static function route($param = null)
  7495. {
  7496. /** @var \Illuminate\Http\Request $instance */
  7497. return $instance->route($param);
  7498. }
  7499. /**
  7500. * Get a unique fingerprint for the request / route / IP address.
  7501. *
  7502. * @return string
  7503. * @throws \RuntimeException
  7504. * @static
  7505. */
  7506. public static function fingerprint()
  7507. {
  7508. /** @var \Illuminate\Http\Request $instance */
  7509. return $instance->fingerprint();
  7510. }
  7511. /**
  7512. * Set the JSON payload for the request.
  7513. *
  7514. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  7515. * @return \Illuminate\Http\Request
  7516. * @static
  7517. */
  7518. public static function setJson($json)
  7519. {
  7520. /** @var \Illuminate\Http\Request $instance */
  7521. return $instance->setJson($json);
  7522. }
  7523. /**
  7524. * Get the user resolver callback.
  7525. *
  7526. * @return \Closure
  7527. * @static
  7528. */
  7529. public static function getUserResolver()
  7530. {
  7531. /** @var \Illuminate\Http\Request $instance */
  7532. return $instance->getUserResolver();
  7533. }
  7534. /**
  7535. * Set the user resolver callback.
  7536. *
  7537. * @param \Closure $callback
  7538. * @return \Illuminate\Http\Request
  7539. * @static
  7540. */
  7541. public static function setUserResolver($callback)
  7542. {
  7543. /** @var \Illuminate\Http\Request $instance */
  7544. return $instance->setUserResolver($callback);
  7545. }
  7546. /**
  7547. * Get the route resolver callback.
  7548. *
  7549. * @return \Closure
  7550. * @static
  7551. */
  7552. public static function getRouteResolver()
  7553. {
  7554. /** @var \Illuminate\Http\Request $instance */
  7555. return $instance->getRouteResolver();
  7556. }
  7557. /**
  7558. * Set the route resolver callback.
  7559. *
  7560. * @param \Closure $callback
  7561. * @return \Illuminate\Http\Request
  7562. * @static
  7563. */
  7564. public static function setRouteResolver($callback)
  7565. {
  7566. /** @var \Illuminate\Http\Request $instance */
  7567. return $instance->setRouteResolver($callback);
  7568. }
  7569. /**
  7570. * Get all of the input and files for the request.
  7571. *
  7572. * @return array
  7573. * @static
  7574. */
  7575. public static function toArray()
  7576. {
  7577. /** @var \Illuminate\Http\Request $instance */
  7578. return $instance->toArray();
  7579. }
  7580. /**
  7581. * Determine if the given offset exists.
  7582. *
  7583. * @param string $offset
  7584. * @return bool
  7585. * @static
  7586. */
  7587. public static function offsetExists($offset)
  7588. {
  7589. /** @var \Illuminate\Http\Request $instance */
  7590. return $instance->offsetExists($offset);
  7591. }
  7592. /**
  7593. * Get the value at the given offset.
  7594. *
  7595. * @param string $offset
  7596. * @return mixed
  7597. * @static
  7598. */
  7599. public static function offsetGet($offset)
  7600. {
  7601. /** @var \Illuminate\Http\Request $instance */
  7602. return $instance->offsetGet($offset);
  7603. }
  7604. /**
  7605. * Set the value at the given offset.
  7606. *
  7607. * @param string $offset
  7608. * @param mixed $value
  7609. * @return void
  7610. * @static
  7611. */
  7612. public static function offsetSet($offset, $value)
  7613. {
  7614. /** @var \Illuminate\Http\Request $instance */
  7615. $instance->offsetSet($offset, $value);
  7616. }
  7617. /**
  7618. * Remove the value at the given offset.
  7619. *
  7620. * @param string $offset
  7621. * @return void
  7622. * @static
  7623. */
  7624. public static function offsetUnset($offset)
  7625. {
  7626. /** @var \Illuminate\Http\Request $instance */
  7627. $instance->offsetUnset($offset);
  7628. }
  7629. /**
  7630. * Sets the parameters for this request.
  7631. *
  7632. * This method also re-initializes all properties.
  7633. *
  7634. * @param array $query The GET parameters
  7635. * @param array $request The POST parameters
  7636. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7637. * @param array $cookies The COOKIE parameters
  7638. * @param array $files The FILES parameters
  7639. * @param array $server The SERVER parameters
  7640. * @param string|resource|null $content The raw body data
  7641. * @static
  7642. */
  7643. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  7644. {
  7645. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7646. /** @var \Illuminate\Http\Request $instance */
  7647. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  7648. }
  7649. /**
  7650. * Creates a new request with values from PHP's super globals.
  7651. *
  7652. * @return static
  7653. * @static
  7654. */
  7655. public static function createFromGlobals()
  7656. {
  7657. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7658. return \Illuminate\Http\Request::createFromGlobals();
  7659. }
  7660. /**
  7661. * Creates a Request based on a given URI and configuration.
  7662. *
  7663. * The information contained in the URI always take precedence
  7664. * over the other information (server and parameters).
  7665. *
  7666. * @param string $uri The URI
  7667. * @param string $method The HTTP method
  7668. * @param array $parameters The query (GET) or request (POST) parameters
  7669. * @param array $cookies The request cookies ($_COOKIE)
  7670. * @param array $files The request files ($_FILES)
  7671. * @param array $server The server parameters ($_SERVER)
  7672. * @param string|resource|null $content The raw body data
  7673. * @return static
  7674. * @static
  7675. */
  7676. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  7677. {
  7678. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7679. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  7680. }
  7681. /**
  7682. * Sets a callable able to create a Request instance.
  7683. *
  7684. * This is mainly useful when you need to override the Request class
  7685. * to keep BC with an existing system. It should not be used for any
  7686. * other purpose.
  7687. *
  7688. * @param callable|null $callable A PHP callable
  7689. * @static
  7690. */
  7691. public static function setFactory($callable)
  7692. {
  7693. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7694. return \Illuminate\Http\Request::setFactory($callable);
  7695. }
  7696. /**
  7697. * Overrides the PHP global variables according to this request instance.
  7698. *
  7699. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  7700. * $_FILES is never overridden, see rfc1867
  7701. *
  7702. * @static
  7703. */
  7704. public static function overrideGlobals()
  7705. {
  7706. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7707. /** @var \Illuminate\Http\Request $instance */
  7708. return $instance->overrideGlobals();
  7709. }
  7710. /**
  7711. * Sets a list of trusted proxies.
  7712. *
  7713. * You should only list the reverse proxies that you manage directly.
  7714. *
  7715. * @param array $proxies A list of trusted proxies
  7716. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  7717. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  7718. * @static
  7719. */
  7720. public static function setTrustedProxies($proxies)
  7721. {
  7722. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7723. return \Illuminate\Http\Request::setTrustedProxies($proxies);
  7724. }
  7725. /**
  7726. * Gets the list of trusted proxies.
  7727. *
  7728. * @return array An array of trusted proxies
  7729. * @static
  7730. */
  7731. public static function getTrustedProxies()
  7732. {
  7733. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7734. return \Illuminate\Http\Request::getTrustedProxies();
  7735. }
  7736. /**
  7737. * Gets the set of trusted headers from trusted proxies.
  7738. *
  7739. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  7740. * @static
  7741. */
  7742. public static function getTrustedHeaderSet()
  7743. {
  7744. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7745. return \Illuminate\Http\Request::getTrustedHeaderSet();
  7746. }
  7747. /**
  7748. * Sets a list of trusted host patterns.
  7749. *
  7750. * You should only list the hosts you manage using regexs.
  7751. *
  7752. * @param array $hostPatterns A list of trusted host patterns
  7753. * @static
  7754. */
  7755. public static function setTrustedHosts($hostPatterns)
  7756. {
  7757. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7758. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  7759. }
  7760. /**
  7761. * Gets the list of trusted host patterns.
  7762. *
  7763. * @return array An array of trusted host patterns
  7764. * @static
  7765. */
  7766. public static function getTrustedHosts()
  7767. {
  7768. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7769. return \Illuminate\Http\Request::getTrustedHosts();
  7770. }
  7771. /**
  7772. * Sets the name for trusted headers.
  7773. *
  7774. * The following header keys are supported:
  7775. *
  7776. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  7777. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getHost())
  7778. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getPort())
  7779. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  7780. * * Request::HEADER_FORWARDED: defaults to Forwarded (see RFC 7239)
  7781. *
  7782. * Setting an empty value allows to disable the trusted header for the given key.
  7783. *
  7784. * @param string $key The header key
  7785. * @param string $value The header name
  7786. * @throws \InvalidArgumentException
  7787. * @deprecated since version 3.3, to be removed in 4.0. Use the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.
  7788. * @static
  7789. */
  7790. public static function setTrustedHeaderName($key, $value)
  7791. {
  7792. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7793. return \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  7794. }
  7795. /**
  7796. * Gets the trusted proxy header name.
  7797. *
  7798. * @param string $key The header key
  7799. * @return string The header name
  7800. * @throws \InvalidArgumentException
  7801. * @deprecated since version 3.3, to be removed in 4.0. Use the Request::getTrustedHeaderSet() method instead.
  7802. * @static
  7803. */
  7804. public static function getTrustedHeaderName($key)
  7805. {
  7806. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7807. return \Illuminate\Http\Request::getTrustedHeaderName($key);
  7808. }
  7809. /**
  7810. * Normalizes a query string.
  7811. *
  7812. * It builds a normalized query string, where keys/value pairs are alphabetized,
  7813. * have consistent escaping and unneeded delimiters are removed.
  7814. *
  7815. * @param string $qs Query string
  7816. * @return string A normalized query string for the Request
  7817. * @static
  7818. */
  7819. public static function normalizeQueryString($qs)
  7820. {
  7821. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7822. return \Illuminate\Http\Request::normalizeQueryString($qs);
  7823. }
  7824. /**
  7825. * Enables support for the _method request parameter to determine the intended HTTP method.
  7826. *
  7827. * Be warned that enabling this feature might lead to CSRF issues in your code.
  7828. * Check that you are using CSRF tokens when required.
  7829. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  7830. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  7831. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  7832. *
  7833. * The HTTP method can only be overridden when the real HTTP method is POST.
  7834. *
  7835. * @static
  7836. */
  7837. public static function enableHttpMethodParameterOverride()
  7838. {
  7839. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7840. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  7841. }
  7842. /**
  7843. * Checks whether support for the _method request parameter is enabled.
  7844. *
  7845. * @return bool True when the _method request parameter is enabled, false otherwise
  7846. * @static
  7847. */
  7848. public static function getHttpMethodParameterOverride()
  7849. {
  7850. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7851. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  7852. }
  7853. /**
  7854. * Gets a "parameter" value from any bag.
  7855. *
  7856. * This method is mainly useful for libraries that want to provide some flexibility. If you don't need the
  7857. * flexibility in controllers, it is better to explicitly get request parameters from the appropriate
  7858. * public property instead (attributes, query, request).
  7859. *
  7860. * Order of precedence: PATH (routing placeholders or custom attributes), GET, BODY
  7861. *
  7862. * @param string $key The key
  7863. * @param mixed $default The default value if the parameter key does not exist
  7864. * @return mixed
  7865. * @static
  7866. */
  7867. public static function get($key, $default = null)
  7868. {
  7869. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7870. /** @var \Illuminate\Http\Request $instance */
  7871. return $instance->get($key, $default);
  7872. }
  7873. /**
  7874. * Gets the Session.
  7875. *
  7876. * @return \Symfony\Component\HttpFoundation\SessionInterface|null The session
  7877. * @static
  7878. */
  7879. public static function getSession()
  7880. {
  7881. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7882. /** @var \Illuminate\Http\Request $instance */
  7883. return $instance->getSession();
  7884. }
  7885. /**
  7886. * Whether the request contains a Session which was started in one of the
  7887. * previous requests.
  7888. *
  7889. * @return bool
  7890. * @static
  7891. */
  7892. public static function hasPreviousSession()
  7893. {
  7894. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7895. /** @var \Illuminate\Http\Request $instance */
  7896. return $instance->hasPreviousSession();
  7897. }
  7898. /**
  7899. * Whether the request contains a Session object.
  7900. *
  7901. * This method does not give any information about the state of the session object,
  7902. * like whether the session is started or not. It is just a way to check if this Request
  7903. * is associated with a Session instance.
  7904. *
  7905. * @return bool true when the Request contains a Session object, false otherwise
  7906. * @static
  7907. */
  7908. public static function hasSession()
  7909. {
  7910. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7911. /** @var \Illuminate\Http\Request $instance */
  7912. return $instance->hasSession();
  7913. }
  7914. /**
  7915. * Sets the Session.
  7916. *
  7917. * @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
  7918. * @static
  7919. */
  7920. public static function setSession($session)
  7921. {
  7922. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7923. /** @var \Illuminate\Http\Request $instance */
  7924. return $instance->setSession($session);
  7925. }
  7926. /**
  7927. * Returns the client IP addresses.
  7928. *
  7929. * In the returned array the most trusted IP address is first, and the
  7930. * least trusted one last. The "real" client IP address is the last one,
  7931. * but this is also the least trusted one. Trusted proxies are stripped.
  7932. *
  7933. * Use this method carefully; you should use getClientIp() instead.
  7934. *
  7935. * @return array The client IP addresses
  7936. * @see getClientIp()
  7937. * @static
  7938. */
  7939. public static function getClientIps()
  7940. {
  7941. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7942. /** @var \Illuminate\Http\Request $instance */
  7943. return $instance->getClientIps();
  7944. }
  7945. /**
  7946. * Returns the client IP address.
  7947. *
  7948. * This method can read the client IP address from the "X-Forwarded-For" header
  7949. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  7950. * header value is a comma+space separated list of IP addresses, the left-most
  7951. * being the original client, and each successive proxy that passed the request
  7952. * adding the IP address where it received the request from.
  7953. *
  7954. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  7955. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  7956. * argument of the Request::setTrustedProxies() method instead.
  7957. *
  7958. * @return string|null The client IP address
  7959. * @see getClientIps()
  7960. * @see https://wikipedia.org/wiki/X-Forwarded-For
  7961. * @static
  7962. */
  7963. public static function getClientIp()
  7964. {
  7965. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7966. /** @var \Illuminate\Http\Request $instance */
  7967. return $instance->getClientIp();
  7968. }
  7969. /**
  7970. * Returns current script name.
  7971. *
  7972. * @return string
  7973. * @static
  7974. */
  7975. public static function getScriptName()
  7976. {
  7977. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7978. /** @var \Illuminate\Http\Request $instance */
  7979. return $instance->getScriptName();
  7980. }
  7981. /**
  7982. * Returns the path being requested relative to the executed script.
  7983. *
  7984. * The path info always starts with a /.
  7985. *
  7986. * Suppose this request is instantiated from /mysite on localhost:
  7987. *
  7988. * * http://localhost/mysite returns an empty string
  7989. * * http://localhost/mysite/about returns '/about'
  7990. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  7991. * * http://localhost/mysite/about?var=1 returns '/about'
  7992. *
  7993. * @return string The raw path (i.e. not urldecoded)
  7994. * @static
  7995. */
  7996. public static function getPathInfo()
  7997. {
  7998. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7999. /** @var \Illuminate\Http\Request $instance */
  8000. return $instance->getPathInfo();
  8001. }
  8002. /**
  8003. * Returns the root path from which this request is executed.
  8004. *
  8005. * Suppose that an index.php file instantiates this request object:
  8006. *
  8007. * * http://localhost/index.php returns an empty string
  8008. * * http://localhost/index.php/page returns an empty string
  8009. * * http://localhost/web/index.php returns '/web'
  8010. * * http://localhost/we%20b/index.php returns '/we%20b'
  8011. *
  8012. * @return string The raw path (i.e. not urldecoded)
  8013. * @static
  8014. */
  8015. public static function getBasePath()
  8016. {
  8017. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8018. /** @var \Illuminate\Http\Request $instance */
  8019. return $instance->getBasePath();
  8020. }
  8021. /**
  8022. * Returns the root URL from which this request is executed.
  8023. *
  8024. * The base URL never ends with a /.
  8025. *
  8026. * This is similar to getBasePath(), except that it also includes the
  8027. * script filename (e.g. index.php) if one exists.
  8028. *
  8029. * @return string The raw URL (i.e. not urldecoded)
  8030. * @static
  8031. */
  8032. public static function getBaseUrl()
  8033. {
  8034. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8035. /** @var \Illuminate\Http\Request $instance */
  8036. return $instance->getBaseUrl();
  8037. }
  8038. /**
  8039. * Gets the request's scheme.
  8040. *
  8041. * @return string
  8042. * @static
  8043. */
  8044. public static function getScheme()
  8045. {
  8046. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8047. /** @var \Illuminate\Http\Request $instance */
  8048. return $instance->getScheme();
  8049. }
  8050. /**
  8051. * Returns the port on which the request is made.
  8052. *
  8053. * This method can read the client port from the "X-Forwarded-Port" header
  8054. * when trusted proxies were set via "setTrustedProxies()".
  8055. *
  8056. * The "X-Forwarded-Port" header must contain the client port.
  8057. *
  8058. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  8059. * configure it via via the $trustedHeaderSet argument of the
  8060. * Request::setTrustedProxies() method instead.
  8061. *
  8062. * @return int|string can be a string if fetched from the server bag
  8063. * @static
  8064. */
  8065. public static function getPort()
  8066. {
  8067. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8068. /** @var \Illuminate\Http\Request $instance */
  8069. return $instance->getPort();
  8070. }
  8071. /**
  8072. * Returns the user.
  8073. *
  8074. * @return string|null
  8075. * @static
  8076. */
  8077. public static function getUser()
  8078. {
  8079. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8080. /** @var \Illuminate\Http\Request $instance */
  8081. return $instance->getUser();
  8082. }
  8083. /**
  8084. * Returns the password.
  8085. *
  8086. * @return string|null
  8087. * @static
  8088. */
  8089. public static function getPassword()
  8090. {
  8091. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8092. /** @var \Illuminate\Http\Request $instance */
  8093. return $instance->getPassword();
  8094. }
  8095. /**
  8096. * Gets the user info.
  8097. *
  8098. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  8099. * @static
  8100. */
  8101. public static function getUserInfo()
  8102. {
  8103. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8104. /** @var \Illuminate\Http\Request $instance */
  8105. return $instance->getUserInfo();
  8106. }
  8107. /**
  8108. * Returns the HTTP host being requested.
  8109. *
  8110. * The port name will be appended to the host if it's non-standard.
  8111. *
  8112. * @return string
  8113. * @static
  8114. */
  8115. public static function getHttpHost()
  8116. {
  8117. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8118. /** @var \Illuminate\Http\Request $instance */
  8119. return $instance->getHttpHost();
  8120. }
  8121. /**
  8122. * Returns the requested URI (path and query string).
  8123. *
  8124. * @return string The raw URI (i.e. not URI decoded)
  8125. * @static
  8126. */
  8127. public static function getRequestUri()
  8128. {
  8129. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8130. /** @var \Illuminate\Http\Request $instance */
  8131. return $instance->getRequestUri();
  8132. }
  8133. /**
  8134. * Gets the scheme and HTTP host.
  8135. *
  8136. * If the URL was called with basic authentication, the user
  8137. * and the password are not added to the generated string.
  8138. *
  8139. * @return string The scheme and HTTP host
  8140. * @static
  8141. */
  8142. public static function getSchemeAndHttpHost()
  8143. {
  8144. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8145. /** @var \Illuminate\Http\Request $instance */
  8146. return $instance->getSchemeAndHttpHost();
  8147. }
  8148. /**
  8149. * Generates a normalized URI (URL) for the Request.
  8150. *
  8151. * @return string A normalized URI (URL) for the Request
  8152. * @see getQueryString()
  8153. * @static
  8154. */
  8155. public static function getUri()
  8156. {
  8157. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8158. /** @var \Illuminate\Http\Request $instance */
  8159. return $instance->getUri();
  8160. }
  8161. /**
  8162. * Generates a normalized URI for the given path.
  8163. *
  8164. * @param string $path A path to use instead of the current one
  8165. * @return string The normalized URI for the path
  8166. * @static
  8167. */
  8168. public static function getUriForPath($path)
  8169. {
  8170. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8171. /** @var \Illuminate\Http\Request $instance */
  8172. return $instance->getUriForPath($path);
  8173. }
  8174. /**
  8175. * Returns the path as relative reference from the current Request path.
  8176. *
  8177. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  8178. * Both paths must be absolute and not contain relative parts.
  8179. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  8180. * Furthermore, they can be used to reduce the link size in documents.
  8181. *
  8182. * Example target paths, given a base path of "/a/b/c/d":
  8183. * - "/a/b/c/d" -> ""
  8184. * - "/a/b/c/" -> "./"
  8185. * - "/a/b/" -> "../"
  8186. * - "/a/b/c/other" -> "other"
  8187. * - "/a/x/y" -> "../../x/y"
  8188. *
  8189. * @param string $path The target path
  8190. * @return string The relative target path
  8191. * @static
  8192. */
  8193. public static function getRelativeUriForPath($path)
  8194. {
  8195. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8196. /** @var \Illuminate\Http\Request $instance */
  8197. return $instance->getRelativeUriForPath($path);
  8198. }
  8199. /**
  8200. * Generates the normalized query string for the Request.
  8201. *
  8202. * It builds a normalized query string, where keys/value pairs are alphabetized
  8203. * and have consistent escaping.
  8204. *
  8205. * @return string|null A normalized query string for the Request
  8206. * @static
  8207. */
  8208. public static function getQueryString()
  8209. {
  8210. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8211. /** @var \Illuminate\Http\Request $instance */
  8212. return $instance->getQueryString();
  8213. }
  8214. /**
  8215. * Checks whether the request is secure or not.
  8216. *
  8217. * This method can read the client protocol from the "X-Forwarded-Proto" header
  8218. * when trusted proxies were set via "setTrustedProxies()".
  8219. *
  8220. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  8221. *
  8222. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  8223. * ("SSL_HTTPS" for instance), configure it via the $trustedHeaderSet
  8224. * argument of the Request::setTrustedProxies() method instead.
  8225. *
  8226. * @return bool
  8227. * @static
  8228. */
  8229. public static function isSecure()
  8230. {
  8231. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8232. /** @var \Illuminate\Http\Request $instance */
  8233. return $instance->isSecure();
  8234. }
  8235. /**
  8236. * Returns the host name.
  8237. *
  8238. * This method can read the client host name from the "X-Forwarded-Host" header
  8239. * when trusted proxies were set via "setTrustedProxies()".
  8240. *
  8241. * The "X-Forwarded-Host" header must contain the client host name.
  8242. *
  8243. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  8244. * configure it via the $trustedHeaderSet argument of the
  8245. * Request::setTrustedProxies() method instead.
  8246. *
  8247. * @return string
  8248. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  8249. * @static
  8250. */
  8251. public static function getHost()
  8252. {
  8253. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8254. /** @var \Illuminate\Http\Request $instance */
  8255. return $instance->getHost();
  8256. }
  8257. /**
  8258. * Sets the request method.
  8259. *
  8260. * @param string $method
  8261. * @static
  8262. */
  8263. public static function setMethod($method)
  8264. {
  8265. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8266. /** @var \Illuminate\Http\Request $instance */
  8267. return $instance->setMethod($method);
  8268. }
  8269. /**
  8270. * Gets the request "intended" method.
  8271. *
  8272. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  8273. * then it is used to determine the "real" intended HTTP method.
  8274. *
  8275. * The _method request parameter can also be used to determine the HTTP method,
  8276. * but only if enableHttpMethodParameterOverride() has been called.
  8277. *
  8278. * The method is always an uppercased string.
  8279. *
  8280. * @return string The request method
  8281. * @see getRealMethod()
  8282. * @static
  8283. */
  8284. public static function getMethod()
  8285. {
  8286. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8287. /** @var \Illuminate\Http\Request $instance */
  8288. return $instance->getMethod();
  8289. }
  8290. /**
  8291. * Gets the "real" request method.
  8292. *
  8293. * @return string The request method
  8294. * @see getMethod()
  8295. * @static
  8296. */
  8297. public static function getRealMethod()
  8298. {
  8299. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8300. /** @var \Illuminate\Http\Request $instance */
  8301. return $instance->getRealMethod();
  8302. }
  8303. /**
  8304. * Gets the mime type associated with the format.
  8305. *
  8306. * @param string $format The format
  8307. * @return string|null The associated mime type (null if not found)
  8308. * @static
  8309. */
  8310. public static function getMimeType($format)
  8311. {
  8312. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8313. /** @var \Illuminate\Http\Request $instance */
  8314. return $instance->getMimeType($format);
  8315. }
  8316. /**
  8317. * Gets the mime types associated with the format.
  8318. *
  8319. * @param string $format The format
  8320. * @return array The associated mime types
  8321. * @static
  8322. */
  8323. public static function getMimeTypes($format)
  8324. {
  8325. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8326. return \Illuminate\Http\Request::getMimeTypes($format);
  8327. }
  8328. /**
  8329. * Gets the format associated with the mime type.
  8330. *
  8331. * @param string $mimeType The associated mime type
  8332. * @return string|null The format (null if not found)
  8333. * @static
  8334. */
  8335. public static function getFormat($mimeType)
  8336. {
  8337. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8338. /** @var \Illuminate\Http\Request $instance */
  8339. return $instance->getFormat($mimeType);
  8340. }
  8341. /**
  8342. * Associates a format with mime types.
  8343. *
  8344. * @param string $format The format
  8345. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  8346. * @static
  8347. */
  8348. public static function setFormat($format, $mimeTypes)
  8349. {
  8350. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8351. /** @var \Illuminate\Http\Request $instance */
  8352. return $instance->setFormat($format, $mimeTypes);
  8353. }
  8354. /**
  8355. * Gets the request format.
  8356. *
  8357. * Here is the process to determine the format:
  8358. *
  8359. * * format defined by the user (with setRequestFormat())
  8360. * * _format request attribute
  8361. * * $default
  8362. *
  8363. * @param string|null $default The default format
  8364. * @return string|null The request format
  8365. * @static
  8366. */
  8367. public static function getRequestFormat($default = 'html')
  8368. {
  8369. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8370. /** @var \Illuminate\Http\Request $instance */
  8371. return $instance->getRequestFormat($default);
  8372. }
  8373. /**
  8374. * Sets the request format.
  8375. *
  8376. * @param string $format The request format
  8377. * @static
  8378. */
  8379. public static function setRequestFormat($format)
  8380. {
  8381. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8382. /** @var \Illuminate\Http\Request $instance */
  8383. return $instance->setRequestFormat($format);
  8384. }
  8385. /**
  8386. * Gets the format associated with the request.
  8387. *
  8388. * @return string|null The format (null if no content type is present)
  8389. * @static
  8390. */
  8391. public static function getContentType()
  8392. {
  8393. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8394. /** @var \Illuminate\Http\Request $instance */
  8395. return $instance->getContentType();
  8396. }
  8397. /**
  8398. * Sets the default locale.
  8399. *
  8400. * @param string $locale
  8401. * @static
  8402. */
  8403. public static function setDefaultLocale($locale)
  8404. {
  8405. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8406. /** @var \Illuminate\Http\Request $instance */
  8407. return $instance->setDefaultLocale($locale);
  8408. }
  8409. /**
  8410. * Get the default locale.
  8411. *
  8412. * @return string
  8413. * @static
  8414. */
  8415. public static function getDefaultLocale()
  8416. {
  8417. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8418. /** @var \Illuminate\Http\Request $instance */
  8419. return $instance->getDefaultLocale();
  8420. }
  8421. /**
  8422. * Sets the locale.
  8423. *
  8424. * @param string $locale
  8425. * @static
  8426. */
  8427. public static function setLocale($locale)
  8428. {
  8429. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8430. /** @var \Illuminate\Http\Request $instance */
  8431. return $instance->setLocale($locale);
  8432. }
  8433. /**
  8434. * Get the locale.
  8435. *
  8436. * @return string
  8437. * @static
  8438. */
  8439. public static function getLocale()
  8440. {
  8441. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8442. /** @var \Illuminate\Http\Request $instance */
  8443. return $instance->getLocale();
  8444. }
  8445. /**
  8446. * Checks if the request method is of specified type.
  8447. *
  8448. * @param string $method Uppercase request method (GET, POST etc)
  8449. * @return bool
  8450. * @static
  8451. */
  8452. public static function isMethod($method)
  8453. {
  8454. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8455. /** @var \Illuminate\Http\Request $instance */
  8456. return $instance->isMethod($method);
  8457. }
  8458. /**
  8459. * Checks whether or not the method is safe.
  8460. *
  8461. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  8462. * @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default.
  8463. * @return bool
  8464. * @static
  8465. */
  8466. public static function isMethodSafe()
  8467. {
  8468. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8469. /** @var \Illuminate\Http\Request $instance */
  8470. return $instance->isMethodSafe();
  8471. }
  8472. /**
  8473. * Checks whether or not the method is idempotent.
  8474. *
  8475. * @return bool
  8476. * @static
  8477. */
  8478. public static function isMethodIdempotent()
  8479. {
  8480. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8481. /** @var \Illuminate\Http\Request $instance */
  8482. return $instance->isMethodIdempotent();
  8483. }
  8484. /**
  8485. * Checks whether the method is cacheable or not.
  8486. *
  8487. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  8488. * @return bool True for GET and HEAD, false otherwise
  8489. * @static
  8490. */
  8491. public static function isMethodCacheable()
  8492. {
  8493. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8494. /** @var \Illuminate\Http\Request $instance */
  8495. return $instance->isMethodCacheable();
  8496. }
  8497. /**
  8498. * Returns the protocol version.
  8499. *
  8500. * If the application is behind a proxy, the protocol version used in the
  8501. * requests between the client and the proxy and between the proxy and the
  8502. * server might be different. This returns the former (from the "Via" header)
  8503. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  8504. * the latter (from the "SERVER_PROTOCOL" server parameter).
  8505. *
  8506. * @return string
  8507. * @static
  8508. */
  8509. public static function getProtocolVersion()
  8510. {
  8511. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8512. /** @var \Illuminate\Http\Request $instance */
  8513. return $instance->getProtocolVersion();
  8514. }
  8515. /**
  8516. * Returns the request body content.
  8517. *
  8518. * @param bool $asResource If true, a resource will be returned
  8519. * @return string|resource The request body content or a resource to read the body stream
  8520. * @throws \LogicException
  8521. * @static
  8522. */
  8523. public static function getContent($asResource = false)
  8524. {
  8525. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8526. /** @var \Illuminate\Http\Request $instance */
  8527. return $instance->getContent($asResource);
  8528. }
  8529. /**
  8530. * Gets the Etags.
  8531. *
  8532. * @return array The entity tags
  8533. * @static
  8534. */
  8535. public static function getETags()
  8536. {
  8537. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8538. /** @var \Illuminate\Http\Request $instance */
  8539. return $instance->getETags();
  8540. }
  8541. /**
  8542. *
  8543. *
  8544. * @return bool
  8545. * @static
  8546. */
  8547. public static function isNoCache()
  8548. {
  8549. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8550. /** @var \Illuminate\Http\Request $instance */
  8551. return $instance->isNoCache();
  8552. }
  8553. /**
  8554. * Returns the preferred language.
  8555. *
  8556. * @param array $locales An array of ordered available locales
  8557. * @return string|null The preferred locale
  8558. * @static
  8559. */
  8560. public static function getPreferredLanguage($locales = null)
  8561. {
  8562. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8563. /** @var \Illuminate\Http\Request $instance */
  8564. return $instance->getPreferredLanguage($locales);
  8565. }
  8566. /**
  8567. * Gets a list of languages acceptable by the client browser.
  8568. *
  8569. * @return array Languages ordered in the user browser preferences
  8570. * @static
  8571. */
  8572. public static function getLanguages()
  8573. {
  8574. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8575. /** @var \Illuminate\Http\Request $instance */
  8576. return $instance->getLanguages();
  8577. }
  8578. /**
  8579. * Gets a list of charsets acceptable by the client browser.
  8580. *
  8581. * @return array List of charsets in preferable order
  8582. * @static
  8583. */
  8584. public static function getCharsets()
  8585. {
  8586. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8587. /** @var \Illuminate\Http\Request $instance */
  8588. return $instance->getCharsets();
  8589. }
  8590. /**
  8591. * Gets a list of encodings acceptable by the client browser.
  8592. *
  8593. * @return array List of encodings in preferable order
  8594. * @static
  8595. */
  8596. public static function getEncodings()
  8597. {
  8598. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8599. /** @var \Illuminate\Http\Request $instance */
  8600. return $instance->getEncodings();
  8601. }
  8602. /**
  8603. * Gets a list of content types acceptable by the client browser.
  8604. *
  8605. * @return array List of content types in preferable order
  8606. * @static
  8607. */
  8608. public static function getAcceptableContentTypes()
  8609. {
  8610. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8611. /** @var \Illuminate\Http\Request $instance */
  8612. return $instance->getAcceptableContentTypes();
  8613. }
  8614. /**
  8615. * Returns true if the request is a XMLHttpRequest.
  8616. *
  8617. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  8618. * It is known to work with common JavaScript frameworks:
  8619. *
  8620. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  8621. * @return bool true if the request is an XMLHttpRequest, false otherwise
  8622. * @static
  8623. */
  8624. public static function isXmlHttpRequest()
  8625. {
  8626. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8627. /** @var \Illuminate\Http\Request $instance */
  8628. return $instance->isXmlHttpRequest();
  8629. }
  8630. /**
  8631. * Indicates whether this request originated from a trusted proxy.
  8632. *
  8633. * This can be useful to determine whether or not to trust the
  8634. * contents of a proxy-specific header.
  8635. *
  8636. * @return bool true if the request came from a trusted proxy, false otherwise
  8637. * @static
  8638. */
  8639. public static function isFromTrustedProxy()
  8640. {
  8641. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8642. /** @var \Illuminate\Http\Request $instance */
  8643. return $instance->isFromTrustedProxy();
  8644. }
  8645. /**
  8646. * Determine if the given content types match.
  8647. *
  8648. * @param string $actual
  8649. * @param string $type
  8650. * @return bool
  8651. * @static
  8652. */
  8653. public static function matchesType($actual, $type)
  8654. {
  8655. return \Illuminate\Http\Request::matchesType($actual, $type);
  8656. }
  8657. /**
  8658. * Determine if the request is sending JSON.
  8659. *
  8660. * @return bool
  8661. * @static
  8662. */
  8663. public static function isJson()
  8664. {
  8665. /** @var \Illuminate\Http\Request $instance */
  8666. return $instance->isJson();
  8667. }
  8668. /**
  8669. * Determine if the current request probably expects a JSON response.
  8670. *
  8671. * @return bool
  8672. * @static
  8673. */
  8674. public static function expectsJson()
  8675. {
  8676. /** @var \Illuminate\Http\Request $instance */
  8677. return $instance->expectsJson();
  8678. }
  8679. /**
  8680. * Determine if the current request is asking for JSON in return.
  8681. *
  8682. * @return bool
  8683. * @static
  8684. */
  8685. public static function wantsJson()
  8686. {
  8687. /** @var \Illuminate\Http\Request $instance */
  8688. return $instance->wantsJson();
  8689. }
  8690. /**
  8691. * Determines whether the current requests accepts a given content type.
  8692. *
  8693. * @param string|array $contentTypes
  8694. * @return bool
  8695. * @static
  8696. */
  8697. public static function accepts($contentTypes)
  8698. {
  8699. /** @var \Illuminate\Http\Request $instance */
  8700. return $instance->accepts($contentTypes);
  8701. }
  8702. /**
  8703. * Return the most suitable content type from the given array based on content negotiation.
  8704. *
  8705. * @param string|array $contentTypes
  8706. * @return string|null
  8707. * @static
  8708. */
  8709. public static function prefers($contentTypes)
  8710. {
  8711. /** @var \Illuminate\Http\Request $instance */
  8712. return $instance->prefers($contentTypes);
  8713. }
  8714. /**
  8715. * Determines whether a request accepts JSON.
  8716. *
  8717. * @return bool
  8718. * @static
  8719. */
  8720. public static function acceptsJson()
  8721. {
  8722. /** @var \Illuminate\Http\Request $instance */
  8723. return $instance->acceptsJson();
  8724. }
  8725. /**
  8726. * Determines whether a request accepts HTML.
  8727. *
  8728. * @return bool
  8729. * @static
  8730. */
  8731. public static function acceptsHtml()
  8732. {
  8733. /** @var \Illuminate\Http\Request $instance */
  8734. return $instance->acceptsHtml();
  8735. }
  8736. /**
  8737. * Get the data format expected in the response.
  8738. *
  8739. * @param string $default
  8740. * @return string
  8741. * @static
  8742. */
  8743. public static function format($default = 'html')
  8744. {
  8745. /** @var \Illuminate\Http\Request $instance */
  8746. return $instance->format($default);
  8747. }
  8748. /**
  8749. * Retrieve an old input item.
  8750. *
  8751. * @param string $key
  8752. * @param string|array|null $default
  8753. * @return string|array
  8754. * @static
  8755. */
  8756. public static function old($key = null, $default = null)
  8757. {
  8758. /** @var \Illuminate\Http\Request $instance */
  8759. return $instance->old($key, $default);
  8760. }
  8761. /**
  8762. * Flash the input for the current request to the session.
  8763. *
  8764. * @return void
  8765. * @static
  8766. */
  8767. public static function flash()
  8768. {
  8769. /** @var \Illuminate\Http\Request $instance */
  8770. $instance->flash();
  8771. }
  8772. /**
  8773. * Flash only some of the input to the session.
  8774. *
  8775. * @param array|mixed $keys
  8776. * @return void
  8777. * @static
  8778. */
  8779. public static function flashOnly($keys)
  8780. {
  8781. /** @var \Illuminate\Http\Request $instance */
  8782. $instance->flashOnly($keys);
  8783. }
  8784. /**
  8785. * Flash only some of the input to the session.
  8786. *
  8787. * @param array|mixed $keys
  8788. * @return void
  8789. * @static
  8790. */
  8791. public static function flashExcept($keys)
  8792. {
  8793. /** @var \Illuminate\Http\Request $instance */
  8794. $instance->flashExcept($keys);
  8795. }
  8796. /**
  8797. * Flush all of the old input from the session.
  8798. *
  8799. * @return void
  8800. * @static
  8801. */
  8802. public static function flush()
  8803. {
  8804. /** @var \Illuminate\Http\Request $instance */
  8805. $instance->flush();
  8806. }
  8807. /**
  8808. * Retrieve a server variable from the request.
  8809. *
  8810. * @param string $key
  8811. * @param string|array|null $default
  8812. * @return string|array
  8813. * @static
  8814. */
  8815. public static function server($key = null, $default = null)
  8816. {
  8817. /** @var \Illuminate\Http\Request $instance */
  8818. return $instance->server($key, $default);
  8819. }
  8820. /**
  8821. * Determine if a header is set on the request.
  8822. *
  8823. * @param string $key
  8824. * @return bool
  8825. * @static
  8826. */
  8827. public static function hasHeader($key)
  8828. {
  8829. /** @var \Illuminate\Http\Request $instance */
  8830. return $instance->hasHeader($key);
  8831. }
  8832. /**
  8833. * Retrieve a header from the request.
  8834. *
  8835. * @param string $key
  8836. * @param string|array|null $default
  8837. * @return string|array
  8838. * @static
  8839. */
  8840. public static function header($key = null, $default = null)
  8841. {
  8842. /** @var \Illuminate\Http\Request $instance */
  8843. return $instance->header($key, $default);
  8844. }
  8845. /**
  8846. * Get the bearer token from the request headers.
  8847. *
  8848. * @return string|null
  8849. * @static
  8850. */
  8851. public static function bearerToken()
  8852. {
  8853. /** @var \Illuminate\Http\Request $instance */
  8854. return $instance->bearerToken();
  8855. }
  8856. /**
  8857. * Determine if the request contains a given input item key.
  8858. *
  8859. * @param string|array $key
  8860. * @return bool
  8861. * @static
  8862. */
  8863. public static function exists($key)
  8864. {
  8865. /** @var \Illuminate\Http\Request $instance */
  8866. return $instance->exists($key);
  8867. }
  8868. /**
  8869. * Determine if the request contains a given input item key.
  8870. *
  8871. * @param string|array $key
  8872. * @return bool
  8873. * @static
  8874. */
  8875. public static function has($key)
  8876. {
  8877. /** @var \Illuminate\Http\Request $instance */
  8878. return $instance->has($key);
  8879. }
  8880. /**
  8881. * Determine if the request contains any of the given inputs.
  8882. *
  8883. * @param mixed $key
  8884. * @return bool
  8885. * @static
  8886. */
  8887. public static function hasAny(...$keys)
  8888. {
  8889. /** @var \Illuminate\Http\Request $instance */
  8890. return $instance->hasAny(...$keys);
  8891. }
  8892. /**
  8893. * Determine if the request contains a non-empty value for an input item.
  8894. *
  8895. * @param string|array $key
  8896. * @return bool
  8897. * @static
  8898. */
  8899. public static function filled($key)
  8900. {
  8901. /** @var \Illuminate\Http\Request $instance */
  8902. return $instance->filled($key);
  8903. }
  8904. /**
  8905. * Get the keys for all of the input and files.
  8906. *
  8907. * @return array
  8908. * @static
  8909. */
  8910. public static function keys()
  8911. {
  8912. /** @var \Illuminate\Http\Request $instance */
  8913. return $instance->keys();
  8914. }
  8915. /**
  8916. * Get all of the input and files for the request.
  8917. *
  8918. * @param array|mixed $keys
  8919. * @return array
  8920. * @static
  8921. */
  8922. public static function all($keys = null)
  8923. {
  8924. /** @var \Illuminate\Http\Request $instance */
  8925. return $instance->all($keys);
  8926. }
  8927. /**
  8928. * Retrieve an input item from the request.
  8929. *
  8930. * @param string $key
  8931. * @param string|array|null $default
  8932. * @return string|array
  8933. * @static
  8934. */
  8935. public static function input($key = null, $default = null)
  8936. {
  8937. /** @var \Illuminate\Http\Request $instance */
  8938. return $instance->input($key, $default);
  8939. }
  8940. /**
  8941. * Get a subset containing the provided keys with values from the input data.
  8942. *
  8943. * @param array|mixed $keys
  8944. * @return array
  8945. * @static
  8946. */
  8947. public static function only($keys)
  8948. {
  8949. /** @var \Illuminate\Http\Request $instance */
  8950. return $instance->only($keys);
  8951. }
  8952. /**
  8953. * Get all of the input except for a specified array of items.
  8954. *
  8955. * @param array|mixed $keys
  8956. * @return array
  8957. * @static
  8958. */
  8959. public static function except($keys)
  8960. {
  8961. /** @var \Illuminate\Http\Request $instance */
  8962. return $instance->except($keys);
  8963. }
  8964. /**
  8965. * Retrieve a query string item from the request.
  8966. *
  8967. * @param string $key
  8968. * @param string|array|null $default
  8969. * @return string|array
  8970. * @static
  8971. */
  8972. public static function query($key = null, $default = null)
  8973. {
  8974. /** @var \Illuminate\Http\Request $instance */
  8975. return $instance->query($key, $default);
  8976. }
  8977. /**
  8978. * Retrieve a request payload item from the request.
  8979. *
  8980. * @param string $key
  8981. * @param string|array|null $default
  8982. * @return string|array
  8983. * @static
  8984. */
  8985. public static function post($key = null, $default = null)
  8986. {
  8987. /** @var \Illuminate\Http\Request $instance */
  8988. return $instance->post($key, $default);
  8989. }
  8990. /**
  8991. * Determine if a cookie is set on the request.
  8992. *
  8993. * @param string $key
  8994. * @return bool
  8995. * @static
  8996. */
  8997. public static function hasCookie($key)
  8998. {
  8999. /** @var \Illuminate\Http\Request $instance */
  9000. return $instance->hasCookie($key);
  9001. }
  9002. /**
  9003. * Retrieve a cookie from the request.
  9004. *
  9005. * @param string $key
  9006. * @param string|array|null $default
  9007. * @return string|array
  9008. * @static
  9009. */
  9010. public static function cookie($key = null, $default = null)
  9011. {
  9012. /** @var \Illuminate\Http\Request $instance */
  9013. return $instance->cookie($key, $default);
  9014. }
  9015. /**
  9016. * Get an array of all of the files on the request.
  9017. *
  9018. * @return array
  9019. * @static
  9020. */
  9021. public static function allFiles()
  9022. {
  9023. /** @var \Illuminate\Http\Request $instance */
  9024. return $instance->allFiles();
  9025. }
  9026. /**
  9027. * Determine if the uploaded data contains a file.
  9028. *
  9029. * @param string $key
  9030. * @return bool
  9031. * @static
  9032. */
  9033. public static function hasFile($key)
  9034. {
  9035. /** @var \Illuminate\Http\Request $instance */
  9036. return $instance->hasFile($key);
  9037. }
  9038. /**
  9039. * Retrieve a file from the request.
  9040. *
  9041. * @param string $key
  9042. * @param mixed $default
  9043. * @return \Illuminate\Http\UploadedFile|array|null
  9044. * @static
  9045. */
  9046. public static function file($key = null, $default = null)
  9047. {
  9048. /** @var \Illuminate\Http\Request $instance */
  9049. return $instance->file($key, $default);
  9050. }
  9051. /**
  9052. * Register a custom macro.
  9053. *
  9054. * @param string $name
  9055. * @param object|callable $macro
  9056. * @return void
  9057. * @static
  9058. */
  9059. public static function macro($name, $macro)
  9060. {
  9061. \Illuminate\Http\Request::macro($name, $macro);
  9062. }
  9063. /**
  9064. * Mix another object into the class.
  9065. *
  9066. * @param object $mixin
  9067. * @return void
  9068. * @static
  9069. */
  9070. public static function mixin($mixin)
  9071. {
  9072. \Illuminate\Http\Request::mixin($mixin);
  9073. }
  9074. /**
  9075. * Checks if macro is registered.
  9076. *
  9077. * @param string $name
  9078. * @return bool
  9079. * @static
  9080. */
  9081. public static function hasMacro($name)
  9082. {
  9083. return \Illuminate\Http\Request::hasMacro($name);
  9084. }
  9085. /**
  9086. *
  9087. *
  9088. * @static
  9089. */
  9090. public static function validate($rules, ...$params)
  9091. {
  9092. return \Illuminate\Http\Request::validate($rules, ...$params);
  9093. }
  9094. }
  9095. /**
  9096. *
  9097. *
  9098. * @see \Illuminate\Contracts\Routing\ResponseFactory
  9099. */
  9100. class Response {
  9101. /**
  9102. * Return a new response from the application.
  9103. *
  9104. * @param string $content
  9105. * @param int $status
  9106. * @param array $headers
  9107. * @return \Illuminate\Http\Response
  9108. * @static
  9109. */
  9110. public static function make($content = '', $status = 200, $headers = [])
  9111. {
  9112. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9113. return $instance->make($content, $status, $headers);
  9114. }
  9115. /**
  9116. * Return a new view response from the application.
  9117. *
  9118. * @param string $view
  9119. * @param array $data
  9120. * @param int $status
  9121. * @param array $headers
  9122. * @return \Illuminate\Http\Response
  9123. * @static
  9124. */
  9125. public static function view($view, $data = [], $status = 200, $headers = [])
  9126. {
  9127. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9128. return $instance->view($view, $data, $status, $headers);
  9129. }
  9130. /**
  9131. * Return a new JSON response from the application.
  9132. *
  9133. * @param mixed $data
  9134. * @param int $status
  9135. * @param array $headers
  9136. * @param int $options
  9137. * @return \Illuminate\Http\JsonResponse
  9138. * @static
  9139. */
  9140. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  9141. {
  9142. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9143. return $instance->json($data, $status, $headers, $options);
  9144. }
  9145. /**
  9146. * Return a new JSONP response from the application.
  9147. *
  9148. * @param string $callback
  9149. * @param mixed $data
  9150. * @param int $status
  9151. * @param array $headers
  9152. * @param int $options
  9153. * @return \Illuminate\Http\JsonResponse
  9154. * @static
  9155. */
  9156. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  9157. {
  9158. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9159. return $instance->jsonp($callback, $data, $status, $headers, $options);
  9160. }
  9161. /**
  9162. * Return a new streamed response from the application.
  9163. *
  9164. * @param \Closure $callback
  9165. * @param int $status
  9166. * @param array $headers
  9167. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9168. * @static
  9169. */
  9170. public static function stream($callback, $status = 200, $headers = [])
  9171. {
  9172. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9173. return $instance->stream($callback, $status, $headers);
  9174. }
  9175. /**
  9176. * Create a new file download response.
  9177. *
  9178. * @param \SplFileInfo|string $file
  9179. * @param string $name
  9180. * @param array $headers
  9181. * @param string|null $disposition
  9182. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9183. * @static
  9184. */
  9185. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  9186. {
  9187. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9188. return $instance->download($file, $name, $headers, $disposition);
  9189. }
  9190. /**
  9191. * Return the raw contents of a binary file.
  9192. *
  9193. * @param \SplFileInfo|string $file
  9194. * @param array $headers
  9195. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9196. * @static
  9197. */
  9198. public static function file($file, $headers = [])
  9199. {
  9200. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9201. return $instance->file($file, $headers);
  9202. }
  9203. /**
  9204. * Create a new redirect response to the given path.
  9205. *
  9206. * @param string $path
  9207. * @param int $status
  9208. * @param array $headers
  9209. * @param bool|null $secure
  9210. * @return \Illuminate\Http\RedirectResponse
  9211. * @static
  9212. */
  9213. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  9214. {
  9215. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9216. return $instance->redirectTo($path, $status, $headers, $secure);
  9217. }
  9218. /**
  9219. * Create a new redirect response to a named route.
  9220. *
  9221. * @param string $route
  9222. * @param array $parameters
  9223. * @param int $status
  9224. * @param array $headers
  9225. * @return \Illuminate\Http\RedirectResponse
  9226. * @static
  9227. */
  9228. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  9229. {
  9230. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9231. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  9232. }
  9233. /**
  9234. * Create a new redirect response to a controller action.
  9235. *
  9236. * @param string $action
  9237. * @param array $parameters
  9238. * @param int $status
  9239. * @param array $headers
  9240. * @return \Illuminate\Http\RedirectResponse
  9241. * @static
  9242. */
  9243. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  9244. {
  9245. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9246. return $instance->redirectToAction($action, $parameters, $status, $headers);
  9247. }
  9248. /**
  9249. * Create a new redirect response, while putting the current URL in the session.
  9250. *
  9251. * @param string $path
  9252. * @param int $status
  9253. * @param array $headers
  9254. * @param bool|null $secure
  9255. * @return \Illuminate\Http\RedirectResponse
  9256. * @static
  9257. */
  9258. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  9259. {
  9260. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9261. return $instance->redirectGuest($path, $status, $headers, $secure);
  9262. }
  9263. /**
  9264. * Create a new redirect response to the previously intended location.
  9265. *
  9266. * @param string $default
  9267. * @param int $status
  9268. * @param array $headers
  9269. * @param bool|null $secure
  9270. * @return \Illuminate\Http\RedirectResponse
  9271. * @static
  9272. */
  9273. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  9274. {
  9275. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9276. return $instance->redirectToIntended($default, $status, $headers, $secure);
  9277. }
  9278. /**
  9279. * Register a custom macro.
  9280. *
  9281. * @param string $name
  9282. * @param object|callable $macro
  9283. * @return void
  9284. * @static
  9285. */
  9286. public static function macro($name, $macro)
  9287. {
  9288. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  9289. }
  9290. /**
  9291. * Mix another object into the class.
  9292. *
  9293. * @param object $mixin
  9294. * @return void
  9295. * @static
  9296. */
  9297. public static function mixin($mixin)
  9298. {
  9299. \Illuminate\Routing\ResponseFactory::mixin($mixin);
  9300. }
  9301. /**
  9302. * Checks if macro is registered.
  9303. *
  9304. * @param string $name
  9305. * @return bool
  9306. * @static
  9307. */
  9308. public static function hasMacro($name)
  9309. {
  9310. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  9311. }
  9312. }
  9313. /**
  9314. *
  9315. *
  9316. * @method static \Illuminate\Support\Facades\Route prefix(string $prefix)
  9317. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  9318. * @method static \Illuminate\Support\Facades\Route as(string $value)
  9319. * @method static \Illuminate\Support\Facades\Route domain(string $value)
  9320. * @method static \Illuminate\Support\Facades\Route name(string $value)
  9321. * @method static \Illuminate\Support\Facades\Route namespace(string $value)
  9322. * @method static \Illuminate\Support\Facades\Route where(array|string $name, string $expression = null)
  9323. * @see \Illuminate\Routing\Router
  9324. */
  9325. class Route {
  9326. /**
  9327. * Register a new GET route with the router.
  9328. *
  9329. * @param string $uri
  9330. * @param \Closure|array|string|null $action
  9331. * @return \Illuminate\Routing\Route
  9332. * @static
  9333. */
  9334. public static function get($uri, $action = null)
  9335. {
  9336. /** @var \Illuminate\Routing\Router $instance */
  9337. return $instance->get($uri, $action);
  9338. }
  9339. /**
  9340. * Register a new POST route with the router.
  9341. *
  9342. * @param string $uri
  9343. * @param \Closure|array|string|null $action
  9344. * @return \Illuminate\Routing\Route
  9345. * @static
  9346. */
  9347. public static function post($uri, $action = null)
  9348. {
  9349. /** @var \Illuminate\Routing\Router $instance */
  9350. return $instance->post($uri, $action);
  9351. }
  9352. /**
  9353. * Register a new PUT route with the router.
  9354. *
  9355. * @param string $uri
  9356. * @param \Closure|array|string|null $action
  9357. * @return \Illuminate\Routing\Route
  9358. * @static
  9359. */
  9360. public static function put($uri, $action = null)
  9361. {
  9362. /** @var \Illuminate\Routing\Router $instance */
  9363. return $instance->put($uri, $action);
  9364. }
  9365. /**
  9366. * Register a new PATCH route with the router.
  9367. *
  9368. * @param string $uri
  9369. * @param \Closure|array|string|null $action
  9370. * @return \Illuminate\Routing\Route
  9371. * @static
  9372. */
  9373. public static function patch($uri, $action = null)
  9374. {
  9375. /** @var \Illuminate\Routing\Router $instance */
  9376. return $instance->patch($uri, $action);
  9377. }
  9378. /**
  9379. * Register a new DELETE route with the router.
  9380. *
  9381. * @param string $uri
  9382. * @param \Closure|array|string|null $action
  9383. * @return \Illuminate\Routing\Route
  9384. * @static
  9385. */
  9386. public static function delete($uri, $action = null)
  9387. {
  9388. /** @var \Illuminate\Routing\Router $instance */
  9389. return $instance->delete($uri, $action);
  9390. }
  9391. /**
  9392. * Register a new OPTIONS route with the router.
  9393. *
  9394. * @param string $uri
  9395. * @param \Closure|array|string|null $action
  9396. * @return \Illuminate\Routing\Route
  9397. * @static
  9398. */
  9399. public static function options($uri, $action = null)
  9400. {
  9401. /** @var \Illuminate\Routing\Router $instance */
  9402. return $instance->options($uri, $action);
  9403. }
  9404. /**
  9405. * Register a new route responding to all verbs.
  9406. *
  9407. * @param string $uri
  9408. * @param \Closure|array|string|null $action
  9409. * @return \Illuminate\Routing\Route
  9410. * @static
  9411. */
  9412. public static function any($uri, $action = null)
  9413. {
  9414. /** @var \Illuminate\Routing\Router $instance */
  9415. return $instance->any($uri, $action);
  9416. }
  9417. /**
  9418. * Register a new Fallback route with the router.
  9419. *
  9420. * @param \Closure|array|string|null $action
  9421. * @return \Illuminate\Routing\Route
  9422. * @static
  9423. */
  9424. public static function fallback($action)
  9425. {
  9426. /** @var \Illuminate\Routing\Router $instance */
  9427. return $instance->fallback($action);
  9428. }
  9429. /**
  9430. * Create a redirect from one URI to another.
  9431. *
  9432. * @param string $uri
  9433. * @param string $destination
  9434. * @param int $status
  9435. * @return \Illuminate\Routing\Route
  9436. * @static
  9437. */
  9438. public static function redirect($uri, $destination, $status = 301)
  9439. {
  9440. /** @var \Illuminate\Routing\Router $instance */
  9441. return $instance->redirect($uri, $destination, $status);
  9442. }
  9443. /**
  9444. * Register a new route that returns a view.
  9445. *
  9446. * @param string $uri
  9447. * @param string $view
  9448. * @param array $data
  9449. * @return \Illuminate\Routing\Route
  9450. * @static
  9451. */
  9452. public static function view($uri, $view, $data = [])
  9453. {
  9454. /** @var \Illuminate\Routing\Router $instance */
  9455. return $instance->view($uri, $view, $data);
  9456. }
  9457. /**
  9458. * Register a new route with the given verbs.
  9459. *
  9460. * @param array|string $methods
  9461. * @param string $uri
  9462. * @param \Closure|array|string|null $action
  9463. * @return \Illuminate\Routing\Route
  9464. * @static
  9465. */
  9466. public static function match($methods, $uri, $action = null)
  9467. {
  9468. /** @var \Illuminate\Routing\Router $instance */
  9469. return $instance->match($methods, $uri, $action);
  9470. }
  9471. /**
  9472. * Register an array of resource controllers.
  9473. *
  9474. * @param array $resources
  9475. * @return void
  9476. * @static
  9477. */
  9478. public static function resources($resources)
  9479. {
  9480. /** @var \Illuminate\Routing\Router $instance */
  9481. $instance->resources($resources);
  9482. }
  9483. /**
  9484. * Route a resource to a controller.
  9485. *
  9486. * @param string $name
  9487. * @param string $controller
  9488. * @param array $options
  9489. * @return \Illuminate\Routing\PendingResourceRegistration
  9490. * @static
  9491. */
  9492. public static function resource($name, $controller, $options = [])
  9493. {
  9494. /** @var \Illuminate\Routing\Router $instance */
  9495. return $instance->resource($name, $controller, $options);
  9496. }
  9497. /**
  9498. * Register an array of API resource controllers.
  9499. *
  9500. * @param array $resources
  9501. * @return void
  9502. * @static
  9503. */
  9504. public static function apiResources($resources)
  9505. {
  9506. /** @var \Illuminate\Routing\Router $instance */
  9507. $instance->apiResources($resources);
  9508. }
  9509. /**
  9510. * Route an API resource to a controller.
  9511. *
  9512. * @param string $name
  9513. * @param string $controller
  9514. * @param array $options
  9515. * @return \Illuminate\Routing\PendingResourceRegistration
  9516. * @static
  9517. */
  9518. public static function apiResource($name, $controller, $options = [])
  9519. {
  9520. /** @var \Illuminate\Routing\Router $instance */
  9521. return $instance->apiResource($name, $controller, $options);
  9522. }
  9523. /**
  9524. * Create a route group with shared attributes.
  9525. *
  9526. * @param array $attributes
  9527. * @param \Closure|string $routes
  9528. * @return void
  9529. * @static
  9530. */
  9531. public static function group($attributes, $routes)
  9532. {
  9533. /** @var \Illuminate\Routing\Router $instance */
  9534. $instance->group($attributes, $routes);
  9535. }
  9536. /**
  9537. * Merge the given array with the last group stack.
  9538. *
  9539. * @param array $new
  9540. * @return array
  9541. * @static
  9542. */
  9543. public static function mergeWithLastGroup($new)
  9544. {
  9545. /** @var \Illuminate\Routing\Router $instance */
  9546. return $instance->mergeWithLastGroup($new);
  9547. }
  9548. /**
  9549. * Get the prefix from the last group on the stack.
  9550. *
  9551. * @return string
  9552. * @static
  9553. */
  9554. public static function getLastGroupPrefix()
  9555. {
  9556. /** @var \Illuminate\Routing\Router $instance */
  9557. return $instance->getLastGroupPrefix();
  9558. }
  9559. /**
  9560. * Return the response returned by the given route.
  9561. *
  9562. * @param string $name
  9563. * @return mixed
  9564. * @static
  9565. */
  9566. public static function respondWithRoute($name)
  9567. {
  9568. /** @var \Illuminate\Routing\Router $instance */
  9569. return $instance->respondWithRoute($name);
  9570. }
  9571. /**
  9572. * Dispatch the request to the application.
  9573. *
  9574. * @param \Illuminate\Http\Request $request
  9575. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9576. * @static
  9577. */
  9578. public static function dispatch($request)
  9579. {
  9580. /** @var \Illuminate\Routing\Router $instance */
  9581. return $instance->dispatch($request);
  9582. }
  9583. /**
  9584. * Dispatch the request to a route and return the response.
  9585. *
  9586. * @param \Illuminate\Http\Request $request
  9587. * @return mixed
  9588. * @static
  9589. */
  9590. public static function dispatchToRoute($request)
  9591. {
  9592. /** @var \Illuminate\Routing\Router $instance */
  9593. return $instance->dispatchToRoute($request);
  9594. }
  9595. /**
  9596. * Gather the middleware for the given route with resolved class names.
  9597. *
  9598. * @param \Illuminate\Routing\Route $route
  9599. * @return array
  9600. * @static
  9601. */
  9602. public static function gatherRouteMiddleware($route)
  9603. {
  9604. /** @var \Illuminate\Routing\Router $instance */
  9605. return $instance->gatherRouteMiddleware($route);
  9606. }
  9607. /**
  9608. * Create a response instance from the given value.
  9609. *
  9610. * @param \Symfony\Component\HttpFoundation\Request $request
  9611. * @param mixed $response
  9612. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9613. * @static
  9614. */
  9615. public static function prepareResponse($request, $response)
  9616. {
  9617. /** @var \Illuminate\Routing\Router $instance */
  9618. return $instance->prepareResponse($request, $response);
  9619. }
  9620. /**
  9621. * Static version of prepareResponse.
  9622. *
  9623. * @param \Symfony\Component\HttpFoundation\Request $request
  9624. * @param mixed $response
  9625. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9626. * @static
  9627. */
  9628. public static function toResponse($request, $response)
  9629. {
  9630. return \Illuminate\Routing\Router::toResponse($request, $response);
  9631. }
  9632. /**
  9633. * Substitute the route bindings onto the route.
  9634. *
  9635. * @param \Illuminate\Routing\Route $route
  9636. * @return \Illuminate\Routing\Route
  9637. * @static
  9638. */
  9639. public static function substituteBindings($route)
  9640. {
  9641. /** @var \Illuminate\Routing\Router $instance */
  9642. return $instance->substituteBindings($route);
  9643. }
  9644. /**
  9645. * Substitute the implicit Eloquent model bindings for the route.
  9646. *
  9647. * @param \Illuminate\Routing\Route $route
  9648. * @return void
  9649. * @static
  9650. */
  9651. public static function substituteImplicitBindings($route)
  9652. {
  9653. /** @var \Illuminate\Routing\Router $instance */
  9654. $instance->substituteImplicitBindings($route);
  9655. }
  9656. /**
  9657. * Register a route matched event listener.
  9658. *
  9659. * @param string|callable $callback
  9660. * @return void
  9661. * @static
  9662. */
  9663. public static function matched($callback)
  9664. {
  9665. /** @var \Illuminate\Routing\Router $instance */
  9666. $instance->matched($callback);
  9667. }
  9668. /**
  9669. * Get all of the defined middleware short-hand names.
  9670. *
  9671. * @return array
  9672. * @static
  9673. */
  9674. public static function getMiddleware()
  9675. {
  9676. /** @var \Illuminate\Routing\Router $instance */
  9677. return $instance->getMiddleware();
  9678. }
  9679. /**
  9680. * Register a short-hand name for a middleware.
  9681. *
  9682. * @param string $name
  9683. * @param string $class
  9684. * @return \Illuminate\Routing\Router
  9685. * @static
  9686. */
  9687. public static function aliasMiddleware($name, $class)
  9688. {
  9689. /** @var \Illuminate\Routing\Router $instance */
  9690. return $instance->aliasMiddleware($name, $class);
  9691. }
  9692. /**
  9693. * Check if a middlewareGroup with the given name exists.
  9694. *
  9695. * @param string $name
  9696. * @return bool
  9697. * @static
  9698. */
  9699. public static function hasMiddlewareGroup($name)
  9700. {
  9701. /** @var \Illuminate\Routing\Router $instance */
  9702. return $instance->hasMiddlewareGroup($name);
  9703. }
  9704. /**
  9705. * Get all of the defined middleware groups.
  9706. *
  9707. * @return array
  9708. * @static
  9709. */
  9710. public static function getMiddlewareGroups()
  9711. {
  9712. /** @var \Illuminate\Routing\Router $instance */
  9713. return $instance->getMiddlewareGroups();
  9714. }
  9715. /**
  9716. * Register a group of middleware.
  9717. *
  9718. * @param string $name
  9719. * @param array $middleware
  9720. * @return \Illuminate\Routing\Router
  9721. * @static
  9722. */
  9723. public static function middlewareGroup($name, $middleware)
  9724. {
  9725. /** @var \Illuminate\Routing\Router $instance */
  9726. return $instance->middlewareGroup($name, $middleware);
  9727. }
  9728. /**
  9729. * Add a middleware to the beginning of a middleware group.
  9730. *
  9731. * If the middleware is already in the group, it will not be added again.
  9732. *
  9733. * @param string $group
  9734. * @param string $middleware
  9735. * @return \Illuminate\Routing\Router
  9736. * @static
  9737. */
  9738. public static function prependMiddlewareToGroup($group, $middleware)
  9739. {
  9740. /** @var \Illuminate\Routing\Router $instance */
  9741. return $instance->prependMiddlewareToGroup($group, $middleware);
  9742. }
  9743. /**
  9744. * Add a middleware to the end of a middleware group.
  9745. *
  9746. * If the middleware is already in the group, it will not be added again.
  9747. *
  9748. * @param string $group
  9749. * @param string $middleware
  9750. * @return \Illuminate\Routing\Router
  9751. * @static
  9752. */
  9753. public static function pushMiddlewareToGroup($group, $middleware)
  9754. {
  9755. /** @var \Illuminate\Routing\Router $instance */
  9756. return $instance->pushMiddlewareToGroup($group, $middleware);
  9757. }
  9758. /**
  9759. * Add a new route parameter binder.
  9760. *
  9761. * @param string $key
  9762. * @param string|callable $binder
  9763. * @return void
  9764. * @static
  9765. */
  9766. public static function bind($key, $binder)
  9767. {
  9768. /** @var \Illuminate\Routing\Router $instance */
  9769. $instance->bind($key, $binder);
  9770. }
  9771. /**
  9772. * Register a model binder for a wildcard.
  9773. *
  9774. * @param string $key
  9775. * @param string $class
  9776. * @param \Closure|null $callback
  9777. * @return void
  9778. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  9779. * @static
  9780. */
  9781. public static function model($key, $class, $callback = null)
  9782. {
  9783. /** @var \Illuminate\Routing\Router $instance */
  9784. $instance->model($key, $class, $callback);
  9785. }
  9786. /**
  9787. * Get the binding callback for a given binding.
  9788. *
  9789. * @param string $key
  9790. * @return \Closure|null
  9791. * @static
  9792. */
  9793. public static function getBindingCallback($key)
  9794. {
  9795. /** @var \Illuminate\Routing\Router $instance */
  9796. return $instance->getBindingCallback($key);
  9797. }
  9798. /**
  9799. * Get the global "where" patterns.
  9800. *
  9801. * @return array
  9802. * @static
  9803. */
  9804. public static function getPatterns()
  9805. {
  9806. /** @var \Illuminate\Routing\Router $instance */
  9807. return $instance->getPatterns();
  9808. }
  9809. /**
  9810. * Set a global where pattern on all routes.
  9811. *
  9812. * @param string $key
  9813. * @param string $pattern
  9814. * @return void
  9815. * @static
  9816. */
  9817. public static function pattern($key, $pattern)
  9818. {
  9819. /** @var \Illuminate\Routing\Router $instance */
  9820. $instance->pattern($key, $pattern);
  9821. }
  9822. /**
  9823. * Set a group of global where patterns on all routes.
  9824. *
  9825. * @param array $patterns
  9826. * @return void
  9827. * @static
  9828. */
  9829. public static function patterns($patterns)
  9830. {
  9831. /** @var \Illuminate\Routing\Router $instance */
  9832. $instance->patterns($patterns);
  9833. }
  9834. /**
  9835. * Determine if the router currently has a group stack.
  9836. *
  9837. * @return bool
  9838. * @static
  9839. */
  9840. public static function hasGroupStack()
  9841. {
  9842. /** @var \Illuminate\Routing\Router $instance */
  9843. return $instance->hasGroupStack();
  9844. }
  9845. /**
  9846. * Get the current group stack for the router.
  9847. *
  9848. * @return array
  9849. * @static
  9850. */
  9851. public static function getGroupStack()
  9852. {
  9853. /** @var \Illuminate\Routing\Router $instance */
  9854. return $instance->getGroupStack();
  9855. }
  9856. /**
  9857. * Get a route parameter for the current route.
  9858. *
  9859. * @param string $key
  9860. * @param string $default
  9861. * @return mixed
  9862. * @static
  9863. */
  9864. public static function input($key, $default = null)
  9865. {
  9866. /** @var \Illuminate\Routing\Router $instance */
  9867. return $instance->input($key, $default);
  9868. }
  9869. /**
  9870. * Get the request currently being dispatched.
  9871. *
  9872. * @return \Illuminate\Http\Request
  9873. * @static
  9874. */
  9875. public static function getCurrentRequest()
  9876. {
  9877. /** @var \Illuminate\Routing\Router $instance */
  9878. return $instance->getCurrentRequest();
  9879. }
  9880. /**
  9881. * Get the currently dispatched route instance.
  9882. *
  9883. * @return \Illuminate\Routing\Route
  9884. * @static
  9885. */
  9886. public static function getCurrentRoute()
  9887. {
  9888. /** @var \Illuminate\Routing\Router $instance */
  9889. return $instance->getCurrentRoute();
  9890. }
  9891. /**
  9892. * Get the currently dispatched route instance.
  9893. *
  9894. * @return \Illuminate\Routing\Route
  9895. * @static
  9896. */
  9897. public static function current()
  9898. {
  9899. /** @var \Illuminate\Routing\Router $instance */
  9900. return $instance->current();
  9901. }
  9902. /**
  9903. * Check if a route with the given name exists.
  9904. *
  9905. * @param string $name
  9906. * @return bool
  9907. * @static
  9908. */
  9909. public static function has($name)
  9910. {
  9911. /** @var \Illuminate\Routing\Router $instance */
  9912. return $instance->has($name);
  9913. }
  9914. /**
  9915. * Get the current route name.
  9916. *
  9917. * @return string|null
  9918. * @static
  9919. */
  9920. public static function currentRouteName()
  9921. {
  9922. /** @var \Illuminate\Routing\Router $instance */
  9923. return $instance->currentRouteName();
  9924. }
  9925. /**
  9926. * Alias for the "currentRouteNamed" method.
  9927. *
  9928. * @param mixed $patterns
  9929. * @return bool
  9930. * @static
  9931. */
  9932. public static function is(...$patterns)
  9933. {
  9934. /** @var \Illuminate\Routing\Router $instance */
  9935. return $instance->is(...$patterns);
  9936. }
  9937. /**
  9938. * Determine if the current route matches a pattern.
  9939. *
  9940. * @param mixed $patterns
  9941. * @return bool
  9942. * @static
  9943. */
  9944. public static function currentRouteNamed(...$patterns)
  9945. {
  9946. /** @var \Illuminate\Routing\Router $instance */
  9947. return $instance->currentRouteNamed(...$patterns);
  9948. }
  9949. /**
  9950. * Get the current route action.
  9951. *
  9952. * @return string|null
  9953. * @static
  9954. */
  9955. public static function currentRouteAction()
  9956. {
  9957. /** @var \Illuminate\Routing\Router $instance */
  9958. return $instance->currentRouteAction();
  9959. }
  9960. /**
  9961. * Alias for the "currentRouteUses" method.
  9962. *
  9963. * @param array $patterns
  9964. * @return bool
  9965. * @static
  9966. */
  9967. public static function uses(...$patterns)
  9968. {
  9969. /** @var \Illuminate\Routing\Router $instance */
  9970. return $instance->uses(...$patterns);
  9971. }
  9972. /**
  9973. * Determine if the current route action matches a given action.
  9974. *
  9975. * @param string $action
  9976. * @return bool
  9977. * @static
  9978. */
  9979. public static function currentRouteUses($action)
  9980. {
  9981. /** @var \Illuminate\Routing\Router $instance */
  9982. return $instance->currentRouteUses($action);
  9983. }
  9984. /**
  9985. * Register the typical authentication routes for an application.
  9986. *
  9987. * @return void
  9988. * @static
  9989. */
  9990. public static function auth()
  9991. {
  9992. /** @var \Illuminate\Routing\Router $instance */
  9993. $instance->auth();
  9994. }
  9995. /**
  9996. * Set the unmapped global resource parameters to singular.
  9997. *
  9998. * @param bool $singular
  9999. * @return void
  10000. * @static
  10001. */
  10002. public static function singularResourceParameters($singular = true)
  10003. {
  10004. /** @var \Illuminate\Routing\Router $instance */
  10005. $instance->singularResourceParameters($singular);
  10006. }
  10007. /**
  10008. * Set the global resource parameter mapping.
  10009. *
  10010. * @param array $parameters
  10011. * @return void
  10012. * @static
  10013. */
  10014. public static function resourceParameters($parameters = [])
  10015. {
  10016. /** @var \Illuminate\Routing\Router $instance */
  10017. $instance->resourceParameters($parameters);
  10018. }
  10019. /**
  10020. * Get or set the verbs used in the resource URIs.
  10021. *
  10022. * @param array $verbs
  10023. * @return array|null
  10024. * @static
  10025. */
  10026. public static function resourceVerbs($verbs = [])
  10027. {
  10028. /** @var \Illuminate\Routing\Router $instance */
  10029. return $instance->resourceVerbs($verbs);
  10030. }
  10031. /**
  10032. * Get the underlying route collection.
  10033. *
  10034. * @return \Illuminate\Routing\RouteCollection
  10035. * @static
  10036. */
  10037. public static function getRoutes()
  10038. {
  10039. /** @var \Illuminate\Routing\Router $instance */
  10040. return $instance->getRoutes();
  10041. }
  10042. /**
  10043. * Set the route collection instance.
  10044. *
  10045. * @param \Illuminate\Routing\RouteCollection $routes
  10046. * @return void
  10047. * @static
  10048. */
  10049. public static function setRoutes($routes)
  10050. {
  10051. /** @var \Illuminate\Routing\Router $instance */
  10052. $instance->setRoutes($routes);
  10053. }
  10054. /**
  10055. * Register a custom macro.
  10056. *
  10057. * @param string $name
  10058. * @param object|callable $macro
  10059. * @return void
  10060. * @static
  10061. */
  10062. public static function macro($name, $macro)
  10063. {
  10064. \Illuminate\Routing\Router::macro($name, $macro);
  10065. }
  10066. /**
  10067. * Mix another object into the class.
  10068. *
  10069. * @param object $mixin
  10070. * @return void
  10071. * @static
  10072. */
  10073. public static function mixin($mixin)
  10074. {
  10075. \Illuminate\Routing\Router::mixin($mixin);
  10076. }
  10077. /**
  10078. * Checks if macro is registered.
  10079. *
  10080. * @param string $name
  10081. * @return bool
  10082. * @static
  10083. */
  10084. public static function hasMacro($name)
  10085. {
  10086. return \Illuminate\Routing\Router::hasMacro($name);
  10087. }
  10088. /**
  10089. * Dynamically handle calls to the class.
  10090. *
  10091. * @param string $method
  10092. * @param array $parameters
  10093. * @return mixed
  10094. * @throws \BadMethodCallException
  10095. * @static
  10096. */
  10097. public static function macroCall($method, $parameters)
  10098. {
  10099. /** @var \Illuminate\Routing\Router $instance */
  10100. return $instance->macroCall($method, $parameters);
  10101. }
  10102. }
  10103. /**
  10104. *
  10105. *
  10106. * @see \Illuminate\Database\Schema\Builder
  10107. */
  10108. class Schema {
  10109. /**
  10110. * Determine if the given table exists.
  10111. *
  10112. * @param string $table
  10113. * @return bool
  10114. * @static
  10115. */
  10116. public static function hasTable($table)
  10117. {
  10118. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10119. return $instance->hasTable($table);
  10120. }
  10121. /**
  10122. * Get the column listing for a given table.
  10123. *
  10124. * @param string $table
  10125. * @return array
  10126. * @static
  10127. */
  10128. public static function getColumnListing($table)
  10129. {
  10130. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10131. return $instance->getColumnListing($table);
  10132. }
  10133. /**
  10134. * Drop all tables from the database.
  10135. *
  10136. * @return void
  10137. * @static
  10138. */
  10139. public static function dropAllTables()
  10140. {
  10141. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10142. $instance->dropAllTables();
  10143. }
  10144. /**
  10145. * Set the default string length for migrations.
  10146. *
  10147. * @param int $length
  10148. * @return void
  10149. * @static
  10150. */
  10151. public static function defaultStringLength($length)
  10152. {
  10153. //Method inherited from \Illuminate\Database\Schema\Builder
  10154. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  10155. }
  10156. /**
  10157. * Determine if the given table has a given column.
  10158. *
  10159. * @param string $table
  10160. * @param string $column
  10161. * @return bool
  10162. * @static
  10163. */
  10164. public static function hasColumn($table, $column)
  10165. {
  10166. //Method inherited from \Illuminate\Database\Schema\Builder
  10167. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10168. return $instance->hasColumn($table, $column);
  10169. }
  10170. /**
  10171. * Determine if the given table has given columns.
  10172. *
  10173. * @param string $table
  10174. * @param array $columns
  10175. * @return bool
  10176. * @static
  10177. */
  10178. public static function hasColumns($table, $columns)
  10179. {
  10180. //Method inherited from \Illuminate\Database\Schema\Builder
  10181. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10182. return $instance->hasColumns($table, $columns);
  10183. }
  10184. /**
  10185. * Get the data type for the given column name.
  10186. *
  10187. * @param string $table
  10188. * @param string $column
  10189. * @return string
  10190. * @static
  10191. */
  10192. public static function getColumnType($table, $column)
  10193. {
  10194. //Method inherited from \Illuminate\Database\Schema\Builder
  10195. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10196. return $instance->getColumnType($table, $column);
  10197. }
  10198. /**
  10199. * Modify a table on the schema.
  10200. *
  10201. * @param string $table
  10202. * @param \Closure $callback
  10203. * @return void
  10204. * @static
  10205. */
  10206. public static function table($table, $callback)
  10207. {
  10208. //Method inherited from \Illuminate\Database\Schema\Builder
  10209. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10210. $instance->table($table, $callback);
  10211. }
  10212. /**
  10213. * Create a new table on the schema.
  10214. *
  10215. * @param string $table
  10216. * @param \Closure $callback
  10217. * @return void
  10218. * @static
  10219. */
  10220. public static function create($table, $callback)
  10221. {
  10222. //Method inherited from \Illuminate\Database\Schema\Builder
  10223. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10224. $instance->create($table, $callback);
  10225. }
  10226. /**
  10227. * Drop a table from the schema.
  10228. *
  10229. * @param string $table
  10230. * @return void
  10231. * @static
  10232. */
  10233. public static function drop($table)
  10234. {
  10235. //Method inherited from \Illuminate\Database\Schema\Builder
  10236. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10237. $instance->drop($table);
  10238. }
  10239. /**
  10240. * Drop a table from the schema if it exists.
  10241. *
  10242. * @param string $table
  10243. * @return void
  10244. * @static
  10245. */
  10246. public static function dropIfExists($table)
  10247. {
  10248. //Method inherited from \Illuminate\Database\Schema\Builder
  10249. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10250. $instance->dropIfExists($table);
  10251. }
  10252. /**
  10253. * Rename a table on the schema.
  10254. *
  10255. * @param string $from
  10256. * @param string $to
  10257. * @return void
  10258. * @static
  10259. */
  10260. public static function rename($from, $to)
  10261. {
  10262. //Method inherited from \Illuminate\Database\Schema\Builder
  10263. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10264. $instance->rename($from, $to);
  10265. }
  10266. /**
  10267. * Enable foreign key constraints.
  10268. *
  10269. * @return bool
  10270. * @static
  10271. */
  10272. public static function enableForeignKeyConstraints()
  10273. {
  10274. //Method inherited from \Illuminate\Database\Schema\Builder
  10275. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10276. return $instance->enableForeignKeyConstraints();
  10277. }
  10278. /**
  10279. * Disable foreign key constraints.
  10280. *
  10281. * @return bool
  10282. * @static
  10283. */
  10284. public static function disableForeignKeyConstraints()
  10285. {
  10286. //Method inherited from \Illuminate\Database\Schema\Builder
  10287. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10288. return $instance->disableForeignKeyConstraints();
  10289. }
  10290. /**
  10291. * Get the database connection instance.
  10292. *
  10293. * @return \Illuminate\Database\Connection
  10294. * @static
  10295. */
  10296. public static function getConnection()
  10297. {
  10298. //Method inherited from \Illuminate\Database\Schema\Builder
  10299. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10300. return $instance->getConnection();
  10301. }
  10302. /**
  10303. * Set the database connection instance.
  10304. *
  10305. * @param \Illuminate\Database\Connection $connection
  10306. * @return \Illuminate\Database\Schema\MySqlBuilder
  10307. * @static
  10308. */
  10309. public static function setConnection($connection)
  10310. {
  10311. //Method inherited from \Illuminate\Database\Schema\Builder
  10312. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10313. return $instance->setConnection($connection);
  10314. }
  10315. /**
  10316. * Set the Schema Blueprint resolver callback.
  10317. *
  10318. * @param \Closure $resolver
  10319. * @return void
  10320. * @static
  10321. */
  10322. public static function blueprintResolver($resolver)
  10323. {
  10324. //Method inherited from \Illuminate\Database\Schema\Builder
  10325. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10326. $instance->blueprintResolver($resolver);
  10327. }
  10328. }
  10329. /**
  10330. *
  10331. *
  10332. * @see \Illuminate\Session\SessionManager
  10333. * @see \Illuminate\Session\Store
  10334. */
  10335. class Session {
  10336. /**
  10337. * Get the session configuration.
  10338. *
  10339. * @return array
  10340. * @static
  10341. */
  10342. public static function getSessionConfig()
  10343. {
  10344. /** @var \Illuminate\Session\SessionManager $instance */
  10345. return $instance->getSessionConfig();
  10346. }
  10347. /**
  10348. * Get the default session driver name.
  10349. *
  10350. * @return string
  10351. * @static
  10352. */
  10353. public static function getDefaultDriver()
  10354. {
  10355. /** @var \Illuminate\Session\SessionManager $instance */
  10356. return $instance->getDefaultDriver();
  10357. }
  10358. /**
  10359. * Set the default session driver name.
  10360. *
  10361. * @param string $name
  10362. * @return void
  10363. * @static
  10364. */
  10365. public static function setDefaultDriver($name)
  10366. {
  10367. /** @var \Illuminate\Session\SessionManager $instance */
  10368. $instance->setDefaultDriver($name);
  10369. }
  10370. /**
  10371. * Get a driver instance.
  10372. *
  10373. * @param string $driver
  10374. * @return mixed
  10375. * @static
  10376. */
  10377. public static function driver($driver = null)
  10378. {
  10379. //Method inherited from \Illuminate\Support\Manager
  10380. /** @var \Illuminate\Session\SessionManager $instance */
  10381. return $instance->driver($driver);
  10382. }
  10383. /**
  10384. * Register a custom driver creator Closure.
  10385. *
  10386. * @param string $driver
  10387. * @param \Closure $callback
  10388. * @return \Illuminate\Session\SessionManager
  10389. * @static
  10390. */
  10391. public static function extend($driver, $callback)
  10392. {
  10393. //Method inherited from \Illuminate\Support\Manager
  10394. /** @var \Illuminate\Session\SessionManager $instance */
  10395. return $instance->extend($driver, $callback);
  10396. }
  10397. /**
  10398. * Get all of the created "drivers".
  10399. *
  10400. * @return array
  10401. * @static
  10402. */
  10403. public static function getDrivers()
  10404. {
  10405. //Method inherited from \Illuminate\Support\Manager
  10406. /** @var \Illuminate\Session\SessionManager $instance */
  10407. return $instance->getDrivers();
  10408. }
  10409. /**
  10410. * Start the session, reading the data from a handler.
  10411. *
  10412. * @return bool
  10413. * @static
  10414. */
  10415. public static function start()
  10416. {
  10417. /** @var \Illuminate\Session\Store $instance */
  10418. return $instance->start();
  10419. }
  10420. /**
  10421. * Save the session data to storage.
  10422. *
  10423. * @return bool
  10424. * @static
  10425. */
  10426. public static function save()
  10427. {
  10428. /** @var \Illuminate\Session\Store $instance */
  10429. return $instance->save();
  10430. }
  10431. /**
  10432. * Age the flash data for the session.
  10433. *
  10434. * @return void
  10435. * @static
  10436. */
  10437. public static function ageFlashData()
  10438. {
  10439. /** @var \Illuminate\Session\Store $instance */
  10440. $instance->ageFlashData();
  10441. }
  10442. /**
  10443. * Get all of the session data.
  10444. *
  10445. * @return array
  10446. * @static
  10447. */
  10448. public static function all()
  10449. {
  10450. /** @var \Illuminate\Session\Store $instance */
  10451. return $instance->all();
  10452. }
  10453. /**
  10454. * Checks if a key exists.
  10455. *
  10456. * @param string|array $key
  10457. * @return bool
  10458. * @static
  10459. */
  10460. public static function exists($key)
  10461. {
  10462. /** @var \Illuminate\Session\Store $instance */
  10463. return $instance->exists($key);
  10464. }
  10465. /**
  10466. * Checks if a key is present and not null.
  10467. *
  10468. * @param string|array $key
  10469. * @return bool
  10470. * @static
  10471. */
  10472. public static function has($key)
  10473. {
  10474. /** @var \Illuminate\Session\Store $instance */
  10475. return $instance->has($key);
  10476. }
  10477. /**
  10478. * Get an item from the session.
  10479. *
  10480. * @param string $key
  10481. * @param mixed $default
  10482. * @return mixed
  10483. * @static
  10484. */
  10485. public static function get($key, $default = null)
  10486. {
  10487. /** @var \Illuminate\Session\Store $instance */
  10488. return $instance->get($key, $default);
  10489. }
  10490. /**
  10491. * Get the value of a given key and then forget it.
  10492. *
  10493. * @param string $key
  10494. * @param string $default
  10495. * @return mixed
  10496. * @static
  10497. */
  10498. public static function pull($key, $default = null)
  10499. {
  10500. /** @var \Illuminate\Session\Store $instance */
  10501. return $instance->pull($key, $default);
  10502. }
  10503. /**
  10504. * Determine if the session contains old input.
  10505. *
  10506. * @param string $key
  10507. * @return bool
  10508. * @static
  10509. */
  10510. public static function hasOldInput($key = null)
  10511. {
  10512. /** @var \Illuminate\Session\Store $instance */
  10513. return $instance->hasOldInput($key);
  10514. }
  10515. /**
  10516. * Get the requested item from the flashed input array.
  10517. *
  10518. * @param string $key
  10519. * @param mixed $default
  10520. * @return mixed
  10521. * @static
  10522. */
  10523. public static function getOldInput($key = null, $default = null)
  10524. {
  10525. /** @var \Illuminate\Session\Store $instance */
  10526. return $instance->getOldInput($key, $default);
  10527. }
  10528. /**
  10529. * Replace the given session attributes entirely.
  10530. *
  10531. * @param array $attributes
  10532. * @return void
  10533. * @static
  10534. */
  10535. public static function replace($attributes)
  10536. {
  10537. /** @var \Illuminate\Session\Store $instance */
  10538. $instance->replace($attributes);
  10539. }
  10540. /**
  10541. * Put a key / value pair or array of key / value pairs in the session.
  10542. *
  10543. * @param string|array $key
  10544. * @param mixed $value
  10545. * @return void
  10546. * @static
  10547. */
  10548. public static function put($key, $value = null)
  10549. {
  10550. /** @var \Illuminate\Session\Store $instance */
  10551. $instance->put($key, $value);
  10552. }
  10553. /**
  10554. * Get an item from the session, or store the default value.
  10555. *
  10556. * @param string $key
  10557. * @param \Closure $callback
  10558. * @return mixed
  10559. * @static
  10560. */
  10561. public static function remember($key, $callback)
  10562. {
  10563. /** @var \Illuminate\Session\Store $instance */
  10564. return $instance->remember($key, $callback);
  10565. }
  10566. /**
  10567. * Push a value onto a session array.
  10568. *
  10569. * @param string $key
  10570. * @param mixed $value
  10571. * @return void
  10572. * @static
  10573. */
  10574. public static function push($key, $value)
  10575. {
  10576. /** @var \Illuminate\Session\Store $instance */
  10577. $instance->push($key, $value);
  10578. }
  10579. /**
  10580. * Increment the value of an item in the session.
  10581. *
  10582. * @param string $key
  10583. * @param int $amount
  10584. * @return mixed
  10585. * @static
  10586. */
  10587. public static function increment($key, $amount = 1)
  10588. {
  10589. /** @var \Illuminate\Session\Store $instance */
  10590. return $instance->increment($key, $amount);
  10591. }
  10592. /**
  10593. * Decrement the value of an item in the session.
  10594. *
  10595. * @param string $key
  10596. * @param int $amount
  10597. * @return int
  10598. * @static
  10599. */
  10600. public static function decrement($key, $amount = 1)
  10601. {
  10602. /** @var \Illuminate\Session\Store $instance */
  10603. return $instance->decrement($key, $amount);
  10604. }
  10605. /**
  10606. * Flash a key / value pair to the session.
  10607. *
  10608. * @param string $key
  10609. * @param mixed $value
  10610. * @return void
  10611. * @static
  10612. */
  10613. public static function flash($key, $value = true)
  10614. {
  10615. /** @var \Illuminate\Session\Store $instance */
  10616. $instance->flash($key, $value);
  10617. }
  10618. /**
  10619. * Flash a key / value pair to the session for immediate use.
  10620. *
  10621. * @param string $key
  10622. * @param mixed $value
  10623. * @return void
  10624. * @static
  10625. */
  10626. public static function now($key, $value)
  10627. {
  10628. /** @var \Illuminate\Session\Store $instance */
  10629. $instance->now($key, $value);
  10630. }
  10631. /**
  10632. * Reflash all of the session flash data.
  10633. *
  10634. * @return void
  10635. * @static
  10636. */
  10637. public static function reflash()
  10638. {
  10639. /** @var \Illuminate\Session\Store $instance */
  10640. $instance->reflash();
  10641. }
  10642. /**
  10643. * Reflash a subset of the current flash data.
  10644. *
  10645. * @param array|mixed $keys
  10646. * @return void
  10647. * @static
  10648. */
  10649. public static function keep($keys = null)
  10650. {
  10651. /** @var \Illuminate\Session\Store $instance */
  10652. $instance->keep($keys);
  10653. }
  10654. /**
  10655. * Flash an input array to the session.
  10656. *
  10657. * @param array $value
  10658. * @return void
  10659. * @static
  10660. */
  10661. public static function flashInput($value)
  10662. {
  10663. /** @var \Illuminate\Session\Store $instance */
  10664. $instance->flashInput($value);
  10665. }
  10666. /**
  10667. * Remove an item from the session, returning its value.
  10668. *
  10669. * @param string $key
  10670. * @return mixed
  10671. * @static
  10672. */
  10673. public static function remove($key)
  10674. {
  10675. /** @var \Illuminate\Session\Store $instance */
  10676. return $instance->remove($key);
  10677. }
  10678. /**
  10679. * Remove one or many items from the session.
  10680. *
  10681. * @param string|array $keys
  10682. * @return void
  10683. * @static
  10684. */
  10685. public static function forget($keys)
  10686. {
  10687. /** @var \Illuminate\Session\Store $instance */
  10688. $instance->forget($keys);
  10689. }
  10690. /**
  10691. * Remove all of the items from the session.
  10692. *
  10693. * @return void
  10694. * @static
  10695. */
  10696. public static function flush()
  10697. {
  10698. /** @var \Illuminate\Session\Store $instance */
  10699. $instance->flush();
  10700. }
  10701. /**
  10702. * Flush the session data and regenerate the ID.
  10703. *
  10704. * @return bool
  10705. * @static
  10706. */
  10707. public static function invalidate()
  10708. {
  10709. /** @var \Illuminate\Session\Store $instance */
  10710. return $instance->invalidate();
  10711. }
  10712. /**
  10713. * Generate a new session identifier.
  10714. *
  10715. * @param bool $destroy
  10716. * @return bool
  10717. * @static
  10718. */
  10719. public static function regenerate($destroy = false)
  10720. {
  10721. /** @var \Illuminate\Session\Store $instance */
  10722. return $instance->regenerate($destroy);
  10723. }
  10724. /**
  10725. * Generate a new session ID for the session.
  10726. *
  10727. * @param bool $destroy
  10728. * @return bool
  10729. * @static
  10730. */
  10731. public static function migrate($destroy = false)
  10732. {
  10733. /** @var \Illuminate\Session\Store $instance */
  10734. return $instance->migrate($destroy);
  10735. }
  10736. /**
  10737. * Determine if the session has been started.
  10738. *
  10739. * @return bool
  10740. * @static
  10741. */
  10742. public static function isStarted()
  10743. {
  10744. /** @var \Illuminate\Session\Store $instance */
  10745. return $instance->isStarted();
  10746. }
  10747. /**
  10748. * Get the name of the session.
  10749. *
  10750. * @return string
  10751. * @static
  10752. */
  10753. public static function getName()
  10754. {
  10755. /** @var \Illuminate\Session\Store $instance */
  10756. return $instance->getName();
  10757. }
  10758. /**
  10759. * Set the name of the session.
  10760. *
  10761. * @param string $name
  10762. * @return void
  10763. * @static
  10764. */
  10765. public static function setName($name)
  10766. {
  10767. /** @var \Illuminate\Session\Store $instance */
  10768. $instance->setName($name);
  10769. }
  10770. /**
  10771. * Get the current session ID.
  10772. *
  10773. * @return string
  10774. * @static
  10775. */
  10776. public static function getId()
  10777. {
  10778. /** @var \Illuminate\Session\Store $instance */
  10779. return $instance->getId();
  10780. }
  10781. /**
  10782. * Set the session ID.
  10783. *
  10784. * @param string $id
  10785. * @return void
  10786. * @static
  10787. */
  10788. public static function setId($id)
  10789. {
  10790. /** @var \Illuminate\Session\Store $instance */
  10791. $instance->setId($id);
  10792. }
  10793. /**
  10794. * Determine if this is a valid session ID.
  10795. *
  10796. * @param string $id
  10797. * @return bool
  10798. * @static
  10799. */
  10800. public static function isValidId($id)
  10801. {
  10802. /** @var \Illuminate\Session\Store $instance */
  10803. return $instance->isValidId($id);
  10804. }
  10805. /**
  10806. * Set the existence of the session on the handler if applicable.
  10807. *
  10808. * @param bool $value
  10809. * @return void
  10810. * @static
  10811. */
  10812. public static function setExists($value)
  10813. {
  10814. /** @var \Illuminate\Session\Store $instance */
  10815. $instance->setExists($value);
  10816. }
  10817. /**
  10818. * Get the CSRF token value.
  10819. *
  10820. * @return string
  10821. * @static
  10822. */
  10823. public static function token()
  10824. {
  10825. /** @var \Illuminate\Session\Store $instance */
  10826. return $instance->token();
  10827. }
  10828. /**
  10829. * Regenerate the CSRF token value.
  10830. *
  10831. * @return void
  10832. * @static
  10833. */
  10834. public static function regenerateToken()
  10835. {
  10836. /** @var \Illuminate\Session\Store $instance */
  10837. $instance->regenerateToken();
  10838. }
  10839. /**
  10840. * Get the previous URL from the session.
  10841. *
  10842. * @return string|null
  10843. * @static
  10844. */
  10845. public static function previousUrl()
  10846. {
  10847. /** @var \Illuminate\Session\Store $instance */
  10848. return $instance->previousUrl();
  10849. }
  10850. /**
  10851. * Set the "previous" URL in the session.
  10852. *
  10853. * @param string $url
  10854. * @return void
  10855. * @static
  10856. */
  10857. public static function setPreviousUrl($url)
  10858. {
  10859. /** @var \Illuminate\Session\Store $instance */
  10860. $instance->setPreviousUrl($url);
  10861. }
  10862. /**
  10863. * Get the underlying session handler implementation.
  10864. *
  10865. * @return \SessionHandlerInterface
  10866. * @static
  10867. */
  10868. public static function getHandler()
  10869. {
  10870. /** @var \Illuminate\Session\Store $instance */
  10871. return $instance->getHandler();
  10872. }
  10873. /**
  10874. * Determine if the session handler needs a request.
  10875. *
  10876. * @return bool
  10877. * @static
  10878. */
  10879. public static function handlerNeedsRequest()
  10880. {
  10881. /** @var \Illuminate\Session\Store $instance */
  10882. return $instance->handlerNeedsRequest();
  10883. }
  10884. /**
  10885. * Set the request on the handler instance.
  10886. *
  10887. * @param \Illuminate\Http\Request $request
  10888. * @return void
  10889. * @static
  10890. */
  10891. public static function setRequestOnHandler($request)
  10892. {
  10893. /** @var \Illuminate\Session\Store $instance */
  10894. $instance->setRequestOnHandler($request);
  10895. }
  10896. }
  10897. /**
  10898. *
  10899. *
  10900. * @see \Illuminate\Filesystem\FilesystemManager
  10901. */
  10902. class Storage {
  10903. /**
  10904. * Get a filesystem instance.
  10905. *
  10906. * @param string $name
  10907. * @return \Illuminate\Filesystem\FilesystemAdapter
  10908. * @static
  10909. */
  10910. public static function drive($name = null)
  10911. {
  10912. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10913. return $instance->drive($name);
  10914. }
  10915. /**
  10916. * Get a filesystem instance.
  10917. *
  10918. * @param string $name
  10919. * @return \Illuminate\Filesystem\FilesystemAdapter
  10920. * @static
  10921. */
  10922. public static function disk($name = null)
  10923. {
  10924. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10925. return $instance->disk($name);
  10926. }
  10927. /**
  10928. * Get a default cloud filesystem instance.
  10929. *
  10930. * @return \Illuminate\Filesystem\FilesystemAdapter
  10931. * @static
  10932. */
  10933. public static function cloud()
  10934. {
  10935. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10936. return $instance->cloud();
  10937. }
  10938. /**
  10939. * Create an instance of the local driver.
  10940. *
  10941. * @param array $config
  10942. * @return \Illuminate\Filesystem\FilesystemAdapter
  10943. * @static
  10944. */
  10945. public static function createLocalDriver($config)
  10946. {
  10947. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10948. return $instance->createLocalDriver($config);
  10949. }
  10950. /**
  10951. * Create an instance of the ftp driver.
  10952. *
  10953. * @param array $config
  10954. * @return \Illuminate\Filesystem\FilesystemAdapter
  10955. * @static
  10956. */
  10957. public static function createFtpDriver($config)
  10958. {
  10959. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10960. return $instance->createFtpDriver($config);
  10961. }
  10962. /**
  10963. * Create an instance of the Amazon S3 driver.
  10964. *
  10965. * @param array $config
  10966. * @return \Illuminate\Contracts\Filesystem\Cloud
  10967. * @static
  10968. */
  10969. public static function createS3Driver($config)
  10970. {
  10971. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10972. return $instance->createS3Driver($config);
  10973. }
  10974. /**
  10975. * Create an instance of the Rackspace driver.
  10976. *
  10977. * @param array $config
  10978. * @return \Illuminate\Contracts\Filesystem\Cloud
  10979. * @static
  10980. */
  10981. public static function createRackspaceDriver($config)
  10982. {
  10983. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10984. return $instance->createRackspaceDriver($config);
  10985. }
  10986. /**
  10987. * Set the given disk instance.
  10988. *
  10989. * @param string $name
  10990. * @param mixed $disk
  10991. * @return void
  10992. * @static
  10993. */
  10994. public static function set($name, $disk)
  10995. {
  10996. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10997. $instance->set($name, $disk);
  10998. }
  10999. /**
  11000. * Get the default driver name.
  11001. *
  11002. * @return string
  11003. * @static
  11004. */
  11005. public static function getDefaultDriver()
  11006. {
  11007. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11008. return $instance->getDefaultDriver();
  11009. }
  11010. /**
  11011. * Get the default cloud driver name.
  11012. *
  11013. * @return string
  11014. * @static
  11015. */
  11016. public static function getDefaultCloudDriver()
  11017. {
  11018. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11019. return $instance->getDefaultCloudDriver();
  11020. }
  11021. /**
  11022. * Register a custom driver creator Closure.
  11023. *
  11024. * @param string $driver
  11025. * @param \Closure $callback
  11026. * @return \Illuminate\Filesystem\FilesystemManager
  11027. * @static
  11028. */
  11029. public static function extend($driver, $callback)
  11030. {
  11031. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11032. return $instance->extend($driver, $callback);
  11033. }
  11034. /**
  11035. * Assert that the given file exists.
  11036. *
  11037. * @param string $path
  11038. * @return void
  11039. * @static
  11040. */
  11041. public static function assertExists($path)
  11042. {
  11043. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11044. $instance->assertExists($path);
  11045. }
  11046. /**
  11047. * Assert that the given file does not exist.
  11048. *
  11049. * @param string $path
  11050. * @return void
  11051. * @static
  11052. */
  11053. public static function assertMissing($path)
  11054. {
  11055. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11056. $instance->assertMissing($path);
  11057. }
  11058. /**
  11059. * Determine if a file exists.
  11060. *
  11061. * @param string $path
  11062. * @return bool
  11063. * @static
  11064. */
  11065. public static function exists($path)
  11066. {
  11067. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11068. return $instance->exists($path);
  11069. }
  11070. /**
  11071. * Get the full path for the file at the given "short" path.
  11072. *
  11073. * @param string $path
  11074. * @return string
  11075. * @static
  11076. */
  11077. public static function path($path)
  11078. {
  11079. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11080. return $instance->path($path);
  11081. }
  11082. /**
  11083. * Get the contents of a file.
  11084. *
  11085. * @param string $path
  11086. * @return string
  11087. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  11088. * @static
  11089. */
  11090. public static function get($path)
  11091. {
  11092. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11093. return $instance->get($path);
  11094. }
  11095. /**
  11096. * Create a streamed response for a given file.
  11097. *
  11098. * @param string $path
  11099. * @param string|null $name
  11100. * @param array|null $headers
  11101. * @param string|null $disposition
  11102. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11103. * @static
  11104. */
  11105. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  11106. {
  11107. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11108. return $instance->response($path, $name, $headers, $disposition);
  11109. }
  11110. /**
  11111. * Create a streamed download response for a given file.
  11112. *
  11113. * @param string $path
  11114. * @param string|null $name
  11115. * @param array|null $headers
  11116. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11117. * @static
  11118. */
  11119. public static function download($path, $name = null, $headers = [])
  11120. {
  11121. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11122. return $instance->download($path, $name, $headers);
  11123. }
  11124. /**
  11125. * Write the contents of a file.
  11126. *
  11127. * @param string $path
  11128. * @param string|resource $contents
  11129. * @param mixed $options
  11130. * @return bool
  11131. * @static
  11132. */
  11133. public static function put($path, $contents, $options = [])
  11134. {
  11135. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11136. return $instance->put($path, $contents, $options);
  11137. }
  11138. /**
  11139. * Store the uploaded file on the disk.
  11140. *
  11141. * @param string $path
  11142. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11143. * @param array $options
  11144. * @return string|false
  11145. * @static
  11146. */
  11147. public static function putFile($path, $file, $options = [])
  11148. {
  11149. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11150. return $instance->putFile($path, $file, $options);
  11151. }
  11152. /**
  11153. * Store the uploaded file on the disk with a given name.
  11154. *
  11155. * @param string $path
  11156. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11157. * @param string $name
  11158. * @param array $options
  11159. * @return string|false
  11160. * @static
  11161. */
  11162. public static function putFileAs($path, $file, $name, $options = [])
  11163. {
  11164. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11165. return $instance->putFileAs($path, $file, $name, $options);
  11166. }
  11167. /**
  11168. * Get the visibility for the given path.
  11169. *
  11170. * @param string $path
  11171. * @return string
  11172. * @static
  11173. */
  11174. public static function getVisibility($path)
  11175. {
  11176. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11177. return $instance->getVisibility($path);
  11178. }
  11179. /**
  11180. * Set the visibility for the given path.
  11181. *
  11182. * @param string $path
  11183. * @param string $visibility
  11184. * @return void
  11185. * @static
  11186. */
  11187. public static function setVisibility($path, $visibility)
  11188. {
  11189. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11190. $instance->setVisibility($path, $visibility);
  11191. }
  11192. /**
  11193. * Prepend to a file.
  11194. *
  11195. * @param string $path
  11196. * @param string $data
  11197. * @param string $separator
  11198. * @return int
  11199. * @static
  11200. */
  11201. public static function prepend($path, $data, $separator = '')
  11202. {
  11203. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11204. return $instance->prepend($path, $data, $separator);
  11205. }
  11206. /**
  11207. * Append to a file.
  11208. *
  11209. * @param string $path
  11210. * @param string $data
  11211. * @param string $separator
  11212. * @return int
  11213. * @static
  11214. */
  11215. public static function append($path, $data, $separator = '')
  11216. {
  11217. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11218. return $instance->append($path, $data, $separator);
  11219. }
  11220. /**
  11221. * Delete the file at a given path.
  11222. *
  11223. * @param string|array $paths
  11224. * @return bool
  11225. * @static
  11226. */
  11227. public static function delete($paths)
  11228. {
  11229. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11230. return $instance->delete($paths);
  11231. }
  11232. /**
  11233. * Copy a file to a new location.
  11234. *
  11235. * @param string $from
  11236. * @param string $to
  11237. * @return bool
  11238. * @static
  11239. */
  11240. public static function copy($from, $to)
  11241. {
  11242. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11243. return $instance->copy($from, $to);
  11244. }
  11245. /**
  11246. * Move a file to a new location.
  11247. *
  11248. * @param string $from
  11249. * @param string $to
  11250. * @return bool
  11251. * @static
  11252. */
  11253. public static function move($from, $to)
  11254. {
  11255. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11256. return $instance->move($from, $to);
  11257. }
  11258. /**
  11259. * Get the file size of a given file.
  11260. *
  11261. * @param string $path
  11262. * @return int
  11263. * @static
  11264. */
  11265. public static function size($path)
  11266. {
  11267. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11268. return $instance->size($path);
  11269. }
  11270. /**
  11271. * Get the mime-type of a given file.
  11272. *
  11273. * @param string $path
  11274. * @return string|false
  11275. * @static
  11276. */
  11277. public static function mimeType($path)
  11278. {
  11279. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11280. return $instance->mimeType($path);
  11281. }
  11282. /**
  11283. * Get the file's last modification time.
  11284. *
  11285. * @param string $path
  11286. * @return int
  11287. * @static
  11288. */
  11289. public static function lastModified($path)
  11290. {
  11291. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11292. return $instance->lastModified($path);
  11293. }
  11294. /**
  11295. * Get the URL for the file at the given path.
  11296. *
  11297. * @param string $path
  11298. * @return string
  11299. * @static
  11300. */
  11301. public static function url($path)
  11302. {
  11303. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11304. return $instance->url($path);
  11305. }
  11306. /**
  11307. * Get a temporary URL for the file at the given path.
  11308. *
  11309. * @param string $path
  11310. * @param \DateTimeInterface $expiration
  11311. * @param array $options
  11312. * @return string
  11313. * @static
  11314. */
  11315. public static function temporaryUrl($path, $expiration, $options = [])
  11316. {
  11317. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11318. return $instance->temporaryUrl($path, $expiration, $options);
  11319. }
  11320. /**
  11321. * Get a temporary URL for the file at the given path.
  11322. *
  11323. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  11324. * @param string $path
  11325. * @param \DateTimeInterface $expiration
  11326. * @param array $options
  11327. * @return string
  11328. * @static
  11329. */
  11330. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  11331. {
  11332. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11333. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  11334. }
  11335. /**
  11336. * Get a temporary URL for the file at the given path.
  11337. *
  11338. * @param \League\Flysystem\Rackspace\RackspaceAdapter $adapter
  11339. * @param string $path
  11340. * @param \DateTimeInterface $expiration
  11341. * @param array $options
  11342. * @return string
  11343. * @static
  11344. */
  11345. public static function getRackspaceTemporaryUrl($adapter, $path, $expiration, $options)
  11346. {
  11347. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11348. return $instance->getRackspaceTemporaryUrl($adapter, $path, $expiration, $options);
  11349. }
  11350. /**
  11351. * Get an array of all files in a directory.
  11352. *
  11353. * @param string|null $directory
  11354. * @param bool $recursive
  11355. * @return array
  11356. * @static
  11357. */
  11358. public static function files($directory = null, $recursive = false)
  11359. {
  11360. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11361. return $instance->files($directory, $recursive);
  11362. }
  11363. /**
  11364. * Get all of the files from the given directory (recursive).
  11365. *
  11366. * @param string|null $directory
  11367. * @return array
  11368. * @static
  11369. */
  11370. public static function allFiles($directory = null)
  11371. {
  11372. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11373. return $instance->allFiles($directory);
  11374. }
  11375. /**
  11376. * Get all of the directories within a given directory.
  11377. *
  11378. * @param string|null $directory
  11379. * @param bool $recursive
  11380. * @return array
  11381. * @static
  11382. */
  11383. public static function directories($directory = null, $recursive = false)
  11384. {
  11385. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11386. return $instance->directories($directory, $recursive);
  11387. }
  11388. /**
  11389. * Get all (recursive) of the directories within a given directory.
  11390. *
  11391. * @param string|null $directory
  11392. * @return array
  11393. * @static
  11394. */
  11395. public static function allDirectories($directory = null)
  11396. {
  11397. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11398. return $instance->allDirectories($directory);
  11399. }
  11400. /**
  11401. * Create a directory.
  11402. *
  11403. * @param string $path
  11404. * @return bool
  11405. * @static
  11406. */
  11407. public static function makeDirectory($path)
  11408. {
  11409. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11410. return $instance->makeDirectory($path);
  11411. }
  11412. /**
  11413. * Recursively delete a directory.
  11414. *
  11415. * @param string $directory
  11416. * @return bool
  11417. * @static
  11418. */
  11419. public static function deleteDirectory($directory)
  11420. {
  11421. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11422. return $instance->deleteDirectory($directory);
  11423. }
  11424. /**
  11425. * Flush the Flysystem cache.
  11426. *
  11427. * @return void
  11428. * @static
  11429. */
  11430. public static function flushCache()
  11431. {
  11432. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11433. $instance->flushCache();
  11434. }
  11435. /**
  11436. * Get the Flysystem driver.
  11437. *
  11438. * @return \League\Flysystem\FilesystemInterface
  11439. * @static
  11440. */
  11441. public static function getDriver()
  11442. {
  11443. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11444. return $instance->getDriver();
  11445. }
  11446. }
  11447. /**
  11448. *
  11449. *
  11450. * @see \Illuminate\Routing\UrlGenerator
  11451. */
  11452. class URL {
  11453. /**
  11454. * Get the full URL for the current request.
  11455. *
  11456. * @return string
  11457. * @static
  11458. */
  11459. public static function full()
  11460. {
  11461. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11462. return $instance->full();
  11463. }
  11464. /**
  11465. * Get the current URL for the request.
  11466. *
  11467. * @return string
  11468. * @static
  11469. */
  11470. public static function current()
  11471. {
  11472. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11473. return $instance->current();
  11474. }
  11475. /**
  11476. * Get the URL for the previous request.
  11477. *
  11478. * @param mixed $fallback
  11479. * @return string
  11480. * @static
  11481. */
  11482. public static function previous($fallback = false)
  11483. {
  11484. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11485. return $instance->previous($fallback);
  11486. }
  11487. /**
  11488. * Generate an absolute URL to the given path.
  11489. *
  11490. * @param string $path
  11491. * @param mixed $extra
  11492. * @param bool|null $secure
  11493. * @return string
  11494. * @static
  11495. */
  11496. public static function to($path, $extra = [], $secure = null)
  11497. {
  11498. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11499. return $instance->to($path, $extra, $secure);
  11500. }
  11501. /**
  11502. * Generate a secure, absolute URL to the given path.
  11503. *
  11504. * @param string $path
  11505. * @param array $parameters
  11506. * @return string
  11507. * @static
  11508. */
  11509. public static function secure($path, $parameters = [])
  11510. {
  11511. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11512. return $instance->secure($path, $parameters);
  11513. }
  11514. /**
  11515. * Generate the URL to an application asset.
  11516. *
  11517. * @param string $path
  11518. * @param bool|null $secure
  11519. * @return string
  11520. * @static
  11521. */
  11522. public static function asset($path, $secure = null)
  11523. {
  11524. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11525. return $instance->asset($path, $secure);
  11526. }
  11527. /**
  11528. * Generate the URL to a secure asset.
  11529. *
  11530. * @param string $path
  11531. * @return string
  11532. * @static
  11533. */
  11534. public static function secureAsset($path)
  11535. {
  11536. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11537. return $instance->secureAsset($path);
  11538. }
  11539. /**
  11540. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  11541. *
  11542. * @param string $root
  11543. * @param string $path
  11544. * @param bool|null $secure
  11545. * @return string
  11546. * @static
  11547. */
  11548. public static function assetFrom($root, $path, $secure = null)
  11549. {
  11550. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11551. return $instance->assetFrom($root, $path, $secure);
  11552. }
  11553. /**
  11554. * Get the default scheme for a raw URL.
  11555. *
  11556. * @param bool|null $secure
  11557. * @return string
  11558. * @static
  11559. */
  11560. public static function formatScheme($secure)
  11561. {
  11562. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11563. return $instance->formatScheme($secure);
  11564. }
  11565. /**
  11566. * Get the URL to a named route.
  11567. *
  11568. * @param string $name
  11569. * @param mixed $parameters
  11570. * @param bool $absolute
  11571. * @return string
  11572. * @throws \InvalidArgumentException
  11573. * @static
  11574. */
  11575. public static function route($name, $parameters = [], $absolute = true)
  11576. {
  11577. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11578. return $instance->route($name, $parameters, $absolute);
  11579. }
  11580. /**
  11581. * Get the URL to a controller action.
  11582. *
  11583. * @param string $action
  11584. * @param mixed $parameters
  11585. * @param bool $absolute
  11586. * @return string
  11587. * @throws \InvalidArgumentException
  11588. * @static
  11589. */
  11590. public static function action($action, $parameters = [], $absolute = true)
  11591. {
  11592. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11593. return $instance->action($action, $parameters, $absolute);
  11594. }
  11595. /**
  11596. * Format the array of URL parameters.
  11597. *
  11598. * @param mixed|array $parameters
  11599. * @return array
  11600. * @static
  11601. */
  11602. public static function formatParameters($parameters)
  11603. {
  11604. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11605. return $instance->formatParameters($parameters);
  11606. }
  11607. /**
  11608. * Get the base URL for the request.
  11609. *
  11610. * @param string $scheme
  11611. * @param string $root
  11612. * @return string
  11613. * @static
  11614. */
  11615. public static function formatRoot($scheme, $root = null)
  11616. {
  11617. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11618. return $instance->formatRoot($scheme, $root);
  11619. }
  11620. /**
  11621. * Format the given URL segments into a single URL.
  11622. *
  11623. * @param string $root
  11624. * @param string $path
  11625. * @return string
  11626. * @static
  11627. */
  11628. public static function format($root, $path)
  11629. {
  11630. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11631. return $instance->format($root, $path);
  11632. }
  11633. /**
  11634. * Determine if the given path is a valid URL.
  11635. *
  11636. * @param string $path
  11637. * @return bool
  11638. * @static
  11639. */
  11640. public static function isValidUrl($path)
  11641. {
  11642. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11643. return $instance->isValidUrl($path);
  11644. }
  11645. /**
  11646. * Set the default named parameters used by the URL generator.
  11647. *
  11648. * @param array $defaults
  11649. * @return void
  11650. * @static
  11651. */
  11652. public static function defaults($defaults)
  11653. {
  11654. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11655. $instance->defaults($defaults);
  11656. }
  11657. /**
  11658. * Get the default named parameters used by the URL generator.
  11659. *
  11660. * @return array
  11661. * @static
  11662. */
  11663. public static function getDefaultParameters()
  11664. {
  11665. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11666. return $instance->getDefaultParameters();
  11667. }
  11668. /**
  11669. * Force the scheme for URLs.
  11670. *
  11671. * @param string $schema
  11672. * @return void
  11673. * @static
  11674. */
  11675. public static function forceScheme($schema)
  11676. {
  11677. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11678. $instance->forceScheme($schema);
  11679. }
  11680. /**
  11681. * Set the forced root URL.
  11682. *
  11683. * @param string $root
  11684. * @return void
  11685. * @static
  11686. */
  11687. public static function forceRootUrl($root)
  11688. {
  11689. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11690. $instance->forceRootUrl($root);
  11691. }
  11692. /**
  11693. * Set a callback to be used to format the host of generated URLs.
  11694. *
  11695. * @param \Closure $callback
  11696. * @return \Illuminate\Routing\UrlGenerator
  11697. * @static
  11698. */
  11699. public static function formatHostUsing($callback)
  11700. {
  11701. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11702. return $instance->formatHostUsing($callback);
  11703. }
  11704. /**
  11705. * Set a callback to be used to format the path of generated URLs.
  11706. *
  11707. * @param \Closure $callback
  11708. * @return \Illuminate\Routing\UrlGenerator
  11709. * @static
  11710. */
  11711. public static function formatPathUsing($callback)
  11712. {
  11713. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11714. return $instance->formatPathUsing($callback);
  11715. }
  11716. /**
  11717. * Get the path formatter being used by the URL generator.
  11718. *
  11719. * @return \Closure
  11720. * @static
  11721. */
  11722. public static function pathFormatter()
  11723. {
  11724. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11725. return $instance->pathFormatter();
  11726. }
  11727. /**
  11728. * Get the request instance.
  11729. *
  11730. * @return \Illuminate\Http\Request
  11731. * @static
  11732. */
  11733. public static function getRequest()
  11734. {
  11735. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11736. return $instance->getRequest();
  11737. }
  11738. /**
  11739. * Set the current request instance.
  11740. *
  11741. * @param \Illuminate\Http\Request $request
  11742. * @return void
  11743. * @static
  11744. */
  11745. public static function setRequest($request)
  11746. {
  11747. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11748. $instance->setRequest($request);
  11749. }
  11750. /**
  11751. * Set the route collection.
  11752. *
  11753. * @param \Illuminate\Routing\RouteCollection $routes
  11754. * @return \Illuminate\Routing\UrlGenerator
  11755. * @static
  11756. */
  11757. public static function setRoutes($routes)
  11758. {
  11759. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11760. return $instance->setRoutes($routes);
  11761. }
  11762. /**
  11763. * Set the session resolver for the generator.
  11764. *
  11765. * @param callable $sessionResolver
  11766. * @return \Illuminate\Routing\UrlGenerator
  11767. * @static
  11768. */
  11769. public static function setSessionResolver($sessionResolver)
  11770. {
  11771. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11772. return $instance->setSessionResolver($sessionResolver);
  11773. }
  11774. /**
  11775. * Set the root controller namespace.
  11776. *
  11777. * @param string $rootNamespace
  11778. * @return \Illuminate\Routing\UrlGenerator
  11779. * @static
  11780. */
  11781. public static function setRootControllerNamespace($rootNamespace)
  11782. {
  11783. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11784. return $instance->setRootControllerNamespace($rootNamespace);
  11785. }
  11786. /**
  11787. * Register a custom macro.
  11788. *
  11789. * @param string $name
  11790. * @param object|callable $macro
  11791. * @return void
  11792. * @static
  11793. */
  11794. public static function macro($name, $macro)
  11795. {
  11796. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  11797. }
  11798. /**
  11799. * Mix another object into the class.
  11800. *
  11801. * @param object $mixin
  11802. * @return void
  11803. * @static
  11804. */
  11805. public static function mixin($mixin)
  11806. {
  11807. \Illuminate\Routing\UrlGenerator::mixin($mixin);
  11808. }
  11809. /**
  11810. * Checks if macro is registered.
  11811. *
  11812. * @param string $name
  11813. * @return bool
  11814. * @static
  11815. */
  11816. public static function hasMacro($name)
  11817. {
  11818. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  11819. }
  11820. }
  11821. /**
  11822. *
  11823. *
  11824. * @see \Illuminate\Validation\Factory
  11825. */
  11826. class Validator {
  11827. /**
  11828. * Create a new Validator instance.
  11829. *
  11830. * @param array $data
  11831. * @param array $rules
  11832. * @param array $messages
  11833. * @param array $customAttributes
  11834. * @return \Illuminate\Validation\Validator
  11835. * @static
  11836. */
  11837. public static function make($data, $rules, $messages = [], $customAttributes = [])
  11838. {
  11839. /** @var \Illuminate\Validation\Factory $instance */
  11840. return $instance->make($data, $rules, $messages, $customAttributes);
  11841. }
  11842. /**
  11843. * Validate the given data against the provided rules.
  11844. *
  11845. * @param array $data
  11846. * @param array $rules
  11847. * @param array $messages
  11848. * @param array $customAttributes
  11849. * @return void
  11850. * @throws \Illuminate\Validation\ValidationException
  11851. * @static
  11852. */
  11853. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  11854. {
  11855. /** @var \Illuminate\Validation\Factory $instance */
  11856. $instance->validate($data, $rules, $messages, $customAttributes);
  11857. }
  11858. /**
  11859. * Register a custom validator extension.
  11860. *
  11861. * @param string $rule
  11862. * @param \Closure|string $extension
  11863. * @param string $message
  11864. * @return void
  11865. * @static
  11866. */
  11867. public static function extend($rule, $extension, $message = null)
  11868. {
  11869. /** @var \Illuminate\Validation\Factory $instance */
  11870. $instance->extend($rule, $extension, $message);
  11871. }
  11872. /**
  11873. * Register a custom implicit validator extension.
  11874. *
  11875. * @param string $rule
  11876. * @param \Closure|string $extension
  11877. * @param string $message
  11878. * @return void
  11879. * @static
  11880. */
  11881. public static function extendImplicit($rule, $extension, $message = null)
  11882. {
  11883. /** @var \Illuminate\Validation\Factory $instance */
  11884. $instance->extendImplicit($rule, $extension, $message);
  11885. }
  11886. /**
  11887. * Register a custom dependent validator extension.
  11888. *
  11889. * @param string $rule
  11890. * @param \Closure|string $extension
  11891. * @param string $message
  11892. * @return void
  11893. * @static
  11894. */
  11895. public static function extendDependent($rule, $extension, $message = null)
  11896. {
  11897. /** @var \Illuminate\Validation\Factory $instance */
  11898. $instance->extendDependent($rule, $extension, $message);
  11899. }
  11900. /**
  11901. * Register a custom validator message replacer.
  11902. *
  11903. * @param string $rule
  11904. * @param \Closure|string $replacer
  11905. * @return void
  11906. * @static
  11907. */
  11908. public static function replacer($rule, $replacer)
  11909. {
  11910. /** @var \Illuminate\Validation\Factory $instance */
  11911. $instance->replacer($rule, $replacer);
  11912. }
  11913. /**
  11914. * Set the Validator instance resolver.
  11915. *
  11916. * @param \Closure $resolver
  11917. * @return void
  11918. * @static
  11919. */
  11920. public static function resolver($resolver)
  11921. {
  11922. /** @var \Illuminate\Validation\Factory $instance */
  11923. $instance->resolver($resolver);
  11924. }
  11925. /**
  11926. * Get the Translator implementation.
  11927. *
  11928. * @return \Illuminate\Contracts\Translation\Translator
  11929. * @static
  11930. */
  11931. public static function getTranslator()
  11932. {
  11933. /** @var \Illuminate\Validation\Factory $instance */
  11934. return $instance->getTranslator();
  11935. }
  11936. /**
  11937. * Get the Presence Verifier implementation.
  11938. *
  11939. * @return \Illuminate\Validation\PresenceVerifierInterface
  11940. * @static
  11941. */
  11942. public static function getPresenceVerifier()
  11943. {
  11944. /** @var \Illuminate\Validation\Factory $instance */
  11945. return $instance->getPresenceVerifier();
  11946. }
  11947. /**
  11948. * Set the Presence Verifier implementation.
  11949. *
  11950. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  11951. * @return void
  11952. * @static
  11953. */
  11954. public static function setPresenceVerifier($presenceVerifier)
  11955. {
  11956. /** @var \Illuminate\Validation\Factory $instance */
  11957. $instance->setPresenceVerifier($presenceVerifier);
  11958. }
  11959. }
  11960. /**
  11961. *
  11962. *
  11963. * @see \Illuminate\View\Factory
  11964. */
  11965. class View {
  11966. /**
  11967. * Get the evaluated view contents for the given view.
  11968. *
  11969. * @param string $path
  11970. * @param array $data
  11971. * @param array $mergeData
  11972. * @return \Illuminate\Contracts\View\View
  11973. * @static
  11974. */
  11975. public static function file($path, $data = [], $mergeData = [])
  11976. {
  11977. /** @var \Illuminate\View\Factory $instance */
  11978. return $instance->file($path, $data, $mergeData);
  11979. }
  11980. /**
  11981. * Get the evaluated view contents for the given view.
  11982. *
  11983. * @param string $view
  11984. * @param array $data
  11985. * @param array $mergeData
  11986. * @return \Illuminate\Contracts\View\View
  11987. * @static
  11988. */
  11989. public static function make($view, $data = [], $mergeData = [])
  11990. {
  11991. /** @var \Illuminate\View\Factory $instance */
  11992. return $instance->make($view, $data, $mergeData);
  11993. }
  11994. /**
  11995. * Get the first view that actually exists from the given list.
  11996. *
  11997. * @param array $views
  11998. * @param array $data
  11999. * @param array $mergeData
  12000. * @return \Illuminate\Contracts\View\View
  12001. * @static
  12002. */
  12003. public static function first($views, $data = [], $mergeData = [])
  12004. {
  12005. /** @var \Illuminate\View\Factory $instance */
  12006. return $instance->first($views, $data, $mergeData);
  12007. }
  12008. /**
  12009. * Get the rendered content of the view based on a given condition.
  12010. *
  12011. * @param bool $condition
  12012. * @param string $view
  12013. * @param array $data
  12014. * @param array $mergeData
  12015. * @return string
  12016. * @static
  12017. */
  12018. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  12019. {
  12020. /** @var \Illuminate\View\Factory $instance */
  12021. return $instance->renderWhen($condition, $view, $data, $mergeData);
  12022. }
  12023. /**
  12024. * Get the rendered contents of a partial from a loop.
  12025. *
  12026. * @param string $view
  12027. * @param array $data
  12028. * @param string $iterator
  12029. * @param string $empty
  12030. * @return string
  12031. * @static
  12032. */
  12033. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  12034. {
  12035. /** @var \Illuminate\View\Factory $instance */
  12036. return $instance->renderEach($view, $data, $iterator, $empty);
  12037. }
  12038. /**
  12039. * Determine if a given view exists.
  12040. *
  12041. * @param string $view
  12042. * @return bool
  12043. * @static
  12044. */
  12045. public static function exists($view)
  12046. {
  12047. /** @var \Illuminate\View\Factory $instance */
  12048. return $instance->exists($view);
  12049. }
  12050. /**
  12051. * Get the appropriate view engine for the given path.
  12052. *
  12053. * @param string $path
  12054. * @return \Illuminate\Contracts\View\Engine
  12055. * @throws \InvalidArgumentException
  12056. * @static
  12057. */
  12058. public static function getEngineFromPath($path)
  12059. {
  12060. /** @var \Illuminate\View\Factory $instance */
  12061. return $instance->getEngineFromPath($path);
  12062. }
  12063. /**
  12064. * Add a piece of shared data to the environment.
  12065. *
  12066. * @param array|string $key
  12067. * @param mixed $value
  12068. * @return mixed
  12069. * @static
  12070. */
  12071. public static function share($key, $value = null)
  12072. {
  12073. /** @var \Illuminate\View\Factory $instance */
  12074. return $instance->share($key, $value);
  12075. }
  12076. /**
  12077. * Increment the rendering counter.
  12078. *
  12079. * @return void
  12080. * @static
  12081. */
  12082. public static function incrementRender()
  12083. {
  12084. /** @var \Illuminate\View\Factory $instance */
  12085. $instance->incrementRender();
  12086. }
  12087. /**
  12088. * Decrement the rendering counter.
  12089. *
  12090. * @return void
  12091. * @static
  12092. */
  12093. public static function decrementRender()
  12094. {
  12095. /** @var \Illuminate\View\Factory $instance */
  12096. $instance->decrementRender();
  12097. }
  12098. /**
  12099. * Check if there are no active render operations.
  12100. *
  12101. * @return bool
  12102. * @static
  12103. */
  12104. public static function doneRendering()
  12105. {
  12106. /** @var \Illuminate\View\Factory $instance */
  12107. return $instance->doneRendering();
  12108. }
  12109. /**
  12110. * Add a location to the array of view locations.
  12111. *
  12112. * @param string $location
  12113. * @return void
  12114. * @static
  12115. */
  12116. public static function addLocation($location)
  12117. {
  12118. /** @var \Illuminate\View\Factory $instance */
  12119. $instance->addLocation($location);
  12120. }
  12121. /**
  12122. * Add a new namespace to the loader.
  12123. *
  12124. * @param string $namespace
  12125. * @param string|array $hints
  12126. * @return \Illuminate\View\Factory
  12127. * @static
  12128. */
  12129. public static function addNamespace($namespace, $hints)
  12130. {
  12131. /** @var \Illuminate\View\Factory $instance */
  12132. return $instance->addNamespace($namespace, $hints);
  12133. }
  12134. /**
  12135. * Prepend a new namespace to the loader.
  12136. *
  12137. * @param string $namespace
  12138. * @param string|array $hints
  12139. * @return \Illuminate\View\Factory
  12140. * @static
  12141. */
  12142. public static function prependNamespace($namespace, $hints)
  12143. {
  12144. /** @var \Illuminate\View\Factory $instance */
  12145. return $instance->prependNamespace($namespace, $hints);
  12146. }
  12147. /**
  12148. * Replace the namespace hints for the given namespace.
  12149. *
  12150. * @param string $namespace
  12151. * @param string|array $hints
  12152. * @return \Illuminate\View\Factory
  12153. * @static
  12154. */
  12155. public static function replaceNamespace($namespace, $hints)
  12156. {
  12157. /** @var \Illuminate\View\Factory $instance */
  12158. return $instance->replaceNamespace($namespace, $hints);
  12159. }
  12160. /**
  12161. * Register a valid view extension and its engine.
  12162. *
  12163. * @param string $extension
  12164. * @param string $engine
  12165. * @param \Closure $resolver
  12166. * @return void
  12167. * @static
  12168. */
  12169. public static function addExtension($extension, $engine, $resolver = null)
  12170. {
  12171. /** @var \Illuminate\View\Factory $instance */
  12172. $instance->addExtension($extension, $engine, $resolver);
  12173. }
  12174. /**
  12175. * Flush all of the factory state like sections and stacks.
  12176. *
  12177. * @return void
  12178. * @static
  12179. */
  12180. public static function flushState()
  12181. {
  12182. /** @var \Illuminate\View\Factory $instance */
  12183. $instance->flushState();
  12184. }
  12185. /**
  12186. * Flush all of the section contents if done rendering.
  12187. *
  12188. * @return void
  12189. * @static
  12190. */
  12191. public static function flushStateIfDoneRendering()
  12192. {
  12193. /** @var \Illuminate\View\Factory $instance */
  12194. $instance->flushStateIfDoneRendering();
  12195. }
  12196. /**
  12197. * Get the extension to engine bindings.
  12198. *
  12199. * @return array
  12200. * @static
  12201. */
  12202. public static function getExtensions()
  12203. {
  12204. /** @var \Illuminate\View\Factory $instance */
  12205. return $instance->getExtensions();
  12206. }
  12207. /**
  12208. * Get the engine resolver instance.
  12209. *
  12210. * @return \Illuminate\View\Engines\EngineResolver
  12211. * @static
  12212. */
  12213. public static function getEngineResolver()
  12214. {
  12215. /** @var \Illuminate\View\Factory $instance */
  12216. return $instance->getEngineResolver();
  12217. }
  12218. /**
  12219. * Get the view finder instance.
  12220. *
  12221. * @return \Illuminate\View\ViewFinderInterface
  12222. * @static
  12223. */
  12224. public static function getFinder()
  12225. {
  12226. /** @var \Illuminate\View\Factory $instance */
  12227. return $instance->getFinder();
  12228. }
  12229. /**
  12230. * Set the view finder instance.
  12231. *
  12232. * @param \Illuminate\View\ViewFinderInterface $finder
  12233. * @return void
  12234. * @static
  12235. */
  12236. public static function setFinder($finder)
  12237. {
  12238. /** @var \Illuminate\View\Factory $instance */
  12239. $instance->setFinder($finder);
  12240. }
  12241. /**
  12242. * Flush the cache of views located by the finder.
  12243. *
  12244. * @return void
  12245. * @static
  12246. */
  12247. public static function flushFinderCache()
  12248. {
  12249. /** @var \Illuminate\View\Factory $instance */
  12250. $instance->flushFinderCache();
  12251. }
  12252. /**
  12253. * Get the event dispatcher instance.
  12254. *
  12255. * @return \Illuminate\Contracts\Events\Dispatcher
  12256. * @static
  12257. */
  12258. public static function getDispatcher()
  12259. {
  12260. /** @var \Illuminate\View\Factory $instance */
  12261. return $instance->getDispatcher();
  12262. }
  12263. /**
  12264. * Set the event dispatcher instance.
  12265. *
  12266. * @param \Illuminate\Contracts\Events\Dispatcher $events
  12267. * @return void
  12268. * @static
  12269. */
  12270. public static function setDispatcher($events)
  12271. {
  12272. /** @var \Illuminate\View\Factory $instance */
  12273. $instance->setDispatcher($events);
  12274. }
  12275. /**
  12276. * Get the IoC container instance.
  12277. *
  12278. * @return \Illuminate\Contracts\Container\Container
  12279. * @static
  12280. */
  12281. public static function getContainer()
  12282. {
  12283. /** @var \Illuminate\View\Factory $instance */
  12284. return $instance->getContainer();
  12285. }
  12286. /**
  12287. * Set the IoC container instance.
  12288. *
  12289. * @param \Illuminate\Contracts\Container\Container $container
  12290. * @return void
  12291. * @static
  12292. */
  12293. public static function setContainer($container)
  12294. {
  12295. /** @var \Illuminate\View\Factory $instance */
  12296. $instance->setContainer($container);
  12297. }
  12298. /**
  12299. * Get an item from the shared data.
  12300. *
  12301. * @param string $key
  12302. * @param mixed $default
  12303. * @return mixed
  12304. * @static
  12305. */
  12306. public static function shared($key, $default = null)
  12307. {
  12308. /** @var \Illuminate\View\Factory $instance */
  12309. return $instance->shared($key, $default);
  12310. }
  12311. /**
  12312. * Get all of the shared data for the environment.
  12313. *
  12314. * @return array
  12315. * @static
  12316. */
  12317. public static function getShared()
  12318. {
  12319. /** @var \Illuminate\View\Factory $instance */
  12320. return $instance->getShared();
  12321. }
  12322. /**
  12323. * Start a component rendering process.
  12324. *
  12325. * @param string $name
  12326. * @param array $data
  12327. * @return void
  12328. * @static
  12329. */
  12330. public static function startComponent($name, $data = [])
  12331. {
  12332. /** @var \Illuminate\View\Factory $instance */
  12333. $instance->startComponent($name, $data);
  12334. }
  12335. /**
  12336. * Render the current component.
  12337. *
  12338. * @return string
  12339. * @static
  12340. */
  12341. public static function renderComponent()
  12342. {
  12343. /** @var \Illuminate\View\Factory $instance */
  12344. return $instance->renderComponent();
  12345. }
  12346. /**
  12347. * Start the slot rendering process.
  12348. *
  12349. * @param string $name
  12350. * @param string|null $content
  12351. * @return void
  12352. * @static
  12353. */
  12354. public static function slot($name, $content = null)
  12355. {
  12356. /** @var \Illuminate\View\Factory $instance */
  12357. $instance->slot($name, $content);
  12358. }
  12359. /**
  12360. * Save the slot content for rendering.
  12361. *
  12362. * @return void
  12363. * @static
  12364. */
  12365. public static function endSlot()
  12366. {
  12367. /** @var \Illuminate\View\Factory $instance */
  12368. $instance->endSlot();
  12369. }
  12370. /**
  12371. * Register a view creator event.
  12372. *
  12373. * @param array|string $views
  12374. * @param \Closure|string $callback
  12375. * @return array
  12376. * @static
  12377. */
  12378. public static function creator($views, $callback)
  12379. {
  12380. /** @var \Illuminate\View\Factory $instance */
  12381. return $instance->creator($views, $callback);
  12382. }
  12383. /**
  12384. * Register multiple view composers via an array.
  12385. *
  12386. * @param array $composers
  12387. * @return array
  12388. * @static
  12389. */
  12390. public static function composers($composers)
  12391. {
  12392. /** @var \Illuminate\View\Factory $instance */
  12393. return $instance->composers($composers);
  12394. }
  12395. /**
  12396. * Register a view composer event.
  12397. *
  12398. * @param array|string $views
  12399. * @param \Closure|string $callback
  12400. * @return array
  12401. * @static
  12402. */
  12403. public static function composer($views, $callback)
  12404. {
  12405. /** @var \Illuminate\View\Factory $instance */
  12406. return $instance->composer($views, $callback);
  12407. }
  12408. /**
  12409. * Call the composer for a given view.
  12410. *
  12411. * @param \Illuminate\Contracts\View\View $view
  12412. * @return void
  12413. * @static
  12414. */
  12415. public static function callComposer($view)
  12416. {
  12417. /** @var \Illuminate\View\Factory $instance */
  12418. $instance->callComposer($view);
  12419. }
  12420. /**
  12421. * Call the creator for a given view.
  12422. *
  12423. * @param \Illuminate\Contracts\View\View $view
  12424. * @return void
  12425. * @static
  12426. */
  12427. public static function callCreator($view)
  12428. {
  12429. /** @var \Illuminate\View\Factory $instance */
  12430. $instance->callCreator($view);
  12431. }
  12432. /**
  12433. * Start injecting content into a section.
  12434. *
  12435. * @param string $section
  12436. * @param string|null $content
  12437. * @return void
  12438. * @static
  12439. */
  12440. public static function startSection($section, $content = null)
  12441. {
  12442. /** @var \Illuminate\View\Factory $instance */
  12443. $instance->startSection($section, $content);
  12444. }
  12445. /**
  12446. * Inject inline content into a section.
  12447. *
  12448. * @param string $section
  12449. * @param string $content
  12450. * @return void
  12451. * @static
  12452. */
  12453. public static function inject($section, $content)
  12454. {
  12455. /** @var \Illuminate\View\Factory $instance */
  12456. $instance->inject($section, $content);
  12457. }
  12458. /**
  12459. * Stop injecting content into a section and return its contents.
  12460. *
  12461. * @return string
  12462. * @static
  12463. */
  12464. public static function yieldSection()
  12465. {
  12466. /** @var \Illuminate\View\Factory $instance */
  12467. return $instance->yieldSection();
  12468. }
  12469. /**
  12470. * Stop injecting content into a section.
  12471. *
  12472. * @param bool $overwrite
  12473. * @return string
  12474. * @throws \InvalidArgumentException
  12475. * @static
  12476. */
  12477. public static function stopSection($overwrite = false)
  12478. {
  12479. /** @var \Illuminate\View\Factory $instance */
  12480. return $instance->stopSection($overwrite);
  12481. }
  12482. /**
  12483. * Stop injecting content into a section and append it.
  12484. *
  12485. * @return string
  12486. * @throws \InvalidArgumentException
  12487. * @static
  12488. */
  12489. public static function appendSection()
  12490. {
  12491. /** @var \Illuminate\View\Factory $instance */
  12492. return $instance->appendSection();
  12493. }
  12494. /**
  12495. * Get the string contents of a section.
  12496. *
  12497. * @param string $section
  12498. * @param string $default
  12499. * @return string
  12500. * @static
  12501. */
  12502. public static function yieldContent($section, $default = '')
  12503. {
  12504. /** @var \Illuminate\View\Factory $instance */
  12505. return $instance->yieldContent($section, $default);
  12506. }
  12507. /**
  12508. * Get the parent placeholder for the current request.
  12509. *
  12510. * @param string $section
  12511. * @return string
  12512. * @static
  12513. */
  12514. public static function parentPlaceholder($section = '')
  12515. {
  12516. return \Illuminate\View\Factory::parentPlaceholder($section);
  12517. }
  12518. /**
  12519. * Check if section exists.
  12520. *
  12521. * @param string $name
  12522. * @return bool
  12523. * @static
  12524. */
  12525. public static function hasSection($name)
  12526. {
  12527. /** @var \Illuminate\View\Factory $instance */
  12528. return $instance->hasSection($name);
  12529. }
  12530. /**
  12531. * Get the contents of a section.
  12532. *
  12533. * @param string $name
  12534. * @param string $default
  12535. * @return mixed
  12536. * @static
  12537. */
  12538. public static function getSection($name, $default = null)
  12539. {
  12540. /** @var \Illuminate\View\Factory $instance */
  12541. return $instance->getSection($name, $default);
  12542. }
  12543. /**
  12544. * Get the entire array of sections.
  12545. *
  12546. * @return array
  12547. * @static
  12548. */
  12549. public static function getSections()
  12550. {
  12551. /** @var \Illuminate\View\Factory $instance */
  12552. return $instance->getSections();
  12553. }
  12554. /**
  12555. * Flush all of the sections.
  12556. *
  12557. * @return void
  12558. * @static
  12559. */
  12560. public static function flushSections()
  12561. {
  12562. /** @var \Illuminate\View\Factory $instance */
  12563. $instance->flushSections();
  12564. }
  12565. /**
  12566. * Add new loop to the stack.
  12567. *
  12568. * @param \Countable|array $data
  12569. * @return void
  12570. * @static
  12571. */
  12572. public static function addLoop($data)
  12573. {
  12574. /** @var \Illuminate\View\Factory $instance */
  12575. $instance->addLoop($data);
  12576. }
  12577. /**
  12578. * Increment the top loop's indices.
  12579. *
  12580. * @return void
  12581. * @static
  12582. */
  12583. public static function incrementLoopIndices()
  12584. {
  12585. /** @var \Illuminate\View\Factory $instance */
  12586. $instance->incrementLoopIndices();
  12587. }
  12588. /**
  12589. * Pop a loop from the top of the loop stack.
  12590. *
  12591. * @return void
  12592. * @static
  12593. */
  12594. public static function popLoop()
  12595. {
  12596. /** @var \Illuminate\View\Factory $instance */
  12597. $instance->popLoop();
  12598. }
  12599. /**
  12600. * Get an instance of the last loop in the stack.
  12601. *
  12602. * @return \stdClass|null
  12603. * @static
  12604. */
  12605. public static function getLastLoop()
  12606. {
  12607. /** @var \Illuminate\View\Factory $instance */
  12608. return $instance->getLastLoop();
  12609. }
  12610. /**
  12611. * Get the entire loop stack.
  12612. *
  12613. * @return array
  12614. * @static
  12615. */
  12616. public static function getLoopStack()
  12617. {
  12618. /** @var \Illuminate\View\Factory $instance */
  12619. return $instance->getLoopStack();
  12620. }
  12621. /**
  12622. * Start injecting content into a push section.
  12623. *
  12624. * @param string $section
  12625. * @param string $content
  12626. * @return void
  12627. * @static
  12628. */
  12629. public static function startPush($section, $content = '')
  12630. {
  12631. /** @var \Illuminate\View\Factory $instance */
  12632. $instance->startPush($section, $content);
  12633. }
  12634. /**
  12635. * Stop injecting content into a push section.
  12636. *
  12637. * @return string
  12638. * @throws \InvalidArgumentException
  12639. * @static
  12640. */
  12641. public static function stopPush()
  12642. {
  12643. /** @var \Illuminate\View\Factory $instance */
  12644. return $instance->stopPush();
  12645. }
  12646. /**
  12647. * Start prepending content into a push section.
  12648. *
  12649. * @param string $section
  12650. * @param string $content
  12651. * @return void
  12652. * @static
  12653. */
  12654. public static function startPrepend($section, $content = '')
  12655. {
  12656. /** @var \Illuminate\View\Factory $instance */
  12657. $instance->startPrepend($section, $content);
  12658. }
  12659. /**
  12660. * Stop prepending content into a push section.
  12661. *
  12662. * @return string
  12663. * @throws \InvalidArgumentException
  12664. * @static
  12665. */
  12666. public static function stopPrepend()
  12667. {
  12668. /** @var \Illuminate\View\Factory $instance */
  12669. return $instance->stopPrepend();
  12670. }
  12671. /**
  12672. * Get the string contents of a push section.
  12673. *
  12674. * @param string $section
  12675. * @param string $default
  12676. * @return string
  12677. * @static
  12678. */
  12679. public static function yieldPushContent($section, $default = '')
  12680. {
  12681. /** @var \Illuminate\View\Factory $instance */
  12682. return $instance->yieldPushContent($section, $default);
  12683. }
  12684. /**
  12685. * Flush all of the stacks.
  12686. *
  12687. * @return void
  12688. * @static
  12689. */
  12690. public static function flushStacks()
  12691. {
  12692. /** @var \Illuminate\View\Factory $instance */
  12693. $instance->flushStacks();
  12694. }
  12695. /**
  12696. * Start a translation block.
  12697. *
  12698. * @param array $replacements
  12699. * @return void
  12700. * @static
  12701. */
  12702. public static function startTranslation($replacements = [])
  12703. {
  12704. /** @var \Illuminate\View\Factory $instance */
  12705. $instance->startTranslation($replacements);
  12706. }
  12707. /**
  12708. * Render the current translation.
  12709. *
  12710. * @return string
  12711. * @static
  12712. */
  12713. public static function renderTranslation()
  12714. {
  12715. /** @var \Illuminate\View\Factory $instance */
  12716. return $instance->renderTranslation();
  12717. }
  12718. }
  12719. }
  12720. namespace Intervention\Image\Facades {
  12721. /**
  12722. *
  12723. *
  12724. */
  12725. class Image {
  12726. /**
  12727. * Overrides configuration settings
  12728. *
  12729. * @param array $config
  12730. * @return self
  12731. * @static
  12732. */
  12733. public static function configure($config = [])
  12734. {
  12735. /** @var \Intervention\Image\ImageManager $instance */
  12736. return $instance->configure($config);
  12737. }
  12738. /**
  12739. * Initiates an Image instance from different input types
  12740. *
  12741. * @param mixed $data
  12742. * @return \Intervention\Image\Image
  12743. * @static
  12744. */
  12745. public static function make($data)
  12746. {
  12747. /** @var \Intervention\Image\ImageManager $instance */
  12748. return $instance->make($data);
  12749. }
  12750. /**
  12751. * Creates an empty image canvas
  12752. *
  12753. * @param int $width
  12754. * @param int $height
  12755. * @param mixed $background
  12756. * @return \Intervention\Image\Image
  12757. * @static
  12758. */
  12759. public static function canvas($width, $height, $background = null)
  12760. {
  12761. /** @var \Intervention\Image\ImageManager $instance */
  12762. return $instance->canvas($width, $height, $background);
  12763. }
  12764. /**
  12765. * Create new cached image and run callback
  12766. * (requires additional package intervention/imagecache)
  12767. *
  12768. * @param \Closure $callback
  12769. * @param int $lifetime
  12770. * @param boolean $returnObj
  12771. * @return \Image
  12772. * @static
  12773. */
  12774. public static function cache($callback, $lifetime = null, $returnObj = false)
  12775. {
  12776. /** @var \Intervention\Image\ImageManager $instance */
  12777. return $instance->cache($callback, $lifetime, $returnObj);
  12778. }
  12779. }
  12780. }
  12781. namespace {
  12782. class App extends \Illuminate\Support\Facades\App {}
  12783. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  12784. class Auth extends \Illuminate\Support\Facades\Auth {}
  12785. class Blade extends \Illuminate\Support\Facades\Blade {}
  12786. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  12787. class Bus extends \Illuminate\Support\Facades\Bus {}
  12788. class Cache extends \Illuminate\Support\Facades\Cache {}
  12789. class Config extends \Illuminate\Support\Facades\Config {}
  12790. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  12791. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  12792. class DB extends \Illuminate\Support\Facades\DB {}
  12793. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  12794. /**
  12795. * Create and return an un-saved model instance.
  12796. *
  12797. * @param array $attributes
  12798. * @return \Illuminate\Database\Eloquent\Model
  12799. * @static
  12800. */
  12801. public static function make($attributes = [])
  12802. {
  12803. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12804. return $instance->make($attributes);
  12805. }
  12806. /**
  12807. * Register a new global scope.
  12808. *
  12809. * @param string $identifier
  12810. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  12811. * @return \Illuminate\Database\Eloquent\Builder
  12812. * @static
  12813. */
  12814. public static function withGlobalScope($identifier, $scope)
  12815. {
  12816. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12817. return $instance->withGlobalScope($identifier, $scope);
  12818. }
  12819. /**
  12820. * Remove a registered global scope.
  12821. *
  12822. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  12823. * @return \Illuminate\Database\Eloquent\Builder
  12824. * @static
  12825. */
  12826. public static function withoutGlobalScope($scope)
  12827. {
  12828. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12829. return $instance->withoutGlobalScope($scope);
  12830. }
  12831. /**
  12832. * Remove all or passed registered global scopes.
  12833. *
  12834. * @param array|null $scopes
  12835. * @return \Illuminate\Database\Eloquent\Builder
  12836. * @static
  12837. */
  12838. public static function withoutGlobalScopes($scopes = null)
  12839. {
  12840. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12841. return $instance->withoutGlobalScopes($scopes);
  12842. }
  12843. /**
  12844. * Get an array of global scopes that were removed from the query.
  12845. *
  12846. * @return array
  12847. * @static
  12848. */
  12849. public static function removedScopes()
  12850. {
  12851. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12852. return $instance->removedScopes();
  12853. }
  12854. /**
  12855. * Add a where clause on the primary key to the query.
  12856. *
  12857. * @param mixed $id
  12858. * @return \Illuminate\Database\Eloquent\Builder
  12859. * @static
  12860. */
  12861. public static function whereKey($id)
  12862. {
  12863. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12864. return $instance->whereKey($id);
  12865. }
  12866. /**
  12867. * Add a where clause on the primary key to the query.
  12868. *
  12869. * @param mixed $id
  12870. * @return \Illuminate\Database\Eloquent\Builder
  12871. * @static
  12872. */
  12873. public static function whereKeyNot($id)
  12874. {
  12875. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12876. return $instance->whereKeyNot($id);
  12877. }
  12878. /**
  12879. * Add a basic where clause to the query.
  12880. *
  12881. * @param string|array|\Closure $column
  12882. * @param string $operator
  12883. * @param mixed $value
  12884. * @param string $boolean
  12885. * @return \Illuminate\Database\Eloquent\Builder
  12886. * @static
  12887. */
  12888. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  12889. {
  12890. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12891. return $instance->where($column, $operator, $value, $boolean);
  12892. }
  12893. /**
  12894. * Add an "or where" clause to the query.
  12895. *
  12896. * @param \Closure|array|string $column
  12897. * @param string $operator
  12898. * @param mixed $value
  12899. * @return \Illuminate\Database\Eloquent\Builder|static
  12900. * @static
  12901. */
  12902. public static function orWhere($column, $operator = null, $value = null)
  12903. {
  12904. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12905. return $instance->orWhere($column, $operator, $value);
  12906. }
  12907. /**
  12908. * Create a collection of models from plain arrays.
  12909. *
  12910. * @param array $items
  12911. * @return \Illuminate\Database\Eloquent\Collection
  12912. * @static
  12913. */
  12914. public static function hydrate($items)
  12915. {
  12916. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12917. return $instance->hydrate($items);
  12918. }
  12919. /**
  12920. * Create a collection of models from a raw query.
  12921. *
  12922. * @param string $query
  12923. * @param array $bindings
  12924. * @return \Illuminate\Database\Eloquent\Collection
  12925. * @static
  12926. */
  12927. public static function fromQuery($query, $bindings = [])
  12928. {
  12929. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12930. return $instance->fromQuery($query, $bindings);
  12931. }
  12932. /**
  12933. * Find a model by its primary key.
  12934. *
  12935. * @param mixed $id
  12936. * @param array $columns
  12937. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  12938. * @static
  12939. */
  12940. public static function find($id, $columns = [])
  12941. {
  12942. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12943. return $instance->find($id, $columns);
  12944. }
  12945. /**
  12946. * Find multiple models by their primary keys.
  12947. *
  12948. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  12949. * @param array $columns
  12950. * @return \Illuminate\Database\Eloquent\Collection
  12951. * @static
  12952. */
  12953. public static function findMany($ids, $columns = [])
  12954. {
  12955. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12956. return $instance->findMany($ids, $columns);
  12957. }
  12958. /**
  12959. * Find a model by its primary key or throw an exception.
  12960. *
  12961. * @param mixed $id
  12962. * @param array $columns
  12963. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
  12964. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  12965. * @static
  12966. */
  12967. public static function findOrFail($id, $columns = [])
  12968. {
  12969. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12970. return $instance->findOrFail($id, $columns);
  12971. }
  12972. /**
  12973. * Find a model by its primary key or return fresh model instance.
  12974. *
  12975. * @param mixed $id
  12976. * @param array $columns
  12977. * @return \Illuminate\Database\Eloquent\Model
  12978. * @static
  12979. */
  12980. public static function findOrNew($id, $columns = [])
  12981. {
  12982. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12983. return $instance->findOrNew($id, $columns);
  12984. }
  12985. /**
  12986. * Get the first record matching the attributes or instantiate it.
  12987. *
  12988. * @param array $attributes
  12989. * @param array $values
  12990. * @return \Illuminate\Database\Eloquent\Model
  12991. * @static
  12992. */
  12993. public static function firstOrNew($attributes, $values = [])
  12994. {
  12995. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12996. return $instance->firstOrNew($attributes, $values);
  12997. }
  12998. /**
  12999. * Get the first record matching the attributes or create it.
  13000. *
  13001. * @param array $attributes
  13002. * @param array $values
  13003. * @return \Illuminate\Database\Eloquent\Model
  13004. * @static
  13005. */
  13006. public static function firstOrCreate($attributes, $values = [])
  13007. {
  13008. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13009. return $instance->firstOrCreate($attributes, $values);
  13010. }
  13011. /**
  13012. * Create or update a record matching the attributes, and fill it with values.
  13013. *
  13014. * @param array $attributes
  13015. * @param array $values
  13016. * @return \Illuminate\Database\Eloquent\Model
  13017. * @static
  13018. */
  13019. public static function updateOrCreate($attributes, $values = [])
  13020. {
  13021. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13022. return $instance->updateOrCreate($attributes, $values);
  13023. }
  13024. /**
  13025. * Execute the query and get the first result or throw an exception.
  13026. *
  13027. * @param array $columns
  13028. * @return \Illuminate\Database\Eloquent\Model|static
  13029. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  13030. * @static
  13031. */
  13032. public static function firstOrFail($columns = [])
  13033. {
  13034. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13035. return $instance->firstOrFail($columns);
  13036. }
  13037. /**
  13038. * Execute the query and get the first result or call a callback.
  13039. *
  13040. * @param \Closure|array $columns
  13041. * @param \Closure|null $callback
  13042. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  13043. * @static
  13044. */
  13045. public static function firstOr($columns = [], $callback = null)
  13046. {
  13047. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13048. return $instance->firstOr($columns, $callback);
  13049. }
  13050. /**
  13051. * Get a single column's value from the first result of a query.
  13052. *
  13053. * @param string $column
  13054. * @return mixed
  13055. * @static
  13056. */
  13057. public static function value($column)
  13058. {
  13059. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13060. return $instance->value($column);
  13061. }
  13062. /**
  13063. * Execute the query as a "select" statement.
  13064. *
  13065. * @param array $columns
  13066. * @return \Illuminate\Database\Eloquent\Collection|static[]
  13067. * @static
  13068. */
  13069. public static function get($columns = [])
  13070. {
  13071. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13072. return $instance->get($columns);
  13073. }
  13074. /**
  13075. * Get the hydrated models without eager loading.
  13076. *
  13077. * @param array $columns
  13078. * @return \Illuminate\Database\Eloquent\Model[]
  13079. * @static
  13080. */
  13081. public static function getModels($columns = [])
  13082. {
  13083. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13084. return $instance->getModels($columns);
  13085. }
  13086. /**
  13087. * Eager load the relationships for the models.
  13088. *
  13089. * @param array $models
  13090. * @return array
  13091. * @static
  13092. */
  13093. public static function eagerLoadRelations($models)
  13094. {
  13095. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13096. return $instance->eagerLoadRelations($models);
  13097. }
  13098. /**
  13099. * Get a generator for the given query.
  13100. *
  13101. * @return \Generator
  13102. * @static
  13103. */
  13104. public static function cursor()
  13105. {
  13106. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13107. return $instance->cursor();
  13108. }
  13109. /**
  13110. * Chunk the results of a query by comparing numeric IDs.
  13111. *
  13112. * @param int $count
  13113. * @param callable $callback
  13114. * @param string $column
  13115. * @param string|null $alias
  13116. * @return bool
  13117. * @static
  13118. */
  13119. public static function chunkById($count, $callback, $column = null, $alias = null)
  13120. {
  13121. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13122. return $instance->chunkById($count, $callback, $column, $alias);
  13123. }
  13124. /**
  13125. * Get an array with the values of a given column.
  13126. *
  13127. * @param string $column
  13128. * @param string|null $key
  13129. * @return \Illuminate\Support\Collection
  13130. * @static
  13131. */
  13132. public static function pluck($column, $key = null)
  13133. {
  13134. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13135. return $instance->pluck($column, $key);
  13136. }
  13137. /**
  13138. * Paginate the given query.
  13139. *
  13140. * @param int $perPage
  13141. * @param array $columns
  13142. * @param string $pageName
  13143. * @param int|null $page
  13144. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  13145. * @throws \InvalidArgumentException
  13146. * @static
  13147. */
  13148. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  13149. {
  13150. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13151. return $instance->paginate($perPage, $columns, $pageName, $page);
  13152. }
  13153. /**
  13154. * Paginate the given query into a simple paginator.
  13155. *
  13156. * @param int $perPage
  13157. * @param array $columns
  13158. * @param string $pageName
  13159. * @param int|null $page
  13160. * @return \Illuminate\Contracts\Pagination\Paginator
  13161. * @static
  13162. */
  13163. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  13164. {
  13165. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13166. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  13167. }
  13168. /**
  13169. * Save a new model and return the instance.
  13170. *
  13171. * @param array $attributes
  13172. * @return \Illuminate\Database\Eloquent\Model|$this
  13173. * @static
  13174. */
  13175. public static function create($attributes = [])
  13176. {
  13177. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13178. return $instance->create($attributes);
  13179. }
  13180. /**
  13181. * Save a new model and return the instance. Allow mass-assignment.
  13182. *
  13183. * @param array $attributes
  13184. * @return \Illuminate\Database\Eloquent\Model|$this
  13185. * @static
  13186. */
  13187. public static function forceCreate($attributes)
  13188. {
  13189. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13190. return $instance->forceCreate($attributes);
  13191. }
  13192. /**
  13193. * Register a replacement for the default delete function.
  13194. *
  13195. * @param \Closure $callback
  13196. * @return void
  13197. * @static
  13198. */
  13199. public static function onDelete($callback)
  13200. {
  13201. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13202. $instance->onDelete($callback);
  13203. }
  13204. /**
  13205. * Call the given local model scopes.
  13206. *
  13207. * @param array $scopes
  13208. * @return mixed
  13209. * @static
  13210. */
  13211. public static function scopes($scopes)
  13212. {
  13213. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13214. return $instance->scopes($scopes);
  13215. }
  13216. /**
  13217. * Apply the scopes to the Eloquent builder instance and return it.
  13218. *
  13219. * @return \Illuminate\Database\Eloquent\Builder|static
  13220. * @static
  13221. */
  13222. public static function applyScopes()
  13223. {
  13224. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13225. return $instance->applyScopes();
  13226. }
  13227. /**
  13228. * Prevent the specified relations from being eager loaded.
  13229. *
  13230. * @param mixed $relations
  13231. * @return \Illuminate\Database\Eloquent\Builder
  13232. * @static
  13233. */
  13234. public static function without($relations)
  13235. {
  13236. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13237. return $instance->without($relations);
  13238. }
  13239. /**
  13240. * Create a new instance of the model being queried.
  13241. *
  13242. * @param array $attributes
  13243. * @return \Illuminate\Database\Eloquent\Model
  13244. * @static
  13245. */
  13246. public static function newModelInstance($attributes = [])
  13247. {
  13248. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13249. return $instance->newModelInstance($attributes);
  13250. }
  13251. /**
  13252. * Get the underlying query builder instance.
  13253. *
  13254. * @return \Illuminate\Database\Query\Builder
  13255. * @static
  13256. */
  13257. public static function getQuery()
  13258. {
  13259. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13260. return $instance->getQuery();
  13261. }
  13262. /**
  13263. * Set the underlying query builder instance.
  13264. *
  13265. * @param \Illuminate\Database\Query\Builder $query
  13266. * @return \Illuminate\Database\Eloquent\Builder
  13267. * @static
  13268. */
  13269. public static function setQuery($query)
  13270. {
  13271. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13272. return $instance->setQuery($query);
  13273. }
  13274. /**
  13275. * Get a base query builder instance.
  13276. *
  13277. * @return \Illuminate\Database\Query\Builder
  13278. * @static
  13279. */
  13280. public static function toBase()
  13281. {
  13282. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13283. return $instance->toBase();
  13284. }
  13285. /**
  13286. * Get the relationships being eagerly loaded.
  13287. *
  13288. * @return array
  13289. * @static
  13290. */
  13291. public static function getEagerLoads()
  13292. {
  13293. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13294. return $instance->getEagerLoads();
  13295. }
  13296. /**
  13297. * Set the relationships being eagerly loaded.
  13298. *
  13299. * @param array $eagerLoad
  13300. * @return \Illuminate\Database\Eloquent\Builder
  13301. * @static
  13302. */
  13303. public static function setEagerLoads($eagerLoad)
  13304. {
  13305. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13306. return $instance->setEagerLoads($eagerLoad);
  13307. }
  13308. /**
  13309. * Get the model instance being queried.
  13310. *
  13311. * @return \Illuminate\Database\Eloquent\Model
  13312. * @static
  13313. */
  13314. public static function getModel()
  13315. {
  13316. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13317. return $instance->getModel();
  13318. }
  13319. /**
  13320. * Set a model instance for the model being queried.
  13321. *
  13322. * @param \Illuminate\Database\Eloquent\Model $model
  13323. * @return \Illuminate\Database\Eloquent\Builder
  13324. * @static
  13325. */
  13326. public static function setModel($model)
  13327. {
  13328. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13329. return $instance->setModel($model);
  13330. }
  13331. /**
  13332. * Get the given macro by name.
  13333. *
  13334. * @param string $name
  13335. * @return \Closure
  13336. * @static
  13337. */
  13338. public static function getMacro($name)
  13339. {
  13340. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13341. return $instance->getMacro($name);
  13342. }
  13343. /**
  13344. * Chunk the results of the query.
  13345. *
  13346. * @param int $count
  13347. * @param callable $callback
  13348. * @return bool
  13349. * @static
  13350. */
  13351. public static function chunk($count, $callback)
  13352. {
  13353. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13354. return $instance->chunk($count, $callback);
  13355. }
  13356. /**
  13357. * Execute a callback over each item while chunking.
  13358. *
  13359. * @param callable $callback
  13360. * @param int $count
  13361. * @return bool
  13362. * @static
  13363. */
  13364. public static function each($callback, $count = 1000)
  13365. {
  13366. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13367. return $instance->each($callback, $count);
  13368. }
  13369. /**
  13370. * Execute the query and get the first result.
  13371. *
  13372. * @param array $columns
  13373. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  13374. * @static
  13375. */
  13376. public static function first($columns = [])
  13377. {
  13378. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13379. return $instance->first($columns);
  13380. }
  13381. /**
  13382. * Apply the callback's query changes if the given "value" is true.
  13383. *
  13384. * @param mixed $value
  13385. * @param callable $callback
  13386. * @param callable $default
  13387. * @return mixed
  13388. * @static
  13389. */
  13390. public static function when($value, $callback, $default = null)
  13391. {
  13392. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13393. return $instance->when($value, $callback, $default);
  13394. }
  13395. /**
  13396. * Pass the query to a given callback.
  13397. *
  13398. * @param \Closure $callback
  13399. * @return \Illuminate\Database\Query\Builder
  13400. * @static
  13401. */
  13402. public static function tap($callback)
  13403. {
  13404. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13405. return $instance->tap($callback);
  13406. }
  13407. /**
  13408. * Apply the callback's query changes if the given "value" is false.
  13409. *
  13410. * @param mixed $value
  13411. * @param callable $callback
  13412. * @param callable $default
  13413. * @return mixed
  13414. * @static
  13415. */
  13416. public static function unless($value, $callback, $default = null)
  13417. {
  13418. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13419. return $instance->unless($value, $callback, $default);
  13420. }
  13421. /**
  13422. * Add a relationship count / exists condition to the query.
  13423. *
  13424. * @param string $relation
  13425. * @param string $operator
  13426. * @param int $count
  13427. * @param string $boolean
  13428. * @param \Closure|null $callback
  13429. * @return \Illuminate\Database\Eloquent\Builder|static
  13430. * @static
  13431. */
  13432. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  13433. {
  13434. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13435. return $instance->has($relation, $operator, $count, $boolean, $callback);
  13436. }
  13437. /**
  13438. * Add a relationship count / exists condition to the query with an "or".
  13439. *
  13440. * @param string $relation
  13441. * @param string $operator
  13442. * @param int $count
  13443. * @return \Illuminate\Database\Eloquent\Builder|static
  13444. * @static
  13445. */
  13446. public static function orHas($relation, $operator = '>=', $count = 1)
  13447. {
  13448. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13449. return $instance->orHas($relation, $operator, $count);
  13450. }
  13451. /**
  13452. * Add a relationship count / exists condition to the query.
  13453. *
  13454. * @param string $relation
  13455. * @param string $boolean
  13456. * @param \Closure|null $callback
  13457. * @return \Illuminate\Database\Eloquent\Builder|static
  13458. * @static
  13459. */
  13460. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  13461. {
  13462. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13463. return $instance->doesntHave($relation, $boolean, $callback);
  13464. }
  13465. /**
  13466. * Add a relationship count / exists condition to the query with an "or".
  13467. *
  13468. * @param string $relation
  13469. * @return \Illuminate\Database\Eloquent\Builder|static
  13470. * @static
  13471. */
  13472. public static function orDoesntHave($relation)
  13473. {
  13474. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13475. return $instance->orDoesntHave($relation);
  13476. }
  13477. /**
  13478. * Add a relationship count / exists condition to the query with where clauses.
  13479. *
  13480. * @param string $relation
  13481. * @param \Closure|null $callback
  13482. * @param string $operator
  13483. * @param int $count
  13484. * @return \Illuminate\Database\Eloquent\Builder|static
  13485. * @static
  13486. */
  13487. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  13488. {
  13489. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13490. return $instance->whereHas($relation, $callback, $operator, $count);
  13491. }
  13492. /**
  13493. * Add a relationship count / exists condition to the query with where clauses and an "or".
  13494. *
  13495. * @param string $relation
  13496. * @param \Closure $callback
  13497. * @param string $operator
  13498. * @param int $count
  13499. * @return \Illuminate\Database\Eloquent\Builder|static
  13500. * @static
  13501. */
  13502. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  13503. {
  13504. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13505. return $instance->orWhereHas($relation, $callback, $operator, $count);
  13506. }
  13507. /**
  13508. * Add a relationship count / exists condition to the query with where clauses.
  13509. *
  13510. * @param string $relation
  13511. * @param \Closure|null $callback
  13512. * @return \Illuminate\Database\Eloquent\Builder|static
  13513. * @static
  13514. */
  13515. public static function whereDoesntHave($relation, $callback = null)
  13516. {
  13517. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13518. return $instance->whereDoesntHave($relation, $callback);
  13519. }
  13520. /**
  13521. * Add a relationship count / exists condition to the query with where clauses and an "or".
  13522. *
  13523. * @param string $relation
  13524. * @param \Closure $callback
  13525. * @return \Illuminate\Database\Eloquent\Builder|static
  13526. * @static
  13527. */
  13528. public static function orWhereDoesntHave($relation, $callback = null)
  13529. {
  13530. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13531. return $instance->orWhereDoesntHave($relation, $callback);
  13532. }
  13533. /**
  13534. * Add subselect queries to count the relations.
  13535. *
  13536. * @param mixed $relations
  13537. * @return \Illuminate\Database\Eloquent\Builder
  13538. * @static
  13539. */
  13540. public static function withCount($relations)
  13541. {
  13542. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13543. return $instance->withCount($relations);
  13544. }
  13545. /**
  13546. * Merge the where constraints from another query to the current query.
  13547. *
  13548. * @param \Illuminate\Database\Eloquent\Builder $from
  13549. * @return \Illuminate\Database\Eloquent\Builder|static
  13550. * @static
  13551. */
  13552. public static function mergeConstraintsFrom($from)
  13553. {
  13554. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13555. return $instance->mergeConstraintsFrom($from);
  13556. }
  13557. /**
  13558. * Set the columns to be selected.
  13559. *
  13560. * @param array|mixed $columns
  13561. * @return \Illuminate\Database\Query\Builder
  13562. * @static
  13563. */
  13564. public static function select($columns = [])
  13565. {
  13566. /** @var \Illuminate\Database\Query\Builder $instance */
  13567. return $instance->select($columns);
  13568. }
  13569. /**
  13570. * Add a new "raw" select expression to the query.
  13571. *
  13572. * @param string $expression
  13573. * @param array $bindings
  13574. * @return \Illuminate\Database\Query\Builder|static
  13575. * @static
  13576. */
  13577. public static function selectRaw($expression, $bindings = [])
  13578. {
  13579. /** @var \Illuminate\Database\Query\Builder $instance */
  13580. return $instance->selectRaw($expression, $bindings);
  13581. }
  13582. /**
  13583. * Add a subselect expression to the query.
  13584. *
  13585. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  13586. * @param string $as
  13587. * @return \Illuminate\Database\Query\Builder|static
  13588. * @throws \InvalidArgumentException
  13589. * @static
  13590. */
  13591. public static function selectSub($query, $as)
  13592. {
  13593. /** @var \Illuminate\Database\Query\Builder $instance */
  13594. return $instance->selectSub($query, $as);
  13595. }
  13596. /**
  13597. * Add a new select column to the query.
  13598. *
  13599. * @param array|mixed $column
  13600. * @return \Illuminate\Database\Query\Builder
  13601. * @static
  13602. */
  13603. public static function addSelect($column)
  13604. {
  13605. /** @var \Illuminate\Database\Query\Builder $instance */
  13606. return $instance->addSelect($column);
  13607. }
  13608. /**
  13609. * Force the query to only return distinct results.
  13610. *
  13611. * @return \Illuminate\Database\Query\Builder
  13612. * @static
  13613. */
  13614. public static function distinct()
  13615. {
  13616. /** @var \Illuminate\Database\Query\Builder $instance */
  13617. return $instance->distinct();
  13618. }
  13619. /**
  13620. * Set the table which the query is targeting.
  13621. *
  13622. * @param string $table
  13623. * @return \Illuminate\Database\Query\Builder
  13624. * @static
  13625. */
  13626. public static function from($table)
  13627. {
  13628. /** @var \Illuminate\Database\Query\Builder $instance */
  13629. return $instance->from($table);
  13630. }
  13631. /**
  13632. * Add a join clause to the query.
  13633. *
  13634. * @param string $table
  13635. * @param string $first
  13636. * @param string|null $operator
  13637. * @param string|null $second
  13638. * @param string $type
  13639. * @param bool $where
  13640. * @return \Illuminate\Database\Query\Builder
  13641. * @static
  13642. */
  13643. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  13644. {
  13645. /** @var \Illuminate\Database\Query\Builder $instance */
  13646. return $instance->join($table, $first, $operator, $second, $type, $where);
  13647. }
  13648. /**
  13649. * Add a "join where" clause to the query.
  13650. *
  13651. * @param string $table
  13652. * @param string $first
  13653. * @param string $operator
  13654. * @param string $second
  13655. * @param string $type
  13656. * @return \Illuminate\Database\Query\Builder|static
  13657. * @static
  13658. */
  13659. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  13660. {
  13661. /** @var \Illuminate\Database\Query\Builder $instance */
  13662. return $instance->joinWhere($table, $first, $operator, $second, $type);
  13663. }
  13664. /**
  13665. * Add a left join to the query.
  13666. *
  13667. * @param string $table
  13668. * @param string $first
  13669. * @param string|null $operator
  13670. * @param string|null $second
  13671. * @return \Illuminate\Database\Query\Builder|static
  13672. * @static
  13673. */
  13674. public static function leftJoin($table, $first, $operator = null, $second = null)
  13675. {
  13676. /** @var \Illuminate\Database\Query\Builder $instance */
  13677. return $instance->leftJoin($table, $first, $operator, $second);
  13678. }
  13679. /**
  13680. * Add a "join where" clause to the query.
  13681. *
  13682. * @param string $table
  13683. * @param string $first
  13684. * @param string $operator
  13685. * @param string $second
  13686. * @return \Illuminate\Database\Query\Builder|static
  13687. * @static
  13688. */
  13689. public static function leftJoinWhere($table, $first, $operator, $second)
  13690. {
  13691. /** @var \Illuminate\Database\Query\Builder $instance */
  13692. return $instance->leftJoinWhere($table, $first, $operator, $second);
  13693. }
  13694. /**
  13695. * Add a right join to the query.
  13696. *
  13697. * @param string $table
  13698. * @param string $first
  13699. * @param string|null $operator
  13700. * @param string|null $second
  13701. * @return \Illuminate\Database\Query\Builder|static
  13702. * @static
  13703. */
  13704. public static function rightJoin($table, $first, $operator = null, $second = null)
  13705. {
  13706. /** @var \Illuminate\Database\Query\Builder $instance */
  13707. return $instance->rightJoin($table, $first, $operator, $second);
  13708. }
  13709. /**
  13710. * Add a "right join where" clause to the query.
  13711. *
  13712. * @param string $table
  13713. * @param string $first
  13714. * @param string $operator
  13715. * @param string $second
  13716. * @return \Illuminate\Database\Query\Builder|static
  13717. * @static
  13718. */
  13719. public static function rightJoinWhere($table, $first, $operator, $second)
  13720. {
  13721. /** @var \Illuminate\Database\Query\Builder $instance */
  13722. return $instance->rightJoinWhere($table, $first, $operator, $second);
  13723. }
  13724. /**
  13725. * Add a "cross join" clause to the query.
  13726. *
  13727. * @param string $table
  13728. * @param string|null $first
  13729. * @param string|null $operator
  13730. * @param string|null $second
  13731. * @return \Illuminate\Database\Query\Builder|static
  13732. * @static
  13733. */
  13734. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  13735. {
  13736. /** @var \Illuminate\Database\Query\Builder $instance */
  13737. return $instance->crossJoin($table, $first, $operator, $second);
  13738. }
  13739. /**
  13740. * Merge an array of where clauses and bindings.
  13741. *
  13742. * @param array $wheres
  13743. * @param array $bindings
  13744. * @return void
  13745. * @static
  13746. */
  13747. public static function mergeWheres($wheres, $bindings)
  13748. {
  13749. /** @var \Illuminate\Database\Query\Builder $instance */
  13750. $instance->mergeWheres($wheres, $bindings);
  13751. }
  13752. /**
  13753. * Prepare the value and operator for a where clause.
  13754. *
  13755. * @param string $value
  13756. * @param string $operator
  13757. * @param bool $useDefault
  13758. * @return array
  13759. * @throws \InvalidArgumentException
  13760. * @static
  13761. */
  13762. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  13763. {
  13764. /** @var \Illuminate\Database\Query\Builder $instance */
  13765. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  13766. }
  13767. /**
  13768. * Add a "where" clause comparing two columns to the query.
  13769. *
  13770. * @param string|array $first
  13771. * @param string|null $operator
  13772. * @param string|null $second
  13773. * @param string|null $boolean
  13774. * @return \Illuminate\Database\Query\Builder|static
  13775. * @static
  13776. */
  13777. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  13778. {
  13779. /** @var \Illuminate\Database\Query\Builder $instance */
  13780. return $instance->whereColumn($first, $operator, $second, $boolean);
  13781. }
  13782. /**
  13783. * Add an "or where" clause comparing two columns to the query.
  13784. *
  13785. * @param string|array $first
  13786. * @param string|null $operator
  13787. * @param string|null $second
  13788. * @return \Illuminate\Database\Query\Builder|static
  13789. * @static
  13790. */
  13791. public static function orWhereColumn($first, $operator = null, $second = null)
  13792. {
  13793. /** @var \Illuminate\Database\Query\Builder $instance */
  13794. return $instance->orWhereColumn($first, $operator, $second);
  13795. }
  13796. /**
  13797. * Add a raw where clause to the query.
  13798. *
  13799. * @param string $sql
  13800. * @param mixed $bindings
  13801. * @param string $boolean
  13802. * @return \Illuminate\Database\Query\Builder
  13803. * @static
  13804. */
  13805. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  13806. {
  13807. /** @var \Illuminate\Database\Query\Builder $instance */
  13808. return $instance->whereRaw($sql, $bindings, $boolean);
  13809. }
  13810. /**
  13811. * Add a raw or where clause to the query.
  13812. *
  13813. * @param string $sql
  13814. * @param mixed $bindings
  13815. * @return \Illuminate\Database\Query\Builder|static
  13816. * @static
  13817. */
  13818. public static function orWhereRaw($sql, $bindings = [])
  13819. {
  13820. /** @var \Illuminate\Database\Query\Builder $instance */
  13821. return $instance->orWhereRaw($sql, $bindings);
  13822. }
  13823. /**
  13824. * Add a "where in" clause to the query.
  13825. *
  13826. * @param string $column
  13827. * @param mixed $values
  13828. * @param string $boolean
  13829. * @param bool $not
  13830. * @return \Illuminate\Database\Query\Builder
  13831. * @static
  13832. */
  13833. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  13834. {
  13835. /** @var \Illuminate\Database\Query\Builder $instance */
  13836. return $instance->whereIn($column, $values, $boolean, $not);
  13837. }
  13838. /**
  13839. * Add an "or where in" clause to the query.
  13840. *
  13841. * @param string $column
  13842. * @param mixed $values
  13843. * @return \Illuminate\Database\Query\Builder|static
  13844. * @static
  13845. */
  13846. public static function orWhereIn($column, $values)
  13847. {
  13848. /** @var \Illuminate\Database\Query\Builder $instance */
  13849. return $instance->orWhereIn($column, $values);
  13850. }
  13851. /**
  13852. * Add a "where not in" clause to the query.
  13853. *
  13854. * @param string $column
  13855. * @param mixed $values
  13856. * @param string $boolean
  13857. * @return \Illuminate\Database\Query\Builder|static
  13858. * @static
  13859. */
  13860. public static function whereNotIn($column, $values, $boolean = 'and')
  13861. {
  13862. /** @var \Illuminate\Database\Query\Builder $instance */
  13863. return $instance->whereNotIn($column, $values, $boolean);
  13864. }
  13865. /**
  13866. * Add an "or where not in" clause to the query.
  13867. *
  13868. * @param string $column
  13869. * @param mixed $values
  13870. * @return \Illuminate\Database\Query\Builder|static
  13871. * @static
  13872. */
  13873. public static function orWhereNotIn($column, $values)
  13874. {
  13875. /** @var \Illuminate\Database\Query\Builder $instance */
  13876. return $instance->orWhereNotIn($column, $values);
  13877. }
  13878. /**
  13879. * Add a "where null" clause to the query.
  13880. *
  13881. * @param string $column
  13882. * @param string $boolean
  13883. * @param bool $not
  13884. * @return \Illuminate\Database\Query\Builder
  13885. * @static
  13886. */
  13887. public static function whereNull($column, $boolean = 'and', $not = false)
  13888. {
  13889. /** @var \Illuminate\Database\Query\Builder $instance */
  13890. return $instance->whereNull($column, $boolean, $not);
  13891. }
  13892. /**
  13893. * Add an "or where null" clause to the query.
  13894. *
  13895. * @param string $column
  13896. * @return \Illuminate\Database\Query\Builder|static
  13897. * @static
  13898. */
  13899. public static function orWhereNull($column)
  13900. {
  13901. /** @var \Illuminate\Database\Query\Builder $instance */
  13902. return $instance->orWhereNull($column);
  13903. }
  13904. /**
  13905. * Add a "where not null" clause to the query.
  13906. *
  13907. * @param string $column
  13908. * @param string $boolean
  13909. * @return \Illuminate\Database\Query\Builder|static
  13910. * @static
  13911. */
  13912. public static function whereNotNull($column, $boolean = 'and')
  13913. {
  13914. /** @var \Illuminate\Database\Query\Builder $instance */
  13915. return $instance->whereNotNull($column, $boolean);
  13916. }
  13917. /**
  13918. * Add a where between statement to the query.
  13919. *
  13920. * @param string $column
  13921. * @param array $values
  13922. * @param string $boolean
  13923. * @param bool $not
  13924. * @return \Illuminate\Database\Query\Builder
  13925. * @static
  13926. */
  13927. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  13928. {
  13929. /** @var \Illuminate\Database\Query\Builder $instance */
  13930. return $instance->whereBetween($column, $values, $boolean, $not);
  13931. }
  13932. /**
  13933. * Add an or where between statement to the query.
  13934. *
  13935. * @param string $column
  13936. * @param array $values
  13937. * @return \Illuminate\Database\Query\Builder|static
  13938. * @static
  13939. */
  13940. public static function orWhereBetween($column, $values)
  13941. {
  13942. /** @var \Illuminate\Database\Query\Builder $instance */
  13943. return $instance->orWhereBetween($column, $values);
  13944. }
  13945. /**
  13946. * Add a where not between statement to the query.
  13947. *
  13948. * @param string $column
  13949. * @param array $values
  13950. * @param string $boolean
  13951. * @return \Illuminate\Database\Query\Builder|static
  13952. * @static
  13953. */
  13954. public static function whereNotBetween($column, $values, $boolean = 'and')
  13955. {
  13956. /** @var \Illuminate\Database\Query\Builder $instance */
  13957. return $instance->whereNotBetween($column, $values, $boolean);
  13958. }
  13959. /**
  13960. * Add an or where not between statement to the query.
  13961. *
  13962. * @param string $column
  13963. * @param array $values
  13964. * @return \Illuminate\Database\Query\Builder|static
  13965. * @static
  13966. */
  13967. public static function orWhereNotBetween($column, $values)
  13968. {
  13969. /** @var \Illuminate\Database\Query\Builder $instance */
  13970. return $instance->orWhereNotBetween($column, $values);
  13971. }
  13972. /**
  13973. * Add an "or where not null" clause to the query.
  13974. *
  13975. * @param string $column
  13976. * @return \Illuminate\Database\Query\Builder|static
  13977. * @static
  13978. */
  13979. public static function orWhereNotNull($column)
  13980. {
  13981. /** @var \Illuminate\Database\Query\Builder $instance */
  13982. return $instance->orWhereNotNull($column);
  13983. }
  13984. /**
  13985. * Add a "where date" statement to the query.
  13986. *
  13987. * @param string $column
  13988. * @param string $operator
  13989. * @param mixed $value
  13990. * @param string $boolean
  13991. * @return \Illuminate\Database\Query\Builder|static
  13992. * @static
  13993. */
  13994. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  13995. {
  13996. /** @var \Illuminate\Database\Query\Builder $instance */
  13997. return $instance->whereDate($column, $operator, $value, $boolean);
  13998. }
  13999. /**
  14000. * Add an "or where date" statement to the query.
  14001. *
  14002. * @param string $column
  14003. * @param string $operator
  14004. * @param string $value
  14005. * @return \Illuminate\Database\Query\Builder|static
  14006. * @static
  14007. */
  14008. public static function orWhereDate($column, $operator, $value)
  14009. {
  14010. /** @var \Illuminate\Database\Query\Builder $instance */
  14011. return $instance->orWhereDate($column, $operator, $value);
  14012. }
  14013. /**
  14014. * Add a "where time" statement to the query.
  14015. *
  14016. * @param string $column
  14017. * @param string $operator
  14018. * @param int $value
  14019. * @param string $boolean
  14020. * @return \Illuminate\Database\Query\Builder|static
  14021. * @static
  14022. */
  14023. public static function whereTime($column, $operator, $value, $boolean = 'and')
  14024. {
  14025. /** @var \Illuminate\Database\Query\Builder $instance */
  14026. return $instance->whereTime($column, $operator, $value, $boolean);
  14027. }
  14028. /**
  14029. * Add an "or where time" statement to the query.
  14030. *
  14031. * @param string $column
  14032. * @param string $operator
  14033. * @param int $value
  14034. * @return \Illuminate\Database\Query\Builder|static
  14035. * @static
  14036. */
  14037. public static function orWhereTime($column, $operator, $value)
  14038. {
  14039. /** @var \Illuminate\Database\Query\Builder $instance */
  14040. return $instance->orWhereTime($column, $operator, $value);
  14041. }
  14042. /**
  14043. * Add a "where day" statement to the query.
  14044. *
  14045. * @param string $column
  14046. * @param string $operator
  14047. * @param mixed $value
  14048. * @param string $boolean
  14049. * @return \Illuminate\Database\Query\Builder|static
  14050. * @static
  14051. */
  14052. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  14053. {
  14054. /** @var \Illuminate\Database\Query\Builder $instance */
  14055. return $instance->whereDay($column, $operator, $value, $boolean);
  14056. }
  14057. /**
  14058. * Add a "where month" statement to the query.
  14059. *
  14060. * @param string $column
  14061. * @param string $operator
  14062. * @param mixed $value
  14063. * @param string $boolean
  14064. * @return \Illuminate\Database\Query\Builder|static
  14065. * @static
  14066. */
  14067. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  14068. {
  14069. /** @var \Illuminate\Database\Query\Builder $instance */
  14070. return $instance->whereMonth($column, $operator, $value, $boolean);
  14071. }
  14072. /**
  14073. * Add a "where year" statement to the query.
  14074. *
  14075. * @param string $column
  14076. * @param string $operator
  14077. * @param mixed $value
  14078. * @param string $boolean
  14079. * @return \Illuminate\Database\Query\Builder|static
  14080. * @static
  14081. */
  14082. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  14083. {
  14084. /** @var \Illuminate\Database\Query\Builder $instance */
  14085. return $instance->whereYear($column, $operator, $value, $boolean);
  14086. }
  14087. /**
  14088. * Add a nested where statement to the query.
  14089. *
  14090. * @param \Closure $callback
  14091. * @param string $boolean
  14092. * @return \Illuminate\Database\Query\Builder|static
  14093. * @static
  14094. */
  14095. public static function whereNested($callback, $boolean = 'and')
  14096. {
  14097. /** @var \Illuminate\Database\Query\Builder $instance */
  14098. return $instance->whereNested($callback, $boolean);
  14099. }
  14100. /**
  14101. * Create a new query instance for nested where condition.
  14102. *
  14103. * @return \Illuminate\Database\Query\Builder
  14104. * @static
  14105. */
  14106. public static function forNestedWhere()
  14107. {
  14108. /** @var \Illuminate\Database\Query\Builder $instance */
  14109. return $instance->forNestedWhere();
  14110. }
  14111. /**
  14112. * Add another query builder as a nested where to the query builder.
  14113. *
  14114. * @param \Illuminate\Database\Query\Builder|static $query
  14115. * @param string $boolean
  14116. * @return \Illuminate\Database\Query\Builder
  14117. * @static
  14118. */
  14119. public static function addNestedWhereQuery($query, $boolean = 'and')
  14120. {
  14121. /** @var \Illuminate\Database\Query\Builder $instance */
  14122. return $instance->addNestedWhereQuery($query, $boolean);
  14123. }
  14124. /**
  14125. * Add an exists clause to the query.
  14126. *
  14127. * @param \Closure $callback
  14128. * @param string $boolean
  14129. * @param bool $not
  14130. * @return \Illuminate\Database\Query\Builder
  14131. * @static
  14132. */
  14133. public static function whereExists($callback, $boolean = 'and', $not = false)
  14134. {
  14135. /** @var \Illuminate\Database\Query\Builder $instance */
  14136. return $instance->whereExists($callback, $boolean, $not);
  14137. }
  14138. /**
  14139. * Add an or exists clause to the query.
  14140. *
  14141. * @param \Closure $callback
  14142. * @param bool $not
  14143. * @return \Illuminate\Database\Query\Builder|static
  14144. * @static
  14145. */
  14146. public static function orWhereExists($callback, $not = false)
  14147. {
  14148. /** @var \Illuminate\Database\Query\Builder $instance */
  14149. return $instance->orWhereExists($callback, $not);
  14150. }
  14151. /**
  14152. * Add a where not exists clause to the query.
  14153. *
  14154. * @param \Closure $callback
  14155. * @param string $boolean
  14156. * @return \Illuminate\Database\Query\Builder|static
  14157. * @static
  14158. */
  14159. public static function whereNotExists($callback, $boolean = 'and')
  14160. {
  14161. /** @var \Illuminate\Database\Query\Builder $instance */
  14162. return $instance->whereNotExists($callback, $boolean);
  14163. }
  14164. /**
  14165. * Add a where not exists clause to the query.
  14166. *
  14167. * @param \Closure $callback
  14168. * @return \Illuminate\Database\Query\Builder|static
  14169. * @static
  14170. */
  14171. public static function orWhereNotExists($callback)
  14172. {
  14173. /** @var \Illuminate\Database\Query\Builder $instance */
  14174. return $instance->orWhereNotExists($callback);
  14175. }
  14176. /**
  14177. * Add an exists clause to the query.
  14178. *
  14179. * @param \Illuminate\Database\Query\Builder $query
  14180. * @param string $boolean
  14181. * @param bool $not
  14182. * @return \Illuminate\Database\Query\Builder
  14183. * @static
  14184. */
  14185. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  14186. {
  14187. /** @var \Illuminate\Database\Query\Builder $instance */
  14188. return $instance->addWhereExistsQuery($query, $boolean, $not);
  14189. }
  14190. /**
  14191. * Handles dynamic "where" clauses to the query.
  14192. *
  14193. * @param string $method
  14194. * @param string $parameters
  14195. * @return \Illuminate\Database\Query\Builder
  14196. * @static
  14197. */
  14198. public static function dynamicWhere($method, $parameters)
  14199. {
  14200. /** @var \Illuminate\Database\Query\Builder $instance */
  14201. return $instance->dynamicWhere($method, $parameters);
  14202. }
  14203. /**
  14204. * Add a "group by" clause to the query.
  14205. *
  14206. * @param array $groups
  14207. * @return \Illuminate\Database\Query\Builder
  14208. * @static
  14209. */
  14210. public static function groupBy(...$groups)
  14211. {
  14212. /** @var \Illuminate\Database\Query\Builder $instance */
  14213. return $instance->groupBy(...$groups);
  14214. }
  14215. /**
  14216. * Add a "having" clause to the query.
  14217. *
  14218. * @param string $column
  14219. * @param string|null $operator
  14220. * @param string|null $value
  14221. * @param string $boolean
  14222. * @return \Illuminate\Database\Query\Builder
  14223. * @static
  14224. */
  14225. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  14226. {
  14227. /** @var \Illuminate\Database\Query\Builder $instance */
  14228. return $instance->having($column, $operator, $value, $boolean);
  14229. }
  14230. /**
  14231. * Add a "or having" clause to the query.
  14232. *
  14233. * @param string $column
  14234. * @param string|null $operator
  14235. * @param string|null $value
  14236. * @return \Illuminate\Database\Query\Builder|static
  14237. * @static
  14238. */
  14239. public static function orHaving($column, $operator = null, $value = null)
  14240. {
  14241. /** @var \Illuminate\Database\Query\Builder $instance */
  14242. return $instance->orHaving($column, $operator, $value);
  14243. }
  14244. /**
  14245. * Add a raw having clause to the query.
  14246. *
  14247. * @param string $sql
  14248. * @param array $bindings
  14249. * @param string $boolean
  14250. * @return \Illuminate\Database\Query\Builder
  14251. * @static
  14252. */
  14253. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  14254. {
  14255. /** @var \Illuminate\Database\Query\Builder $instance */
  14256. return $instance->havingRaw($sql, $bindings, $boolean);
  14257. }
  14258. /**
  14259. * Add a raw or having clause to the query.
  14260. *
  14261. * @param string $sql
  14262. * @param array $bindings
  14263. * @return \Illuminate\Database\Query\Builder|static
  14264. * @static
  14265. */
  14266. public static function orHavingRaw($sql, $bindings = [])
  14267. {
  14268. /** @var \Illuminate\Database\Query\Builder $instance */
  14269. return $instance->orHavingRaw($sql, $bindings);
  14270. }
  14271. /**
  14272. * Add an "order by" clause to the query.
  14273. *
  14274. * @param string $column
  14275. * @param string $direction
  14276. * @return \Illuminate\Database\Query\Builder
  14277. * @static
  14278. */
  14279. public static function orderBy($column, $direction = 'asc')
  14280. {
  14281. /** @var \Illuminate\Database\Query\Builder $instance */
  14282. return $instance->orderBy($column, $direction);
  14283. }
  14284. /**
  14285. * Add a descending "order by" clause to the query.
  14286. *
  14287. * @param string $column
  14288. * @return \Illuminate\Database\Query\Builder
  14289. * @static
  14290. */
  14291. public static function orderByDesc($column)
  14292. {
  14293. /** @var \Illuminate\Database\Query\Builder $instance */
  14294. return $instance->orderByDesc($column);
  14295. }
  14296. /**
  14297. * Add an "order by" clause for a timestamp to the query.
  14298. *
  14299. * @param string $column
  14300. * @return \Illuminate\Database\Query\Builder|static
  14301. * @static
  14302. */
  14303. public static function latest($column = 'created_at')
  14304. {
  14305. /** @var \Illuminate\Database\Query\Builder $instance */
  14306. return $instance->latest($column);
  14307. }
  14308. /**
  14309. * Add an "order by" clause for a timestamp to the query.
  14310. *
  14311. * @param string $column
  14312. * @return \Illuminate\Database\Query\Builder|static
  14313. * @static
  14314. */
  14315. public static function oldest($column = 'created_at')
  14316. {
  14317. /** @var \Illuminate\Database\Query\Builder $instance */
  14318. return $instance->oldest($column);
  14319. }
  14320. /**
  14321. * Put the query's results in random order.
  14322. *
  14323. * @param string $seed
  14324. * @return \Illuminate\Database\Query\Builder
  14325. * @static
  14326. */
  14327. public static function inRandomOrder($seed = '')
  14328. {
  14329. /** @var \Illuminate\Database\Query\Builder $instance */
  14330. return $instance->inRandomOrder($seed);
  14331. }
  14332. /**
  14333. * Add a raw "order by" clause to the query.
  14334. *
  14335. * @param string $sql
  14336. * @param array $bindings
  14337. * @return \Illuminate\Database\Query\Builder
  14338. * @static
  14339. */
  14340. public static function orderByRaw($sql, $bindings = [])
  14341. {
  14342. /** @var \Illuminate\Database\Query\Builder $instance */
  14343. return $instance->orderByRaw($sql, $bindings);
  14344. }
  14345. /**
  14346. * Alias to set the "offset" value of the query.
  14347. *
  14348. * @param int $value
  14349. * @return \Illuminate\Database\Query\Builder|static
  14350. * @static
  14351. */
  14352. public static function skip($value)
  14353. {
  14354. /** @var \Illuminate\Database\Query\Builder $instance */
  14355. return $instance->skip($value);
  14356. }
  14357. /**
  14358. * Set the "offset" value of the query.
  14359. *
  14360. * @param int $value
  14361. * @return \Illuminate\Database\Query\Builder
  14362. * @static
  14363. */
  14364. public static function offset($value)
  14365. {
  14366. /** @var \Illuminate\Database\Query\Builder $instance */
  14367. return $instance->offset($value);
  14368. }
  14369. /**
  14370. * Alias to set the "limit" value of the query.
  14371. *
  14372. * @param int $value
  14373. * @return \Illuminate\Database\Query\Builder|static
  14374. * @static
  14375. */
  14376. public static function take($value)
  14377. {
  14378. /** @var \Illuminate\Database\Query\Builder $instance */
  14379. return $instance->take($value);
  14380. }
  14381. /**
  14382. * Set the "limit" value of the query.
  14383. *
  14384. * @param int $value
  14385. * @return \Illuminate\Database\Query\Builder
  14386. * @static
  14387. */
  14388. public static function limit($value)
  14389. {
  14390. /** @var \Illuminate\Database\Query\Builder $instance */
  14391. return $instance->limit($value);
  14392. }
  14393. /**
  14394. * Set the limit and offset for a given page.
  14395. *
  14396. * @param int $page
  14397. * @param int $perPage
  14398. * @return \Illuminate\Database\Query\Builder|static
  14399. * @static
  14400. */
  14401. public static function forPage($page, $perPage = 15)
  14402. {
  14403. /** @var \Illuminate\Database\Query\Builder $instance */
  14404. return $instance->forPage($page, $perPage);
  14405. }
  14406. /**
  14407. * Constrain the query to the next "page" of results after a given ID.
  14408. *
  14409. * @param int $perPage
  14410. * @param int $lastId
  14411. * @param string $column
  14412. * @return \Illuminate\Database\Query\Builder|static
  14413. * @static
  14414. */
  14415. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  14416. {
  14417. /** @var \Illuminate\Database\Query\Builder $instance */
  14418. return $instance->forPageAfterId($perPage, $lastId, $column);
  14419. }
  14420. /**
  14421. * Add a union statement to the query.
  14422. *
  14423. * @param \Illuminate\Database\Query\Builder|\Closure $query
  14424. * @param bool $all
  14425. * @return \Illuminate\Database\Query\Builder|static
  14426. * @static
  14427. */
  14428. public static function union($query, $all = false)
  14429. {
  14430. /** @var \Illuminate\Database\Query\Builder $instance */
  14431. return $instance->union($query, $all);
  14432. }
  14433. /**
  14434. * Add a union all statement to the query.
  14435. *
  14436. * @param \Illuminate\Database\Query\Builder|\Closure $query
  14437. * @return \Illuminate\Database\Query\Builder|static
  14438. * @static
  14439. */
  14440. public static function unionAll($query)
  14441. {
  14442. /** @var \Illuminate\Database\Query\Builder $instance */
  14443. return $instance->unionAll($query);
  14444. }
  14445. /**
  14446. * Lock the selected rows in the table.
  14447. *
  14448. * @param string|bool $value
  14449. * @return \Illuminate\Database\Query\Builder
  14450. * @static
  14451. */
  14452. public static function lock($value = true)
  14453. {
  14454. /** @var \Illuminate\Database\Query\Builder $instance */
  14455. return $instance->lock($value);
  14456. }
  14457. /**
  14458. * Lock the selected rows in the table for updating.
  14459. *
  14460. * @return \Illuminate\Database\Query\Builder
  14461. * @static
  14462. */
  14463. public static function lockForUpdate()
  14464. {
  14465. /** @var \Illuminate\Database\Query\Builder $instance */
  14466. return $instance->lockForUpdate();
  14467. }
  14468. /**
  14469. * Share lock the selected rows in the table.
  14470. *
  14471. * @return \Illuminate\Database\Query\Builder
  14472. * @static
  14473. */
  14474. public static function sharedLock()
  14475. {
  14476. /** @var \Illuminate\Database\Query\Builder $instance */
  14477. return $instance->sharedLock();
  14478. }
  14479. /**
  14480. * Get the SQL representation of the query.
  14481. *
  14482. * @return string
  14483. * @static
  14484. */
  14485. public static function toSql()
  14486. {
  14487. /** @var \Illuminate\Database\Query\Builder $instance */
  14488. return $instance->toSql();
  14489. }
  14490. /**
  14491. * Get the count of the total records for the paginator.
  14492. *
  14493. * @param array $columns
  14494. * @return int
  14495. * @static
  14496. */
  14497. public static function getCountForPagination($columns = [])
  14498. {
  14499. /** @var \Illuminate\Database\Query\Builder $instance */
  14500. return $instance->getCountForPagination($columns);
  14501. }
  14502. /**
  14503. * Concatenate values of a given column as a string.
  14504. *
  14505. * @param string $column
  14506. * @param string $glue
  14507. * @return string
  14508. * @static
  14509. */
  14510. public static function implode($column, $glue = '')
  14511. {
  14512. /** @var \Illuminate\Database\Query\Builder $instance */
  14513. return $instance->implode($column, $glue);
  14514. }
  14515. /**
  14516. * Determine if any rows exist for the current query.
  14517. *
  14518. * @return bool
  14519. * @static
  14520. */
  14521. public static function exists()
  14522. {
  14523. /** @var \Illuminate\Database\Query\Builder $instance */
  14524. return $instance->exists();
  14525. }
  14526. /**
  14527. * Determine if no rows exist for the current query.
  14528. *
  14529. * @return bool
  14530. * @static
  14531. */
  14532. public static function doesntExist()
  14533. {
  14534. /** @var \Illuminate\Database\Query\Builder $instance */
  14535. return $instance->doesntExist();
  14536. }
  14537. /**
  14538. * Retrieve the "count" result of the query.
  14539. *
  14540. * @param string $columns
  14541. * @return int
  14542. * @static
  14543. */
  14544. public static function count($columns = '*')
  14545. {
  14546. /** @var \Illuminate\Database\Query\Builder $instance */
  14547. return $instance->count($columns);
  14548. }
  14549. /**
  14550. * Retrieve the minimum value of a given column.
  14551. *
  14552. * @param string $column
  14553. * @return mixed
  14554. * @static
  14555. */
  14556. public static function min($column)
  14557. {
  14558. /** @var \Illuminate\Database\Query\Builder $instance */
  14559. return $instance->min($column);
  14560. }
  14561. /**
  14562. * Retrieve the maximum value of a given column.
  14563. *
  14564. * @param string $column
  14565. * @return mixed
  14566. * @static
  14567. */
  14568. public static function max($column)
  14569. {
  14570. /** @var \Illuminate\Database\Query\Builder $instance */
  14571. return $instance->max($column);
  14572. }
  14573. /**
  14574. * Retrieve the sum of the values of a given column.
  14575. *
  14576. * @param string $column
  14577. * @return mixed
  14578. * @static
  14579. */
  14580. public static function sum($column)
  14581. {
  14582. /** @var \Illuminate\Database\Query\Builder $instance */
  14583. return $instance->sum($column);
  14584. }
  14585. /**
  14586. * Retrieve the average of the values of a given column.
  14587. *
  14588. * @param string $column
  14589. * @return mixed
  14590. * @static
  14591. */
  14592. public static function avg($column)
  14593. {
  14594. /** @var \Illuminate\Database\Query\Builder $instance */
  14595. return $instance->avg($column);
  14596. }
  14597. /**
  14598. * Alias for the "avg" method.
  14599. *
  14600. * @param string $column
  14601. * @return mixed
  14602. * @static
  14603. */
  14604. public static function average($column)
  14605. {
  14606. /** @var \Illuminate\Database\Query\Builder $instance */
  14607. return $instance->average($column);
  14608. }
  14609. /**
  14610. * Execute an aggregate function on the database.
  14611. *
  14612. * @param string $function
  14613. * @param array $columns
  14614. * @return mixed
  14615. * @static
  14616. */
  14617. public static function aggregate($function, $columns = [])
  14618. {
  14619. /** @var \Illuminate\Database\Query\Builder $instance */
  14620. return $instance->aggregate($function, $columns);
  14621. }
  14622. /**
  14623. * Execute a numeric aggregate function on the database.
  14624. *
  14625. * @param string $function
  14626. * @param array $columns
  14627. * @return float|int
  14628. * @static
  14629. */
  14630. public static function numericAggregate($function, $columns = [])
  14631. {
  14632. /** @var \Illuminate\Database\Query\Builder $instance */
  14633. return $instance->numericAggregate($function, $columns);
  14634. }
  14635. /**
  14636. * Insert a new record into the database.
  14637. *
  14638. * @param array $values
  14639. * @return bool
  14640. * @static
  14641. */
  14642. public static function insert($values)
  14643. {
  14644. /** @var \Illuminate\Database\Query\Builder $instance */
  14645. return $instance->insert($values);
  14646. }
  14647. /**
  14648. * Insert a new record and get the value of the primary key.
  14649. *
  14650. * @param array $values
  14651. * @param string|null $sequence
  14652. * @return int
  14653. * @static
  14654. */
  14655. public static function insertGetId($values, $sequence = null)
  14656. {
  14657. /** @var \Illuminate\Database\Query\Builder $instance */
  14658. return $instance->insertGetId($values, $sequence);
  14659. }
  14660. /**
  14661. * Insert or update a record matching the attributes, and fill it with values.
  14662. *
  14663. * @param array $attributes
  14664. * @param array $values
  14665. * @return bool
  14666. * @static
  14667. */
  14668. public static function updateOrInsert($attributes, $values = [])
  14669. {
  14670. /** @var \Illuminate\Database\Query\Builder $instance */
  14671. return $instance->updateOrInsert($attributes, $values);
  14672. }
  14673. /**
  14674. * Run a truncate statement on the table.
  14675. *
  14676. * @return void
  14677. * @static
  14678. */
  14679. public static function truncate()
  14680. {
  14681. /** @var \Illuminate\Database\Query\Builder $instance */
  14682. $instance->truncate();
  14683. }
  14684. /**
  14685. * Create a raw database expression.
  14686. *
  14687. * @param mixed $value
  14688. * @return \Illuminate\Database\Query\Expression
  14689. * @static
  14690. */
  14691. public static function raw($value)
  14692. {
  14693. /** @var \Illuminate\Database\Query\Builder $instance */
  14694. return $instance->raw($value);
  14695. }
  14696. /**
  14697. * Get the current query value bindings in a flattened array.
  14698. *
  14699. * @return array
  14700. * @static
  14701. */
  14702. public static function getBindings()
  14703. {
  14704. /** @var \Illuminate\Database\Query\Builder $instance */
  14705. return $instance->getBindings();
  14706. }
  14707. /**
  14708. * Get the raw array of bindings.
  14709. *
  14710. * @return array
  14711. * @static
  14712. */
  14713. public static function getRawBindings()
  14714. {
  14715. /** @var \Illuminate\Database\Query\Builder $instance */
  14716. return $instance->getRawBindings();
  14717. }
  14718. /**
  14719. * Set the bindings on the query builder.
  14720. *
  14721. * @param array $bindings
  14722. * @param string $type
  14723. * @return \Illuminate\Database\Query\Builder
  14724. * @throws \InvalidArgumentException
  14725. * @static
  14726. */
  14727. public static function setBindings($bindings, $type = 'where')
  14728. {
  14729. /** @var \Illuminate\Database\Query\Builder $instance */
  14730. return $instance->setBindings($bindings, $type);
  14731. }
  14732. /**
  14733. * Add a binding to the query.
  14734. *
  14735. * @param mixed $value
  14736. * @param string $type
  14737. * @return \Illuminate\Database\Query\Builder
  14738. * @throws \InvalidArgumentException
  14739. * @static
  14740. */
  14741. public static function addBinding($value, $type = 'where')
  14742. {
  14743. /** @var \Illuminate\Database\Query\Builder $instance */
  14744. return $instance->addBinding($value, $type);
  14745. }
  14746. /**
  14747. * Merge an array of bindings into our bindings.
  14748. *
  14749. * @param \Illuminate\Database\Query\Builder $query
  14750. * @return \Illuminate\Database\Query\Builder
  14751. * @static
  14752. */
  14753. public static function mergeBindings($query)
  14754. {
  14755. /** @var \Illuminate\Database\Query\Builder $instance */
  14756. return $instance->mergeBindings($query);
  14757. }
  14758. /**
  14759. * Get the database query processor instance.
  14760. *
  14761. * @return \Illuminate\Database\Query\Processors\Processor
  14762. * @static
  14763. */
  14764. public static function getProcessor()
  14765. {
  14766. /** @var \Illuminate\Database\Query\Builder $instance */
  14767. return $instance->getProcessor();
  14768. }
  14769. /**
  14770. * Get the query grammar instance.
  14771. *
  14772. * @return \Illuminate\Database\Query\Grammars\Grammar
  14773. * @static
  14774. */
  14775. public static function getGrammar()
  14776. {
  14777. /** @var \Illuminate\Database\Query\Builder $instance */
  14778. return $instance->getGrammar();
  14779. }
  14780. /**
  14781. * Use the write pdo for query.
  14782. *
  14783. * @return \Illuminate\Database\Query\Builder
  14784. * @static
  14785. */
  14786. public static function useWritePdo()
  14787. {
  14788. /** @var \Illuminate\Database\Query\Builder $instance */
  14789. return $instance->useWritePdo();
  14790. }
  14791. /**
  14792. * Clone the query without the given properties.
  14793. *
  14794. * @param array $properties
  14795. * @return static
  14796. * @static
  14797. */
  14798. public static function cloneWithout($properties)
  14799. {
  14800. /** @var \Illuminate\Database\Query\Builder $instance */
  14801. return $instance->cloneWithout($properties);
  14802. }
  14803. /**
  14804. * Clone the query without the given bindings.
  14805. *
  14806. * @param array $except
  14807. * @return static
  14808. * @static
  14809. */
  14810. public static function cloneWithoutBindings($except)
  14811. {
  14812. /** @var \Illuminate\Database\Query\Builder $instance */
  14813. return $instance->cloneWithoutBindings($except);
  14814. }
  14815. /**
  14816. * Register a custom macro.
  14817. *
  14818. * @param string $name
  14819. * @param object|callable $macro
  14820. * @return void
  14821. * @static
  14822. */
  14823. public static function macro($name, $macro)
  14824. {
  14825. \Illuminate\Database\Query\Builder::macro($name, $macro);
  14826. }
  14827. /**
  14828. * Mix another object into the class.
  14829. *
  14830. * @param object $mixin
  14831. * @return void
  14832. * @static
  14833. */
  14834. public static function mixin($mixin)
  14835. {
  14836. \Illuminate\Database\Query\Builder::mixin($mixin);
  14837. }
  14838. /**
  14839. * Checks if macro is registered.
  14840. *
  14841. * @param string $name
  14842. * @return bool
  14843. * @static
  14844. */
  14845. public static function hasMacro($name)
  14846. {
  14847. return \Illuminate\Database\Query\Builder::hasMacro($name);
  14848. }
  14849. /**
  14850. * Dynamically handle calls to the class.
  14851. *
  14852. * @param string $method
  14853. * @param array $parameters
  14854. * @return mixed
  14855. * @throws \BadMethodCallException
  14856. * @static
  14857. */
  14858. public static function macroCall($method, $parameters)
  14859. {
  14860. /** @var \Illuminate\Database\Query\Builder $instance */
  14861. return $instance->macroCall($method, $parameters);
  14862. }
  14863. }
  14864. class Event extends \Illuminate\Support\Facades\Event {}
  14865. class File extends \Illuminate\Support\Facades\File {}
  14866. class Gate extends \Illuminate\Support\Facades\Gate {}
  14867. class Hash extends \Illuminate\Support\Facades\Hash {}
  14868. class Lang extends \Illuminate\Support\Facades\Lang {}
  14869. class Log extends \Illuminate\Support\Facades\Log {}
  14870. class Mail extends \Illuminate\Support\Facades\Mail {}
  14871. class Notification extends \Illuminate\Support\Facades\Notification {}
  14872. class Password extends \Illuminate\Support\Facades\Password {}
  14873. class Queue extends \Illuminate\Support\Facades\Queue {}
  14874. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  14875. class Request extends \Illuminate\Support\Facades\Request {}
  14876. class Response extends \Illuminate\Support\Facades\Response {}
  14877. class Route extends \Illuminate\Support\Facades\Route {}
  14878. class Schema extends \Illuminate\Support\Facades\Schema {}
  14879. class Session extends \Illuminate\Support\Facades\Session {}
  14880. class Storage extends \Illuminate\Support\Facades\Storage {}
  14881. class URL extends \Illuminate\Support\Facades\URL {}
  14882. class Validator extends \Illuminate\Support\Facades\Validator {}
  14883. class View extends \Illuminate\Support\Facades\View {}
  14884. class Image extends \Intervention\Image\Facades\Image {}
  14885. }