_ide_helper.php 569 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646
  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.45 on 2019-03-19 10:53:05.
  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 = array(), $force = false)
  366. {
  367. /** @var \Illuminate\Foundation\Application $instance */
  368. return $instance->register($provider, $options, $force);
  369. }
  370. /**
  371. * Get the registered service provider instance if it exists.
  372. *
  373. * @param \Illuminate\Support\ServiceProvider|string $provider
  374. * @return \Illuminate\Support\ServiceProvider|null
  375. * @static
  376. */
  377. public static function getProvider($provider)
  378. {
  379. /** @var \Illuminate\Foundation\Application $instance */
  380. return $instance->getProvider($provider);
  381. }
  382. /**
  383. * Get the registered service provider instances if any exist.
  384. *
  385. * @param \Illuminate\Support\ServiceProvider|string $provider
  386. * @return array
  387. * @static
  388. */
  389. public static function getProviders($provider)
  390. {
  391. /** @var \Illuminate\Foundation\Application $instance */
  392. return $instance->getProviders($provider);
  393. }
  394. /**
  395. * Resolve a service provider instance from the class name.
  396. *
  397. * @param string $provider
  398. * @return \Illuminate\Support\ServiceProvider
  399. * @static
  400. */
  401. public static function resolveProvider($provider)
  402. {
  403. /** @var \Illuminate\Foundation\Application $instance */
  404. return $instance->resolveProvider($provider);
  405. }
  406. /**
  407. * Load and boot all of the remaining deferred providers.
  408. *
  409. * @return void
  410. * @static
  411. */
  412. public static function loadDeferredProviders()
  413. {
  414. /** @var \Illuminate\Foundation\Application $instance */
  415. $instance->loadDeferredProviders();
  416. }
  417. /**
  418. * Load the provider for a deferred service.
  419. *
  420. * @param string $service
  421. * @return void
  422. * @static
  423. */
  424. public static function loadDeferredProvider($service)
  425. {
  426. /** @var \Illuminate\Foundation\Application $instance */
  427. $instance->loadDeferredProvider($service);
  428. }
  429. /**
  430. * Register a deferred provider and service.
  431. *
  432. * @param string $provider
  433. * @param string|null $service
  434. * @return void
  435. * @static
  436. */
  437. public static function registerDeferredProvider($provider, $service = null)
  438. {
  439. /** @var \Illuminate\Foundation\Application $instance */
  440. $instance->registerDeferredProvider($provider, $service);
  441. }
  442. /**
  443. * Resolve the given type from the container.
  444. *
  445. * (Overriding Container::make)
  446. *
  447. * @param string $abstract
  448. * @param array $parameters
  449. * @return mixed
  450. * @static
  451. */
  452. public static function make($abstract, $parameters = array())
  453. {
  454. /** @var \Illuminate\Foundation\Application $instance */
  455. return $instance->make($abstract, $parameters);
  456. }
  457. /**
  458. * Determine if the given abstract type has been bound.
  459. *
  460. * (Overriding Container::bound)
  461. *
  462. * @param string $abstract
  463. * @return bool
  464. * @static
  465. */
  466. public static function bound($abstract)
  467. {
  468. /** @var \Illuminate\Foundation\Application $instance */
  469. return $instance->bound($abstract);
  470. }
  471. /**
  472. * Determine if the application has booted.
  473. *
  474. * @return bool
  475. * @static
  476. */
  477. public static function isBooted()
  478. {
  479. /** @var \Illuminate\Foundation\Application $instance */
  480. return $instance->isBooted();
  481. }
  482. /**
  483. * Boot the application's service providers.
  484. *
  485. * @return void
  486. * @static
  487. */
  488. public static function boot()
  489. {
  490. /** @var \Illuminate\Foundation\Application $instance */
  491. $instance->boot();
  492. }
  493. /**
  494. * Register a new boot listener.
  495. *
  496. * @param mixed $callback
  497. * @return void
  498. * @static
  499. */
  500. public static function booting($callback)
  501. {
  502. /** @var \Illuminate\Foundation\Application $instance */
  503. $instance->booting($callback);
  504. }
  505. /**
  506. * Register a new "booted" listener.
  507. *
  508. * @param mixed $callback
  509. * @return void
  510. * @static
  511. */
  512. public static function booted($callback)
  513. {
  514. /** @var \Illuminate\Foundation\Application $instance */
  515. $instance->booted($callback);
  516. }
  517. /**
  518. * {@inheritdoc}
  519. *
  520. * @static
  521. */
  522. public static function handle($request, $type = 1, $catch = true)
  523. {
  524. /** @var \Illuminate\Foundation\Application $instance */
  525. return $instance->handle($request, $type, $catch);
  526. }
  527. /**
  528. * Determine if middleware has been disabled for the application.
  529. *
  530. * @return bool
  531. * @static
  532. */
  533. public static function shouldSkipMiddleware()
  534. {
  535. /** @var \Illuminate\Foundation\Application $instance */
  536. return $instance->shouldSkipMiddleware();
  537. }
  538. /**
  539. * Get the path to the cached services.php file.
  540. *
  541. * @return string
  542. * @static
  543. */
  544. public static function getCachedServicesPath()
  545. {
  546. /** @var \Illuminate\Foundation\Application $instance */
  547. return $instance->getCachedServicesPath();
  548. }
  549. /**
  550. * Get the path to the cached packages.php file.
  551. *
  552. * @return string
  553. * @static
  554. */
  555. public static function getCachedPackagesPath()
  556. {
  557. /** @var \Illuminate\Foundation\Application $instance */
  558. return $instance->getCachedPackagesPath();
  559. }
  560. /**
  561. * Determine if the application configuration is cached.
  562. *
  563. * @return bool
  564. * @static
  565. */
  566. public static function configurationIsCached()
  567. {
  568. /** @var \Illuminate\Foundation\Application $instance */
  569. return $instance->configurationIsCached();
  570. }
  571. /**
  572. * Get the path to the configuration cache file.
  573. *
  574. * @return string
  575. * @static
  576. */
  577. public static function getCachedConfigPath()
  578. {
  579. /** @var \Illuminate\Foundation\Application $instance */
  580. return $instance->getCachedConfigPath();
  581. }
  582. /**
  583. * Determine if the application routes are cached.
  584. *
  585. * @return bool
  586. * @static
  587. */
  588. public static function routesAreCached()
  589. {
  590. /** @var \Illuminate\Foundation\Application $instance */
  591. return $instance->routesAreCached();
  592. }
  593. /**
  594. * Get the path to the routes cache file.
  595. *
  596. * @return string
  597. * @static
  598. */
  599. public static function getCachedRoutesPath()
  600. {
  601. /** @var \Illuminate\Foundation\Application $instance */
  602. return $instance->getCachedRoutesPath();
  603. }
  604. /**
  605. * Determine if the application is currently down for maintenance.
  606. *
  607. * @return bool
  608. * @static
  609. */
  610. public static function isDownForMaintenance()
  611. {
  612. /** @var \Illuminate\Foundation\Application $instance */
  613. return $instance->isDownForMaintenance();
  614. }
  615. /**
  616. * Throw an HttpException with the given data.
  617. *
  618. * @param int $code
  619. * @param string $message
  620. * @param array $headers
  621. * @return void
  622. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  623. * @static
  624. */
  625. public static function abort($code, $message = '', $headers = array())
  626. {
  627. /** @var \Illuminate\Foundation\Application $instance */
  628. $instance->abort($code, $message, $headers);
  629. }
  630. /**
  631. * Register a terminating callback with the application.
  632. *
  633. * @param \Closure $callback
  634. * @return \Illuminate\Foundation\Application
  635. * @static
  636. */
  637. public static function terminating($callback)
  638. {
  639. /** @var \Illuminate\Foundation\Application $instance */
  640. return $instance->terminating($callback);
  641. }
  642. /**
  643. * Terminate the application.
  644. *
  645. * @return void
  646. * @static
  647. */
  648. public static function terminate()
  649. {
  650. /** @var \Illuminate\Foundation\Application $instance */
  651. $instance->terminate();
  652. }
  653. /**
  654. * Get the service providers that have been loaded.
  655. *
  656. * @return array
  657. * @static
  658. */
  659. public static function getLoadedProviders()
  660. {
  661. /** @var \Illuminate\Foundation\Application $instance */
  662. return $instance->getLoadedProviders();
  663. }
  664. /**
  665. * Get the application's deferred services.
  666. *
  667. * @return array
  668. * @static
  669. */
  670. public static function getDeferredServices()
  671. {
  672. /** @var \Illuminate\Foundation\Application $instance */
  673. return $instance->getDeferredServices();
  674. }
  675. /**
  676. * Set the application's deferred services.
  677. *
  678. * @param array $services
  679. * @return void
  680. * @static
  681. */
  682. public static function setDeferredServices($services)
  683. {
  684. /** @var \Illuminate\Foundation\Application $instance */
  685. $instance->setDeferredServices($services);
  686. }
  687. /**
  688. * Add an array of services to the application's deferred services.
  689. *
  690. * @param array $services
  691. * @return void
  692. * @static
  693. */
  694. public static function addDeferredServices($services)
  695. {
  696. /** @var \Illuminate\Foundation\Application $instance */
  697. $instance->addDeferredServices($services);
  698. }
  699. /**
  700. * Determine if the given service is a deferred service.
  701. *
  702. * @param string $service
  703. * @return bool
  704. * @static
  705. */
  706. public static function isDeferredService($service)
  707. {
  708. /** @var \Illuminate\Foundation\Application $instance */
  709. return $instance->isDeferredService($service);
  710. }
  711. /**
  712. * Configure the real-time facade namespace.
  713. *
  714. * @param string $namespace
  715. * @return void
  716. * @static
  717. */
  718. public static function provideFacades($namespace)
  719. {
  720. /** @var \Illuminate\Foundation\Application $instance */
  721. $instance->provideFacades($namespace);
  722. }
  723. /**
  724. * 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 = array())
  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 = array(), $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 = array())
  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 = array(), $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 = array())
  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\Modes\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 = array())
  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\Modes\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 = array())
  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 \Symfony\Component\HttpFoundation\Response|null
  1721. * @static
  1722. */
  1723. public static function basic($field = 'email', $extraConditions = array())
  1724. {
  1725. /** @var \Illuminate\Auth\SessionGuard $instance */
  1726. return $instance->basic($field, $extraConditions);
  1727. }
  1728. /**
  1729. * Perform a stateless HTTP Basic login attempt.
  1730. *
  1731. * @param string $field
  1732. * @param array $extraConditions
  1733. * @return \Symfony\Component\HttpFoundation\Response|null
  1734. * @static
  1735. */
  1736. public static function onceBasic($field = 'email', $extraConditions = array())
  1737. {
  1738. /** @var \Illuminate\Auth\SessionGuard $instance */
  1739. return $instance->onceBasic($field, $extraConditions);
  1740. }
  1741. /**
  1742. * Attempt to authenticate a user using the given credentials.
  1743. *
  1744. * @param array $credentials
  1745. * @param bool $remember
  1746. * @return bool
  1747. * @static
  1748. */
  1749. public static function attempt($credentials = array(), $remember = false)
  1750. {
  1751. /** @var \Illuminate\Auth\SessionGuard $instance */
  1752. return $instance->attempt($credentials, $remember);
  1753. }
  1754. /**
  1755. * Log the given user ID into the application.
  1756. *
  1757. * @param mixed $id
  1758. * @param bool $remember
  1759. * @return \App\Modes\User|false
  1760. * @static
  1761. */
  1762. public static function loginUsingId($id, $remember = false)
  1763. {
  1764. /** @var \Illuminate\Auth\SessionGuard $instance */
  1765. return $instance->loginUsingId($id, $remember);
  1766. }
  1767. /**
  1768. * Log a user into the application.
  1769. *
  1770. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1771. * @param bool $remember
  1772. * @return void
  1773. * @static
  1774. */
  1775. public static function login($user, $remember = false)
  1776. {
  1777. /** @var \Illuminate\Auth\SessionGuard $instance */
  1778. $instance->login($user, $remember);
  1779. }
  1780. /**
  1781. * Log the user out of the application.
  1782. *
  1783. * @return void
  1784. * @static
  1785. */
  1786. public static function logout()
  1787. {
  1788. /** @var \Illuminate\Auth\SessionGuard $instance */
  1789. $instance->logout();
  1790. }
  1791. /**
  1792. * Register an authentication attempt event listener.
  1793. *
  1794. * @param mixed $callback
  1795. * @return void
  1796. * @static
  1797. */
  1798. public static function attempting($callback)
  1799. {
  1800. /** @var \Illuminate\Auth\SessionGuard $instance */
  1801. $instance->attempting($callback);
  1802. }
  1803. /**
  1804. * Get the last user we attempted to authenticate.
  1805. *
  1806. * @return \App\Modes\User
  1807. * @static
  1808. */
  1809. public static function getLastAttempted()
  1810. {
  1811. /** @var \Illuminate\Auth\SessionGuard $instance */
  1812. return $instance->getLastAttempted();
  1813. }
  1814. /**
  1815. * Get a unique identifier for the auth session value.
  1816. *
  1817. * @return string
  1818. * @static
  1819. */
  1820. public static function getName()
  1821. {
  1822. /** @var \Illuminate\Auth\SessionGuard $instance */
  1823. return $instance->getName();
  1824. }
  1825. /**
  1826. * Get the name of the cookie used to store the "recaller".
  1827. *
  1828. * @return string
  1829. * @static
  1830. */
  1831. public static function getRecallerName()
  1832. {
  1833. /** @var \Illuminate\Auth\SessionGuard $instance */
  1834. return $instance->getRecallerName();
  1835. }
  1836. /**
  1837. * Determine if the user was authenticated via "remember me" cookie.
  1838. *
  1839. * @return bool
  1840. * @static
  1841. */
  1842. public static function viaRemember()
  1843. {
  1844. /** @var \Illuminate\Auth\SessionGuard $instance */
  1845. return $instance->viaRemember();
  1846. }
  1847. /**
  1848. * Get the cookie creator instance used by the guard.
  1849. *
  1850. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1851. * @throws \RuntimeException
  1852. * @static
  1853. */
  1854. public static function getCookieJar()
  1855. {
  1856. /** @var \Illuminate\Auth\SessionGuard $instance */
  1857. return $instance->getCookieJar();
  1858. }
  1859. /**
  1860. * Set the cookie creator instance used by the guard.
  1861. *
  1862. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1863. * @return void
  1864. * @static
  1865. */
  1866. public static function setCookieJar($cookie)
  1867. {
  1868. /** @var \Illuminate\Auth\SessionGuard $instance */
  1869. $instance->setCookieJar($cookie);
  1870. }
  1871. /**
  1872. * Get the event dispatcher instance.
  1873. *
  1874. * @return \Illuminate\Contracts\Events\Dispatcher
  1875. * @static
  1876. */
  1877. public static function getDispatcher()
  1878. {
  1879. /** @var \Illuminate\Auth\SessionGuard $instance */
  1880. return $instance->getDispatcher();
  1881. }
  1882. /**
  1883. * Set the event dispatcher instance.
  1884. *
  1885. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1886. * @return void
  1887. * @static
  1888. */
  1889. public static function setDispatcher($events)
  1890. {
  1891. /** @var \Illuminate\Auth\SessionGuard $instance */
  1892. $instance->setDispatcher($events);
  1893. }
  1894. /**
  1895. * Get the session store used by the guard.
  1896. *
  1897. * @return \Illuminate\Contracts\Session\Session
  1898. * @static
  1899. */
  1900. public static function getSession()
  1901. {
  1902. /** @var \Illuminate\Auth\SessionGuard $instance */
  1903. return $instance->getSession();
  1904. }
  1905. /**
  1906. * Return the currently cached user.
  1907. *
  1908. * @return \App\Modes\User|null
  1909. * @static
  1910. */
  1911. public static function getUser()
  1912. {
  1913. /** @var \Illuminate\Auth\SessionGuard $instance */
  1914. return $instance->getUser();
  1915. }
  1916. /**
  1917. * Set the current user.
  1918. *
  1919. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1920. * @return \Illuminate\Auth\SessionGuard
  1921. * @static
  1922. */
  1923. public static function setUser($user)
  1924. {
  1925. /** @var \Illuminate\Auth\SessionGuard $instance */
  1926. return $instance->setUser($user);
  1927. }
  1928. /**
  1929. * Get the current request instance.
  1930. *
  1931. * @return \Symfony\Component\HttpFoundation\Request
  1932. * @static
  1933. */
  1934. public static function getRequest()
  1935. {
  1936. /** @var \Illuminate\Auth\SessionGuard $instance */
  1937. return $instance->getRequest();
  1938. }
  1939. /**
  1940. * Set the current request instance.
  1941. *
  1942. * @param \Symfony\Component\HttpFoundation\Request $request
  1943. * @return \Illuminate\Auth\SessionGuard
  1944. * @static
  1945. */
  1946. public static function setRequest($request)
  1947. {
  1948. /** @var \Illuminate\Auth\SessionGuard $instance */
  1949. return $instance->setRequest($request);
  1950. }
  1951. /**
  1952. * Determine if the current user is authenticated.
  1953. *
  1954. * @return \App\Modes\User
  1955. * @throws \Illuminate\Auth\AuthenticationException
  1956. * @static
  1957. */
  1958. public static function authenticate()
  1959. {
  1960. /** @var \Illuminate\Auth\SessionGuard $instance */
  1961. return $instance->authenticate();
  1962. }
  1963. /**
  1964. * Determine if the current user is authenticated.
  1965. *
  1966. * @return bool
  1967. * @static
  1968. */
  1969. public static function check()
  1970. {
  1971. /** @var \Illuminate\Auth\SessionGuard $instance */
  1972. return $instance->check();
  1973. }
  1974. /**
  1975. * Determine if the current user is a guest.
  1976. *
  1977. * @return bool
  1978. * @static
  1979. */
  1980. public static function guest()
  1981. {
  1982. /** @var \Illuminate\Auth\SessionGuard $instance */
  1983. return $instance->guest();
  1984. }
  1985. /**
  1986. * Get the user provider used by the guard.
  1987. *
  1988. * @return \Illuminate\Contracts\Auth\UserProvider
  1989. * @static
  1990. */
  1991. public static function getProvider()
  1992. {
  1993. /** @var \Illuminate\Auth\SessionGuard $instance */
  1994. return $instance->getProvider();
  1995. }
  1996. /**
  1997. * Set the user provider used by the guard.
  1998. *
  1999. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2000. * @return void
  2001. * @static
  2002. */
  2003. public static function setProvider($provider)
  2004. {
  2005. /** @var \Illuminate\Auth\SessionGuard $instance */
  2006. $instance->setProvider($provider);
  2007. }
  2008. /**
  2009. * Register a custom macro.
  2010. *
  2011. * @param string $name
  2012. * @param object|callable $macro
  2013. * @return void
  2014. * @static
  2015. */
  2016. public static function macro($name, $macro)
  2017. {
  2018. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2019. }
  2020. /**
  2021. * Mix another object into the class.
  2022. *
  2023. * @param object $mixin
  2024. * @return void
  2025. * @static
  2026. */
  2027. public static function mixin($mixin)
  2028. {
  2029. \Illuminate\Auth\SessionGuard::mixin($mixin);
  2030. }
  2031. /**
  2032. * Checks if macro is registered.
  2033. *
  2034. * @param string $name
  2035. * @return bool
  2036. * @static
  2037. */
  2038. public static function hasMacro($name)
  2039. {
  2040. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2041. }
  2042. }
  2043. /**
  2044. *
  2045. *
  2046. * @see \Illuminate\View\Compilers\BladeCompiler
  2047. */
  2048. class Blade {
  2049. /**
  2050. * Compile the view at the given path.
  2051. *
  2052. * @param string $path
  2053. * @return void
  2054. * @static
  2055. */
  2056. public static function compile($path = null)
  2057. {
  2058. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2059. $instance->compile($path);
  2060. }
  2061. /**
  2062. * Get the path currently being compiled.
  2063. *
  2064. * @return string
  2065. * @static
  2066. */
  2067. public static function getPath()
  2068. {
  2069. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2070. return $instance->getPath();
  2071. }
  2072. /**
  2073. * Set the path currently being compiled.
  2074. *
  2075. * @param string $path
  2076. * @return void
  2077. * @static
  2078. */
  2079. public static function setPath($path)
  2080. {
  2081. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2082. $instance->setPath($path);
  2083. }
  2084. /**
  2085. * Compile the given Blade template contents.
  2086. *
  2087. * @param string $value
  2088. * @return string
  2089. * @static
  2090. */
  2091. public static function compileString($value)
  2092. {
  2093. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2094. return $instance->compileString($value);
  2095. }
  2096. /**
  2097. * Strip the parentheses from the given expression.
  2098. *
  2099. * @param string $expression
  2100. * @return string
  2101. * @static
  2102. */
  2103. public static function stripParentheses($expression)
  2104. {
  2105. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2106. return $instance->stripParentheses($expression);
  2107. }
  2108. /**
  2109. * Register a custom Blade compiler.
  2110. *
  2111. * @param callable $compiler
  2112. * @return void
  2113. * @static
  2114. */
  2115. public static function extend($compiler)
  2116. {
  2117. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2118. $instance->extend($compiler);
  2119. }
  2120. /**
  2121. * Get the extensions used by the compiler.
  2122. *
  2123. * @return array
  2124. * @static
  2125. */
  2126. public static function getExtensions()
  2127. {
  2128. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2129. return $instance->getExtensions();
  2130. }
  2131. /**
  2132. * Register an "if" statement directive.
  2133. *
  2134. * @param string $name
  2135. * @param callable $callback
  2136. * @return void
  2137. * @static
  2138. */
  2139. public static function if($name, $callback)
  2140. {
  2141. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2142. $instance->if($name, $callback);
  2143. }
  2144. /**
  2145. * Check the result of a condition.
  2146. *
  2147. * @param string $name
  2148. * @param array $parameters
  2149. * @return bool
  2150. * @static
  2151. */
  2152. public static function check($name, $parameters = null)
  2153. {
  2154. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2155. return $instance->check($name, $parameters);
  2156. }
  2157. /**
  2158. * Register a handler for custom directives.
  2159. *
  2160. * @param string $name
  2161. * @param callable $handler
  2162. * @return void
  2163. * @static
  2164. */
  2165. public static function directive($name, $handler)
  2166. {
  2167. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2168. $instance->directive($name, $handler);
  2169. }
  2170. /**
  2171. * Get the list of custom directives.
  2172. *
  2173. * @return array
  2174. * @static
  2175. */
  2176. public static function getCustomDirectives()
  2177. {
  2178. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2179. return $instance->getCustomDirectives();
  2180. }
  2181. /**
  2182. * Set the echo format to be used by the compiler.
  2183. *
  2184. * @param string $format
  2185. * @return void
  2186. * @static
  2187. */
  2188. public static function setEchoFormat($format)
  2189. {
  2190. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2191. $instance->setEchoFormat($format);
  2192. }
  2193. /**
  2194. * Set the echo format to double encode entities.
  2195. *
  2196. * @return void
  2197. * @static
  2198. */
  2199. public static function doubleEncode()
  2200. {
  2201. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2202. $instance->doubleEncode();
  2203. }
  2204. /**
  2205. * Get the path to the compiled version of a view.
  2206. *
  2207. * @param string $path
  2208. * @return string
  2209. * @static
  2210. */
  2211. public static function getCompiledPath($path)
  2212. {
  2213. //Method inherited from \Illuminate\View\Compilers\Compiler
  2214. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2215. return $instance->getCompiledPath($path);
  2216. }
  2217. /**
  2218. * Determine if the view at the given path is expired.
  2219. *
  2220. * @param string $path
  2221. * @return bool
  2222. * @static
  2223. */
  2224. public static function isExpired($path)
  2225. {
  2226. //Method inherited from \Illuminate\View\Compilers\Compiler
  2227. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2228. return $instance->isExpired($path);
  2229. }
  2230. /**
  2231. * Compile the default values for the echo statement.
  2232. *
  2233. * @param string $value
  2234. * @return string
  2235. * @static
  2236. */
  2237. public static function compileEchoDefaults($value)
  2238. {
  2239. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2240. return $instance->compileEchoDefaults($value);
  2241. }
  2242. }
  2243. /**
  2244. *
  2245. *
  2246. * @see \Illuminate\Contracts\Broadcasting\Factory
  2247. */
  2248. class Broadcast {
  2249. /**
  2250. * Register the routes for handling broadcast authentication and sockets.
  2251. *
  2252. * @param array|null $attributes
  2253. * @return void
  2254. * @static
  2255. */
  2256. public static function routes($attributes = null)
  2257. {
  2258. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2259. $instance->routes($attributes);
  2260. }
  2261. /**
  2262. * Get the socket ID for the given request.
  2263. *
  2264. * @param \Illuminate\Http\Request|null $request
  2265. * @return string|null
  2266. * @static
  2267. */
  2268. public static function socket($request = null)
  2269. {
  2270. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2271. return $instance->socket($request);
  2272. }
  2273. /**
  2274. * Begin broadcasting an event.
  2275. *
  2276. * @param mixed|null $event
  2277. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  2278. * @static
  2279. */
  2280. public static function event($event = null)
  2281. {
  2282. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2283. return $instance->event($event);
  2284. }
  2285. /**
  2286. * Queue the given event for broadcast.
  2287. *
  2288. * @param mixed $event
  2289. * @return void
  2290. * @static
  2291. */
  2292. public static function queue($event)
  2293. {
  2294. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2295. $instance->queue($event);
  2296. }
  2297. /**
  2298. * Get a driver instance.
  2299. *
  2300. * @param string $driver
  2301. * @return mixed
  2302. * @static
  2303. */
  2304. public static function connection($driver = null)
  2305. {
  2306. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2307. return $instance->connection($driver);
  2308. }
  2309. /**
  2310. * Get a driver instance.
  2311. *
  2312. * @param string $name
  2313. * @return mixed
  2314. * @static
  2315. */
  2316. public static function driver($name = null)
  2317. {
  2318. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2319. return $instance->driver($name);
  2320. }
  2321. /**
  2322. * Get the default driver name.
  2323. *
  2324. * @return string
  2325. * @static
  2326. */
  2327. public static function getDefaultDriver()
  2328. {
  2329. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2330. return $instance->getDefaultDriver();
  2331. }
  2332. /**
  2333. * Set the default driver name.
  2334. *
  2335. * @param string $name
  2336. * @return void
  2337. * @static
  2338. */
  2339. public static function setDefaultDriver($name)
  2340. {
  2341. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2342. $instance->setDefaultDriver($name);
  2343. }
  2344. /**
  2345. * Register a custom driver creator Closure.
  2346. *
  2347. * @param string $driver
  2348. * @param \Closure $callback
  2349. * @return \Illuminate\Broadcasting\BroadcastManager
  2350. * @static
  2351. */
  2352. public static function extend($driver, $callback)
  2353. {
  2354. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2355. return $instance->extend($driver, $callback);
  2356. }
  2357. }
  2358. /**
  2359. *
  2360. *
  2361. * @see \Illuminate\Contracts\Bus\Dispatcher
  2362. */
  2363. class Bus {
  2364. /**
  2365. * Dispatch a command to its appropriate handler.
  2366. *
  2367. * @param mixed $command
  2368. * @return mixed
  2369. * @static
  2370. */
  2371. public static function dispatch($command)
  2372. {
  2373. /** @var \Illuminate\Bus\Dispatcher $instance */
  2374. return $instance->dispatch($command);
  2375. }
  2376. /**
  2377. * Dispatch a command to its appropriate handler in the current process.
  2378. *
  2379. * @param mixed $command
  2380. * @param mixed $handler
  2381. * @return mixed
  2382. * @static
  2383. */
  2384. public static function dispatchNow($command, $handler = null)
  2385. {
  2386. /** @var \Illuminate\Bus\Dispatcher $instance */
  2387. return $instance->dispatchNow($command, $handler);
  2388. }
  2389. /**
  2390. * Determine if the given command has a handler.
  2391. *
  2392. * @param mixed $command
  2393. * @return bool
  2394. * @static
  2395. */
  2396. public static function hasCommandHandler($command)
  2397. {
  2398. /** @var \Illuminate\Bus\Dispatcher $instance */
  2399. return $instance->hasCommandHandler($command);
  2400. }
  2401. /**
  2402. * Retrieve the handler for a command.
  2403. *
  2404. * @param mixed $command
  2405. * @return bool|mixed
  2406. * @static
  2407. */
  2408. public static function getCommandHandler($command)
  2409. {
  2410. /** @var \Illuminate\Bus\Dispatcher $instance */
  2411. return $instance->getCommandHandler($command);
  2412. }
  2413. /**
  2414. * Dispatch a command to its appropriate handler behind a queue.
  2415. *
  2416. * @param mixed $command
  2417. * @return mixed
  2418. * @throws \RuntimeException
  2419. * @static
  2420. */
  2421. public static function dispatchToQueue($command)
  2422. {
  2423. /** @var \Illuminate\Bus\Dispatcher $instance */
  2424. return $instance->dispatchToQueue($command);
  2425. }
  2426. /**
  2427. * Set the pipes through which commands should be piped before dispatching.
  2428. *
  2429. * @param array $pipes
  2430. * @return \Illuminate\Bus\Dispatcher
  2431. * @static
  2432. */
  2433. public static function pipeThrough($pipes)
  2434. {
  2435. /** @var \Illuminate\Bus\Dispatcher $instance */
  2436. return $instance->pipeThrough($pipes);
  2437. }
  2438. /**
  2439. * Map a command to a handler.
  2440. *
  2441. * @param array $map
  2442. * @return \Illuminate\Bus\Dispatcher
  2443. * @static
  2444. */
  2445. public static function map($map)
  2446. {
  2447. /** @var \Illuminate\Bus\Dispatcher $instance */
  2448. return $instance->map($map);
  2449. }
  2450. /**
  2451. * Assert if a job was dispatched based on a truth-test callback.
  2452. *
  2453. * @param string $command
  2454. * @param callable|int|null $callback
  2455. * @return void
  2456. * @static
  2457. */
  2458. public static function assertDispatched($command, $callback = null)
  2459. {
  2460. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2461. $instance->assertDispatched($command, $callback);
  2462. }
  2463. /**
  2464. * Determine if a job was dispatched based on a truth-test callback.
  2465. *
  2466. * @param string $command
  2467. * @param callable|null $callback
  2468. * @return void
  2469. * @static
  2470. */
  2471. public static function assertNotDispatched($command, $callback = null)
  2472. {
  2473. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2474. $instance->assertNotDispatched($command, $callback);
  2475. }
  2476. /**
  2477. * Get all of the jobs matching a truth-test callback.
  2478. *
  2479. * @param string $command
  2480. * @param callable|null $callback
  2481. * @return \Illuminate\Support\Collection
  2482. * @static
  2483. */
  2484. public static function dispatched($command, $callback = null)
  2485. {
  2486. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2487. return $instance->dispatched($command, $callback);
  2488. }
  2489. /**
  2490. * Determine if there are any stored commands for a given class.
  2491. *
  2492. * @param string $command
  2493. * @return bool
  2494. * @static
  2495. */
  2496. public static function hasDispatched($command)
  2497. {
  2498. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2499. return $instance->hasDispatched($command);
  2500. }
  2501. }
  2502. /**
  2503. *
  2504. *
  2505. * @see \Illuminate\Cache\CacheManager
  2506. * @see \Illuminate\Cache\Repository
  2507. */
  2508. class Cache {
  2509. /**
  2510. * Get a cache store instance by name.
  2511. *
  2512. * @param string|null $name
  2513. * @return \Illuminate\Contracts\Cache\Repository
  2514. * @static
  2515. */
  2516. public static function store($name = null)
  2517. {
  2518. /** @var \Illuminate\Cache\CacheManager $instance */
  2519. return $instance->store($name);
  2520. }
  2521. /**
  2522. * Get a cache driver instance.
  2523. *
  2524. * @param string $driver
  2525. * @return mixed
  2526. * @static
  2527. */
  2528. public static function driver($driver = null)
  2529. {
  2530. /** @var \Illuminate\Cache\CacheManager $instance */
  2531. return $instance->driver($driver);
  2532. }
  2533. /**
  2534. * Create a new cache repository with the given implementation.
  2535. *
  2536. * @param \Illuminate\Contracts\Cache\Store $store
  2537. * @return \Illuminate\Cache\Repository
  2538. * @static
  2539. */
  2540. public static function repository($store)
  2541. {
  2542. /** @var \Illuminate\Cache\CacheManager $instance */
  2543. return $instance->repository($store);
  2544. }
  2545. /**
  2546. * Get the default cache driver name.
  2547. *
  2548. * @return string
  2549. * @static
  2550. */
  2551. public static function getDefaultDriver()
  2552. {
  2553. /** @var \Illuminate\Cache\CacheManager $instance */
  2554. return $instance->getDefaultDriver();
  2555. }
  2556. /**
  2557. * Set the default cache driver name.
  2558. *
  2559. * @param string $name
  2560. * @return void
  2561. * @static
  2562. */
  2563. public static function setDefaultDriver($name)
  2564. {
  2565. /** @var \Illuminate\Cache\CacheManager $instance */
  2566. $instance->setDefaultDriver($name);
  2567. }
  2568. /**
  2569. * Register a custom driver creator Closure.
  2570. *
  2571. * @param string $driver
  2572. * @param \Closure $callback
  2573. * @return \Illuminate\Cache\CacheManager
  2574. * @static
  2575. */
  2576. public static function extend($driver, $callback)
  2577. {
  2578. /** @var \Illuminate\Cache\CacheManager $instance */
  2579. return $instance->extend($driver, $callback);
  2580. }
  2581. /**
  2582. * Determine if an item exists in the cache.
  2583. *
  2584. * @param string $key
  2585. * @return bool
  2586. * @static
  2587. */
  2588. public static function has($key)
  2589. {
  2590. /** @var \Illuminate\Cache\Repository $instance */
  2591. return $instance->has($key);
  2592. }
  2593. /**
  2594. * Retrieve an item from the cache by key.
  2595. *
  2596. * @param string $key
  2597. * @param mixed $default
  2598. * @return mixed
  2599. * @static
  2600. */
  2601. public static function get($key, $default = null)
  2602. {
  2603. /** @var \Illuminate\Cache\Repository $instance */
  2604. return $instance->get($key, $default);
  2605. }
  2606. /**
  2607. * Retrieve multiple items from the cache by key.
  2608. *
  2609. * Items not found in the cache will have a null value.
  2610. *
  2611. * @param array $keys
  2612. * @return array
  2613. * @static
  2614. */
  2615. public static function many($keys)
  2616. {
  2617. /** @var \Illuminate\Cache\Repository $instance */
  2618. return $instance->many($keys);
  2619. }
  2620. /**
  2621. * Obtains multiple cache items by their unique keys.
  2622. *
  2623. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  2624. * @param mixed $default Default value to return for keys that do not exist.
  2625. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  2626. * @throws \Psr\SimpleCache\InvalidArgumentException
  2627. * MUST be thrown if $keys is neither an array nor a Traversable,
  2628. * or if any of the $keys are not a legal value.
  2629. * @static
  2630. */
  2631. public static function getMultiple($keys, $default = null)
  2632. {
  2633. /** @var \Illuminate\Cache\Repository $instance */
  2634. return $instance->getMultiple($keys, $default);
  2635. }
  2636. /**
  2637. * Retrieve an item from the cache and delete it.
  2638. *
  2639. * @param string $key
  2640. * @param mixed $default
  2641. * @return mixed
  2642. * @static
  2643. */
  2644. public static function pull($key, $default = null)
  2645. {
  2646. /** @var \Illuminate\Cache\Repository $instance */
  2647. return $instance->pull($key, $default);
  2648. }
  2649. /**
  2650. * Store an item in the cache.
  2651. *
  2652. * @param string $key
  2653. * @param mixed $value
  2654. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2655. * @return void
  2656. * @static
  2657. */
  2658. public static function put($key, $value, $minutes = null)
  2659. {
  2660. /** @var \Illuminate\Cache\Repository $instance */
  2661. $instance->put($key, $value, $minutes);
  2662. }
  2663. /**
  2664. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  2665. *
  2666. * @param string $key The key of the item to store.
  2667. * @param mixed $value The value of the item to store, must be serializable.
  2668. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2669. * the driver supports TTL then the library may set a default value
  2670. * for it or let the driver take care of that.
  2671. * @return bool True on success and false on failure.
  2672. * @throws \Psr\SimpleCache\InvalidArgumentException
  2673. * MUST be thrown if the $key string is not a legal value.
  2674. * @static
  2675. */
  2676. public static function set($key, $value, $ttl = null)
  2677. {
  2678. /** @var \Illuminate\Cache\Repository $instance */
  2679. return $instance->set($key, $value, $ttl);
  2680. }
  2681. /**
  2682. * Store multiple items in the cache for a given number of minutes.
  2683. *
  2684. * @param array $values
  2685. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2686. * @return void
  2687. * @static
  2688. */
  2689. public static function putMany($values, $minutes)
  2690. {
  2691. /** @var \Illuminate\Cache\Repository $instance */
  2692. $instance->putMany($values, $minutes);
  2693. }
  2694. /**
  2695. * Persists a set of key => value pairs in the cache, with an optional TTL.
  2696. *
  2697. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  2698. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2699. * the driver supports TTL then the library may set a default value
  2700. * for it or let the driver take care of that.
  2701. * @return bool True on success and false on failure.
  2702. * @throws \Psr\SimpleCache\InvalidArgumentException
  2703. * MUST be thrown if $values is neither an array nor a Traversable,
  2704. * or if any of the $values are not a legal value.
  2705. * @static
  2706. */
  2707. public static function setMultiple($values, $ttl = null)
  2708. {
  2709. /** @var \Illuminate\Cache\Repository $instance */
  2710. return $instance->setMultiple($values, $ttl);
  2711. }
  2712. /**
  2713. * Store an item in the cache if the key does not exist.
  2714. *
  2715. * @param string $key
  2716. * @param mixed $value
  2717. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2718. * @return bool
  2719. * @static
  2720. */
  2721. public static function add($key, $value, $minutes)
  2722. {
  2723. /** @var \Illuminate\Cache\Repository $instance */
  2724. return $instance->add($key, $value, $minutes);
  2725. }
  2726. /**
  2727. * Increment the value of an item in the cache.
  2728. *
  2729. * @param string $key
  2730. * @param mixed $value
  2731. * @return int|bool
  2732. * @static
  2733. */
  2734. public static function increment($key, $value = 1)
  2735. {
  2736. /** @var \Illuminate\Cache\Repository $instance */
  2737. return $instance->increment($key, $value);
  2738. }
  2739. /**
  2740. * Decrement the value of an item in the cache.
  2741. *
  2742. * @param string $key
  2743. * @param mixed $value
  2744. * @return int|bool
  2745. * @static
  2746. */
  2747. public static function decrement($key, $value = 1)
  2748. {
  2749. /** @var \Illuminate\Cache\Repository $instance */
  2750. return $instance->decrement($key, $value);
  2751. }
  2752. /**
  2753. * Store an item in the cache indefinitely.
  2754. *
  2755. * @param string $key
  2756. * @param mixed $value
  2757. * @return void
  2758. * @static
  2759. */
  2760. public static function forever($key, $value)
  2761. {
  2762. /** @var \Illuminate\Cache\Repository $instance */
  2763. $instance->forever($key, $value);
  2764. }
  2765. /**
  2766. * Get an item from the cache, or store the default value.
  2767. *
  2768. * @param string $key
  2769. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2770. * @param \Closure $callback
  2771. * @return mixed
  2772. * @static
  2773. */
  2774. public static function remember($key, $minutes, $callback)
  2775. {
  2776. /** @var \Illuminate\Cache\Repository $instance */
  2777. return $instance->remember($key, $minutes, $callback);
  2778. }
  2779. /**
  2780. * Get an item from the cache, or store the default value forever.
  2781. *
  2782. * @param string $key
  2783. * @param \Closure $callback
  2784. * @return mixed
  2785. * @static
  2786. */
  2787. public static function sear($key, $callback)
  2788. {
  2789. /** @var \Illuminate\Cache\Repository $instance */
  2790. return $instance->sear($key, $callback);
  2791. }
  2792. /**
  2793. * Get an item from the cache, or store the default value forever.
  2794. *
  2795. * @param string $key
  2796. * @param \Closure $callback
  2797. * @return mixed
  2798. * @static
  2799. */
  2800. public static function rememberForever($key, $callback)
  2801. {
  2802. /** @var \Illuminate\Cache\Repository $instance */
  2803. return $instance->rememberForever($key, $callback);
  2804. }
  2805. /**
  2806. * Remove an item from the cache.
  2807. *
  2808. * @param string $key
  2809. * @return bool
  2810. * @static
  2811. */
  2812. public static function forget($key)
  2813. {
  2814. /** @var \Illuminate\Cache\Repository $instance */
  2815. return $instance->forget($key);
  2816. }
  2817. /**
  2818. * Delete an item from the cache by its unique key.
  2819. *
  2820. * @param string $key The unique cache key of the item to delete.
  2821. * @return bool True if the item was successfully removed. False if there was an error.
  2822. * @throws \Psr\SimpleCache\InvalidArgumentException
  2823. * MUST be thrown if the $key string is not a legal value.
  2824. * @static
  2825. */
  2826. public static function delete($key)
  2827. {
  2828. /** @var \Illuminate\Cache\Repository $instance */
  2829. return $instance->delete($key);
  2830. }
  2831. /**
  2832. * Deletes multiple cache items in a single operation.
  2833. *
  2834. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  2835. * @return bool True if the items were successfully removed. False if there was an error.
  2836. * @throws \Psr\SimpleCache\InvalidArgumentException
  2837. * MUST be thrown if $keys is neither an array nor a Traversable,
  2838. * or if any of the $keys are not a legal value.
  2839. * @static
  2840. */
  2841. public static function deleteMultiple($keys)
  2842. {
  2843. /** @var \Illuminate\Cache\Repository $instance */
  2844. return $instance->deleteMultiple($keys);
  2845. }
  2846. /**
  2847. * Wipes clean the entire cache's keys.
  2848. *
  2849. * @return bool True on success and false on failure.
  2850. * @static
  2851. */
  2852. public static function clear()
  2853. {
  2854. /** @var \Illuminate\Cache\Repository $instance */
  2855. return $instance->clear();
  2856. }
  2857. /**
  2858. * Begin executing a new tags operation if the store supports it.
  2859. *
  2860. * @param array|mixed $names
  2861. * @return \Illuminate\Cache\TaggedCache
  2862. * @throws \BadMethodCallException
  2863. * @static
  2864. */
  2865. public static function tags($names)
  2866. {
  2867. /** @var \Illuminate\Cache\Repository $instance */
  2868. return $instance->tags($names);
  2869. }
  2870. /**
  2871. * Get the default cache time.
  2872. *
  2873. * @return float|int
  2874. * @static
  2875. */
  2876. public static function getDefaultCacheTime()
  2877. {
  2878. /** @var \Illuminate\Cache\Repository $instance */
  2879. return $instance->getDefaultCacheTime();
  2880. }
  2881. /**
  2882. * Set the default cache time in minutes.
  2883. *
  2884. * @param float|int $minutes
  2885. * @return \Illuminate\Cache\Repository
  2886. * @static
  2887. */
  2888. public static function setDefaultCacheTime($minutes)
  2889. {
  2890. /** @var \Illuminate\Cache\Repository $instance */
  2891. return $instance->setDefaultCacheTime($minutes);
  2892. }
  2893. /**
  2894. * Get the cache store implementation.
  2895. *
  2896. * @return \Illuminate\Contracts\Cache\Store
  2897. * @static
  2898. */
  2899. public static function getStore()
  2900. {
  2901. /** @var \Illuminate\Cache\Repository $instance */
  2902. return $instance->getStore();
  2903. }
  2904. /**
  2905. * Set the event dispatcher instance.
  2906. *
  2907. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2908. * @return void
  2909. * @static
  2910. */
  2911. public static function setEventDispatcher($events)
  2912. {
  2913. /** @var \Illuminate\Cache\Repository $instance */
  2914. $instance->setEventDispatcher($events);
  2915. }
  2916. /**
  2917. * Determine if a cached value exists.
  2918. *
  2919. * @param string $key
  2920. * @return bool
  2921. * @static
  2922. */
  2923. public static function offsetExists($key)
  2924. {
  2925. /** @var \Illuminate\Cache\Repository $instance */
  2926. return $instance->offsetExists($key);
  2927. }
  2928. /**
  2929. * Retrieve an item from the cache by key.
  2930. *
  2931. * @param string $key
  2932. * @return mixed
  2933. * @static
  2934. */
  2935. public static function offsetGet($key)
  2936. {
  2937. /** @var \Illuminate\Cache\Repository $instance */
  2938. return $instance->offsetGet($key);
  2939. }
  2940. /**
  2941. * Store an item in the cache for the default time.
  2942. *
  2943. * @param string $key
  2944. * @param mixed $value
  2945. * @return void
  2946. * @static
  2947. */
  2948. public static function offsetSet($key, $value)
  2949. {
  2950. /** @var \Illuminate\Cache\Repository $instance */
  2951. $instance->offsetSet($key, $value);
  2952. }
  2953. /**
  2954. * Remove an item from the cache.
  2955. *
  2956. * @param string $key
  2957. * @return void
  2958. * @static
  2959. */
  2960. public static function offsetUnset($key)
  2961. {
  2962. /** @var \Illuminate\Cache\Repository $instance */
  2963. $instance->offsetUnset($key);
  2964. }
  2965. /**
  2966. * Register a custom macro.
  2967. *
  2968. * @param string $name
  2969. * @param object|callable $macro
  2970. * @return void
  2971. * @static
  2972. */
  2973. public static function macro($name, $macro)
  2974. {
  2975. \Illuminate\Cache\Repository::macro($name, $macro);
  2976. }
  2977. /**
  2978. * Mix another object into the class.
  2979. *
  2980. * @param object $mixin
  2981. * @return void
  2982. * @static
  2983. */
  2984. public static function mixin($mixin)
  2985. {
  2986. \Illuminate\Cache\Repository::mixin($mixin);
  2987. }
  2988. /**
  2989. * Checks if macro is registered.
  2990. *
  2991. * @param string $name
  2992. * @return bool
  2993. * @static
  2994. */
  2995. public static function hasMacro($name)
  2996. {
  2997. return \Illuminate\Cache\Repository::hasMacro($name);
  2998. }
  2999. /**
  3000. * Dynamically handle calls to the class.
  3001. *
  3002. * @param string $method
  3003. * @param array $parameters
  3004. * @return mixed
  3005. * @throws \BadMethodCallException
  3006. * @static
  3007. */
  3008. public static function macroCall($method, $parameters)
  3009. {
  3010. /** @var \Illuminate\Cache\Repository $instance */
  3011. return $instance->macroCall($method, $parameters);
  3012. }
  3013. /**
  3014. * Remove all items from the cache.
  3015. *
  3016. * @return bool
  3017. * @static
  3018. */
  3019. public static function flush()
  3020. {
  3021. /** @var \Illuminate\Cache\FileStore $instance */
  3022. return $instance->flush();
  3023. }
  3024. /**
  3025. * Get the Filesystem instance.
  3026. *
  3027. * @return \Illuminate\Filesystem\Filesystem
  3028. * @static
  3029. */
  3030. public static function getFilesystem()
  3031. {
  3032. /** @var \Illuminate\Cache\FileStore $instance */
  3033. return $instance->getFilesystem();
  3034. }
  3035. /**
  3036. * Get the working directory of the cache.
  3037. *
  3038. * @return string
  3039. * @static
  3040. */
  3041. public static function getDirectory()
  3042. {
  3043. /** @var \Illuminate\Cache\FileStore $instance */
  3044. return $instance->getDirectory();
  3045. }
  3046. /**
  3047. * Get the cache key prefix.
  3048. *
  3049. * @return string
  3050. * @static
  3051. */
  3052. public static function getPrefix()
  3053. {
  3054. /** @var \Illuminate\Cache\FileStore $instance */
  3055. return $instance->getPrefix();
  3056. }
  3057. }
  3058. /**
  3059. *
  3060. *
  3061. * @see \Illuminate\Config\Repository
  3062. */
  3063. class Config {
  3064. /**
  3065. * Determine if the given configuration value exists.
  3066. *
  3067. * @param string $key
  3068. * @return bool
  3069. * @static
  3070. */
  3071. public static function has($key)
  3072. {
  3073. /** @var \Illuminate\Config\Repository $instance */
  3074. return $instance->has($key);
  3075. }
  3076. /**
  3077. * Get the specified configuration value.
  3078. *
  3079. * @param array|string $key
  3080. * @param mixed $default
  3081. * @return mixed
  3082. * @static
  3083. */
  3084. public static function get($key, $default = null)
  3085. {
  3086. /** @var \Illuminate\Config\Repository $instance */
  3087. return $instance->get($key, $default);
  3088. }
  3089. /**
  3090. * Get many configuration values.
  3091. *
  3092. * @param array $keys
  3093. * @return array
  3094. * @static
  3095. */
  3096. public static function getMany($keys)
  3097. {
  3098. /** @var \Illuminate\Config\Repository $instance */
  3099. return $instance->getMany($keys);
  3100. }
  3101. /**
  3102. * Set a given configuration value.
  3103. *
  3104. * @param array|string $key
  3105. * @param mixed $value
  3106. * @return void
  3107. * @static
  3108. */
  3109. public static function set($key, $value = null)
  3110. {
  3111. /** @var \Illuminate\Config\Repository $instance */
  3112. $instance->set($key, $value);
  3113. }
  3114. /**
  3115. * Prepend a value onto an array configuration value.
  3116. *
  3117. * @param string $key
  3118. * @param mixed $value
  3119. * @return void
  3120. * @static
  3121. */
  3122. public static function prepend($key, $value)
  3123. {
  3124. /** @var \Illuminate\Config\Repository $instance */
  3125. $instance->prepend($key, $value);
  3126. }
  3127. /**
  3128. * Push a value onto an array configuration value.
  3129. *
  3130. * @param string $key
  3131. * @param mixed $value
  3132. * @return void
  3133. * @static
  3134. */
  3135. public static function push($key, $value)
  3136. {
  3137. /** @var \Illuminate\Config\Repository $instance */
  3138. $instance->push($key, $value);
  3139. }
  3140. /**
  3141. * Get all of the configuration items for the application.
  3142. *
  3143. * @return array
  3144. * @static
  3145. */
  3146. public static function all()
  3147. {
  3148. /** @var \Illuminate\Config\Repository $instance */
  3149. return $instance->all();
  3150. }
  3151. /**
  3152. * Determine if the given configuration option exists.
  3153. *
  3154. * @param string $key
  3155. * @return bool
  3156. * @static
  3157. */
  3158. public static function offsetExists($key)
  3159. {
  3160. /** @var \Illuminate\Config\Repository $instance */
  3161. return $instance->offsetExists($key);
  3162. }
  3163. /**
  3164. * Get a configuration option.
  3165. *
  3166. * @param string $key
  3167. * @return mixed
  3168. * @static
  3169. */
  3170. public static function offsetGet($key)
  3171. {
  3172. /** @var \Illuminate\Config\Repository $instance */
  3173. return $instance->offsetGet($key);
  3174. }
  3175. /**
  3176. * Set a configuration option.
  3177. *
  3178. * @param string $key
  3179. * @param mixed $value
  3180. * @return void
  3181. * @static
  3182. */
  3183. public static function offsetSet($key, $value)
  3184. {
  3185. /** @var \Illuminate\Config\Repository $instance */
  3186. $instance->offsetSet($key, $value);
  3187. }
  3188. /**
  3189. * Unset a configuration option.
  3190. *
  3191. * @param string $key
  3192. * @return void
  3193. * @static
  3194. */
  3195. public static function offsetUnset($key)
  3196. {
  3197. /** @var \Illuminate\Config\Repository $instance */
  3198. $instance->offsetUnset($key);
  3199. }
  3200. }
  3201. /**
  3202. *
  3203. *
  3204. * @see \Illuminate\Cookie\CookieJar
  3205. */
  3206. class Cookie {
  3207. /**
  3208. * Create a new cookie instance.
  3209. *
  3210. * @param string $name
  3211. * @param string $value
  3212. * @param int $minutes
  3213. * @param string $path
  3214. * @param string $domain
  3215. * @param bool $secure
  3216. * @param bool $httpOnly
  3217. * @param bool $raw
  3218. * @param string|null $sameSite
  3219. * @return \Symfony\Component\HttpFoundation\Cookie
  3220. * @static
  3221. */
  3222. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null)
  3223. {
  3224. /** @var \Illuminate\Cookie\CookieJar $instance */
  3225. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3226. }
  3227. /**
  3228. * Create a cookie that lasts "forever" (five years).
  3229. *
  3230. * @param string $name
  3231. * @param string $value
  3232. * @param string $path
  3233. * @param string $domain
  3234. * @param bool $secure
  3235. * @param bool $httpOnly
  3236. * @param bool $raw
  3237. * @param string|null $sameSite
  3238. * @return \Symfony\Component\HttpFoundation\Cookie
  3239. * @static
  3240. */
  3241. public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null)
  3242. {
  3243. /** @var \Illuminate\Cookie\CookieJar $instance */
  3244. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3245. }
  3246. /**
  3247. * Expire the given cookie.
  3248. *
  3249. * @param string $name
  3250. * @param string $path
  3251. * @param string $domain
  3252. * @return \Symfony\Component\HttpFoundation\Cookie
  3253. * @static
  3254. */
  3255. public static function forget($name, $path = null, $domain = null)
  3256. {
  3257. /** @var \Illuminate\Cookie\CookieJar $instance */
  3258. return $instance->forget($name, $path, $domain);
  3259. }
  3260. /**
  3261. * Determine if a cookie has been queued.
  3262. *
  3263. * @param string $key
  3264. * @return bool
  3265. * @static
  3266. */
  3267. public static function hasQueued($key)
  3268. {
  3269. /** @var \Illuminate\Cookie\CookieJar $instance */
  3270. return $instance->hasQueued($key);
  3271. }
  3272. /**
  3273. * Get a queued cookie instance.
  3274. *
  3275. * @param string $key
  3276. * @param mixed $default
  3277. * @return \Symfony\Component\HttpFoundation\Cookie
  3278. * @static
  3279. */
  3280. public static function queued($key, $default = null)
  3281. {
  3282. /** @var \Illuminate\Cookie\CookieJar $instance */
  3283. return $instance->queued($key, $default);
  3284. }
  3285. /**
  3286. * Queue a cookie to send with the next response.
  3287. *
  3288. * @param array $parameters
  3289. * @return void
  3290. * @static
  3291. */
  3292. public static function queue($parameters = null)
  3293. {
  3294. /** @var \Illuminate\Cookie\CookieJar $instance */
  3295. $instance->queue($parameters);
  3296. }
  3297. /**
  3298. * Remove a cookie from the queue.
  3299. *
  3300. * @param string $name
  3301. * @return void
  3302. * @static
  3303. */
  3304. public static function unqueue($name)
  3305. {
  3306. /** @var \Illuminate\Cookie\CookieJar $instance */
  3307. $instance->unqueue($name);
  3308. }
  3309. /**
  3310. * Set the default path and domain for the jar.
  3311. *
  3312. * @param string $path
  3313. * @param string $domain
  3314. * @param bool $secure
  3315. * @param string $sameSite
  3316. * @return \Illuminate\Cookie\CookieJar
  3317. * @static
  3318. */
  3319. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3320. {
  3321. /** @var \Illuminate\Cookie\CookieJar $instance */
  3322. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3323. }
  3324. /**
  3325. * Get the cookies which have been queued for the next request.
  3326. *
  3327. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3328. * @static
  3329. */
  3330. public static function getQueuedCookies()
  3331. {
  3332. /** @var \Illuminate\Cookie\CookieJar $instance */
  3333. return $instance->getQueuedCookies();
  3334. }
  3335. }
  3336. /**
  3337. *
  3338. *
  3339. * @see \Illuminate\Encryption\Encrypter
  3340. */
  3341. class Crypt {
  3342. /**
  3343. * Determine if the given key and cipher combination is valid.
  3344. *
  3345. * @param string $key
  3346. * @param string $cipher
  3347. * @return bool
  3348. * @static
  3349. */
  3350. public static function supported($key, $cipher)
  3351. {
  3352. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3353. }
  3354. /**
  3355. * Create a new encryption key for the given cipher.
  3356. *
  3357. * @param string $cipher
  3358. * @return string
  3359. * @static
  3360. */
  3361. public static function generateKey($cipher)
  3362. {
  3363. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3364. }
  3365. /**
  3366. * Encrypt the given value.
  3367. *
  3368. * @param mixed $value
  3369. * @param bool $serialize
  3370. * @return string
  3371. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3372. * @static
  3373. */
  3374. public static function encrypt($value, $serialize = true)
  3375. {
  3376. /** @var \Illuminate\Encryption\Encrypter $instance */
  3377. return $instance->encrypt($value, $serialize);
  3378. }
  3379. /**
  3380. * Encrypt a string without serialization.
  3381. *
  3382. * @param string $value
  3383. * @return string
  3384. * @static
  3385. */
  3386. public static function encryptString($value)
  3387. {
  3388. /** @var \Illuminate\Encryption\Encrypter $instance */
  3389. return $instance->encryptString($value);
  3390. }
  3391. /**
  3392. * Decrypt the given value.
  3393. *
  3394. * @param mixed $payload
  3395. * @param bool $unserialize
  3396. * @return string
  3397. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3398. * @static
  3399. */
  3400. public static function decrypt($payload, $unserialize = true)
  3401. {
  3402. /** @var \Illuminate\Encryption\Encrypter $instance */
  3403. return $instance->decrypt($payload, $unserialize);
  3404. }
  3405. /**
  3406. * Decrypt the given string without unserialization.
  3407. *
  3408. * @param string $payload
  3409. * @return string
  3410. * @static
  3411. */
  3412. public static function decryptString($payload)
  3413. {
  3414. /** @var \Illuminate\Encryption\Encrypter $instance */
  3415. return $instance->decryptString($payload);
  3416. }
  3417. /**
  3418. * Get the encryption key.
  3419. *
  3420. * @return string
  3421. * @static
  3422. */
  3423. public static function getKey()
  3424. {
  3425. /** @var \Illuminate\Encryption\Encrypter $instance */
  3426. return $instance->getKey();
  3427. }
  3428. }
  3429. /**
  3430. *
  3431. *
  3432. * @see \Illuminate\Database\DatabaseManager
  3433. * @see \Illuminate\Database\Connection
  3434. */
  3435. class DB {
  3436. /**
  3437. * Get a database connection instance.
  3438. *
  3439. * @param string $name
  3440. * @return \Illuminate\Database\Connection
  3441. * @static
  3442. */
  3443. public static function connection($name = null)
  3444. {
  3445. /** @var \Illuminate\Database\DatabaseManager $instance */
  3446. return $instance->connection($name);
  3447. }
  3448. /**
  3449. * Disconnect from the given database and remove from local cache.
  3450. *
  3451. * @param string $name
  3452. * @return void
  3453. * @static
  3454. */
  3455. public static function purge($name = null)
  3456. {
  3457. /** @var \Illuminate\Database\DatabaseManager $instance */
  3458. $instance->purge($name);
  3459. }
  3460. /**
  3461. * Disconnect from the given database.
  3462. *
  3463. * @param string $name
  3464. * @return void
  3465. * @static
  3466. */
  3467. public static function disconnect($name = null)
  3468. {
  3469. /** @var \Illuminate\Database\DatabaseManager $instance */
  3470. $instance->disconnect($name);
  3471. }
  3472. /**
  3473. * Reconnect to the given database.
  3474. *
  3475. * @param string $name
  3476. * @return \Illuminate\Database\Connection
  3477. * @static
  3478. */
  3479. public static function reconnect($name = null)
  3480. {
  3481. /** @var \Illuminate\Database\DatabaseManager $instance */
  3482. return $instance->reconnect($name);
  3483. }
  3484. /**
  3485. * Get the default connection name.
  3486. *
  3487. * @return string
  3488. * @static
  3489. */
  3490. public static function getDefaultConnection()
  3491. {
  3492. /** @var \Illuminate\Database\DatabaseManager $instance */
  3493. return $instance->getDefaultConnection();
  3494. }
  3495. /**
  3496. * Set the default connection name.
  3497. *
  3498. * @param string $name
  3499. * @return void
  3500. * @static
  3501. */
  3502. public static function setDefaultConnection($name)
  3503. {
  3504. /** @var \Illuminate\Database\DatabaseManager $instance */
  3505. $instance->setDefaultConnection($name);
  3506. }
  3507. /**
  3508. * Get all of the support drivers.
  3509. *
  3510. * @return array
  3511. * @static
  3512. */
  3513. public static function supportedDrivers()
  3514. {
  3515. /** @var \Illuminate\Database\DatabaseManager $instance */
  3516. return $instance->supportedDrivers();
  3517. }
  3518. /**
  3519. * Get all of the drivers that are actually available.
  3520. *
  3521. * @return array
  3522. * @static
  3523. */
  3524. public static function availableDrivers()
  3525. {
  3526. /** @var \Illuminate\Database\DatabaseManager $instance */
  3527. return $instance->availableDrivers();
  3528. }
  3529. /**
  3530. * Register an extension connection resolver.
  3531. *
  3532. * @param string $name
  3533. * @param callable $resolver
  3534. * @return void
  3535. * @static
  3536. */
  3537. public static function extend($name, $resolver)
  3538. {
  3539. /** @var \Illuminate\Database\DatabaseManager $instance */
  3540. $instance->extend($name, $resolver);
  3541. }
  3542. /**
  3543. * Return all of the created connections.
  3544. *
  3545. * @return array
  3546. * @static
  3547. */
  3548. public static function getConnections()
  3549. {
  3550. /** @var \Illuminate\Database\DatabaseManager $instance */
  3551. return $instance->getConnections();
  3552. }
  3553. /**
  3554. * Get a schema builder instance for the connection.
  3555. *
  3556. * @return \Illuminate\Database\Schema\MySqlBuilder
  3557. * @static
  3558. */
  3559. public static function getSchemaBuilder()
  3560. {
  3561. /** @var \Illuminate\Database\MySqlConnection $instance */
  3562. return $instance->getSchemaBuilder();
  3563. }
  3564. /**
  3565. * Bind values to their parameters in the given statement.
  3566. *
  3567. * @param \PDOStatement $statement
  3568. * @param array $bindings
  3569. * @return void
  3570. * @static
  3571. */
  3572. public static function bindValues($statement, $bindings)
  3573. {
  3574. /** @var \Illuminate\Database\MySqlConnection $instance */
  3575. $instance->bindValues($statement, $bindings);
  3576. }
  3577. /**
  3578. * Set the query grammar to the default implementation.
  3579. *
  3580. * @return void
  3581. * @static
  3582. */
  3583. public static function useDefaultQueryGrammar()
  3584. {
  3585. //Method inherited from \Illuminate\Database\Connection
  3586. /** @var \Illuminate\Database\MySqlConnection $instance */
  3587. $instance->useDefaultQueryGrammar();
  3588. }
  3589. /**
  3590. * Set the schema grammar to the default implementation.
  3591. *
  3592. * @return void
  3593. * @static
  3594. */
  3595. public static function useDefaultSchemaGrammar()
  3596. {
  3597. //Method inherited from \Illuminate\Database\Connection
  3598. /** @var \Illuminate\Database\MySqlConnection $instance */
  3599. $instance->useDefaultSchemaGrammar();
  3600. }
  3601. /**
  3602. * Set the query post processor to the default implementation.
  3603. *
  3604. * @return void
  3605. * @static
  3606. */
  3607. public static function useDefaultPostProcessor()
  3608. {
  3609. //Method inherited from \Illuminate\Database\Connection
  3610. /** @var \Illuminate\Database\MySqlConnection $instance */
  3611. $instance->useDefaultPostProcessor();
  3612. }
  3613. /**
  3614. * Begin a fluent query against a database table.
  3615. *
  3616. * @param string $table
  3617. * @return \Illuminate\Database\Query\Builder
  3618. * @static
  3619. */
  3620. public static function table($table)
  3621. {
  3622. //Method inherited from \Illuminate\Database\Connection
  3623. /** @var \Illuminate\Database\MySqlConnection $instance */
  3624. return $instance->table($table);
  3625. }
  3626. /**
  3627. * Get a new query builder instance.
  3628. *
  3629. * @return \Illuminate\Database\Query\Builder
  3630. * @static
  3631. */
  3632. public static function query()
  3633. {
  3634. //Method inherited from \Illuminate\Database\Connection
  3635. /** @var \Illuminate\Database\MySqlConnection $instance */
  3636. return $instance->query();
  3637. }
  3638. /**
  3639. * Run a select statement and return a single result.
  3640. *
  3641. * @param string $query
  3642. * @param array $bindings
  3643. * @param bool $useReadPdo
  3644. * @return mixed
  3645. * @static
  3646. */
  3647. public static function selectOne($query, $bindings = array(), $useReadPdo = true)
  3648. {
  3649. //Method inherited from \Illuminate\Database\Connection
  3650. /** @var \Illuminate\Database\MySqlConnection $instance */
  3651. return $instance->selectOne($query, $bindings, $useReadPdo);
  3652. }
  3653. /**
  3654. * Run a select statement against the database.
  3655. *
  3656. * @param string $query
  3657. * @param array $bindings
  3658. * @return array
  3659. * @static
  3660. */
  3661. public static function selectFromWriteConnection($query, $bindings = array())
  3662. {
  3663. //Method inherited from \Illuminate\Database\Connection
  3664. /** @var \Illuminate\Database\MySqlConnection $instance */
  3665. return $instance->selectFromWriteConnection($query, $bindings);
  3666. }
  3667. /**
  3668. * Run a select statement against the database.
  3669. *
  3670. * @param string $query
  3671. * @param array $bindings
  3672. * @param bool $useReadPdo
  3673. * @return array
  3674. * @static
  3675. */
  3676. public static function select($query, $bindings = array(), $useReadPdo = true)
  3677. {
  3678. //Method inherited from \Illuminate\Database\Connection
  3679. /** @var \Illuminate\Database\MySqlConnection $instance */
  3680. return $instance->select($query, $bindings, $useReadPdo);
  3681. }
  3682. /**
  3683. * Run a select statement against the database and returns a generator.
  3684. *
  3685. * @param string $query
  3686. * @param array $bindings
  3687. * @param bool $useReadPdo
  3688. * @return \Generator
  3689. * @static
  3690. */
  3691. public static function cursor($query, $bindings = array(), $useReadPdo = true)
  3692. {
  3693. //Method inherited from \Illuminate\Database\Connection
  3694. /** @var \Illuminate\Database\MySqlConnection $instance */
  3695. return $instance->cursor($query, $bindings, $useReadPdo);
  3696. }
  3697. /**
  3698. * Run an insert statement against the database.
  3699. *
  3700. * @param string $query
  3701. * @param array $bindings
  3702. * @return bool
  3703. * @static
  3704. */
  3705. public static function insert($query, $bindings = array())
  3706. {
  3707. //Method inherited from \Illuminate\Database\Connection
  3708. /** @var \Illuminate\Database\MySqlConnection $instance */
  3709. return $instance->insert($query, $bindings);
  3710. }
  3711. /**
  3712. * Run an update statement against the database.
  3713. *
  3714. * @param string $query
  3715. * @param array $bindings
  3716. * @return int
  3717. * @static
  3718. */
  3719. public static function update($query, $bindings = array())
  3720. {
  3721. //Method inherited from \Illuminate\Database\Connection
  3722. /** @var \Illuminate\Database\MySqlConnection $instance */
  3723. return $instance->update($query, $bindings);
  3724. }
  3725. /**
  3726. * Run a delete statement against the database.
  3727. *
  3728. * @param string $query
  3729. * @param array $bindings
  3730. * @return int
  3731. * @static
  3732. */
  3733. public static function delete($query, $bindings = array())
  3734. {
  3735. //Method inherited from \Illuminate\Database\Connection
  3736. /** @var \Illuminate\Database\MySqlConnection $instance */
  3737. return $instance->delete($query, $bindings);
  3738. }
  3739. /**
  3740. * Execute an SQL statement and return the boolean result.
  3741. *
  3742. * @param string $query
  3743. * @param array $bindings
  3744. * @return bool
  3745. * @static
  3746. */
  3747. public static function statement($query, $bindings = array())
  3748. {
  3749. //Method inherited from \Illuminate\Database\Connection
  3750. /** @var \Illuminate\Database\MySqlConnection $instance */
  3751. return $instance->statement($query, $bindings);
  3752. }
  3753. /**
  3754. * Run an SQL statement and get the number of rows affected.
  3755. *
  3756. * @param string $query
  3757. * @param array $bindings
  3758. * @return int
  3759. * @static
  3760. */
  3761. public static function affectingStatement($query, $bindings = array())
  3762. {
  3763. //Method inherited from \Illuminate\Database\Connection
  3764. /** @var \Illuminate\Database\MySqlConnection $instance */
  3765. return $instance->affectingStatement($query, $bindings);
  3766. }
  3767. /**
  3768. * Run a raw, unprepared query against the PDO connection.
  3769. *
  3770. * @param string $query
  3771. * @return bool
  3772. * @static
  3773. */
  3774. public static function unprepared($query)
  3775. {
  3776. //Method inherited from \Illuminate\Database\Connection
  3777. /** @var \Illuminate\Database\MySqlConnection $instance */
  3778. return $instance->unprepared($query);
  3779. }
  3780. /**
  3781. * Execute the given callback in "dry run" mode.
  3782. *
  3783. * @param \Closure $callback
  3784. * @return array
  3785. * @static
  3786. */
  3787. public static function pretend($callback)
  3788. {
  3789. //Method inherited from \Illuminate\Database\Connection
  3790. /** @var \Illuminate\Database\MySqlConnection $instance */
  3791. return $instance->pretend($callback);
  3792. }
  3793. /**
  3794. * Prepare the query bindings for execution.
  3795. *
  3796. * @param array $bindings
  3797. * @return array
  3798. * @static
  3799. */
  3800. public static function prepareBindings($bindings)
  3801. {
  3802. //Method inherited from \Illuminate\Database\Connection
  3803. /** @var \Illuminate\Database\MySqlConnection $instance */
  3804. return $instance->prepareBindings($bindings);
  3805. }
  3806. /**
  3807. * Log a query in the connection's query log.
  3808. *
  3809. * @param string $query
  3810. * @param array $bindings
  3811. * @param float|null $time
  3812. * @return void
  3813. * @static
  3814. */
  3815. public static function logQuery($query, $bindings, $time = null)
  3816. {
  3817. //Method inherited from \Illuminate\Database\Connection
  3818. /** @var \Illuminate\Database\MySqlConnection $instance */
  3819. $instance->logQuery($query, $bindings, $time);
  3820. }
  3821. /**
  3822. * Register a database query listener with the connection.
  3823. *
  3824. * @param \Closure $callback
  3825. * @return void
  3826. * @static
  3827. */
  3828. public static function listen($callback)
  3829. {
  3830. //Method inherited from \Illuminate\Database\Connection
  3831. /** @var \Illuminate\Database\MySqlConnection $instance */
  3832. $instance->listen($callback);
  3833. }
  3834. /**
  3835. * Get a new raw query expression.
  3836. *
  3837. * @param mixed $value
  3838. * @return \Illuminate\Database\Query\Expression
  3839. * @static
  3840. */
  3841. public static function raw($value)
  3842. {
  3843. //Method inherited from \Illuminate\Database\Connection
  3844. /** @var \Illuminate\Database\MySqlConnection $instance */
  3845. return $instance->raw($value);
  3846. }
  3847. /**
  3848. * Indicate if any records have been modified.
  3849. *
  3850. * @param bool $value
  3851. * @return void
  3852. * @static
  3853. */
  3854. public static function recordsHaveBeenModified($value = true)
  3855. {
  3856. //Method inherited from \Illuminate\Database\Connection
  3857. /** @var \Illuminate\Database\MySqlConnection $instance */
  3858. $instance->recordsHaveBeenModified($value);
  3859. }
  3860. /**
  3861. * Is Doctrine available?
  3862. *
  3863. * @return bool
  3864. * @static
  3865. */
  3866. public static function isDoctrineAvailable()
  3867. {
  3868. //Method inherited from \Illuminate\Database\Connection
  3869. /** @var \Illuminate\Database\MySqlConnection $instance */
  3870. return $instance->isDoctrineAvailable();
  3871. }
  3872. /**
  3873. * Get a Doctrine Schema Column instance.
  3874. *
  3875. * @param string $table
  3876. * @param string $column
  3877. * @return \Doctrine\DBAL\Schema\Column
  3878. * @static
  3879. */
  3880. public static function getDoctrineColumn($table, $column)
  3881. {
  3882. //Method inherited from \Illuminate\Database\Connection
  3883. /** @var \Illuminate\Database\MySqlConnection $instance */
  3884. return $instance->getDoctrineColumn($table, $column);
  3885. }
  3886. /**
  3887. * Get the Doctrine DBAL schema manager for the connection.
  3888. *
  3889. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3890. * @static
  3891. */
  3892. public static function getDoctrineSchemaManager()
  3893. {
  3894. //Method inherited from \Illuminate\Database\Connection
  3895. /** @var \Illuminate\Database\MySqlConnection $instance */
  3896. return $instance->getDoctrineSchemaManager();
  3897. }
  3898. /**
  3899. * Get the Doctrine DBAL database connection instance.
  3900. *
  3901. * @return \Doctrine\DBAL\Connection
  3902. * @static
  3903. */
  3904. public static function getDoctrineConnection()
  3905. {
  3906. //Method inherited from \Illuminate\Database\Connection
  3907. /** @var \Illuminate\Database\MySqlConnection $instance */
  3908. return $instance->getDoctrineConnection();
  3909. }
  3910. /**
  3911. * Get the current PDO connection.
  3912. *
  3913. * @return \PDO
  3914. * @static
  3915. */
  3916. public static function getPdo()
  3917. {
  3918. //Method inherited from \Illuminate\Database\Connection
  3919. /** @var \Illuminate\Database\MySqlConnection $instance */
  3920. return $instance->getPdo();
  3921. }
  3922. /**
  3923. * Get the current PDO connection used for reading.
  3924. *
  3925. * @return \PDO
  3926. * @static
  3927. */
  3928. public static function getReadPdo()
  3929. {
  3930. //Method inherited from \Illuminate\Database\Connection
  3931. /** @var \Illuminate\Database\MySqlConnection $instance */
  3932. return $instance->getReadPdo();
  3933. }
  3934. /**
  3935. * Set the PDO connection.
  3936. *
  3937. * @param \PDO|\Closure|null $pdo
  3938. * @return \Illuminate\Database\MySqlConnection
  3939. * @static
  3940. */
  3941. public static function setPdo($pdo)
  3942. {
  3943. //Method inherited from \Illuminate\Database\Connection
  3944. /** @var \Illuminate\Database\MySqlConnection $instance */
  3945. return $instance->setPdo($pdo);
  3946. }
  3947. /**
  3948. * Set the PDO connection used for reading.
  3949. *
  3950. * @param \PDO|\Closure|null $pdo
  3951. * @return \Illuminate\Database\MySqlConnection
  3952. * @static
  3953. */
  3954. public static function setReadPdo($pdo)
  3955. {
  3956. //Method inherited from \Illuminate\Database\Connection
  3957. /** @var \Illuminate\Database\MySqlConnection $instance */
  3958. return $instance->setReadPdo($pdo);
  3959. }
  3960. /**
  3961. * Set the reconnect instance on the connection.
  3962. *
  3963. * @param callable $reconnector
  3964. * @return \Illuminate\Database\MySqlConnection
  3965. * @static
  3966. */
  3967. public static function setReconnector($reconnector)
  3968. {
  3969. //Method inherited from \Illuminate\Database\Connection
  3970. /** @var \Illuminate\Database\MySqlConnection $instance */
  3971. return $instance->setReconnector($reconnector);
  3972. }
  3973. /**
  3974. * Get the database connection name.
  3975. *
  3976. * @return string|null
  3977. * @static
  3978. */
  3979. public static function getName()
  3980. {
  3981. //Method inherited from \Illuminate\Database\Connection
  3982. /** @var \Illuminate\Database\MySqlConnection $instance */
  3983. return $instance->getName();
  3984. }
  3985. /**
  3986. * Get an option from the configuration options.
  3987. *
  3988. * @param string|null $option
  3989. * @return mixed
  3990. * @static
  3991. */
  3992. public static function getConfig($option = null)
  3993. {
  3994. //Method inherited from \Illuminate\Database\Connection
  3995. /** @var \Illuminate\Database\MySqlConnection $instance */
  3996. return $instance->getConfig($option);
  3997. }
  3998. /**
  3999. * Get the PDO driver name.
  4000. *
  4001. * @return string
  4002. * @static
  4003. */
  4004. public static function getDriverName()
  4005. {
  4006. //Method inherited from \Illuminate\Database\Connection
  4007. /** @var \Illuminate\Database\MySqlConnection $instance */
  4008. return $instance->getDriverName();
  4009. }
  4010. /**
  4011. * Get the query grammar used by the connection.
  4012. *
  4013. * @return \Illuminate\Database\Query\Grammars\Grammar
  4014. * @static
  4015. */
  4016. public static function getQueryGrammar()
  4017. {
  4018. //Method inherited from \Illuminate\Database\Connection
  4019. /** @var \Illuminate\Database\MySqlConnection $instance */
  4020. return $instance->getQueryGrammar();
  4021. }
  4022. /**
  4023. * Set the query grammar used by the connection.
  4024. *
  4025. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  4026. * @return void
  4027. * @static
  4028. */
  4029. public static function setQueryGrammar($grammar)
  4030. {
  4031. //Method inherited from \Illuminate\Database\Connection
  4032. /** @var \Illuminate\Database\MySqlConnection $instance */
  4033. $instance->setQueryGrammar($grammar);
  4034. }
  4035. /**
  4036. * Get the schema grammar used by the connection.
  4037. *
  4038. * @return \Illuminate\Database\Schema\Grammars\Grammar
  4039. * @static
  4040. */
  4041. public static function getSchemaGrammar()
  4042. {
  4043. //Method inherited from \Illuminate\Database\Connection
  4044. /** @var \Illuminate\Database\MySqlConnection $instance */
  4045. return $instance->getSchemaGrammar();
  4046. }
  4047. /**
  4048. * Set the schema grammar used by the connection.
  4049. *
  4050. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  4051. * @return void
  4052. * @static
  4053. */
  4054. public static function setSchemaGrammar($grammar)
  4055. {
  4056. //Method inherited from \Illuminate\Database\Connection
  4057. /** @var \Illuminate\Database\MySqlConnection $instance */
  4058. $instance->setSchemaGrammar($grammar);
  4059. }
  4060. /**
  4061. * Get the query post processor used by the connection.
  4062. *
  4063. * @return \Illuminate\Database\Query\Processors\Processor
  4064. * @static
  4065. */
  4066. public static function getPostProcessor()
  4067. {
  4068. //Method inherited from \Illuminate\Database\Connection
  4069. /** @var \Illuminate\Database\MySqlConnection $instance */
  4070. return $instance->getPostProcessor();
  4071. }
  4072. /**
  4073. * Set the query post processor used by the connection.
  4074. *
  4075. * @param \Illuminate\Database\Query\Processors\Processor $processor
  4076. * @return void
  4077. * @static
  4078. */
  4079. public static function setPostProcessor($processor)
  4080. {
  4081. //Method inherited from \Illuminate\Database\Connection
  4082. /** @var \Illuminate\Database\MySqlConnection $instance */
  4083. $instance->setPostProcessor($processor);
  4084. }
  4085. /**
  4086. * Get the event dispatcher used by the connection.
  4087. *
  4088. * @return \Illuminate\Contracts\Events\Dispatcher
  4089. * @static
  4090. */
  4091. public static function getEventDispatcher()
  4092. {
  4093. //Method inherited from \Illuminate\Database\Connection
  4094. /** @var \Illuminate\Database\MySqlConnection $instance */
  4095. return $instance->getEventDispatcher();
  4096. }
  4097. /**
  4098. * Set the event dispatcher instance on the connection.
  4099. *
  4100. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4101. * @return void
  4102. * @static
  4103. */
  4104. public static function setEventDispatcher($events)
  4105. {
  4106. //Method inherited from \Illuminate\Database\Connection
  4107. /** @var \Illuminate\Database\MySqlConnection $instance */
  4108. $instance->setEventDispatcher($events);
  4109. }
  4110. /**
  4111. * Determine if the connection in a "dry run".
  4112. *
  4113. * @return bool
  4114. * @static
  4115. */
  4116. public static function pretending()
  4117. {
  4118. //Method inherited from \Illuminate\Database\Connection
  4119. /** @var \Illuminate\Database\MySqlConnection $instance */
  4120. return $instance->pretending();
  4121. }
  4122. /**
  4123. * Get the connection query log.
  4124. *
  4125. * @return array
  4126. * @static
  4127. */
  4128. public static function getQueryLog()
  4129. {
  4130. //Method inherited from \Illuminate\Database\Connection
  4131. /** @var \Illuminate\Database\MySqlConnection $instance */
  4132. return $instance->getQueryLog();
  4133. }
  4134. /**
  4135. * Clear the query log.
  4136. *
  4137. * @return void
  4138. * @static
  4139. */
  4140. public static function flushQueryLog()
  4141. {
  4142. //Method inherited from \Illuminate\Database\Connection
  4143. /** @var \Illuminate\Database\MySqlConnection $instance */
  4144. $instance->flushQueryLog();
  4145. }
  4146. /**
  4147. * Enable the query log on the connection.
  4148. *
  4149. * @return void
  4150. * @static
  4151. */
  4152. public static function enableQueryLog()
  4153. {
  4154. //Method inherited from \Illuminate\Database\Connection
  4155. /** @var \Illuminate\Database\MySqlConnection $instance */
  4156. $instance->enableQueryLog();
  4157. }
  4158. /**
  4159. * Disable the query log on the connection.
  4160. *
  4161. * @return void
  4162. * @static
  4163. */
  4164. public static function disableQueryLog()
  4165. {
  4166. //Method inherited from \Illuminate\Database\Connection
  4167. /** @var \Illuminate\Database\MySqlConnection $instance */
  4168. $instance->disableQueryLog();
  4169. }
  4170. /**
  4171. * Determine whether we're logging queries.
  4172. *
  4173. * @return bool
  4174. * @static
  4175. */
  4176. public static function logging()
  4177. {
  4178. //Method inherited from \Illuminate\Database\Connection
  4179. /** @var \Illuminate\Database\MySqlConnection $instance */
  4180. return $instance->logging();
  4181. }
  4182. /**
  4183. * Get the name of the connected database.
  4184. *
  4185. * @return string
  4186. * @static
  4187. */
  4188. public static function getDatabaseName()
  4189. {
  4190. //Method inherited from \Illuminate\Database\Connection
  4191. /** @var \Illuminate\Database\MySqlConnection $instance */
  4192. return $instance->getDatabaseName();
  4193. }
  4194. /**
  4195. * Set the name of the connected database.
  4196. *
  4197. * @param string $database
  4198. * @return string
  4199. * @static
  4200. */
  4201. public static function setDatabaseName($database)
  4202. {
  4203. //Method inherited from \Illuminate\Database\Connection
  4204. /** @var \Illuminate\Database\MySqlConnection $instance */
  4205. return $instance->setDatabaseName($database);
  4206. }
  4207. /**
  4208. * Get the table prefix for the connection.
  4209. *
  4210. * @return string
  4211. * @static
  4212. */
  4213. public static function getTablePrefix()
  4214. {
  4215. //Method inherited from \Illuminate\Database\Connection
  4216. /** @var \Illuminate\Database\MySqlConnection $instance */
  4217. return $instance->getTablePrefix();
  4218. }
  4219. /**
  4220. * Set the table prefix in use by the connection.
  4221. *
  4222. * @param string $prefix
  4223. * @return void
  4224. * @static
  4225. */
  4226. public static function setTablePrefix($prefix)
  4227. {
  4228. //Method inherited from \Illuminate\Database\Connection
  4229. /** @var \Illuminate\Database\MySqlConnection $instance */
  4230. $instance->setTablePrefix($prefix);
  4231. }
  4232. /**
  4233. * Set the table prefix and return the grammar.
  4234. *
  4235. * @param \Illuminate\Database\Grammar $grammar
  4236. * @return \Illuminate\Database\Grammar
  4237. * @static
  4238. */
  4239. public static function withTablePrefix($grammar)
  4240. {
  4241. //Method inherited from \Illuminate\Database\Connection
  4242. /** @var \Illuminate\Database\MySqlConnection $instance */
  4243. return $instance->withTablePrefix($grammar);
  4244. }
  4245. /**
  4246. * Register a connection resolver.
  4247. *
  4248. * @param string $driver
  4249. * @param \Closure $callback
  4250. * @return void
  4251. * @static
  4252. */
  4253. public static function resolverFor($driver, $callback)
  4254. {
  4255. //Method inherited from \Illuminate\Database\Connection
  4256. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  4257. }
  4258. /**
  4259. * Get the connection resolver for the given driver.
  4260. *
  4261. * @param string $driver
  4262. * @return mixed
  4263. * @static
  4264. */
  4265. public static function getResolver($driver)
  4266. {
  4267. //Method inherited from \Illuminate\Database\Connection
  4268. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  4269. }
  4270. /**
  4271. * Execute a Closure within a transaction.
  4272. *
  4273. * @param \Closure $callback
  4274. * @param int $attempts
  4275. * @return mixed
  4276. * @throws \Exception|\Throwable
  4277. * @static
  4278. */
  4279. public static function transaction($callback, $attempts = 1)
  4280. {
  4281. //Method inherited from \Illuminate\Database\Connection
  4282. /** @var \Illuminate\Database\MySqlConnection $instance */
  4283. return $instance->transaction($callback, $attempts);
  4284. }
  4285. /**
  4286. * Start a new database transaction.
  4287. *
  4288. * @return void
  4289. * @throws \Exception
  4290. * @static
  4291. */
  4292. public static function beginTransaction()
  4293. {
  4294. //Method inherited from \Illuminate\Database\Connection
  4295. /** @var \Illuminate\Database\MySqlConnection $instance */
  4296. $instance->beginTransaction();
  4297. }
  4298. /**
  4299. * Commit the active database transaction.
  4300. *
  4301. * @return void
  4302. * @static
  4303. */
  4304. public static function commit()
  4305. {
  4306. //Method inherited from \Illuminate\Database\Connection
  4307. /** @var \Illuminate\Database\MySqlConnection $instance */
  4308. $instance->commit();
  4309. }
  4310. /**
  4311. * Rollback the active database transaction.
  4312. *
  4313. * @param int|null $toLevel
  4314. * @return void
  4315. * @static
  4316. */
  4317. public static function rollBack($toLevel = null)
  4318. {
  4319. //Method inherited from \Illuminate\Database\Connection
  4320. /** @var \Illuminate\Database\MySqlConnection $instance */
  4321. $instance->rollBack($toLevel);
  4322. }
  4323. /**
  4324. * Get the number of active transactions.
  4325. *
  4326. * @return int
  4327. * @static
  4328. */
  4329. public static function transactionLevel()
  4330. {
  4331. //Method inherited from \Illuminate\Database\Connection
  4332. /** @var \Illuminate\Database\MySqlConnection $instance */
  4333. return $instance->transactionLevel();
  4334. }
  4335. }
  4336. /**
  4337. *
  4338. *
  4339. * @see \Illuminate\Events\Dispatcher
  4340. */
  4341. class Event {
  4342. /**
  4343. * Register an event listener with the dispatcher.
  4344. *
  4345. * @param string|array $events
  4346. * @param mixed $listener
  4347. * @return void
  4348. * @static
  4349. */
  4350. public static function listen($events, $listener)
  4351. {
  4352. /** @var \Illuminate\Events\Dispatcher $instance */
  4353. $instance->listen($events, $listener);
  4354. }
  4355. /**
  4356. * Determine if a given event has listeners.
  4357. *
  4358. * @param string $eventName
  4359. * @return bool
  4360. * @static
  4361. */
  4362. public static function hasListeners($eventName)
  4363. {
  4364. /** @var \Illuminate\Events\Dispatcher $instance */
  4365. return $instance->hasListeners($eventName);
  4366. }
  4367. /**
  4368. * Register an event and payload to be fired later.
  4369. *
  4370. * @param string $event
  4371. * @param array $payload
  4372. * @return void
  4373. * @static
  4374. */
  4375. public static function push($event, $payload = array())
  4376. {
  4377. /** @var \Illuminate\Events\Dispatcher $instance */
  4378. $instance->push($event, $payload);
  4379. }
  4380. /**
  4381. * Flush a set of pushed events.
  4382. *
  4383. * @param string $event
  4384. * @return void
  4385. * @static
  4386. */
  4387. public static function flush($event)
  4388. {
  4389. /** @var \Illuminate\Events\Dispatcher $instance */
  4390. $instance->flush($event);
  4391. }
  4392. /**
  4393. * Register an event subscriber with the dispatcher.
  4394. *
  4395. * @param object|string $subscriber
  4396. * @return void
  4397. * @static
  4398. */
  4399. public static function subscribe($subscriber)
  4400. {
  4401. /** @var \Illuminate\Events\Dispatcher $instance */
  4402. $instance->subscribe($subscriber);
  4403. }
  4404. /**
  4405. * Fire an event until the first non-null response is returned.
  4406. *
  4407. * @param string|object $event
  4408. * @param mixed $payload
  4409. * @return array|null
  4410. * @static
  4411. */
  4412. public static function until($event, $payload = array())
  4413. {
  4414. /** @var \Illuminate\Events\Dispatcher $instance */
  4415. return $instance->until($event, $payload);
  4416. }
  4417. /**
  4418. * Fire an event and call the listeners.
  4419. *
  4420. * @param string|object $event
  4421. * @param mixed $payload
  4422. * @param bool $halt
  4423. * @return array|null
  4424. * @static
  4425. */
  4426. public static function fire($event, $payload = array(), $halt = false)
  4427. {
  4428. /** @var \Illuminate\Events\Dispatcher $instance */
  4429. return $instance->fire($event, $payload, $halt);
  4430. }
  4431. /**
  4432. * Fire an event and call the listeners.
  4433. *
  4434. * @param string|object $event
  4435. * @param mixed $payload
  4436. * @param bool $halt
  4437. * @return array|null
  4438. * @static
  4439. */
  4440. public static function dispatch($event, $payload = array(), $halt = false)
  4441. {
  4442. /** @var \Illuminate\Events\Dispatcher $instance */
  4443. return $instance->dispatch($event, $payload, $halt);
  4444. }
  4445. /**
  4446. * Get all of the listeners for a given event name.
  4447. *
  4448. * @param string $eventName
  4449. * @return array
  4450. * @static
  4451. */
  4452. public static function getListeners($eventName)
  4453. {
  4454. /** @var \Illuminate\Events\Dispatcher $instance */
  4455. return $instance->getListeners($eventName);
  4456. }
  4457. /**
  4458. * Register an event listener with the dispatcher.
  4459. *
  4460. * @param \Closure|string $listener
  4461. * @param bool $wildcard
  4462. * @return \Closure
  4463. * @static
  4464. */
  4465. public static function makeListener($listener, $wildcard = false)
  4466. {
  4467. /** @var \Illuminate\Events\Dispatcher $instance */
  4468. return $instance->makeListener($listener, $wildcard);
  4469. }
  4470. /**
  4471. * Create a class based listener using the IoC container.
  4472. *
  4473. * @param string $listener
  4474. * @param bool $wildcard
  4475. * @return \Closure
  4476. * @static
  4477. */
  4478. public static function createClassListener($listener, $wildcard = false)
  4479. {
  4480. /** @var \Illuminate\Events\Dispatcher $instance */
  4481. return $instance->createClassListener($listener, $wildcard);
  4482. }
  4483. /**
  4484. * Remove a set of listeners from the dispatcher.
  4485. *
  4486. * @param string $event
  4487. * @return void
  4488. * @static
  4489. */
  4490. public static function forget($event)
  4491. {
  4492. /** @var \Illuminate\Events\Dispatcher $instance */
  4493. $instance->forget($event);
  4494. }
  4495. /**
  4496. * Forget all of the pushed listeners.
  4497. *
  4498. * @return void
  4499. * @static
  4500. */
  4501. public static function forgetPushed()
  4502. {
  4503. /** @var \Illuminate\Events\Dispatcher $instance */
  4504. $instance->forgetPushed();
  4505. }
  4506. /**
  4507. * Set the queue resolver implementation.
  4508. *
  4509. * @param callable $resolver
  4510. * @return \Illuminate\Events\Dispatcher
  4511. * @static
  4512. */
  4513. public static function setQueueResolver($resolver)
  4514. {
  4515. /** @var \Illuminate\Events\Dispatcher $instance */
  4516. return $instance->setQueueResolver($resolver);
  4517. }
  4518. /**
  4519. * Assert if an event was dispatched based on a truth-test callback.
  4520. *
  4521. * @param string $event
  4522. * @param callable|int|null $callback
  4523. * @return void
  4524. * @static
  4525. */
  4526. public static function assertDispatched($event, $callback = null)
  4527. {
  4528. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4529. $instance->assertDispatched($event, $callback);
  4530. }
  4531. /**
  4532. * Assert if a event was dispatched a number of times.
  4533. *
  4534. * @param string $event
  4535. * @param int $times
  4536. * @return void
  4537. * @static
  4538. */
  4539. public static function assertDispatchedTimes($event, $times = 1)
  4540. {
  4541. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4542. $instance->assertDispatchedTimes($event, $times);
  4543. }
  4544. /**
  4545. * Determine if an event was dispatched based on a truth-test callback.
  4546. *
  4547. * @param string $event
  4548. * @param callable|null $callback
  4549. * @return void
  4550. * @static
  4551. */
  4552. public static function assertNotDispatched($event, $callback = null)
  4553. {
  4554. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4555. $instance->assertNotDispatched($event, $callback);
  4556. }
  4557. /**
  4558. * Get all of the events matching a truth-test callback.
  4559. *
  4560. * @param string $event
  4561. * @param callable|null $callback
  4562. * @return \Illuminate\Support\Collection
  4563. * @static
  4564. */
  4565. public static function dispatched($event, $callback = null)
  4566. {
  4567. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4568. return $instance->dispatched($event, $callback);
  4569. }
  4570. /**
  4571. * Determine if the given event has been dispatched.
  4572. *
  4573. * @param string $event
  4574. * @return bool
  4575. * @static
  4576. */
  4577. public static function hasDispatched($event)
  4578. {
  4579. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4580. return $instance->hasDispatched($event);
  4581. }
  4582. }
  4583. /**
  4584. *
  4585. *
  4586. * @see \Illuminate\Filesystem\Filesystem
  4587. */
  4588. class File {
  4589. /**
  4590. * Determine if a file or directory exists.
  4591. *
  4592. * @param string $path
  4593. * @return bool
  4594. * @static
  4595. */
  4596. public static function exists($path)
  4597. {
  4598. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4599. return $instance->exists($path);
  4600. }
  4601. /**
  4602. * Get the contents of a file.
  4603. *
  4604. * @param string $path
  4605. * @param bool $lock
  4606. * @return string
  4607. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4608. * @static
  4609. */
  4610. public static function get($path, $lock = false)
  4611. {
  4612. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4613. return $instance->get($path, $lock);
  4614. }
  4615. /**
  4616. * Get contents of a file with shared access.
  4617. *
  4618. * @param string $path
  4619. * @return string
  4620. * @static
  4621. */
  4622. public static function sharedGet($path)
  4623. {
  4624. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4625. return $instance->sharedGet($path);
  4626. }
  4627. /**
  4628. * Get the returned value of a file.
  4629. *
  4630. * @param string $path
  4631. * @return mixed
  4632. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4633. * @static
  4634. */
  4635. public static function getRequire($path)
  4636. {
  4637. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4638. return $instance->getRequire($path);
  4639. }
  4640. /**
  4641. * Require the given file once.
  4642. *
  4643. * @param string $file
  4644. * @return mixed
  4645. * @static
  4646. */
  4647. public static function requireOnce($file)
  4648. {
  4649. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4650. return $instance->requireOnce($file);
  4651. }
  4652. /**
  4653. * Get the MD5 hash of the file at the given path.
  4654. *
  4655. * @param string $path
  4656. * @return string
  4657. * @static
  4658. */
  4659. public static function hash($path)
  4660. {
  4661. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4662. return $instance->hash($path);
  4663. }
  4664. /**
  4665. * Write the contents of a file.
  4666. *
  4667. * @param string $path
  4668. * @param string $contents
  4669. * @param bool $lock
  4670. * @return int
  4671. * @static
  4672. */
  4673. public static function put($path, $contents, $lock = false)
  4674. {
  4675. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4676. return $instance->put($path, $contents, $lock);
  4677. }
  4678. /**
  4679. * Prepend to a file.
  4680. *
  4681. * @param string $path
  4682. * @param string $data
  4683. * @return int
  4684. * @static
  4685. */
  4686. public static function prepend($path, $data)
  4687. {
  4688. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4689. return $instance->prepend($path, $data);
  4690. }
  4691. /**
  4692. * Append to a file.
  4693. *
  4694. * @param string $path
  4695. * @param string $data
  4696. * @return int
  4697. * @static
  4698. */
  4699. public static function append($path, $data)
  4700. {
  4701. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4702. return $instance->append($path, $data);
  4703. }
  4704. /**
  4705. * Get or set UNIX mode of a file or directory.
  4706. *
  4707. * @param string $path
  4708. * @param int $mode
  4709. * @return mixed
  4710. * @static
  4711. */
  4712. public static function chmod($path, $mode = null)
  4713. {
  4714. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4715. return $instance->chmod($path, $mode);
  4716. }
  4717. /**
  4718. * Delete the file at a given path.
  4719. *
  4720. * @param string|array $paths
  4721. * @return bool
  4722. * @static
  4723. */
  4724. public static function delete($paths)
  4725. {
  4726. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4727. return $instance->delete($paths);
  4728. }
  4729. /**
  4730. * Move a file to a new location.
  4731. *
  4732. * @param string $path
  4733. * @param string $target
  4734. * @return bool
  4735. * @static
  4736. */
  4737. public static function move($path, $target)
  4738. {
  4739. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4740. return $instance->move($path, $target);
  4741. }
  4742. /**
  4743. * Copy a file to a new location.
  4744. *
  4745. * @param string $path
  4746. * @param string $target
  4747. * @return bool
  4748. * @static
  4749. */
  4750. public static function copy($path, $target)
  4751. {
  4752. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4753. return $instance->copy($path, $target);
  4754. }
  4755. /**
  4756. * Create a hard link to the target file or directory.
  4757. *
  4758. * @param string $target
  4759. * @param string $link
  4760. * @return void
  4761. * @static
  4762. */
  4763. public static function link($target, $link)
  4764. {
  4765. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4766. $instance->link($target, $link);
  4767. }
  4768. /**
  4769. * Extract the file name from a file path.
  4770. *
  4771. * @param string $path
  4772. * @return string
  4773. * @static
  4774. */
  4775. public static function name($path)
  4776. {
  4777. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4778. return $instance->name($path);
  4779. }
  4780. /**
  4781. * Extract the trailing name component from a file path.
  4782. *
  4783. * @param string $path
  4784. * @return string
  4785. * @static
  4786. */
  4787. public static function basename($path)
  4788. {
  4789. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4790. return $instance->basename($path);
  4791. }
  4792. /**
  4793. * Extract the parent directory from a file path.
  4794. *
  4795. * @param string $path
  4796. * @return string
  4797. * @static
  4798. */
  4799. public static function dirname($path)
  4800. {
  4801. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4802. return $instance->dirname($path);
  4803. }
  4804. /**
  4805. * Extract the file extension from a file path.
  4806. *
  4807. * @param string $path
  4808. * @return string
  4809. * @static
  4810. */
  4811. public static function extension($path)
  4812. {
  4813. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4814. return $instance->extension($path);
  4815. }
  4816. /**
  4817. * Get the file type of a given file.
  4818. *
  4819. * @param string $path
  4820. * @return string
  4821. * @static
  4822. */
  4823. public static function type($path)
  4824. {
  4825. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4826. return $instance->type($path);
  4827. }
  4828. /**
  4829. * Get the mime-type of a given file.
  4830. *
  4831. * @param string $path
  4832. * @return string|false
  4833. * @static
  4834. */
  4835. public static function mimeType($path)
  4836. {
  4837. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4838. return $instance->mimeType($path);
  4839. }
  4840. /**
  4841. * Get the file size of a given file.
  4842. *
  4843. * @param string $path
  4844. * @return int
  4845. * @static
  4846. */
  4847. public static function size($path)
  4848. {
  4849. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4850. return $instance->size($path);
  4851. }
  4852. /**
  4853. * Get the file's last modification time.
  4854. *
  4855. * @param string $path
  4856. * @return int
  4857. * @static
  4858. */
  4859. public static function lastModified($path)
  4860. {
  4861. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4862. return $instance->lastModified($path);
  4863. }
  4864. /**
  4865. * Determine if the given path is a directory.
  4866. *
  4867. * @param string $directory
  4868. * @return bool
  4869. * @static
  4870. */
  4871. public static function isDirectory($directory)
  4872. {
  4873. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4874. return $instance->isDirectory($directory);
  4875. }
  4876. /**
  4877. * Determine if the given path is readable.
  4878. *
  4879. * @param string $path
  4880. * @return bool
  4881. * @static
  4882. */
  4883. public static function isReadable($path)
  4884. {
  4885. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4886. return $instance->isReadable($path);
  4887. }
  4888. /**
  4889. * Determine if the given path is writable.
  4890. *
  4891. * @param string $path
  4892. * @return bool
  4893. * @static
  4894. */
  4895. public static function isWritable($path)
  4896. {
  4897. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4898. return $instance->isWritable($path);
  4899. }
  4900. /**
  4901. * Determine if the given path is a file.
  4902. *
  4903. * @param string $file
  4904. * @return bool
  4905. * @static
  4906. */
  4907. public static function isFile($file)
  4908. {
  4909. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4910. return $instance->isFile($file);
  4911. }
  4912. /**
  4913. * Find path names matching a given pattern.
  4914. *
  4915. * @param string $pattern
  4916. * @param int $flags
  4917. * @return array
  4918. * @static
  4919. */
  4920. public static function glob($pattern, $flags = 0)
  4921. {
  4922. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4923. return $instance->glob($pattern, $flags);
  4924. }
  4925. /**
  4926. * Get an array of all files in a directory.
  4927. *
  4928. * @param string $directory
  4929. * @param bool $hidden
  4930. * @return \Symfony\Component\Finder\SplFileInfo[]
  4931. * @static
  4932. */
  4933. public static function files($directory, $hidden = false)
  4934. {
  4935. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4936. return $instance->files($directory, $hidden);
  4937. }
  4938. /**
  4939. * Get all of the files from the given directory (recursive).
  4940. *
  4941. * @param string $directory
  4942. * @param bool $hidden
  4943. * @return \Symfony\Component\Finder\SplFileInfo[]
  4944. * @static
  4945. */
  4946. public static function allFiles($directory, $hidden = false)
  4947. {
  4948. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4949. return $instance->allFiles($directory, $hidden);
  4950. }
  4951. /**
  4952. * Get all of the directories within a given directory.
  4953. *
  4954. * @param string $directory
  4955. * @return array
  4956. * @static
  4957. */
  4958. public static function directories($directory)
  4959. {
  4960. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4961. return $instance->directories($directory);
  4962. }
  4963. /**
  4964. * Create a directory.
  4965. *
  4966. * @param string $path
  4967. * @param int $mode
  4968. * @param bool $recursive
  4969. * @param bool $force
  4970. * @return bool
  4971. * @static
  4972. */
  4973. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  4974. {
  4975. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4976. return $instance->makeDirectory($path, $mode, $recursive, $force);
  4977. }
  4978. /**
  4979. * Move a directory.
  4980. *
  4981. * @param string $from
  4982. * @param string $to
  4983. * @param bool $overwrite
  4984. * @return bool
  4985. * @static
  4986. */
  4987. public static function moveDirectory($from, $to, $overwrite = false)
  4988. {
  4989. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4990. return $instance->moveDirectory($from, $to, $overwrite);
  4991. }
  4992. /**
  4993. * Copy a directory from one location to another.
  4994. *
  4995. * @param string $directory
  4996. * @param string $destination
  4997. * @param int $options
  4998. * @return bool
  4999. * @static
  5000. */
  5001. public static function copyDirectory($directory, $destination, $options = null)
  5002. {
  5003. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5004. return $instance->copyDirectory($directory, $destination, $options);
  5005. }
  5006. /**
  5007. * Recursively delete a directory.
  5008. *
  5009. * The directory itself may be optionally preserved.
  5010. *
  5011. * @param string $directory
  5012. * @param bool $preserve
  5013. * @return bool
  5014. * @static
  5015. */
  5016. public static function deleteDirectory($directory, $preserve = false)
  5017. {
  5018. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5019. return $instance->deleteDirectory($directory, $preserve);
  5020. }
  5021. /**
  5022. * Empty the specified directory of all files and folders.
  5023. *
  5024. * @param string $directory
  5025. * @return bool
  5026. * @static
  5027. */
  5028. public static function cleanDirectory($directory)
  5029. {
  5030. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5031. return $instance->cleanDirectory($directory);
  5032. }
  5033. /**
  5034. * Register a custom macro.
  5035. *
  5036. * @param string $name
  5037. * @param object|callable $macro
  5038. * @return void
  5039. * @static
  5040. */
  5041. public static function macro($name, $macro)
  5042. {
  5043. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  5044. }
  5045. /**
  5046. * Mix another object into the class.
  5047. *
  5048. * @param object $mixin
  5049. * @return void
  5050. * @static
  5051. */
  5052. public static function mixin($mixin)
  5053. {
  5054. \Illuminate\Filesystem\Filesystem::mixin($mixin);
  5055. }
  5056. /**
  5057. * Checks if macro is registered.
  5058. *
  5059. * @param string $name
  5060. * @return bool
  5061. * @static
  5062. */
  5063. public static function hasMacro($name)
  5064. {
  5065. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  5066. }
  5067. }
  5068. /**
  5069. *
  5070. *
  5071. * @see \Illuminate\Contracts\Auth\Access\Gate
  5072. */
  5073. class Gate {
  5074. /**
  5075. * Determine if a given ability has been defined.
  5076. *
  5077. * @param string|array $ability
  5078. * @return bool
  5079. * @static
  5080. */
  5081. public static function has($ability)
  5082. {
  5083. /** @var \Illuminate\Auth\Access\Gate $instance */
  5084. return $instance->has($ability);
  5085. }
  5086. /**
  5087. * Define a new ability.
  5088. *
  5089. * @param string $ability
  5090. * @param callable|string $callback
  5091. * @return \Illuminate\Auth\Access\Gate
  5092. * @throws \InvalidArgumentException
  5093. * @static
  5094. */
  5095. public static function define($ability, $callback)
  5096. {
  5097. /** @var \Illuminate\Auth\Access\Gate $instance */
  5098. return $instance->define($ability, $callback);
  5099. }
  5100. /**
  5101. * Define abilities for a resource.
  5102. *
  5103. * @param string $name
  5104. * @param string $class
  5105. * @param array $abilities
  5106. * @return \Illuminate\Auth\Access\Gate
  5107. * @static
  5108. */
  5109. public static function resource($name, $class, $abilities = null)
  5110. {
  5111. /** @var \Illuminate\Auth\Access\Gate $instance */
  5112. return $instance->resource($name, $class, $abilities);
  5113. }
  5114. /**
  5115. * Define a policy class for a given class type.
  5116. *
  5117. * @param string $class
  5118. * @param string $policy
  5119. * @return \Illuminate\Auth\Access\Gate
  5120. * @static
  5121. */
  5122. public static function policy($class, $policy)
  5123. {
  5124. /** @var \Illuminate\Auth\Access\Gate $instance */
  5125. return $instance->policy($class, $policy);
  5126. }
  5127. /**
  5128. * Register a callback to run before all Gate checks.
  5129. *
  5130. * @param callable $callback
  5131. * @return \Illuminate\Auth\Access\Gate
  5132. * @static
  5133. */
  5134. public static function before($callback)
  5135. {
  5136. /** @var \Illuminate\Auth\Access\Gate $instance */
  5137. return $instance->before($callback);
  5138. }
  5139. /**
  5140. * Register a callback to run after all Gate checks.
  5141. *
  5142. * @param callable $callback
  5143. * @return \Illuminate\Auth\Access\Gate
  5144. * @static
  5145. */
  5146. public static function after($callback)
  5147. {
  5148. /** @var \Illuminate\Auth\Access\Gate $instance */
  5149. return $instance->after($callback);
  5150. }
  5151. /**
  5152. * Determine if the given ability should be granted for the current user.
  5153. *
  5154. * @param string $ability
  5155. * @param array|mixed $arguments
  5156. * @return bool
  5157. * @static
  5158. */
  5159. public static function allows($ability, $arguments = array())
  5160. {
  5161. /** @var \Illuminate\Auth\Access\Gate $instance */
  5162. return $instance->allows($ability, $arguments);
  5163. }
  5164. /**
  5165. * Determine if the given ability should be denied for the current user.
  5166. *
  5167. * @param string $ability
  5168. * @param array|mixed $arguments
  5169. * @return bool
  5170. * @static
  5171. */
  5172. public static function denies($ability, $arguments = array())
  5173. {
  5174. /** @var \Illuminate\Auth\Access\Gate $instance */
  5175. return $instance->denies($ability, $arguments);
  5176. }
  5177. /**
  5178. * Determine if all of the given abilities should be granted for the current user.
  5179. *
  5180. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5181. * @param array|mixed $arguments
  5182. * @return bool
  5183. * @static
  5184. */
  5185. public static function check($abilities, $arguments = array())
  5186. {
  5187. /** @var \Illuminate\Auth\Access\Gate $instance */
  5188. return $instance->check($abilities, $arguments);
  5189. }
  5190. /**
  5191. * Determine if any one of the given abilities should be granted for the current user.
  5192. *
  5193. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5194. * @param array|mixed $arguments
  5195. * @return bool
  5196. * @static
  5197. */
  5198. public static function any($abilities, $arguments = array())
  5199. {
  5200. /** @var \Illuminate\Auth\Access\Gate $instance */
  5201. return $instance->any($abilities, $arguments);
  5202. }
  5203. /**
  5204. * Determine if the given ability should be granted for the current user.
  5205. *
  5206. * @param string $ability
  5207. * @param array|mixed $arguments
  5208. * @return \Illuminate\Auth\Access\Response
  5209. * @throws \Illuminate\Auth\Access\AuthorizationException
  5210. * @static
  5211. */
  5212. public static function authorize($ability, $arguments = array())
  5213. {
  5214. /** @var \Illuminate\Auth\Access\Gate $instance */
  5215. return $instance->authorize($ability, $arguments);
  5216. }
  5217. /**
  5218. * Get a policy instance for a given class.
  5219. *
  5220. * @param object|string $class
  5221. * @return mixed
  5222. * @static
  5223. */
  5224. public static function getPolicyFor($class)
  5225. {
  5226. /** @var \Illuminate\Auth\Access\Gate $instance */
  5227. return $instance->getPolicyFor($class);
  5228. }
  5229. /**
  5230. * Build a policy class instance of the given type.
  5231. *
  5232. * @param object|string $class
  5233. * @return mixed
  5234. * @static
  5235. */
  5236. public static function resolvePolicy($class)
  5237. {
  5238. /** @var \Illuminate\Auth\Access\Gate $instance */
  5239. return $instance->resolvePolicy($class);
  5240. }
  5241. /**
  5242. * Get a gate instance for the given user.
  5243. *
  5244. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  5245. * @return static
  5246. * @static
  5247. */
  5248. public static function forUser($user)
  5249. {
  5250. /** @var \Illuminate\Auth\Access\Gate $instance */
  5251. return $instance->forUser($user);
  5252. }
  5253. /**
  5254. * Get all of the defined abilities.
  5255. *
  5256. * @return array
  5257. * @static
  5258. */
  5259. public static function abilities()
  5260. {
  5261. /** @var \Illuminate\Auth\Access\Gate $instance */
  5262. return $instance->abilities();
  5263. }
  5264. /**
  5265. * Get all of the defined policies.
  5266. *
  5267. * @return array
  5268. * @static
  5269. */
  5270. public static function policies()
  5271. {
  5272. /** @var \Illuminate\Auth\Access\Gate $instance */
  5273. return $instance->policies();
  5274. }
  5275. }
  5276. /**
  5277. *
  5278. *
  5279. * @see \Illuminate\Hashing\BcryptHasher
  5280. */
  5281. class Hash {
  5282. /**
  5283. * Hash the given value.
  5284. *
  5285. * @param string $value
  5286. * @param array $options
  5287. * @return string
  5288. * @throws \RuntimeException
  5289. * @static
  5290. */
  5291. public static function make($value, $options = array())
  5292. {
  5293. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5294. return $instance->make($value, $options);
  5295. }
  5296. /**
  5297. * Check the given plain value against a hash.
  5298. *
  5299. * @param string $value
  5300. * @param string $hashedValue
  5301. * @param array $options
  5302. * @return bool
  5303. * @static
  5304. */
  5305. public static function check($value, $hashedValue, $options = array())
  5306. {
  5307. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5308. return $instance->check($value, $hashedValue, $options);
  5309. }
  5310. /**
  5311. * Check if the given hash has been hashed using the given options.
  5312. *
  5313. * @param string $hashedValue
  5314. * @param array $options
  5315. * @return bool
  5316. * @static
  5317. */
  5318. public static function needsRehash($hashedValue, $options = array())
  5319. {
  5320. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5321. return $instance->needsRehash($hashedValue, $options);
  5322. }
  5323. /**
  5324. * Set the default password work factor.
  5325. *
  5326. * @param int $rounds
  5327. * @return \Illuminate\Hashing\BcryptHasher
  5328. * @static
  5329. */
  5330. public static function setRounds($rounds)
  5331. {
  5332. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5333. return $instance->setRounds($rounds);
  5334. }
  5335. }
  5336. /**
  5337. *
  5338. *
  5339. * @see \Illuminate\Translation\Translator
  5340. */
  5341. class Lang {
  5342. /**
  5343. * Determine if a translation exists for a given locale.
  5344. *
  5345. * @param string $key
  5346. * @param string|null $locale
  5347. * @return bool
  5348. * @static
  5349. */
  5350. public static function hasForLocale($key, $locale = null)
  5351. {
  5352. /** @var \Illuminate\Translation\Translator $instance */
  5353. return $instance->hasForLocale($key, $locale);
  5354. }
  5355. /**
  5356. * Determine if a translation exists.
  5357. *
  5358. * @param string $key
  5359. * @param string|null $locale
  5360. * @param bool $fallback
  5361. * @return bool
  5362. * @static
  5363. */
  5364. public static function has($key, $locale = null, $fallback = true)
  5365. {
  5366. /** @var \Illuminate\Translation\Translator $instance */
  5367. return $instance->has($key, $locale, $fallback);
  5368. }
  5369. /**
  5370. * Get the translation for a given key.
  5371. *
  5372. * @param string $key
  5373. * @param array $replace
  5374. * @param string $locale
  5375. * @return string|array|null
  5376. * @static
  5377. */
  5378. public static function trans($key, $replace = array(), $locale = null)
  5379. {
  5380. /** @var \Illuminate\Translation\Translator $instance */
  5381. return $instance->trans($key, $replace, $locale);
  5382. }
  5383. /**
  5384. * Get the translation for the given key.
  5385. *
  5386. * @param string $key
  5387. * @param array $replace
  5388. * @param string|null $locale
  5389. * @param bool $fallback
  5390. * @return string|array|null
  5391. * @static
  5392. */
  5393. public static function get($key, $replace = array(), $locale = null, $fallback = true)
  5394. {
  5395. /** @var \Illuminate\Translation\Translator $instance */
  5396. return $instance->get($key, $replace, $locale, $fallback);
  5397. }
  5398. /**
  5399. * Get the translation for a given key from the JSON translation files.
  5400. *
  5401. * @param string $key
  5402. * @param array $replace
  5403. * @param string $locale
  5404. * @return string|array|null
  5405. * @static
  5406. */
  5407. public static function getFromJson($key, $replace = array(), $locale = null)
  5408. {
  5409. /** @var \Illuminate\Translation\Translator $instance */
  5410. return $instance->getFromJson($key, $replace, $locale);
  5411. }
  5412. /**
  5413. * Get a translation according to an integer value.
  5414. *
  5415. * @param string $key
  5416. * @param int|array|\Countable $number
  5417. * @param array $replace
  5418. * @param string $locale
  5419. * @return string
  5420. * @static
  5421. */
  5422. public static function transChoice($key, $number, $replace = array(), $locale = null)
  5423. {
  5424. /** @var \Illuminate\Translation\Translator $instance */
  5425. return $instance->transChoice($key, $number, $replace, $locale);
  5426. }
  5427. /**
  5428. * Get a translation according to an integer value.
  5429. *
  5430. * @param string $key
  5431. * @param int|array|\Countable $number
  5432. * @param array $replace
  5433. * @param string $locale
  5434. * @return string
  5435. * @static
  5436. */
  5437. public static function choice($key, $number, $replace = array(), $locale = null)
  5438. {
  5439. /** @var \Illuminate\Translation\Translator $instance */
  5440. return $instance->choice($key, $number, $replace, $locale);
  5441. }
  5442. /**
  5443. * Add translation lines to the given locale.
  5444. *
  5445. * @param array $lines
  5446. * @param string $locale
  5447. * @param string $namespace
  5448. * @return void
  5449. * @static
  5450. */
  5451. public static function addLines($lines, $locale, $namespace = '*')
  5452. {
  5453. /** @var \Illuminate\Translation\Translator $instance */
  5454. $instance->addLines($lines, $locale, $namespace);
  5455. }
  5456. /**
  5457. * Load the specified language group.
  5458. *
  5459. * @param string $namespace
  5460. * @param string $group
  5461. * @param string $locale
  5462. * @return void
  5463. * @static
  5464. */
  5465. public static function load($namespace, $group, $locale)
  5466. {
  5467. /** @var \Illuminate\Translation\Translator $instance */
  5468. $instance->load($namespace, $group, $locale);
  5469. }
  5470. /**
  5471. * Add a new namespace to the loader.
  5472. *
  5473. * @param string $namespace
  5474. * @param string $hint
  5475. * @return void
  5476. * @static
  5477. */
  5478. public static function addNamespace($namespace, $hint)
  5479. {
  5480. /** @var \Illuminate\Translation\Translator $instance */
  5481. $instance->addNamespace($namespace, $hint);
  5482. }
  5483. /**
  5484. * Add a new JSON path to the loader.
  5485. *
  5486. * @param string $path
  5487. * @return void
  5488. * @static
  5489. */
  5490. public static function addJsonPath($path)
  5491. {
  5492. /** @var \Illuminate\Translation\Translator $instance */
  5493. $instance->addJsonPath($path);
  5494. }
  5495. /**
  5496. * Parse a key into namespace, group, and item.
  5497. *
  5498. * @param string $key
  5499. * @return array
  5500. * @static
  5501. */
  5502. public static function parseKey($key)
  5503. {
  5504. /** @var \Illuminate\Translation\Translator $instance */
  5505. return $instance->parseKey($key);
  5506. }
  5507. /**
  5508. * Get the message selector instance.
  5509. *
  5510. * @return \Illuminate\Translation\MessageSelector
  5511. * @static
  5512. */
  5513. public static function getSelector()
  5514. {
  5515. /** @var \Illuminate\Translation\Translator $instance */
  5516. return $instance->getSelector();
  5517. }
  5518. /**
  5519. * Set the message selector instance.
  5520. *
  5521. * @param \Illuminate\Translation\MessageSelector $selector
  5522. * @return void
  5523. * @static
  5524. */
  5525. public static function setSelector($selector)
  5526. {
  5527. /** @var \Illuminate\Translation\Translator $instance */
  5528. $instance->setSelector($selector);
  5529. }
  5530. /**
  5531. * Get the language line loader implementation.
  5532. *
  5533. * @return \Illuminate\Contracts\Translation\Loader
  5534. * @static
  5535. */
  5536. public static function getLoader()
  5537. {
  5538. /** @var \Illuminate\Translation\Translator $instance */
  5539. return $instance->getLoader();
  5540. }
  5541. /**
  5542. * Get the default locale being used.
  5543. *
  5544. * @return string
  5545. * @static
  5546. */
  5547. public static function locale()
  5548. {
  5549. /** @var \Illuminate\Translation\Translator $instance */
  5550. return $instance->locale();
  5551. }
  5552. /**
  5553. * Get the default locale being used.
  5554. *
  5555. * @return string
  5556. * @static
  5557. */
  5558. public static function getLocale()
  5559. {
  5560. /** @var \Illuminate\Translation\Translator $instance */
  5561. return $instance->getLocale();
  5562. }
  5563. /**
  5564. * Set the default locale.
  5565. *
  5566. * @param string $locale
  5567. * @return void
  5568. * @static
  5569. */
  5570. public static function setLocale($locale)
  5571. {
  5572. /** @var \Illuminate\Translation\Translator $instance */
  5573. $instance->setLocale($locale);
  5574. }
  5575. /**
  5576. * Get the fallback locale being used.
  5577. *
  5578. * @return string
  5579. * @static
  5580. */
  5581. public static function getFallback()
  5582. {
  5583. /** @var \Illuminate\Translation\Translator $instance */
  5584. return $instance->getFallback();
  5585. }
  5586. /**
  5587. * Set the fallback locale being used.
  5588. *
  5589. * @param string $fallback
  5590. * @return void
  5591. * @static
  5592. */
  5593. public static function setFallback($fallback)
  5594. {
  5595. /** @var \Illuminate\Translation\Translator $instance */
  5596. $instance->setFallback($fallback);
  5597. }
  5598. /**
  5599. * Set the parsed value of a key.
  5600. *
  5601. * @param string $key
  5602. * @param array $parsed
  5603. * @return void
  5604. * @static
  5605. */
  5606. public static function setParsedKey($key, $parsed)
  5607. {
  5608. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  5609. /** @var \Illuminate\Translation\Translator $instance */
  5610. $instance->setParsedKey($key, $parsed);
  5611. }
  5612. /**
  5613. * Register a custom macro.
  5614. *
  5615. * @param string $name
  5616. * @param object|callable $macro
  5617. * @return void
  5618. * @static
  5619. */
  5620. public static function macro($name, $macro)
  5621. {
  5622. \Illuminate\Translation\Translator::macro($name, $macro);
  5623. }
  5624. /**
  5625. * Mix another object into the class.
  5626. *
  5627. * @param object $mixin
  5628. * @return void
  5629. * @static
  5630. */
  5631. public static function mixin($mixin)
  5632. {
  5633. \Illuminate\Translation\Translator::mixin($mixin);
  5634. }
  5635. /**
  5636. * Checks if macro is registered.
  5637. *
  5638. * @param string $name
  5639. * @return bool
  5640. * @static
  5641. */
  5642. public static function hasMacro($name)
  5643. {
  5644. return \Illuminate\Translation\Translator::hasMacro($name);
  5645. }
  5646. }
  5647. /**
  5648. *
  5649. *
  5650. * @see \Illuminate\Log\Writer
  5651. */
  5652. class Log {
  5653. /**
  5654. * Adds a log record at the DEBUG level.
  5655. *
  5656. * @param string $message The log message
  5657. * @param array $context The log context
  5658. * @return bool Whether the record has been processed
  5659. * @static
  5660. */
  5661. public static function debug($message, $context = array())
  5662. {
  5663. /** @var \Monolog\Logger $instance */
  5664. return $instance->addDebug($message, $context);
  5665. }
  5666. /**
  5667. * Adds a log record at the INFO level.
  5668. *
  5669. * @param string $message The log message
  5670. * @param array $context The log context
  5671. * @return bool Whether the record has been processed
  5672. * @static
  5673. */
  5674. public static function info($message, $context = array())
  5675. {
  5676. /** @var \Monolog\Logger $instance */
  5677. return $instance->addInfo($message, $context);
  5678. }
  5679. /**
  5680. * Adds a log record at the NOTICE level.
  5681. *
  5682. * @param string $message The log message
  5683. * @param array $context The log context
  5684. * @return bool Whether the record has been processed
  5685. * @static
  5686. */
  5687. public static function notice($message, $context = array())
  5688. {
  5689. /** @var \Monolog\Logger $instance */
  5690. return $instance->addNotice($message, $context);
  5691. }
  5692. /**
  5693. * Adds a log record at the WARNING level.
  5694. *
  5695. * @param string $message The log message
  5696. * @param array $context The log context
  5697. * @return bool Whether the record has been processed
  5698. * @static
  5699. */
  5700. public static function warning($message, $context = array())
  5701. {
  5702. /** @var \Monolog\Logger $instance */
  5703. return $instance->addWarning($message, $context);
  5704. }
  5705. /**
  5706. * Adds a log record at the ERROR level.
  5707. *
  5708. * @param string $message The log message
  5709. * @param array $context The log context
  5710. * @return bool Whether the record has been processed
  5711. * @static
  5712. */
  5713. public static function error($message, $context = array())
  5714. {
  5715. /** @var \Monolog\Logger $instance */
  5716. return $instance->addError($message, $context);
  5717. }
  5718. /**
  5719. * Adds a log record at the CRITICAL level.
  5720. *
  5721. * @param string $message The log message
  5722. * @param array $context The log context
  5723. * @return bool Whether the record has been processed
  5724. * @static
  5725. */
  5726. public static function critical($message, $context = array())
  5727. {
  5728. /** @var \Monolog\Logger $instance */
  5729. return $instance->addCritical($message, $context);
  5730. }
  5731. /**
  5732. * Adds a log record at the ALERT level.
  5733. *
  5734. * @param string $message The log message
  5735. * @param array $context The log context
  5736. * @return bool Whether the record has been processed
  5737. * @static
  5738. */
  5739. public static function alert($message, $context = array())
  5740. {
  5741. /** @var \Monolog\Logger $instance */
  5742. return $instance->addAlert($message, $context);
  5743. }
  5744. /**
  5745. * Adds a log record at the EMERGENCY level.
  5746. *
  5747. * @param string $message The log message
  5748. * @param array $context The log context
  5749. * @return bool Whether the record has been processed
  5750. * @static
  5751. */
  5752. public static function emergency($message, $context = array())
  5753. {
  5754. /** @var \Monolog\Logger $instance */
  5755. return $instance->addEmergency($message, $context);
  5756. }
  5757. /**
  5758. * Log a message to the logs.
  5759. *
  5760. * @param string $level
  5761. * @param string $message
  5762. * @param array $context
  5763. * @return void
  5764. * @static
  5765. */
  5766. public static function log($level, $message, $context = array())
  5767. {
  5768. /** @var \Illuminate\Log\Writer $instance */
  5769. $instance->log($level, $message, $context);
  5770. }
  5771. /**
  5772. * Dynamically pass log calls into the writer.
  5773. *
  5774. * @param string $level
  5775. * @param string $message
  5776. * @param array $context
  5777. * @return void
  5778. * @static
  5779. */
  5780. public static function write($level, $message, $context = array())
  5781. {
  5782. /** @var \Illuminate\Log\Writer $instance */
  5783. $instance->write($level, $message, $context);
  5784. }
  5785. /**
  5786. * Register a file log handler.
  5787. *
  5788. * @param string $path
  5789. * @param string $level
  5790. * @return void
  5791. * @static
  5792. */
  5793. public static function useFiles($path, $level = 'debug')
  5794. {
  5795. /** @var \Illuminate\Log\Writer $instance */
  5796. $instance->useFiles($path, $level);
  5797. }
  5798. /**
  5799. * Register a daily file log handler.
  5800. *
  5801. * @param string $path
  5802. * @param int $days
  5803. * @param string $level
  5804. * @return void
  5805. * @static
  5806. */
  5807. public static function useDailyFiles($path, $days = 0, $level = 'debug')
  5808. {
  5809. /** @var \Illuminate\Log\Writer $instance */
  5810. $instance->useDailyFiles($path, $days, $level);
  5811. }
  5812. /**
  5813. * Register a Syslog handler.
  5814. *
  5815. * @param string $name
  5816. * @param string $level
  5817. * @param mixed $facility
  5818. * @return \Psr\Log\LoggerInterface
  5819. * @static
  5820. */
  5821. public static function useSyslog($name = 'laravel', $level = 'debug', $facility = 8)
  5822. {
  5823. /** @var \Illuminate\Log\Writer $instance */
  5824. return $instance->useSyslog($name, $level, $facility);
  5825. }
  5826. /**
  5827. * Register an error_log handler.
  5828. *
  5829. * @param string $level
  5830. * @param int $messageType
  5831. * @return void
  5832. * @static
  5833. */
  5834. public static function useErrorLog($level = 'debug', $messageType = 0)
  5835. {
  5836. /** @var \Illuminate\Log\Writer $instance */
  5837. $instance->useErrorLog($level, $messageType);
  5838. }
  5839. /**
  5840. * Register a new callback handler for when a log event is triggered.
  5841. *
  5842. * @param \Closure $callback
  5843. * @return void
  5844. * @throws \RuntimeException
  5845. * @static
  5846. */
  5847. public static function listen($callback)
  5848. {
  5849. /** @var \Illuminate\Log\Writer $instance */
  5850. $instance->listen($callback);
  5851. }
  5852. /**
  5853. * Get the underlying Monolog instance.
  5854. *
  5855. * @return \Monolog\Logger
  5856. * @static
  5857. */
  5858. public static function getMonolog()
  5859. {
  5860. /** @var \Illuminate\Log\Writer $instance */
  5861. return $instance->getMonolog();
  5862. }
  5863. /**
  5864. * Get the event dispatcher instance.
  5865. *
  5866. * @return \Illuminate\Contracts\Events\Dispatcher
  5867. * @static
  5868. */
  5869. public static function getEventDispatcher()
  5870. {
  5871. /** @var \Illuminate\Log\Writer $instance */
  5872. return $instance->getEventDispatcher();
  5873. }
  5874. /**
  5875. * Set the event dispatcher instance.
  5876. *
  5877. * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher
  5878. * @return void
  5879. * @static
  5880. */
  5881. public static function setEventDispatcher($dispatcher)
  5882. {
  5883. /** @var \Illuminate\Log\Writer $instance */
  5884. $instance->setEventDispatcher($dispatcher);
  5885. }
  5886. }
  5887. /**
  5888. *
  5889. *
  5890. * @see \Illuminate\Mail\Mailer
  5891. */
  5892. class Mail {
  5893. /**
  5894. * Set the global from address and name.
  5895. *
  5896. * @param string $address
  5897. * @param string|null $name
  5898. * @return void
  5899. * @static
  5900. */
  5901. public static function alwaysFrom($address, $name = null)
  5902. {
  5903. /** @var \Illuminate\Mail\Mailer $instance */
  5904. $instance->alwaysFrom($address, $name);
  5905. }
  5906. /**
  5907. * Set the global reply-to address and name.
  5908. *
  5909. * @param string $address
  5910. * @param string|null $name
  5911. * @return void
  5912. * @static
  5913. */
  5914. public static function alwaysReplyTo($address, $name = null)
  5915. {
  5916. /** @var \Illuminate\Mail\Mailer $instance */
  5917. $instance->alwaysReplyTo($address, $name);
  5918. }
  5919. /**
  5920. * Set the global to address and name.
  5921. *
  5922. * @param string $address
  5923. * @param string|null $name
  5924. * @return void
  5925. * @static
  5926. */
  5927. public static function alwaysTo($address, $name = null)
  5928. {
  5929. /** @var \Illuminate\Mail\Mailer $instance */
  5930. $instance->alwaysTo($address, $name);
  5931. }
  5932. /**
  5933. * Begin the process of mailing a mailable class instance.
  5934. *
  5935. * @param mixed $users
  5936. * @return \Illuminate\Mail\PendingMail
  5937. * @static
  5938. */
  5939. public static function to($users)
  5940. {
  5941. /** @var \Illuminate\Mail\Mailer $instance */
  5942. return $instance->to($users);
  5943. }
  5944. /**
  5945. * Begin the process of mailing a mailable class instance.
  5946. *
  5947. * @param mixed $users
  5948. * @return \Illuminate\Mail\PendingMail
  5949. * @static
  5950. */
  5951. public static function bcc($users)
  5952. {
  5953. /** @var \Illuminate\Mail\Mailer $instance */
  5954. return $instance->bcc($users);
  5955. }
  5956. /**
  5957. * Send a new message when only a raw text part.
  5958. *
  5959. * @param string $text
  5960. * @param mixed $callback
  5961. * @return void
  5962. * @static
  5963. */
  5964. public static function raw($text, $callback)
  5965. {
  5966. /** @var \Illuminate\Mail\Mailer $instance */
  5967. $instance->raw($text, $callback);
  5968. }
  5969. /**
  5970. * Send a new message when only a plain part.
  5971. *
  5972. * @param string $view
  5973. * @param array $data
  5974. * @param mixed $callback
  5975. * @return void
  5976. * @static
  5977. */
  5978. public static function plain($view, $data, $callback)
  5979. {
  5980. /** @var \Illuminate\Mail\Mailer $instance */
  5981. $instance->plain($view, $data, $callback);
  5982. }
  5983. /**
  5984. * Render the given message as a view.
  5985. *
  5986. * @param string|array $view
  5987. * @param array $data
  5988. * @return string
  5989. * @static
  5990. */
  5991. public static function render($view, $data = array())
  5992. {
  5993. /** @var \Illuminate\Mail\Mailer $instance */
  5994. return $instance->render($view, $data);
  5995. }
  5996. /**
  5997. * Send a new message using a view.
  5998. *
  5999. * @param string|array|\Illuminate\Mail\MailableContract $view
  6000. * @param array $data
  6001. * @param \Closure|string $callback
  6002. * @return void
  6003. * @static
  6004. */
  6005. public static function send($view, $data = array(), $callback = null)
  6006. {
  6007. /** @var \Illuminate\Mail\Mailer $instance */
  6008. $instance->send($view, $data, $callback);
  6009. }
  6010. /**
  6011. * Queue a new e-mail message for sending.
  6012. *
  6013. * @param string|array|\Illuminate\Mail\MailableContract $view
  6014. * @param string|null $queue
  6015. * @return mixed
  6016. * @static
  6017. */
  6018. public static function queue($view, $queue = null)
  6019. {
  6020. /** @var \Illuminate\Mail\Mailer $instance */
  6021. return $instance->queue($view, $queue);
  6022. }
  6023. /**
  6024. * Queue a new e-mail message for sending on the given queue.
  6025. *
  6026. * @param string $queue
  6027. * @param string|array $view
  6028. * @return mixed
  6029. * @static
  6030. */
  6031. public static function onQueue($queue, $view)
  6032. {
  6033. /** @var \Illuminate\Mail\Mailer $instance */
  6034. return $instance->onQueue($queue, $view);
  6035. }
  6036. /**
  6037. * Queue a new e-mail message for sending on the given queue.
  6038. *
  6039. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  6040. *
  6041. * @param string $queue
  6042. * @param string|array $view
  6043. * @return mixed
  6044. * @static
  6045. */
  6046. public static function queueOn($queue, $view)
  6047. {
  6048. /** @var \Illuminate\Mail\Mailer $instance */
  6049. return $instance->queueOn($queue, $view);
  6050. }
  6051. /**
  6052. * Queue a new e-mail message for sending after (n) seconds.
  6053. *
  6054. * @param \DateTimeInterface|\DateInterval|int $delay
  6055. * @param string|array|\Illuminate\Mail\MailableContract $view
  6056. * @param string|null $queue
  6057. * @return mixed
  6058. * @static
  6059. */
  6060. public static function later($delay, $view, $queue = null)
  6061. {
  6062. /** @var \Illuminate\Mail\Mailer $instance */
  6063. return $instance->later($delay, $view, $queue);
  6064. }
  6065. /**
  6066. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  6067. *
  6068. * @param string $queue
  6069. * @param \DateTimeInterface|\DateInterval|int $delay
  6070. * @param string|array $view
  6071. * @return mixed
  6072. * @static
  6073. */
  6074. public static function laterOn($queue, $delay, $view)
  6075. {
  6076. /** @var \Illuminate\Mail\Mailer $instance */
  6077. return $instance->laterOn($queue, $delay, $view);
  6078. }
  6079. /**
  6080. * Get the view factory instance.
  6081. *
  6082. * @return \Illuminate\Contracts\View\Factory
  6083. * @static
  6084. */
  6085. public static function getViewFactory()
  6086. {
  6087. /** @var \Illuminate\Mail\Mailer $instance */
  6088. return $instance->getViewFactory();
  6089. }
  6090. /**
  6091. * Get the Swift Mailer instance.
  6092. *
  6093. * @return \Swift_Mailer
  6094. * @static
  6095. */
  6096. public static function getSwiftMailer()
  6097. {
  6098. /** @var \Illuminate\Mail\Mailer $instance */
  6099. return $instance->getSwiftMailer();
  6100. }
  6101. /**
  6102. * Get the array of failed recipients.
  6103. *
  6104. * @return array
  6105. * @static
  6106. */
  6107. public static function failures()
  6108. {
  6109. /** @var \Illuminate\Mail\Mailer $instance */
  6110. return $instance->failures();
  6111. }
  6112. /**
  6113. * Set the Swift Mailer instance.
  6114. *
  6115. * @param \Swift_Mailer $swift
  6116. * @return void
  6117. * @static
  6118. */
  6119. public static function setSwiftMailer($swift)
  6120. {
  6121. /** @var \Illuminate\Mail\Mailer $instance */
  6122. $instance->setSwiftMailer($swift);
  6123. }
  6124. /**
  6125. * Set the queue manager instance.
  6126. *
  6127. * @param \Illuminate\Contracts\Queue\Factory $queue
  6128. * @return \Illuminate\Mail\Mailer
  6129. * @static
  6130. */
  6131. public static function setQueue($queue)
  6132. {
  6133. /** @var \Illuminate\Mail\Mailer $instance */
  6134. return $instance->setQueue($queue);
  6135. }
  6136. /**
  6137. * Register a custom macro.
  6138. *
  6139. * @param string $name
  6140. * @param object|callable $macro
  6141. * @return void
  6142. * @static
  6143. */
  6144. public static function macro($name, $macro)
  6145. {
  6146. \Illuminate\Mail\Mailer::macro($name, $macro);
  6147. }
  6148. /**
  6149. * Mix another object into the class.
  6150. *
  6151. * @param object $mixin
  6152. * @return void
  6153. * @static
  6154. */
  6155. public static function mixin($mixin)
  6156. {
  6157. \Illuminate\Mail\Mailer::mixin($mixin);
  6158. }
  6159. /**
  6160. * Checks if macro is registered.
  6161. *
  6162. * @param string $name
  6163. * @return bool
  6164. * @static
  6165. */
  6166. public static function hasMacro($name)
  6167. {
  6168. return \Illuminate\Mail\Mailer::hasMacro($name);
  6169. }
  6170. /**
  6171. * Assert if a mailable was sent based on a truth-test callback.
  6172. *
  6173. * @param string $mailable
  6174. * @param callable|int|null $callback
  6175. * @return void
  6176. * @static
  6177. */
  6178. public static function assertSent($mailable, $callback = null)
  6179. {
  6180. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6181. $instance->assertSent($mailable, $callback);
  6182. }
  6183. /**
  6184. * Determine if a mailable was not sent based on a truth-test callback.
  6185. *
  6186. * @param string $mailable
  6187. * @param callable|null $callback
  6188. * @return void
  6189. * @static
  6190. */
  6191. public static function assertNotSent($mailable, $callback = null)
  6192. {
  6193. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6194. $instance->assertNotSent($mailable, $callback);
  6195. }
  6196. /**
  6197. * Assert that no mailables were sent.
  6198. *
  6199. * @return void
  6200. * @static
  6201. */
  6202. public static function assertNothingSent()
  6203. {
  6204. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6205. $instance->assertNothingSent();
  6206. }
  6207. /**
  6208. * Assert if a mailable was queued based on a truth-test callback.
  6209. *
  6210. * @param string $mailable
  6211. * @param callable|int|null $callback
  6212. * @return void
  6213. * @static
  6214. */
  6215. public static function assertQueued($mailable, $callback = null)
  6216. {
  6217. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6218. $instance->assertQueued($mailable, $callback);
  6219. }
  6220. /**
  6221. * Determine if a mailable was not queued based on a truth-test callback.
  6222. *
  6223. * @param string $mailable
  6224. * @param callable|null $callback
  6225. * @return void
  6226. * @static
  6227. */
  6228. public static function assertNotQueued($mailable, $callback = null)
  6229. {
  6230. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6231. $instance->assertNotQueued($mailable, $callback);
  6232. }
  6233. /**
  6234. * Assert that no mailables were queued.
  6235. *
  6236. * @return void
  6237. * @static
  6238. */
  6239. public static function assertNothingQueued()
  6240. {
  6241. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6242. $instance->assertNothingQueued();
  6243. }
  6244. /**
  6245. * Get all of the mailables matching a truth-test callback.
  6246. *
  6247. * @param string $mailable
  6248. * @param callable|null $callback
  6249. * @return \Illuminate\Support\Collection
  6250. * @static
  6251. */
  6252. public static function sent($mailable, $callback = null)
  6253. {
  6254. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6255. return $instance->sent($mailable, $callback);
  6256. }
  6257. /**
  6258. * Determine if the given mailable has been sent.
  6259. *
  6260. * @param string $mailable
  6261. * @return bool
  6262. * @static
  6263. */
  6264. public static function hasSent($mailable)
  6265. {
  6266. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6267. return $instance->hasSent($mailable);
  6268. }
  6269. /**
  6270. * Get all of the queued mailables matching a truth-test callback.
  6271. *
  6272. * @param string $mailable
  6273. * @param callable|null $callback
  6274. * @return \Illuminate\Support\Collection
  6275. * @static
  6276. */
  6277. public static function queued($mailable, $callback = null)
  6278. {
  6279. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6280. return $instance->queued($mailable, $callback);
  6281. }
  6282. /**
  6283. * Determine if the given mailable has been queued.
  6284. *
  6285. * @param string $mailable
  6286. * @return bool
  6287. * @static
  6288. */
  6289. public static function hasQueued($mailable)
  6290. {
  6291. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6292. return $instance->hasQueued($mailable);
  6293. }
  6294. }
  6295. /**
  6296. *
  6297. *
  6298. * @see \Illuminate\Notifications\ChannelManager
  6299. */
  6300. class Notification {
  6301. /**
  6302. * Send the given notification to the given notifiable entities.
  6303. *
  6304. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6305. * @param mixed $notification
  6306. * @return void
  6307. * @static
  6308. */
  6309. public static function send($notifiables, $notification)
  6310. {
  6311. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6312. $instance->send($notifiables, $notification);
  6313. }
  6314. /**
  6315. * Send the given notification immediately.
  6316. *
  6317. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6318. * @param mixed $notification
  6319. * @param array|null $channels
  6320. * @return void
  6321. * @static
  6322. */
  6323. public static function sendNow($notifiables, $notification, $channels = null)
  6324. {
  6325. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6326. $instance->sendNow($notifiables, $notification, $channels);
  6327. }
  6328. /**
  6329. * Get a channel instance.
  6330. *
  6331. * @param string|null $name
  6332. * @return mixed
  6333. * @static
  6334. */
  6335. public static function channel($name = null)
  6336. {
  6337. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6338. return $instance->channel($name);
  6339. }
  6340. /**
  6341. * Get the default channel driver name.
  6342. *
  6343. * @return string
  6344. * @static
  6345. */
  6346. public static function getDefaultDriver()
  6347. {
  6348. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6349. return $instance->getDefaultDriver();
  6350. }
  6351. /**
  6352. * Get the default channel driver name.
  6353. *
  6354. * @return string
  6355. * @static
  6356. */
  6357. public static function deliversVia()
  6358. {
  6359. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6360. return $instance->deliversVia();
  6361. }
  6362. /**
  6363. * Set the default channel driver name.
  6364. *
  6365. * @param string $channel
  6366. * @return void
  6367. * @static
  6368. */
  6369. public static function deliverVia($channel)
  6370. {
  6371. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6372. $instance->deliverVia($channel);
  6373. }
  6374. /**
  6375. * Get a driver instance.
  6376. *
  6377. * @param string $driver
  6378. * @return mixed
  6379. * @static
  6380. */
  6381. public static function driver($driver = null)
  6382. {
  6383. //Method inherited from \Illuminate\Support\Manager
  6384. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6385. return $instance->driver($driver);
  6386. }
  6387. /**
  6388. * Register a custom driver creator Closure.
  6389. *
  6390. * @param string $driver
  6391. * @param \Closure $callback
  6392. * @return \Illuminate\Notifications\ChannelManager
  6393. * @static
  6394. */
  6395. public static function extend($driver, $callback)
  6396. {
  6397. //Method inherited from \Illuminate\Support\Manager
  6398. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6399. return $instance->extend($driver, $callback);
  6400. }
  6401. /**
  6402. * Get all of the created "drivers".
  6403. *
  6404. * @return array
  6405. * @static
  6406. */
  6407. public static function getDrivers()
  6408. {
  6409. //Method inherited from \Illuminate\Support\Manager
  6410. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6411. return $instance->getDrivers();
  6412. }
  6413. /**
  6414. * Assert if a notification was sent based on a truth-test callback.
  6415. *
  6416. * @param mixed $notifiable
  6417. * @param string $notification
  6418. * @param callable|null $callback
  6419. * @return void
  6420. * @static
  6421. */
  6422. public static function assertSentTo($notifiable, $notification, $callback = null)
  6423. {
  6424. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6425. $instance->assertSentTo($notifiable, $notification, $callback);
  6426. }
  6427. /**
  6428. * Assert if a notification was sent a number of times.
  6429. *
  6430. * @param mixed $notifiable
  6431. * @param string $notification
  6432. * @param int $times
  6433. * @return void
  6434. * @static
  6435. */
  6436. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  6437. {
  6438. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6439. $instance->assertSentToTimes($notifiable, $notification, $times);
  6440. }
  6441. /**
  6442. * Determine if a notification was sent based on a truth-test callback.
  6443. *
  6444. * @param mixed $notifiable
  6445. * @param string $notification
  6446. * @param callable|null $callback
  6447. * @return void
  6448. * @static
  6449. */
  6450. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  6451. {
  6452. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6453. $instance->assertNotSentTo($notifiable, $notification, $callback);
  6454. }
  6455. /**
  6456. * Assert that no notifications were sent.
  6457. *
  6458. * @return void
  6459. * @static
  6460. */
  6461. public static function assertNothingSent()
  6462. {
  6463. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6464. $instance->assertNothingSent();
  6465. }
  6466. /**
  6467. * Get all of the notifications matching a truth-test callback.
  6468. *
  6469. * @param mixed $notifiable
  6470. * @param string $notification
  6471. * @param callable|null $callback
  6472. * @return \Illuminate\Support\Collection
  6473. * @static
  6474. */
  6475. public static function sent($notifiable, $notification, $callback = null)
  6476. {
  6477. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6478. return $instance->sent($notifiable, $notification, $callback);
  6479. }
  6480. /**
  6481. * Determine if there are more notifications left to inspect.
  6482. *
  6483. * @param mixed $notifiable
  6484. * @param string $notification
  6485. * @return bool
  6486. * @static
  6487. */
  6488. public static function hasSent($notifiable, $notification)
  6489. {
  6490. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6491. return $instance->hasSent($notifiable, $notification);
  6492. }
  6493. }
  6494. /**
  6495. *
  6496. *
  6497. * @see \Illuminate\Auth\Passwords\PasswordBroker
  6498. */
  6499. class Password {
  6500. /**
  6501. * Attempt to get the broker from the local cache.
  6502. *
  6503. * @param string $name
  6504. * @return \Illuminate\Contracts\Auth\PasswordBroker
  6505. * @static
  6506. */
  6507. public static function broker($name = null)
  6508. {
  6509. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6510. return $instance->broker($name);
  6511. }
  6512. /**
  6513. * Get the default password broker name.
  6514. *
  6515. * @return string
  6516. * @static
  6517. */
  6518. public static function getDefaultDriver()
  6519. {
  6520. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6521. return $instance->getDefaultDriver();
  6522. }
  6523. /**
  6524. * Set the default password broker name.
  6525. *
  6526. * @param string $name
  6527. * @return void
  6528. * @static
  6529. */
  6530. public static function setDefaultDriver($name)
  6531. {
  6532. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6533. $instance->setDefaultDriver($name);
  6534. }
  6535. }
  6536. /**
  6537. *
  6538. *
  6539. * @see \Illuminate\Queue\QueueManager
  6540. * @see \Illuminate\Queue\Queue
  6541. */
  6542. class Queue {
  6543. /**
  6544. * Register an event listener for the before job event.
  6545. *
  6546. * @param mixed $callback
  6547. * @return void
  6548. * @static
  6549. */
  6550. public static function before($callback)
  6551. {
  6552. /** @var \Illuminate\Queue\QueueManager $instance */
  6553. $instance->before($callback);
  6554. }
  6555. /**
  6556. * Register an event listener for the after job event.
  6557. *
  6558. * @param mixed $callback
  6559. * @return void
  6560. * @static
  6561. */
  6562. public static function after($callback)
  6563. {
  6564. /** @var \Illuminate\Queue\QueueManager $instance */
  6565. $instance->after($callback);
  6566. }
  6567. /**
  6568. * Register an event listener for the exception occurred job event.
  6569. *
  6570. * @param mixed $callback
  6571. * @return void
  6572. * @static
  6573. */
  6574. public static function exceptionOccurred($callback)
  6575. {
  6576. /** @var \Illuminate\Queue\QueueManager $instance */
  6577. $instance->exceptionOccurred($callback);
  6578. }
  6579. /**
  6580. * Register an event listener for the daemon queue loop.
  6581. *
  6582. * @param mixed $callback
  6583. * @return void
  6584. * @static
  6585. */
  6586. public static function looping($callback)
  6587. {
  6588. /** @var \Illuminate\Queue\QueueManager $instance */
  6589. $instance->looping($callback);
  6590. }
  6591. /**
  6592. * Register an event listener for the failed job event.
  6593. *
  6594. * @param mixed $callback
  6595. * @return void
  6596. * @static
  6597. */
  6598. public static function failing($callback)
  6599. {
  6600. /** @var \Illuminate\Queue\QueueManager $instance */
  6601. $instance->failing($callback);
  6602. }
  6603. /**
  6604. * Register an event listener for the daemon queue stopping.
  6605. *
  6606. * @param mixed $callback
  6607. * @return void
  6608. * @static
  6609. */
  6610. public static function stopping($callback)
  6611. {
  6612. /** @var \Illuminate\Queue\QueueManager $instance */
  6613. $instance->stopping($callback);
  6614. }
  6615. /**
  6616. * Determine if the driver is connected.
  6617. *
  6618. * @param string $name
  6619. * @return bool
  6620. * @static
  6621. */
  6622. public static function connected($name = null)
  6623. {
  6624. /** @var \Illuminate\Queue\QueueManager $instance */
  6625. return $instance->connected($name);
  6626. }
  6627. /**
  6628. * Resolve a queue connection instance.
  6629. *
  6630. * @param string $name
  6631. * @return \Illuminate\Contracts\Queue\Queue
  6632. * @static
  6633. */
  6634. public static function connection($name = null)
  6635. {
  6636. /** @var \Illuminate\Queue\QueueManager $instance */
  6637. return $instance->connection($name);
  6638. }
  6639. /**
  6640. * Add a queue connection resolver.
  6641. *
  6642. * @param string $driver
  6643. * @param \Closure $resolver
  6644. * @return void
  6645. * @static
  6646. */
  6647. public static function extend($driver, $resolver)
  6648. {
  6649. /** @var \Illuminate\Queue\QueueManager $instance */
  6650. $instance->extend($driver, $resolver);
  6651. }
  6652. /**
  6653. * Add a queue connection resolver.
  6654. *
  6655. * @param string $driver
  6656. * @param \Closure $resolver
  6657. * @return void
  6658. * @static
  6659. */
  6660. public static function addConnector($driver, $resolver)
  6661. {
  6662. /** @var \Illuminate\Queue\QueueManager $instance */
  6663. $instance->addConnector($driver, $resolver);
  6664. }
  6665. /**
  6666. * Get the name of the default queue connection.
  6667. *
  6668. * @return string
  6669. * @static
  6670. */
  6671. public static function getDefaultDriver()
  6672. {
  6673. /** @var \Illuminate\Queue\QueueManager $instance */
  6674. return $instance->getDefaultDriver();
  6675. }
  6676. /**
  6677. * Set the name of the default queue connection.
  6678. *
  6679. * @param string $name
  6680. * @return void
  6681. * @static
  6682. */
  6683. public static function setDefaultDriver($name)
  6684. {
  6685. /** @var \Illuminate\Queue\QueueManager $instance */
  6686. $instance->setDefaultDriver($name);
  6687. }
  6688. /**
  6689. * Get the full name for the given connection.
  6690. *
  6691. * @param string $connection
  6692. * @return string
  6693. * @static
  6694. */
  6695. public static function getName($connection = null)
  6696. {
  6697. /** @var \Illuminate\Queue\QueueManager $instance */
  6698. return $instance->getName($connection);
  6699. }
  6700. /**
  6701. * Determine if the application is in maintenance mode.
  6702. *
  6703. * @return bool
  6704. * @static
  6705. */
  6706. public static function isDownForMaintenance()
  6707. {
  6708. /** @var \Illuminate\Queue\QueueManager $instance */
  6709. return $instance->isDownForMaintenance();
  6710. }
  6711. /**
  6712. * Assert if a job was pushed based on a truth-test callback.
  6713. *
  6714. * @param string $job
  6715. * @param callable|int|null $callback
  6716. * @return void
  6717. * @static
  6718. */
  6719. public static function assertPushed($job, $callback = null)
  6720. {
  6721. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6722. $instance->assertPushed($job, $callback);
  6723. }
  6724. /**
  6725. * Assert if a job was pushed based on a truth-test callback.
  6726. *
  6727. * @param string $queue
  6728. * @param string $job
  6729. * @param callable|null $callback
  6730. * @return void
  6731. * @static
  6732. */
  6733. public static function assertPushedOn($queue, $job, $callback = null)
  6734. {
  6735. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6736. $instance->assertPushedOn($queue, $job, $callback);
  6737. }
  6738. /**
  6739. * Determine if a job was pushed based on a truth-test callback.
  6740. *
  6741. * @param string $job
  6742. * @param callable|null $callback
  6743. * @return void
  6744. * @static
  6745. */
  6746. public static function assertNotPushed($job, $callback = null)
  6747. {
  6748. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6749. $instance->assertNotPushed($job, $callback);
  6750. }
  6751. /**
  6752. * Assert that no jobs were pushed.
  6753. *
  6754. * @return void
  6755. * @static
  6756. */
  6757. public static function assertNothingPushed()
  6758. {
  6759. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6760. $instance->assertNothingPushed();
  6761. }
  6762. /**
  6763. * Get all of the jobs matching a truth-test callback.
  6764. *
  6765. * @param string $job
  6766. * @param callable|null $callback
  6767. * @return \Illuminate\Support\Collection
  6768. * @static
  6769. */
  6770. public static function pushed($job, $callback = null)
  6771. {
  6772. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6773. return $instance->pushed($job, $callback);
  6774. }
  6775. /**
  6776. * Determine if there are any stored jobs for a given class.
  6777. *
  6778. * @param string $job
  6779. * @return bool
  6780. * @static
  6781. */
  6782. public static function hasPushed($job)
  6783. {
  6784. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6785. return $instance->hasPushed($job);
  6786. }
  6787. /**
  6788. * Get the size of the queue.
  6789. *
  6790. * @param string $queue
  6791. * @return int
  6792. * @static
  6793. */
  6794. public static function size($queue = null)
  6795. {
  6796. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6797. return $instance->size($queue);
  6798. }
  6799. /**
  6800. * Push a new job onto the queue.
  6801. *
  6802. * @param string $job
  6803. * @param mixed $data
  6804. * @param string $queue
  6805. * @return mixed
  6806. * @static
  6807. */
  6808. public static function push($job, $data = '', $queue = null)
  6809. {
  6810. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6811. return $instance->push($job, $data, $queue);
  6812. }
  6813. /**
  6814. * Push a raw payload onto the queue.
  6815. *
  6816. * @param string $payload
  6817. * @param string $queue
  6818. * @param array $options
  6819. * @return mixed
  6820. * @static
  6821. */
  6822. public static function pushRaw($payload, $queue = null, $options = array())
  6823. {
  6824. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6825. return $instance->pushRaw($payload, $queue, $options);
  6826. }
  6827. /**
  6828. * Push a new job onto the queue after a delay.
  6829. *
  6830. * @param \DateTime|int $delay
  6831. * @param string $job
  6832. * @param mixed $data
  6833. * @param string $queue
  6834. * @return mixed
  6835. * @static
  6836. */
  6837. public static function later($delay, $job, $data = '', $queue = null)
  6838. {
  6839. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6840. return $instance->later($delay, $job, $data, $queue);
  6841. }
  6842. /**
  6843. * Push a new job onto the queue.
  6844. *
  6845. * @param string $queue
  6846. * @param string $job
  6847. * @param mixed $data
  6848. * @return mixed
  6849. * @static
  6850. */
  6851. public static function pushOn($queue, $job, $data = '')
  6852. {
  6853. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6854. return $instance->pushOn($queue, $job, $data);
  6855. }
  6856. /**
  6857. * Push a new job onto the queue after a delay.
  6858. *
  6859. * @param string $queue
  6860. * @param \DateTime|int $delay
  6861. * @param string $job
  6862. * @param mixed $data
  6863. * @return mixed
  6864. * @static
  6865. */
  6866. public static function laterOn($queue, $delay, $job, $data = '')
  6867. {
  6868. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6869. return $instance->laterOn($queue, $delay, $job, $data);
  6870. }
  6871. /**
  6872. * Pop the next job off of the queue.
  6873. *
  6874. * @param string $queue
  6875. * @return \Illuminate\Contracts\Queue\Job|null
  6876. * @static
  6877. */
  6878. public static function pop($queue = null)
  6879. {
  6880. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6881. return $instance->pop($queue);
  6882. }
  6883. /**
  6884. * Push an array of jobs onto the queue.
  6885. *
  6886. * @param array $jobs
  6887. * @param mixed $data
  6888. * @param string $queue
  6889. * @return mixed
  6890. * @static
  6891. */
  6892. public static function bulk($jobs, $data = '', $queue = null)
  6893. {
  6894. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6895. return $instance->bulk($jobs, $data, $queue);
  6896. }
  6897. /**
  6898. * Get the connection name for the queue.
  6899. *
  6900. * @return string
  6901. * @static
  6902. */
  6903. public static function getConnectionName()
  6904. {
  6905. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6906. return $instance->getConnectionName();
  6907. }
  6908. /**
  6909. * Set the connection name for the queue.
  6910. *
  6911. * @param string $name
  6912. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  6913. * @static
  6914. */
  6915. public static function setConnectionName($name)
  6916. {
  6917. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6918. return $instance->setConnectionName($name);
  6919. }
  6920. /**
  6921. * Get the expiration timestamp for an object-based queue handler.
  6922. *
  6923. * @param mixed $job
  6924. * @return mixed
  6925. * @static
  6926. */
  6927. public static function getJobExpiration($job)
  6928. {
  6929. //Method inherited from \Illuminate\Queue\Queue
  6930. /** @var \Illuminate\Queue\NullQueue $instance */
  6931. return $instance->getJobExpiration($job);
  6932. }
  6933. /**
  6934. * Set the IoC container instance.
  6935. *
  6936. * @param \Illuminate\Container\Container $container
  6937. * @return void
  6938. * @static
  6939. */
  6940. public static function setContainer($container)
  6941. {
  6942. //Method inherited from \Illuminate\Queue\Queue
  6943. /** @var \Illuminate\Queue\NullQueue $instance */
  6944. $instance->setContainer($container);
  6945. }
  6946. }
  6947. /**
  6948. *
  6949. *
  6950. * @see \Illuminate\Routing\Redirector
  6951. */
  6952. class Redirect {
  6953. /**
  6954. * Create a new redirect response to the "home" route.
  6955. *
  6956. * @param int $status
  6957. * @return \Illuminate\Http\RedirectResponse
  6958. * @static
  6959. */
  6960. public static function home($status = 302)
  6961. {
  6962. /** @var \Illuminate\Routing\Redirector $instance */
  6963. return $instance->home($status);
  6964. }
  6965. /**
  6966. * Create a new redirect response to the previous location.
  6967. *
  6968. * @param int $status
  6969. * @param array $headers
  6970. * @param mixed $fallback
  6971. * @return \Illuminate\Http\RedirectResponse
  6972. * @static
  6973. */
  6974. public static function back($status = 302, $headers = array(), $fallback = false)
  6975. {
  6976. /** @var \Illuminate\Routing\Redirector $instance */
  6977. return $instance->back($status, $headers, $fallback);
  6978. }
  6979. /**
  6980. * Create a new redirect response to the current URI.
  6981. *
  6982. * @param int $status
  6983. * @param array $headers
  6984. * @return \Illuminate\Http\RedirectResponse
  6985. * @static
  6986. */
  6987. public static function refresh($status = 302, $headers = array())
  6988. {
  6989. /** @var \Illuminate\Routing\Redirector $instance */
  6990. return $instance->refresh($status, $headers);
  6991. }
  6992. /**
  6993. * Create a new redirect response, while putting the current URL in the session.
  6994. *
  6995. * @param string $path
  6996. * @param int $status
  6997. * @param array $headers
  6998. * @param bool $secure
  6999. * @return \Illuminate\Http\RedirectResponse
  7000. * @static
  7001. */
  7002. public static function guest($path, $status = 302, $headers = array(), $secure = null)
  7003. {
  7004. /** @var \Illuminate\Routing\Redirector $instance */
  7005. return $instance->guest($path, $status, $headers, $secure);
  7006. }
  7007. /**
  7008. * Create a new redirect response to the previously intended location.
  7009. *
  7010. * @param string $default
  7011. * @param int $status
  7012. * @param array $headers
  7013. * @param bool $secure
  7014. * @return \Illuminate\Http\RedirectResponse
  7015. * @static
  7016. */
  7017. public static function intended($default = '/', $status = 302, $headers = array(), $secure = null)
  7018. {
  7019. /** @var \Illuminate\Routing\Redirector $instance */
  7020. return $instance->intended($default, $status, $headers, $secure);
  7021. }
  7022. /**
  7023. * Create a new redirect response to the given path.
  7024. *
  7025. * @param string $path
  7026. * @param int $status
  7027. * @param array $headers
  7028. * @param bool $secure
  7029. * @return \Illuminate\Http\RedirectResponse
  7030. * @static
  7031. */
  7032. public static function to($path, $status = 302, $headers = array(), $secure = null)
  7033. {
  7034. /** @var \Illuminate\Routing\Redirector $instance */
  7035. return $instance->to($path, $status, $headers, $secure);
  7036. }
  7037. /**
  7038. * Create a new redirect response to an external URL (no validation).
  7039. *
  7040. * @param string $path
  7041. * @param int $status
  7042. * @param array $headers
  7043. * @return \Illuminate\Http\RedirectResponse
  7044. * @static
  7045. */
  7046. public static function away($path, $status = 302, $headers = array())
  7047. {
  7048. /** @var \Illuminate\Routing\Redirector $instance */
  7049. return $instance->away($path, $status, $headers);
  7050. }
  7051. /**
  7052. * Create a new redirect response to the given HTTPS path.
  7053. *
  7054. * @param string $path
  7055. * @param int $status
  7056. * @param array $headers
  7057. * @return \Illuminate\Http\RedirectResponse
  7058. * @static
  7059. */
  7060. public static function secure($path, $status = 302, $headers = array())
  7061. {
  7062. /** @var \Illuminate\Routing\Redirector $instance */
  7063. return $instance->secure($path, $status, $headers);
  7064. }
  7065. /**
  7066. * Create a new redirect response to a named route.
  7067. *
  7068. * @param string $route
  7069. * @param array $parameters
  7070. * @param int $status
  7071. * @param array $headers
  7072. * @return \Illuminate\Http\RedirectResponse
  7073. * @static
  7074. */
  7075. public static function route($route, $parameters = array(), $status = 302, $headers = array())
  7076. {
  7077. /** @var \Illuminate\Routing\Redirector $instance */
  7078. return $instance->route($route, $parameters, $status, $headers);
  7079. }
  7080. /**
  7081. * Create a new redirect response to a controller action.
  7082. *
  7083. * @param string $action
  7084. * @param array $parameters
  7085. * @param int $status
  7086. * @param array $headers
  7087. * @return \Illuminate\Http\RedirectResponse
  7088. * @static
  7089. */
  7090. public static function action($action, $parameters = array(), $status = 302, $headers = array())
  7091. {
  7092. /** @var \Illuminate\Routing\Redirector $instance */
  7093. return $instance->action($action, $parameters, $status, $headers);
  7094. }
  7095. /**
  7096. * Get the URL generator instance.
  7097. *
  7098. * @return \Illuminate\Routing\UrlGenerator
  7099. * @static
  7100. */
  7101. public static function getUrlGenerator()
  7102. {
  7103. /** @var \Illuminate\Routing\Redirector $instance */
  7104. return $instance->getUrlGenerator();
  7105. }
  7106. /**
  7107. * Set the active session store.
  7108. *
  7109. * @param \Illuminate\Session\Store $session
  7110. * @return void
  7111. * @static
  7112. */
  7113. public static function setSession($session)
  7114. {
  7115. /** @var \Illuminate\Routing\Redirector $instance */
  7116. $instance->setSession($session);
  7117. }
  7118. /**
  7119. * Register a custom macro.
  7120. *
  7121. * @param string $name
  7122. * @param object|callable $macro
  7123. * @return void
  7124. * @static
  7125. */
  7126. public static function macro($name, $macro)
  7127. {
  7128. \Illuminate\Routing\Redirector::macro($name, $macro);
  7129. }
  7130. /**
  7131. * Mix another object into the class.
  7132. *
  7133. * @param object $mixin
  7134. * @return void
  7135. * @static
  7136. */
  7137. public static function mixin($mixin)
  7138. {
  7139. \Illuminate\Routing\Redirector::mixin($mixin);
  7140. }
  7141. /**
  7142. * Checks if macro is registered.
  7143. *
  7144. * @param string $name
  7145. * @return bool
  7146. * @static
  7147. */
  7148. public static function hasMacro($name)
  7149. {
  7150. return \Illuminate\Routing\Redirector::hasMacro($name);
  7151. }
  7152. }
  7153. /**
  7154. *
  7155. *
  7156. * @see \Illuminate\Redis\RedisManager
  7157. * @see \Illuminate\Contracts\Redis\Factory
  7158. */
  7159. class Redis {
  7160. /**
  7161. * Get a Redis connection by name.
  7162. *
  7163. * @param string|null $name
  7164. * @return \Illuminate\Redis\Connections\Connection
  7165. * @static
  7166. */
  7167. public static function connection($name = null)
  7168. {
  7169. /** @var \Illuminate\Redis\RedisManager $instance */
  7170. return $instance->connection($name);
  7171. }
  7172. /**
  7173. * Resolve the given connection by name.
  7174. *
  7175. * @param string|null $name
  7176. * @return \Illuminate\Redis\Connections\Connection
  7177. * @throws \InvalidArgumentException
  7178. * @static
  7179. */
  7180. public static function resolve($name = null)
  7181. {
  7182. /** @var \Illuminate\Redis\RedisManager $instance */
  7183. return $instance->resolve($name);
  7184. }
  7185. /**
  7186. * Return all of the created connections.
  7187. *
  7188. * @return array
  7189. * @static
  7190. */
  7191. public static function connections()
  7192. {
  7193. /** @var \Illuminate\Redis\RedisManager $instance */
  7194. return $instance->connections();
  7195. }
  7196. }
  7197. /**
  7198. *
  7199. *
  7200. * @see \Illuminate\Http\Request
  7201. */
  7202. class Request {
  7203. /**
  7204. * Create a new Illuminate HTTP request from server variables.
  7205. *
  7206. * @return static
  7207. * @static
  7208. */
  7209. public static function capture()
  7210. {
  7211. return \Illuminate\Http\Request::capture();
  7212. }
  7213. /**
  7214. * Return the Request instance.
  7215. *
  7216. * @return \Illuminate\Http\Request
  7217. * @static
  7218. */
  7219. public static function instance()
  7220. {
  7221. /** @var \Illuminate\Http\Request $instance */
  7222. return $instance->instance();
  7223. }
  7224. /**
  7225. * Get the request method.
  7226. *
  7227. * @return string
  7228. * @static
  7229. */
  7230. public static function method()
  7231. {
  7232. /** @var \Illuminate\Http\Request $instance */
  7233. return $instance->method();
  7234. }
  7235. /**
  7236. * Get the root URL for the application.
  7237. *
  7238. * @return string
  7239. * @static
  7240. */
  7241. public static function root()
  7242. {
  7243. /** @var \Illuminate\Http\Request $instance */
  7244. return $instance->root();
  7245. }
  7246. /**
  7247. * Get the URL (no query string) for the request.
  7248. *
  7249. * @return string
  7250. * @static
  7251. */
  7252. public static function url()
  7253. {
  7254. /** @var \Illuminate\Http\Request $instance */
  7255. return $instance->url();
  7256. }
  7257. /**
  7258. * Get the full URL for the request.
  7259. *
  7260. * @return string
  7261. * @static
  7262. */
  7263. public static function fullUrl()
  7264. {
  7265. /** @var \Illuminate\Http\Request $instance */
  7266. return $instance->fullUrl();
  7267. }
  7268. /**
  7269. * Get the full URL for the request with the added query string parameters.
  7270. *
  7271. * @param array $query
  7272. * @return string
  7273. * @static
  7274. */
  7275. public static function fullUrlWithQuery($query)
  7276. {
  7277. /** @var \Illuminate\Http\Request $instance */
  7278. return $instance->fullUrlWithQuery($query);
  7279. }
  7280. /**
  7281. * Get the current path info for the request.
  7282. *
  7283. * @return string
  7284. * @static
  7285. */
  7286. public static function path()
  7287. {
  7288. /** @var \Illuminate\Http\Request $instance */
  7289. return $instance->path();
  7290. }
  7291. /**
  7292. * Get the current decoded path info for the request.
  7293. *
  7294. * @return string
  7295. * @static
  7296. */
  7297. public static function decodedPath()
  7298. {
  7299. /** @var \Illuminate\Http\Request $instance */
  7300. return $instance->decodedPath();
  7301. }
  7302. /**
  7303. * Get a segment from the URI (1 based index).
  7304. *
  7305. * @param int $index
  7306. * @param string|null $default
  7307. * @return string|null
  7308. * @static
  7309. */
  7310. public static function segment($index, $default = null)
  7311. {
  7312. /** @var \Illuminate\Http\Request $instance */
  7313. return $instance->segment($index, $default);
  7314. }
  7315. /**
  7316. * Get all of the segments for the request path.
  7317. *
  7318. * @return array
  7319. * @static
  7320. */
  7321. public static function segments()
  7322. {
  7323. /** @var \Illuminate\Http\Request $instance */
  7324. return $instance->segments();
  7325. }
  7326. /**
  7327. * Determine if the current request URI matches a pattern.
  7328. *
  7329. * @param mixed $patterns
  7330. * @return bool
  7331. * @static
  7332. */
  7333. public static function is($patterns = null)
  7334. {
  7335. /** @var \Illuminate\Http\Request $instance */
  7336. return $instance->is($patterns);
  7337. }
  7338. /**
  7339. * Determine if the route name matches a given pattern.
  7340. *
  7341. * @param mixed $patterns
  7342. * @return bool
  7343. * @static
  7344. */
  7345. public static function routeIs($patterns = null)
  7346. {
  7347. /** @var \Illuminate\Http\Request $instance */
  7348. return $instance->routeIs($patterns);
  7349. }
  7350. /**
  7351. * Determine if the current request URL and query string matches a pattern.
  7352. *
  7353. * @param mixed $patterns
  7354. * @return bool
  7355. * @static
  7356. */
  7357. public static function fullUrlIs($patterns = null)
  7358. {
  7359. /** @var \Illuminate\Http\Request $instance */
  7360. return $instance->fullUrlIs($patterns);
  7361. }
  7362. /**
  7363. * Determine if the request is the result of an AJAX call.
  7364. *
  7365. * @return bool
  7366. * @static
  7367. */
  7368. public static function ajax()
  7369. {
  7370. /** @var \Illuminate\Http\Request $instance */
  7371. return $instance->ajax();
  7372. }
  7373. /**
  7374. * Determine if the request is the result of an PJAX call.
  7375. *
  7376. * @return bool
  7377. * @static
  7378. */
  7379. public static function pjax()
  7380. {
  7381. /** @var \Illuminate\Http\Request $instance */
  7382. return $instance->pjax();
  7383. }
  7384. /**
  7385. * Determine if the request is over HTTPS.
  7386. *
  7387. * @return bool
  7388. * @static
  7389. */
  7390. public static function secure()
  7391. {
  7392. /** @var \Illuminate\Http\Request $instance */
  7393. return $instance->secure();
  7394. }
  7395. /**
  7396. * Get the client IP address.
  7397. *
  7398. * @return string
  7399. * @static
  7400. */
  7401. public static function ip()
  7402. {
  7403. /** @var \Illuminate\Http\Request $instance */
  7404. return $instance->ip();
  7405. }
  7406. /**
  7407. * Get the client IP addresses.
  7408. *
  7409. * @return array
  7410. * @static
  7411. */
  7412. public static function ips()
  7413. {
  7414. /** @var \Illuminate\Http\Request $instance */
  7415. return $instance->ips();
  7416. }
  7417. /**
  7418. * Get the client user agent.
  7419. *
  7420. * @return string
  7421. * @static
  7422. */
  7423. public static function userAgent()
  7424. {
  7425. /** @var \Illuminate\Http\Request $instance */
  7426. return $instance->userAgent();
  7427. }
  7428. /**
  7429. * Merge new input into the current request's input array.
  7430. *
  7431. * @param array $input
  7432. * @return \Illuminate\Http\Request
  7433. * @static
  7434. */
  7435. public static function merge($input)
  7436. {
  7437. /** @var \Illuminate\Http\Request $instance */
  7438. return $instance->merge($input);
  7439. }
  7440. /**
  7441. * Replace the input for the current request.
  7442. *
  7443. * @param array $input
  7444. * @return \Illuminate\Http\Request
  7445. * @static
  7446. */
  7447. public static function replace($input)
  7448. {
  7449. /** @var \Illuminate\Http\Request $instance */
  7450. return $instance->replace($input);
  7451. }
  7452. /**
  7453. * Get the JSON payload for the request.
  7454. *
  7455. * @param string $key
  7456. * @param mixed $default
  7457. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  7458. * @static
  7459. */
  7460. public static function json($key = null, $default = null)
  7461. {
  7462. /** @var \Illuminate\Http\Request $instance */
  7463. return $instance->json($key, $default);
  7464. }
  7465. /**
  7466. * Create an Illuminate request from a Symfony instance.
  7467. *
  7468. * @param \Symfony\Component\HttpFoundation\Request $request
  7469. * @return \Illuminate\Http\Request
  7470. * @static
  7471. */
  7472. public static function createFromBase($request)
  7473. {
  7474. return \Illuminate\Http\Request::createFromBase($request);
  7475. }
  7476. /**
  7477. * Clones a request and overrides some of its parameters.
  7478. *
  7479. * @param array $query The GET parameters
  7480. * @param array $request The POST parameters
  7481. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7482. * @param array $cookies The COOKIE parameters
  7483. * @param array $files The FILES parameters
  7484. * @param array $server The SERVER parameters
  7485. * @return static
  7486. * @static
  7487. */
  7488. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  7489. {
  7490. /** @var \Illuminate\Http\Request $instance */
  7491. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  7492. }
  7493. /**
  7494. * Get the session associated with the request.
  7495. *
  7496. * @return \Illuminate\Session\Store
  7497. * @throws \RuntimeException
  7498. * @static
  7499. */
  7500. public static function session()
  7501. {
  7502. /** @var \Illuminate\Http\Request $instance */
  7503. return $instance->session();
  7504. }
  7505. /**
  7506. * Set the session instance on the request.
  7507. *
  7508. * @param \Illuminate\Contracts\Session\Session $session
  7509. * @return void
  7510. * @static
  7511. */
  7512. public static function setLaravelSession($session)
  7513. {
  7514. /** @var \Illuminate\Http\Request $instance */
  7515. $instance->setLaravelSession($session);
  7516. }
  7517. /**
  7518. * Get the user making the request.
  7519. *
  7520. * @param string|null $guard
  7521. * @return mixed
  7522. * @static
  7523. */
  7524. public static function user($guard = null)
  7525. {
  7526. /** @var \Illuminate\Http\Request $instance */
  7527. return $instance->user($guard);
  7528. }
  7529. /**
  7530. * Get the route handling the request.
  7531. *
  7532. * @param string|null $param
  7533. * @return \Illuminate\Routing\Route|object|string
  7534. * @static
  7535. */
  7536. public static function route($param = null)
  7537. {
  7538. /** @var \Illuminate\Http\Request $instance */
  7539. return $instance->route($param);
  7540. }
  7541. /**
  7542. * Get a unique fingerprint for the request / route / IP address.
  7543. *
  7544. * @return string
  7545. * @throws \RuntimeException
  7546. * @static
  7547. */
  7548. public static function fingerprint()
  7549. {
  7550. /** @var \Illuminate\Http\Request $instance */
  7551. return $instance->fingerprint();
  7552. }
  7553. /**
  7554. * Set the JSON payload for the request.
  7555. *
  7556. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  7557. * @return \Illuminate\Http\Request
  7558. * @static
  7559. */
  7560. public static function setJson($json)
  7561. {
  7562. /** @var \Illuminate\Http\Request $instance */
  7563. return $instance->setJson($json);
  7564. }
  7565. /**
  7566. * Get the user resolver callback.
  7567. *
  7568. * @return \Closure
  7569. * @static
  7570. */
  7571. public static function getUserResolver()
  7572. {
  7573. /** @var \Illuminate\Http\Request $instance */
  7574. return $instance->getUserResolver();
  7575. }
  7576. /**
  7577. * Set the user resolver callback.
  7578. *
  7579. * @param \Closure $callback
  7580. * @return \Illuminate\Http\Request
  7581. * @static
  7582. */
  7583. public static function setUserResolver($callback)
  7584. {
  7585. /** @var \Illuminate\Http\Request $instance */
  7586. return $instance->setUserResolver($callback);
  7587. }
  7588. /**
  7589. * Get the route resolver callback.
  7590. *
  7591. * @return \Closure
  7592. * @static
  7593. */
  7594. public static function getRouteResolver()
  7595. {
  7596. /** @var \Illuminate\Http\Request $instance */
  7597. return $instance->getRouteResolver();
  7598. }
  7599. /**
  7600. * Set the route resolver callback.
  7601. *
  7602. * @param \Closure $callback
  7603. * @return \Illuminate\Http\Request
  7604. * @static
  7605. */
  7606. public static function setRouteResolver($callback)
  7607. {
  7608. /** @var \Illuminate\Http\Request $instance */
  7609. return $instance->setRouteResolver($callback);
  7610. }
  7611. /**
  7612. * Get all of the input and files for the request.
  7613. *
  7614. * @return array
  7615. * @static
  7616. */
  7617. public static function toArray()
  7618. {
  7619. /** @var \Illuminate\Http\Request $instance */
  7620. return $instance->toArray();
  7621. }
  7622. /**
  7623. * Determine if the given offset exists.
  7624. *
  7625. * @param string $offset
  7626. * @return bool
  7627. * @static
  7628. */
  7629. public static function offsetExists($offset)
  7630. {
  7631. /** @var \Illuminate\Http\Request $instance */
  7632. return $instance->offsetExists($offset);
  7633. }
  7634. /**
  7635. * Get the value at the given offset.
  7636. *
  7637. * @param string $offset
  7638. * @return mixed
  7639. * @static
  7640. */
  7641. public static function offsetGet($offset)
  7642. {
  7643. /** @var \Illuminate\Http\Request $instance */
  7644. return $instance->offsetGet($offset);
  7645. }
  7646. /**
  7647. * Set the value at the given offset.
  7648. *
  7649. * @param string $offset
  7650. * @param mixed $value
  7651. * @return void
  7652. * @static
  7653. */
  7654. public static function offsetSet($offset, $value)
  7655. {
  7656. /** @var \Illuminate\Http\Request $instance */
  7657. $instance->offsetSet($offset, $value);
  7658. }
  7659. /**
  7660. * Remove the value at the given offset.
  7661. *
  7662. * @param string $offset
  7663. * @return void
  7664. * @static
  7665. */
  7666. public static function offsetUnset($offset)
  7667. {
  7668. /** @var \Illuminate\Http\Request $instance */
  7669. $instance->offsetUnset($offset);
  7670. }
  7671. /**
  7672. * Sets the parameters for this request.
  7673. *
  7674. * This method also re-initializes all properties.
  7675. *
  7676. * @param array $query The GET parameters
  7677. * @param array $request The POST parameters
  7678. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7679. * @param array $cookies The COOKIE parameters
  7680. * @param array $files The FILES parameters
  7681. * @param array $server The SERVER parameters
  7682. * @param string|resource|null $content The raw body data
  7683. * @static
  7684. */
  7685. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  7686. {
  7687. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7688. /** @var \Illuminate\Http\Request $instance */
  7689. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  7690. }
  7691. /**
  7692. * Creates a new request with values from PHP's super globals.
  7693. *
  7694. * @return static
  7695. * @static
  7696. */
  7697. public static function createFromGlobals()
  7698. {
  7699. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7700. return \Illuminate\Http\Request::createFromGlobals();
  7701. }
  7702. /**
  7703. * Creates a Request based on a given URI and configuration.
  7704. *
  7705. * The information contained in the URI always take precedence
  7706. * over the other information (server and parameters).
  7707. *
  7708. * @param string $uri The URI
  7709. * @param string $method The HTTP method
  7710. * @param array $parameters The query (GET) or request (POST) parameters
  7711. * @param array $cookies The request cookies ($_COOKIE)
  7712. * @param array $files The request files ($_FILES)
  7713. * @param array $server The server parameters ($_SERVER)
  7714. * @param string|resource|null $content The raw body data
  7715. * @return static
  7716. * @static
  7717. */
  7718. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  7719. {
  7720. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7721. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  7722. }
  7723. /**
  7724. * Sets a callable able to create a Request instance.
  7725. *
  7726. * This is mainly useful when you need to override the Request class
  7727. * to keep BC with an existing system. It should not be used for any
  7728. * other purpose.
  7729. *
  7730. * @param callable|null $callable A PHP callable
  7731. * @static
  7732. */
  7733. public static function setFactory($callable)
  7734. {
  7735. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7736. return \Illuminate\Http\Request::setFactory($callable);
  7737. }
  7738. /**
  7739. * Overrides the PHP global variables according to this request instance.
  7740. *
  7741. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  7742. * $_FILES is never overridden, see rfc1867
  7743. *
  7744. * @static
  7745. */
  7746. public static function overrideGlobals()
  7747. {
  7748. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7749. /** @var \Illuminate\Http\Request $instance */
  7750. return $instance->overrideGlobals();
  7751. }
  7752. /**
  7753. * Sets a list of trusted proxies.
  7754. *
  7755. * You should only list the reverse proxies that you manage directly.
  7756. *
  7757. * @param array $proxies A list of trusted proxies
  7758. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  7759. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  7760. * @static
  7761. */
  7762. public static function setTrustedProxies($proxies)
  7763. {
  7764. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7765. return \Illuminate\Http\Request::setTrustedProxies($proxies);
  7766. }
  7767. /**
  7768. * Gets the list of trusted proxies.
  7769. *
  7770. * @return array An array of trusted proxies
  7771. * @static
  7772. */
  7773. public static function getTrustedProxies()
  7774. {
  7775. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7776. return \Illuminate\Http\Request::getTrustedProxies();
  7777. }
  7778. /**
  7779. * Gets the set of trusted headers from trusted proxies.
  7780. *
  7781. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  7782. * @static
  7783. */
  7784. public static function getTrustedHeaderSet()
  7785. {
  7786. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7787. return \Illuminate\Http\Request::getTrustedHeaderSet();
  7788. }
  7789. /**
  7790. * Sets a list of trusted host patterns.
  7791. *
  7792. * You should only list the hosts you manage using regexs.
  7793. *
  7794. * @param array $hostPatterns A list of trusted host patterns
  7795. * @static
  7796. */
  7797. public static function setTrustedHosts($hostPatterns)
  7798. {
  7799. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7800. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  7801. }
  7802. /**
  7803. * Gets the list of trusted host patterns.
  7804. *
  7805. * @return array An array of trusted host patterns
  7806. * @static
  7807. */
  7808. public static function getTrustedHosts()
  7809. {
  7810. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7811. return \Illuminate\Http\Request::getTrustedHosts();
  7812. }
  7813. /**
  7814. * Sets the name for trusted headers.
  7815. *
  7816. * The following header keys are supported:
  7817. *
  7818. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  7819. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getHost())
  7820. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getPort())
  7821. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  7822. * * Request::HEADER_FORWARDED: defaults to Forwarded (see RFC 7239)
  7823. *
  7824. * Setting an empty value allows to disable the trusted header for the given key.
  7825. *
  7826. * @param string $key The header key
  7827. * @param string $value The header name
  7828. * @throws \InvalidArgumentException
  7829. * @deprecated since version 3.3, to be removed in 4.0. Use the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.
  7830. * @static
  7831. */
  7832. public static function setTrustedHeaderName($key, $value)
  7833. {
  7834. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7835. return \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  7836. }
  7837. /**
  7838. * Gets the trusted proxy header name.
  7839. *
  7840. * @param string $key The header key
  7841. * @return string The header name
  7842. * @throws \InvalidArgumentException
  7843. * @deprecated since version 3.3, to be removed in 4.0. Use the Request::getTrustedHeaderSet() method instead.
  7844. * @static
  7845. */
  7846. public static function getTrustedHeaderName($key)
  7847. {
  7848. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7849. return \Illuminate\Http\Request::getTrustedHeaderName($key);
  7850. }
  7851. /**
  7852. * Normalizes a query string.
  7853. *
  7854. * It builds a normalized query string, where keys/value pairs are alphabetized,
  7855. * have consistent escaping and unneeded delimiters are removed.
  7856. *
  7857. * @param string $qs Query string
  7858. * @return string A normalized query string for the Request
  7859. * @static
  7860. */
  7861. public static function normalizeQueryString($qs)
  7862. {
  7863. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7864. return \Illuminate\Http\Request::normalizeQueryString($qs);
  7865. }
  7866. /**
  7867. * Enables support for the _method request parameter to determine the intended HTTP method.
  7868. *
  7869. * Be warned that enabling this feature might lead to CSRF issues in your code.
  7870. * Check that you are using CSRF tokens when required.
  7871. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  7872. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  7873. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  7874. *
  7875. * The HTTP method can only be overridden when the real HTTP method is POST.
  7876. *
  7877. * @static
  7878. */
  7879. public static function enableHttpMethodParameterOverride()
  7880. {
  7881. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7882. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  7883. }
  7884. /**
  7885. * Checks whether support for the _method request parameter is enabled.
  7886. *
  7887. * @return bool True when the _method request parameter is enabled, false otherwise
  7888. * @static
  7889. */
  7890. public static function getHttpMethodParameterOverride()
  7891. {
  7892. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7893. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  7894. }
  7895. /**
  7896. * Gets a "parameter" value from any bag.
  7897. *
  7898. * This method is mainly useful for libraries that want to provide some flexibility. If you don't need the
  7899. * flexibility in controllers, it is better to explicitly get request parameters from the appropriate
  7900. * public property instead (attributes, query, request).
  7901. *
  7902. * Order of precedence: PATH (routing placeholders or custom attributes), GET, BODY
  7903. *
  7904. * @param string $key The key
  7905. * @param mixed $default The default value if the parameter key does not exist
  7906. * @return mixed
  7907. * @static
  7908. */
  7909. public static function get($key, $default = null)
  7910. {
  7911. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7912. /** @var \Illuminate\Http\Request $instance */
  7913. return $instance->get($key, $default);
  7914. }
  7915. /**
  7916. * Gets the Session.
  7917. *
  7918. * @return \Symfony\Component\HttpFoundation\SessionInterface|null The session
  7919. * @static
  7920. */
  7921. public static function getSession()
  7922. {
  7923. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7924. /** @var \Illuminate\Http\Request $instance */
  7925. return $instance->getSession();
  7926. }
  7927. /**
  7928. * Whether the request contains a Session which was started in one of the
  7929. * previous requests.
  7930. *
  7931. * @return bool
  7932. * @static
  7933. */
  7934. public static function hasPreviousSession()
  7935. {
  7936. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7937. /** @var \Illuminate\Http\Request $instance */
  7938. return $instance->hasPreviousSession();
  7939. }
  7940. /**
  7941. * Whether the request contains a Session object.
  7942. *
  7943. * This method does not give any information about the state of the session object,
  7944. * like whether the session is started or not. It is just a way to check if this Request
  7945. * is associated with a Session instance.
  7946. *
  7947. * @return bool true when the Request contains a Session object, false otherwise
  7948. * @static
  7949. */
  7950. public static function hasSession()
  7951. {
  7952. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7953. /** @var \Illuminate\Http\Request $instance */
  7954. return $instance->hasSession();
  7955. }
  7956. /**
  7957. * Sets the Session.
  7958. *
  7959. * @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
  7960. * @static
  7961. */
  7962. public static function setSession($session)
  7963. {
  7964. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7965. /** @var \Illuminate\Http\Request $instance */
  7966. return $instance->setSession($session);
  7967. }
  7968. /**
  7969. * Returns the client IP addresses.
  7970. *
  7971. * In the returned array the most trusted IP address is first, and the
  7972. * least trusted one last. The "real" client IP address is the last one,
  7973. * but this is also the least trusted one. Trusted proxies are stripped.
  7974. *
  7975. * Use this method carefully; you should use getClientIp() instead.
  7976. *
  7977. * @return array The client IP addresses
  7978. * @see getClientIp()
  7979. * @static
  7980. */
  7981. public static function getClientIps()
  7982. {
  7983. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7984. /** @var \Illuminate\Http\Request $instance */
  7985. return $instance->getClientIps();
  7986. }
  7987. /**
  7988. * Returns the client IP address.
  7989. *
  7990. * This method can read the client IP address from the "X-Forwarded-For" header
  7991. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  7992. * header value is a comma+space separated list of IP addresses, the left-most
  7993. * being the original client, and each successive proxy that passed the request
  7994. * adding the IP address where it received the request from.
  7995. *
  7996. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  7997. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  7998. * argument of the Request::setTrustedProxies() method instead.
  7999. *
  8000. * @return string|null The client IP address
  8001. * @see getClientIps()
  8002. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  8003. * @static
  8004. */
  8005. public static function getClientIp()
  8006. {
  8007. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8008. /** @var \Illuminate\Http\Request $instance */
  8009. return $instance->getClientIp();
  8010. }
  8011. /**
  8012. * Returns current script name.
  8013. *
  8014. * @return string
  8015. * @static
  8016. */
  8017. public static function getScriptName()
  8018. {
  8019. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8020. /** @var \Illuminate\Http\Request $instance */
  8021. return $instance->getScriptName();
  8022. }
  8023. /**
  8024. * Returns the path being requested relative to the executed script.
  8025. *
  8026. * The path info always starts with a /.
  8027. *
  8028. * Suppose this request is instantiated from /mysite on localhost:
  8029. *
  8030. * * http://localhost/mysite returns an empty string
  8031. * * http://localhost/mysite/about returns '/about'
  8032. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  8033. * * http://localhost/mysite/about?var=1 returns '/about'
  8034. *
  8035. * @return string The raw path (i.e. not urldecoded)
  8036. * @static
  8037. */
  8038. public static function getPathInfo()
  8039. {
  8040. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8041. /** @var \Illuminate\Http\Request $instance */
  8042. return $instance->getPathInfo();
  8043. }
  8044. /**
  8045. * Returns the root path from which this request is executed.
  8046. *
  8047. * Suppose that an index.php file instantiates this request object:
  8048. *
  8049. * * http://localhost/index.php returns an empty string
  8050. * * http://localhost/index.php/page returns an empty string
  8051. * * http://localhost/web/index.php returns '/web'
  8052. * * http://localhost/we%20b/index.php returns '/we%20b'
  8053. *
  8054. * @return string The raw path (i.e. not urldecoded)
  8055. * @static
  8056. */
  8057. public static function getBasePath()
  8058. {
  8059. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8060. /** @var \Illuminate\Http\Request $instance */
  8061. return $instance->getBasePath();
  8062. }
  8063. /**
  8064. * Returns the root URL from which this request is executed.
  8065. *
  8066. * The base URL never ends with a /.
  8067. *
  8068. * This is similar to getBasePath(), except that it also includes the
  8069. * script filename (e.g. index.php) if one exists.
  8070. *
  8071. * @return string The raw URL (i.e. not urldecoded)
  8072. * @static
  8073. */
  8074. public static function getBaseUrl()
  8075. {
  8076. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8077. /** @var \Illuminate\Http\Request $instance */
  8078. return $instance->getBaseUrl();
  8079. }
  8080. /**
  8081. * Gets the request's scheme.
  8082. *
  8083. * @return string
  8084. * @static
  8085. */
  8086. public static function getScheme()
  8087. {
  8088. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8089. /** @var \Illuminate\Http\Request $instance */
  8090. return $instance->getScheme();
  8091. }
  8092. /**
  8093. * Returns the port on which the request is made.
  8094. *
  8095. * This method can read the client port from the "X-Forwarded-Port" header
  8096. * when trusted proxies were set via "setTrustedProxies()".
  8097. *
  8098. * The "X-Forwarded-Port" header must contain the client port.
  8099. *
  8100. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  8101. * configure it via via the $trustedHeaderSet argument of the
  8102. * Request::setTrustedProxies() method instead.
  8103. *
  8104. * @return int|string can be a string if fetched from the server bag
  8105. * @static
  8106. */
  8107. public static function getPort()
  8108. {
  8109. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8110. /** @var \Illuminate\Http\Request $instance */
  8111. return $instance->getPort();
  8112. }
  8113. /**
  8114. * Returns the user.
  8115. *
  8116. * @return string|null
  8117. * @static
  8118. */
  8119. public static function getUser()
  8120. {
  8121. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8122. /** @var \Illuminate\Http\Request $instance */
  8123. return $instance->getUser();
  8124. }
  8125. /**
  8126. * Returns the password.
  8127. *
  8128. * @return string|null
  8129. * @static
  8130. */
  8131. public static function getPassword()
  8132. {
  8133. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8134. /** @var \Illuminate\Http\Request $instance */
  8135. return $instance->getPassword();
  8136. }
  8137. /**
  8138. * Gets the user info.
  8139. *
  8140. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  8141. * @static
  8142. */
  8143. public static function getUserInfo()
  8144. {
  8145. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8146. /** @var \Illuminate\Http\Request $instance */
  8147. return $instance->getUserInfo();
  8148. }
  8149. /**
  8150. * Returns the HTTP host being requested.
  8151. *
  8152. * The port name will be appended to the host if it's non-standard.
  8153. *
  8154. * @return string
  8155. * @static
  8156. */
  8157. public static function getHttpHost()
  8158. {
  8159. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8160. /** @var \Illuminate\Http\Request $instance */
  8161. return $instance->getHttpHost();
  8162. }
  8163. /**
  8164. * Returns the requested URI (path and query string).
  8165. *
  8166. * @return string The raw URI (i.e. not URI decoded)
  8167. * @static
  8168. */
  8169. public static function getRequestUri()
  8170. {
  8171. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8172. /** @var \Illuminate\Http\Request $instance */
  8173. return $instance->getRequestUri();
  8174. }
  8175. /**
  8176. * Gets the scheme and HTTP host.
  8177. *
  8178. * If the URL was called with basic authentication, the user
  8179. * and the password are not added to the generated string.
  8180. *
  8181. * @return string The scheme and HTTP host
  8182. * @static
  8183. */
  8184. public static function getSchemeAndHttpHost()
  8185. {
  8186. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8187. /** @var \Illuminate\Http\Request $instance */
  8188. return $instance->getSchemeAndHttpHost();
  8189. }
  8190. /**
  8191. * Generates a normalized URI (URL) for the Request.
  8192. *
  8193. * @return string A normalized URI (URL) for the Request
  8194. * @see getQueryString()
  8195. * @static
  8196. */
  8197. public static function getUri()
  8198. {
  8199. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8200. /** @var \Illuminate\Http\Request $instance */
  8201. return $instance->getUri();
  8202. }
  8203. /**
  8204. * Generates a normalized URI for the given path.
  8205. *
  8206. * @param string $path A path to use instead of the current one
  8207. * @return string The normalized URI for the path
  8208. * @static
  8209. */
  8210. public static function getUriForPath($path)
  8211. {
  8212. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8213. /** @var \Illuminate\Http\Request $instance */
  8214. return $instance->getUriForPath($path);
  8215. }
  8216. /**
  8217. * Returns the path as relative reference from the current Request path.
  8218. *
  8219. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  8220. * Both paths must be absolute and not contain relative parts.
  8221. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  8222. * Furthermore, they can be used to reduce the link size in documents.
  8223. *
  8224. * Example target paths, given a base path of "/a/b/c/d":
  8225. * - "/a/b/c/d" -> ""
  8226. * - "/a/b/c/" -> "./"
  8227. * - "/a/b/" -> "../"
  8228. * - "/a/b/c/other" -> "other"
  8229. * - "/a/x/y" -> "../../x/y"
  8230. *
  8231. * @param string $path The target path
  8232. * @return string The relative target path
  8233. * @static
  8234. */
  8235. public static function getRelativeUriForPath($path)
  8236. {
  8237. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8238. /** @var \Illuminate\Http\Request $instance */
  8239. return $instance->getRelativeUriForPath($path);
  8240. }
  8241. /**
  8242. * Generates the normalized query string for the Request.
  8243. *
  8244. * It builds a normalized query string, where keys/value pairs are alphabetized
  8245. * and have consistent escaping.
  8246. *
  8247. * @return string|null A normalized query string for the Request
  8248. * @static
  8249. */
  8250. public static function getQueryString()
  8251. {
  8252. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8253. /** @var \Illuminate\Http\Request $instance */
  8254. return $instance->getQueryString();
  8255. }
  8256. /**
  8257. * Checks whether the request is secure or not.
  8258. *
  8259. * This method can read the client protocol from the "X-Forwarded-Proto" header
  8260. * when trusted proxies were set via "setTrustedProxies()".
  8261. *
  8262. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  8263. *
  8264. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  8265. * ("SSL_HTTPS" for instance), configure it via the $trustedHeaderSet
  8266. * argument of the Request::setTrustedProxies() method instead.
  8267. *
  8268. * @return bool
  8269. * @static
  8270. */
  8271. public static function isSecure()
  8272. {
  8273. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8274. /** @var \Illuminate\Http\Request $instance */
  8275. return $instance->isSecure();
  8276. }
  8277. /**
  8278. * Returns the host name.
  8279. *
  8280. * This method can read the client host name from the "X-Forwarded-Host" header
  8281. * when trusted proxies were set via "setTrustedProxies()".
  8282. *
  8283. * The "X-Forwarded-Host" header must contain the client host name.
  8284. *
  8285. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  8286. * configure it via the $trustedHeaderSet argument of the
  8287. * Request::setTrustedProxies() method instead.
  8288. *
  8289. * @return string
  8290. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  8291. * @static
  8292. */
  8293. public static function getHost()
  8294. {
  8295. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8296. /** @var \Illuminate\Http\Request $instance */
  8297. return $instance->getHost();
  8298. }
  8299. /**
  8300. * Sets the request method.
  8301. *
  8302. * @param string $method
  8303. * @static
  8304. */
  8305. public static function setMethod($method)
  8306. {
  8307. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8308. /** @var \Illuminate\Http\Request $instance */
  8309. return $instance->setMethod($method);
  8310. }
  8311. /**
  8312. * Gets the request "intended" method.
  8313. *
  8314. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  8315. * then it is used to determine the "real" intended HTTP method.
  8316. *
  8317. * The _method request parameter can also be used to determine the HTTP method,
  8318. * but only if enableHttpMethodParameterOverride() has been called.
  8319. *
  8320. * The method is always an uppercased string.
  8321. *
  8322. * @return string The request method
  8323. * @see getRealMethod()
  8324. * @static
  8325. */
  8326. public static function getMethod()
  8327. {
  8328. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8329. /** @var \Illuminate\Http\Request $instance */
  8330. return $instance->getMethod();
  8331. }
  8332. /**
  8333. * Gets the "real" request method.
  8334. *
  8335. * @return string The request method
  8336. * @see getMethod()
  8337. * @static
  8338. */
  8339. public static function getRealMethod()
  8340. {
  8341. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8342. /** @var \Illuminate\Http\Request $instance */
  8343. return $instance->getRealMethod();
  8344. }
  8345. /**
  8346. * Gets the mime type associated with the format.
  8347. *
  8348. * @param string $format The format
  8349. * @return string|null The associated mime type (null if not found)
  8350. * @static
  8351. */
  8352. public static function getMimeType($format)
  8353. {
  8354. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8355. /** @var \Illuminate\Http\Request $instance */
  8356. return $instance->getMimeType($format);
  8357. }
  8358. /**
  8359. * Gets the mime types associated with the format.
  8360. *
  8361. * @param string $format The format
  8362. * @return array The associated mime types
  8363. * @static
  8364. */
  8365. public static function getMimeTypes($format)
  8366. {
  8367. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8368. return \Illuminate\Http\Request::getMimeTypes($format);
  8369. }
  8370. /**
  8371. * Gets the format associated with the mime type.
  8372. *
  8373. * @param string $mimeType The associated mime type
  8374. * @return string|null The format (null if not found)
  8375. * @static
  8376. */
  8377. public static function getFormat($mimeType)
  8378. {
  8379. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8380. /** @var \Illuminate\Http\Request $instance */
  8381. return $instance->getFormat($mimeType);
  8382. }
  8383. /**
  8384. * Associates a format with mime types.
  8385. *
  8386. * @param string $format The format
  8387. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  8388. * @static
  8389. */
  8390. public static function setFormat($format, $mimeTypes)
  8391. {
  8392. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8393. /** @var \Illuminate\Http\Request $instance */
  8394. return $instance->setFormat($format, $mimeTypes);
  8395. }
  8396. /**
  8397. * Gets the request format.
  8398. *
  8399. * Here is the process to determine the format:
  8400. *
  8401. * * format defined by the user (with setRequestFormat())
  8402. * * _format request attribute
  8403. * * $default
  8404. *
  8405. * @param string|null $default The default format
  8406. * @return string The request format
  8407. * @static
  8408. */
  8409. public static function getRequestFormat($default = 'html')
  8410. {
  8411. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8412. /** @var \Illuminate\Http\Request $instance */
  8413. return $instance->getRequestFormat($default);
  8414. }
  8415. /**
  8416. * Sets the request format.
  8417. *
  8418. * @param string $format The request format
  8419. * @static
  8420. */
  8421. public static function setRequestFormat($format)
  8422. {
  8423. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8424. /** @var \Illuminate\Http\Request $instance */
  8425. return $instance->setRequestFormat($format);
  8426. }
  8427. /**
  8428. * Gets the format associated with the request.
  8429. *
  8430. * @return string|null The format (null if no content type is present)
  8431. * @static
  8432. */
  8433. public static function getContentType()
  8434. {
  8435. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8436. /** @var \Illuminate\Http\Request $instance */
  8437. return $instance->getContentType();
  8438. }
  8439. /**
  8440. * Sets the default locale.
  8441. *
  8442. * @param string $locale
  8443. * @static
  8444. */
  8445. public static function setDefaultLocale($locale)
  8446. {
  8447. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8448. /** @var \Illuminate\Http\Request $instance */
  8449. return $instance->setDefaultLocale($locale);
  8450. }
  8451. /**
  8452. * Get the default locale.
  8453. *
  8454. * @return string
  8455. * @static
  8456. */
  8457. public static function getDefaultLocale()
  8458. {
  8459. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8460. /** @var \Illuminate\Http\Request $instance */
  8461. return $instance->getDefaultLocale();
  8462. }
  8463. /**
  8464. * Sets the locale.
  8465. *
  8466. * @param string $locale
  8467. * @static
  8468. */
  8469. public static function setLocale($locale)
  8470. {
  8471. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8472. /** @var \Illuminate\Http\Request $instance */
  8473. return $instance->setLocale($locale);
  8474. }
  8475. /**
  8476. * Get the locale.
  8477. *
  8478. * @return string
  8479. * @static
  8480. */
  8481. public static function getLocale()
  8482. {
  8483. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8484. /** @var \Illuminate\Http\Request $instance */
  8485. return $instance->getLocale();
  8486. }
  8487. /**
  8488. * Checks if the request method is of specified type.
  8489. *
  8490. * @param string $method Uppercase request method (GET, POST etc)
  8491. * @return bool
  8492. * @static
  8493. */
  8494. public static function isMethod($method)
  8495. {
  8496. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8497. /** @var \Illuminate\Http\Request $instance */
  8498. return $instance->isMethod($method);
  8499. }
  8500. /**
  8501. * Checks whether or not the method is safe.
  8502. *
  8503. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  8504. * @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default.
  8505. * @return bool
  8506. * @static
  8507. */
  8508. public static function isMethodSafe()
  8509. {
  8510. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8511. /** @var \Illuminate\Http\Request $instance */
  8512. return $instance->isMethodSafe();
  8513. }
  8514. /**
  8515. * Checks whether or not the method is idempotent.
  8516. *
  8517. * @return bool
  8518. * @static
  8519. */
  8520. public static function isMethodIdempotent()
  8521. {
  8522. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8523. /** @var \Illuminate\Http\Request $instance */
  8524. return $instance->isMethodIdempotent();
  8525. }
  8526. /**
  8527. * Checks whether the method is cacheable or not.
  8528. *
  8529. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  8530. * @return bool True for GET and HEAD, false otherwise
  8531. * @static
  8532. */
  8533. public static function isMethodCacheable()
  8534. {
  8535. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8536. /** @var \Illuminate\Http\Request $instance */
  8537. return $instance->isMethodCacheable();
  8538. }
  8539. /**
  8540. * Returns the protocol version.
  8541. *
  8542. * If the application is behind a proxy, the protocol version used in the
  8543. * requests between the client and the proxy and between the proxy and the
  8544. * server might be different. This returns the former (from the "Via" header)
  8545. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  8546. * the latter (from the "SERVER_PROTOCOL" server parameter).
  8547. *
  8548. * @return string
  8549. * @static
  8550. */
  8551. public static function getProtocolVersion()
  8552. {
  8553. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8554. /** @var \Illuminate\Http\Request $instance */
  8555. return $instance->getProtocolVersion();
  8556. }
  8557. /**
  8558. * Returns the request body content.
  8559. *
  8560. * @param bool $asResource If true, a resource will be returned
  8561. * @return string|resource The request body content or a resource to read the body stream
  8562. * @throws \LogicException
  8563. * @static
  8564. */
  8565. public static function getContent($asResource = false)
  8566. {
  8567. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8568. /** @var \Illuminate\Http\Request $instance */
  8569. return $instance->getContent($asResource);
  8570. }
  8571. /**
  8572. * Gets the Etags.
  8573. *
  8574. * @return array The entity tags
  8575. * @static
  8576. */
  8577. public static function getETags()
  8578. {
  8579. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8580. /** @var \Illuminate\Http\Request $instance */
  8581. return $instance->getETags();
  8582. }
  8583. /**
  8584. *
  8585. *
  8586. * @return bool
  8587. * @static
  8588. */
  8589. public static function isNoCache()
  8590. {
  8591. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8592. /** @var \Illuminate\Http\Request $instance */
  8593. return $instance->isNoCache();
  8594. }
  8595. /**
  8596. * Returns the preferred language.
  8597. *
  8598. * @param array $locales An array of ordered available locales
  8599. * @return string|null The preferred locale
  8600. * @static
  8601. */
  8602. public static function getPreferredLanguage($locales = null)
  8603. {
  8604. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8605. /** @var \Illuminate\Http\Request $instance */
  8606. return $instance->getPreferredLanguage($locales);
  8607. }
  8608. /**
  8609. * Gets a list of languages acceptable by the client browser.
  8610. *
  8611. * @return array Languages ordered in the user browser preferences
  8612. * @static
  8613. */
  8614. public static function getLanguages()
  8615. {
  8616. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8617. /** @var \Illuminate\Http\Request $instance */
  8618. return $instance->getLanguages();
  8619. }
  8620. /**
  8621. * Gets a list of charsets acceptable by the client browser.
  8622. *
  8623. * @return array List of charsets in preferable order
  8624. * @static
  8625. */
  8626. public static function getCharsets()
  8627. {
  8628. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8629. /** @var \Illuminate\Http\Request $instance */
  8630. return $instance->getCharsets();
  8631. }
  8632. /**
  8633. * Gets a list of encodings acceptable by the client browser.
  8634. *
  8635. * @return array List of encodings in preferable order
  8636. * @static
  8637. */
  8638. public static function getEncodings()
  8639. {
  8640. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8641. /** @var \Illuminate\Http\Request $instance */
  8642. return $instance->getEncodings();
  8643. }
  8644. /**
  8645. * Gets a list of content types acceptable by the client browser.
  8646. *
  8647. * @return array List of content types in preferable order
  8648. * @static
  8649. */
  8650. public static function getAcceptableContentTypes()
  8651. {
  8652. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8653. /** @var \Illuminate\Http\Request $instance */
  8654. return $instance->getAcceptableContentTypes();
  8655. }
  8656. /**
  8657. * Returns true if the request is a XMLHttpRequest.
  8658. *
  8659. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  8660. * It is known to work with common JavaScript frameworks:
  8661. *
  8662. * @see http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  8663. * @return bool true if the request is an XMLHttpRequest, false otherwise
  8664. * @static
  8665. */
  8666. public static function isXmlHttpRequest()
  8667. {
  8668. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8669. /** @var \Illuminate\Http\Request $instance */
  8670. return $instance->isXmlHttpRequest();
  8671. }
  8672. /**
  8673. * Indicates whether this request originated from a trusted proxy.
  8674. *
  8675. * This can be useful to determine whether or not to trust the
  8676. * contents of a proxy-specific header.
  8677. *
  8678. * @return bool true if the request came from a trusted proxy, false otherwise
  8679. * @static
  8680. */
  8681. public static function isFromTrustedProxy()
  8682. {
  8683. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8684. /** @var \Illuminate\Http\Request $instance */
  8685. return $instance->isFromTrustedProxy();
  8686. }
  8687. /**
  8688. * Determine if the given content types match.
  8689. *
  8690. * @param string $actual
  8691. * @param string $type
  8692. * @return bool
  8693. * @static
  8694. */
  8695. public static function matchesType($actual, $type)
  8696. {
  8697. return \Illuminate\Http\Request::matchesType($actual, $type);
  8698. }
  8699. /**
  8700. * Determine if the request is sending JSON.
  8701. *
  8702. * @return bool
  8703. * @static
  8704. */
  8705. public static function isJson()
  8706. {
  8707. /** @var \Illuminate\Http\Request $instance */
  8708. return $instance->isJson();
  8709. }
  8710. /**
  8711. * Determine if the current request probably expects a JSON response.
  8712. *
  8713. * @return bool
  8714. * @static
  8715. */
  8716. public static function expectsJson()
  8717. {
  8718. /** @var \Illuminate\Http\Request $instance */
  8719. return $instance->expectsJson();
  8720. }
  8721. /**
  8722. * Determine if the current request is asking for JSON in return.
  8723. *
  8724. * @return bool
  8725. * @static
  8726. */
  8727. public static function wantsJson()
  8728. {
  8729. /** @var \Illuminate\Http\Request $instance */
  8730. return $instance->wantsJson();
  8731. }
  8732. /**
  8733. * Determines whether the current requests accepts a given content type.
  8734. *
  8735. * @param string|array $contentTypes
  8736. * @return bool
  8737. * @static
  8738. */
  8739. public static function accepts($contentTypes)
  8740. {
  8741. /** @var \Illuminate\Http\Request $instance */
  8742. return $instance->accepts($contentTypes);
  8743. }
  8744. /**
  8745. * Return the most suitable content type from the given array based on content negotiation.
  8746. *
  8747. * @param string|array $contentTypes
  8748. * @return string|null
  8749. * @static
  8750. */
  8751. public static function prefers($contentTypes)
  8752. {
  8753. /** @var \Illuminate\Http\Request $instance */
  8754. return $instance->prefers($contentTypes);
  8755. }
  8756. /**
  8757. * Determines whether a request accepts JSON.
  8758. *
  8759. * @return bool
  8760. * @static
  8761. */
  8762. public static function acceptsJson()
  8763. {
  8764. /** @var \Illuminate\Http\Request $instance */
  8765. return $instance->acceptsJson();
  8766. }
  8767. /**
  8768. * Determines whether a request accepts HTML.
  8769. *
  8770. * @return bool
  8771. * @static
  8772. */
  8773. public static function acceptsHtml()
  8774. {
  8775. /** @var \Illuminate\Http\Request $instance */
  8776. return $instance->acceptsHtml();
  8777. }
  8778. /**
  8779. * Get the data format expected in the response.
  8780. *
  8781. * @param string $default
  8782. * @return string
  8783. * @static
  8784. */
  8785. public static function format($default = 'html')
  8786. {
  8787. /** @var \Illuminate\Http\Request $instance */
  8788. return $instance->format($default);
  8789. }
  8790. /**
  8791. * Retrieve an old input item.
  8792. *
  8793. * @param string $key
  8794. * @param string|array|null $default
  8795. * @return string|array
  8796. * @static
  8797. */
  8798. public static function old($key = null, $default = null)
  8799. {
  8800. /** @var \Illuminate\Http\Request $instance */
  8801. return $instance->old($key, $default);
  8802. }
  8803. /**
  8804. * Flash the input for the current request to the session.
  8805. *
  8806. * @return void
  8807. * @static
  8808. */
  8809. public static function flash()
  8810. {
  8811. /** @var \Illuminate\Http\Request $instance */
  8812. $instance->flash();
  8813. }
  8814. /**
  8815. * Flash only some of the input to the session.
  8816. *
  8817. * @param array|mixed $keys
  8818. * @return void
  8819. * @static
  8820. */
  8821. public static function flashOnly($keys)
  8822. {
  8823. /** @var \Illuminate\Http\Request $instance */
  8824. $instance->flashOnly($keys);
  8825. }
  8826. /**
  8827. * Flash only some of the input to the session.
  8828. *
  8829. * @param array|mixed $keys
  8830. * @return void
  8831. * @static
  8832. */
  8833. public static function flashExcept($keys)
  8834. {
  8835. /** @var \Illuminate\Http\Request $instance */
  8836. $instance->flashExcept($keys);
  8837. }
  8838. /**
  8839. * Flush all of the old input from the session.
  8840. *
  8841. * @return void
  8842. * @static
  8843. */
  8844. public static function flush()
  8845. {
  8846. /** @var \Illuminate\Http\Request $instance */
  8847. $instance->flush();
  8848. }
  8849. /**
  8850. * Retrieve a server variable from the request.
  8851. *
  8852. * @param string $key
  8853. * @param string|array|null $default
  8854. * @return string|array
  8855. * @static
  8856. */
  8857. public static function server($key = null, $default = null)
  8858. {
  8859. /** @var \Illuminate\Http\Request $instance */
  8860. return $instance->server($key, $default);
  8861. }
  8862. /**
  8863. * Determine if a header is set on the request.
  8864. *
  8865. * @param string $key
  8866. * @return bool
  8867. * @static
  8868. */
  8869. public static function hasHeader($key)
  8870. {
  8871. /** @var \Illuminate\Http\Request $instance */
  8872. return $instance->hasHeader($key);
  8873. }
  8874. /**
  8875. * Retrieve a header from the request.
  8876. *
  8877. * @param string $key
  8878. * @param string|array|null $default
  8879. * @return string|array
  8880. * @static
  8881. */
  8882. public static function header($key = null, $default = null)
  8883. {
  8884. /** @var \Illuminate\Http\Request $instance */
  8885. return $instance->header($key, $default);
  8886. }
  8887. /**
  8888. * Get the bearer token from the request headers.
  8889. *
  8890. * @return string|null
  8891. * @static
  8892. */
  8893. public static function bearerToken()
  8894. {
  8895. /** @var \Illuminate\Http\Request $instance */
  8896. return $instance->bearerToken();
  8897. }
  8898. /**
  8899. * Determine if the request contains a given input item key.
  8900. *
  8901. * @param string|array $key
  8902. * @return bool
  8903. * @static
  8904. */
  8905. public static function exists($key)
  8906. {
  8907. /** @var \Illuminate\Http\Request $instance */
  8908. return $instance->exists($key);
  8909. }
  8910. /**
  8911. * Determine if the request contains a given input item key.
  8912. *
  8913. * @param string|array $key
  8914. * @return bool
  8915. * @static
  8916. */
  8917. public static function has($key)
  8918. {
  8919. /** @var \Illuminate\Http\Request $instance */
  8920. return $instance->has($key);
  8921. }
  8922. /**
  8923. * Determine if the request contains any of the given inputs.
  8924. *
  8925. * @param mixed $key
  8926. * @return bool
  8927. * @static
  8928. */
  8929. public static function hasAny($keys = null)
  8930. {
  8931. /** @var \Illuminate\Http\Request $instance */
  8932. return $instance->hasAny($keys);
  8933. }
  8934. /**
  8935. * Determine if the request contains a non-empty value for an input item.
  8936. *
  8937. * @param string|array $key
  8938. * @return bool
  8939. * @static
  8940. */
  8941. public static function filled($key)
  8942. {
  8943. /** @var \Illuminate\Http\Request $instance */
  8944. return $instance->filled($key);
  8945. }
  8946. /**
  8947. * Get the keys for all of the input and files.
  8948. *
  8949. * @return array
  8950. * @static
  8951. */
  8952. public static function keys()
  8953. {
  8954. /** @var \Illuminate\Http\Request $instance */
  8955. return $instance->keys();
  8956. }
  8957. /**
  8958. * Get all of the input and files for the request.
  8959. *
  8960. * @param array|mixed $keys
  8961. * @return array
  8962. * @static
  8963. */
  8964. public static function all($keys = null)
  8965. {
  8966. /** @var \Illuminate\Http\Request $instance */
  8967. return $instance->all($keys);
  8968. }
  8969. /**
  8970. * Retrieve an input item from the request.
  8971. *
  8972. * @param string $key
  8973. * @param string|array|null $default
  8974. * @return string|array
  8975. * @static
  8976. */
  8977. public static function input($key = null, $default = null)
  8978. {
  8979. /** @var \Illuminate\Http\Request $instance */
  8980. return $instance->input($key, $default);
  8981. }
  8982. /**
  8983. * Get a subset containing the provided keys with values from the input data.
  8984. *
  8985. * @param array|mixed $keys
  8986. * @return array
  8987. * @static
  8988. */
  8989. public static function only($keys)
  8990. {
  8991. /** @var \Illuminate\Http\Request $instance */
  8992. return $instance->only($keys);
  8993. }
  8994. /**
  8995. * Get all of the input except for a specified array of items.
  8996. *
  8997. * @param array|mixed $keys
  8998. * @return array
  8999. * @static
  9000. */
  9001. public static function except($keys)
  9002. {
  9003. /** @var \Illuminate\Http\Request $instance */
  9004. return $instance->except($keys);
  9005. }
  9006. /**
  9007. * Retrieve a query string item from the request.
  9008. *
  9009. * @param string $key
  9010. * @param string|array|null $default
  9011. * @return string|array
  9012. * @static
  9013. */
  9014. public static function query($key = null, $default = null)
  9015. {
  9016. /** @var \Illuminate\Http\Request $instance */
  9017. return $instance->query($key, $default);
  9018. }
  9019. /**
  9020. * Retrieve a request payload item from the request.
  9021. *
  9022. * @param string $key
  9023. * @param string|array|null $default
  9024. * @return string|array
  9025. * @static
  9026. */
  9027. public static function post($key = null, $default = null)
  9028. {
  9029. /** @var \Illuminate\Http\Request $instance */
  9030. return $instance->post($key, $default);
  9031. }
  9032. /**
  9033. * Determine if a cookie is set on the request.
  9034. *
  9035. * @param string $key
  9036. * @return bool
  9037. * @static
  9038. */
  9039. public static function hasCookie($key)
  9040. {
  9041. /** @var \Illuminate\Http\Request $instance */
  9042. return $instance->hasCookie($key);
  9043. }
  9044. /**
  9045. * Retrieve a cookie from the request.
  9046. *
  9047. * @param string $key
  9048. * @param string|array|null $default
  9049. * @return string|array
  9050. * @static
  9051. */
  9052. public static function cookie($key = null, $default = null)
  9053. {
  9054. /** @var \Illuminate\Http\Request $instance */
  9055. return $instance->cookie($key, $default);
  9056. }
  9057. /**
  9058. * Get an array of all of the files on the request.
  9059. *
  9060. * @return array
  9061. * @static
  9062. */
  9063. public static function allFiles()
  9064. {
  9065. /** @var \Illuminate\Http\Request $instance */
  9066. return $instance->allFiles();
  9067. }
  9068. /**
  9069. * Determine if the uploaded data contains a file.
  9070. *
  9071. * @param string $key
  9072. * @return bool
  9073. * @static
  9074. */
  9075. public static function hasFile($key)
  9076. {
  9077. /** @var \Illuminate\Http\Request $instance */
  9078. return $instance->hasFile($key);
  9079. }
  9080. /**
  9081. * Retrieve a file from the request.
  9082. *
  9083. * @param string $key
  9084. * @param mixed $default
  9085. * @return \Illuminate\Http\UploadedFile|array|null
  9086. * @static
  9087. */
  9088. public static function file($key = null, $default = null)
  9089. {
  9090. /** @var \Illuminate\Http\Request $instance */
  9091. return $instance->file($key, $default);
  9092. }
  9093. /**
  9094. * Register a custom macro.
  9095. *
  9096. * @param string $name
  9097. * @param object|callable $macro
  9098. * @return void
  9099. * @static
  9100. */
  9101. public static function macro($name, $macro)
  9102. {
  9103. \Illuminate\Http\Request::macro($name, $macro);
  9104. }
  9105. /**
  9106. * Mix another object into the class.
  9107. *
  9108. * @param object $mixin
  9109. * @return void
  9110. * @static
  9111. */
  9112. public static function mixin($mixin)
  9113. {
  9114. \Illuminate\Http\Request::mixin($mixin);
  9115. }
  9116. /**
  9117. * Checks if macro is registered.
  9118. *
  9119. * @param string $name
  9120. * @return bool
  9121. * @static
  9122. */
  9123. public static function hasMacro($name)
  9124. {
  9125. return \Illuminate\Http\Request::hasMacro($name);
  9126. }
  9127. /**
  9128. *
  9129. *
  9130. * @static
  9131. */
  9132. public static function validate($rules, $params = null)
  9133. {
  9134. /** @var \Illuminate\Http\Request $instance */
  9135. return $instance->__invoke($rules, $params);
  9136. }
  9137. }
  9138. /**
  9139. *
  9140. *
  9141. * @see \Illuminate\Contracts\Routing\ResponseFactory
  9142. */
  9143. class Response {
  9144. /**
  9145. * Return a new response from the application.
  9146. *
  9147. * @param string $content
  9148. * @param int $status
  9149. * @param array $headers
  9150. * @return \Illuminate\Http\Response
  9151. * @static
  9152. */
  9153. public static function make($content = '', $status = 200, $headers = array())
  9154. {
  9155. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9156. return $instance->make($content, $status, $headers);
  9157. }
  9158. /**
  9159. * Return a new view response from the application.
  9160. *
  9161. * @param string $view
  9162. * @param array $data
  9163. * @param int $status
  9164. * @param array $headers
  9165. * @return \Illuminate\Http\Response
  9166. * @static
  9167. */
  9168. public static function view($view, $data = array(), $status = 200, $headers = array())
  9169. {
  9170. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9171. return $instance->view($view, $data, $status, $headers);
  9172. }
  9173. /**
  9174. * Return a new JSON response from the application.
  9175. *
  9176. * @param mixed $data
  9177. * @param int $status
  9178. * @param array $headers
  9179. * @param int $options
  9180. * @return \Illuminate\Http\JsonResponse
  9181. * @static
  9182. */
  9183. public static function json($data = array(), $status = 200, $headers = array(), $options = 0)
  9184. {
  9185. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9186. return $instance->json($data, $status, $headers, $options);
  9187. }
  9188. /**
  9189. * Return a new JSONP response from the application.
  9190. *
  9191. * @param string $callback
  9192. * @param mixed $data
  9193. * @param int $status
  9194. * @param array $headers
  9195. * @param int $options
  9196. * @return \Illuminate\Http\JsonResponse
  9197. * @static
  9198. */
  9199. public static function jsonp($callback, $data = array(), $status = 200, $headers = array(), $options = 0)
  9200. {
  9201. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9202. return $instance->jsonp($callback, $data, $status, $headers, $options);
  9203. }
  9204. /**
  9205. * Return a new streamed response from the application.
  9206. *
  9207. * @param \Closure $callback
  9208. * @param int $status
  9209. * @param array $headers
  9210. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9211. * @static
  9212. */
  9213. public static function stream($callback, $status = 200, $headers = array())
  9214. {
  9215. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9216. return $instance->stream($callback, $status, $headers);
  9217. }
  9218. /**
  9219. * Create a new file download response.
  9220. *
  9221. * @param \SplFileInfo|string $file
  9222. * @param string $name
  9223. * @param array $headers
  9224. * @param string|null $disposition
  9225. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9226. * @static
  9227. */
  9228. public static function download($file, $name = null, $headers = array(), $disposition = 'attachment')
  9229. {
  9230. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9231. return $instance->download($file, $name, $headers, $disposition);
  9232. }
  9233. /**
  9234. * Return the raw contents of a binary file.
  9235. *
  9236. * @param \SplFileInfo|string $file
  9237. * @param array $headers
  9238. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9239. * @static
  9240. */
  9241. public static function file($file, $headers = array())
  9242. {
  9243. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9244. return $instance->file($file, $headers);
  9245. }
  9246. /**
  9247. * Create a new redirect response to the given path.
  9248. *
  9249. * @param string $path
  9250. * @param int $status
  9251. * @param array $headers
  9252. * @param bool|null $secure
  9253. * @return \Illuminate\Http\RedirectResponse
  9254. * @static
  9255. */
  9256. public static function redirectTo($path, $status = 302, $headers = array(), $secure = null)
  9257. {
  9258. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9259. return $instance->redirectTo($path, $status, $headers, $secure);
  9260. }
  9261. /**
  9262. * Create a new redirect response to a named route.
  9263. *
  9264. * @param string $route
  9265. * @param array $parameters
  9266. * @param int $status
  9267. * @param array $headers
  9268. * @return \Illuminate\Http\RedirectResponse
  9269. * @static
  9270. */
  9271. public static function redirectToRoute($route, $parameters = array(), $status = 302, $headers = array())
  9272. {
  9273. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9274. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  9275. }
  9276. /**
  9277. * Create a new redirect response to a controller action.
  9278. *
  9279. * @param string $action
  9280. * @param array $parameters
  9281. * @param int $status
  9282. * @param array $headers
  9283. * @return \Illuminate\Http\RedirectResponse
  9284. * @static
  9285. */
  9286. public static function redirectToAction($action, $parameters = array(), $status = 302, $headers = array())
  9287. {
  9288. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9289. return $instance->redirectToAction($action, $parameters, $status, $headers);
  9290. }
  9291. /**
  9292. * Create a new redirect response, while putting the current URL in the session.
  9293. *
  9294. * @param string $path
  9295. * @param int $status
  9296. * @param array $headers
  9297. * @param bool|null $secure
  9298. * @return \Illuminate\Http\RedirectResponse
  9299. * @static
  9300. */
  9301. public static function redirectGuest($path, $status = 302, $headers = array(), $secure = null)
  9302. {
  9303. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9304. return $instance->redirectGuest($path, $status, $headers, $secure);
  9305. }
  9306. /**
  9307. * Create a new redirect response to the previously intended location.
  9308. *
  9309. * @param string $default
  9310. * @param int $status
  9311. * @param array $headers
  9312. * @param bool|null $secure
  9313. * @return \Illuminate\Http\RedirectResponse
  9314. * @static
  9315. */
  9316. public static function redirectToIntended($default = '/', $status = 302, $headers = array(), $secure = null)
  9317. {
  9318. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9319. return $instance->redirectToIntended($default, $status, $headers, $secure);
  9320. }
  9321. /**
  9322. * Register a custom macro.
  9323. *
  9324. * @param string $name
  9325. * @param object|callable $macro
  9326. * @return void
  9327. * @static
  9328. */
  9329. public static function macro($name, $macro)
  9330. {
  9331. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  9332. }
  9333. /**
  9334. * Mix another object into the class.
  9335. *
  9336. * @param object $mixin
  9337. * @return void
  9338. * @static
  9339. */
  9340. public static function mixin($mixin)
  9341. {
  9342. \Illuminate\Routing\ResponseFactory::mixin($mixin);
  9343. }
  9344. /**
  9345. * Checks if macro is registered.
  9346. *
  9347. * @param string $name
  9348. * @return bool
  9349. * @static
  9350. */
  9351. public static function hasMacro($name)
  9352. {
  9353. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  9354. }
  9355. }
  9356. /**
  9357. *
  9358. *
  9359. * @method static \Illuminate\Support\Facades\Route prefix(string $prefix)
  9360. * @method static \Illuminate\Support\Facades\Route middleware(array|string|null $middleware)
  9361. * @method static \Illuminate\Support\Facades\Route as(string $value)
  9362. * @method static \Illuminate\Support\Facades\Route domain(string $value)
  9363. * @method static \Illuminate\Support\Facades\Route name(string $value)
  9364. * @method static \Illuminate\Support\Facades\Route namespace(string $value)
  9365. * @method static \Illuminate\Support\Facades\Route where(array|string $name, string $expression = null)
  9366. * @see \Illuminate\Routing\Router
  9367. */
  9368. class Route {
  9369. /**
  9370. * Register a new GET route with the router.
  9371. *
  9372. * @param string $uri
  9373. * @param \Closure|array|string|null $action
  9374. * @return \Illuminate\Routing\Route
  9375. * @static
  9376. */
  9377. public static function get($uri, $action = null)
  9378. {
  9379. /** @var \Illuminate\Routing\Router $instance */
  9380. return $instance->get($uri, $action);
  9381. }
  9382. /**
  9383. * Register a new POST route with the router.
  9384. *
  9385. * @param string $uri
  9386. * @param \Closure|array|string|null $action
  9387. * @return \Illuminate\Routing\Route
  9388. * @static
  9389. */
  9390. public static function post($uri, $action = null)
  9391. {
  9392. /** @var \Illuminate\Routing\Router $instance */
  9393. return $instance->post($uri, $action);
  9394. }
  9395. /**
  9396. * Register a new PUT route with the router.
  9397. *
  9398. * @param string $uri
  9399. * @param \Closure|array|string|null $action
  9400. * @return \Illuminate\Routing\Route
  9401. * @static
  9402. */
  9403. public static function put($uri, $action = null)
  9404. {
  9405. /** @var \Illuminate\Routing\Router $instance */
  9406. return $instance->put($uri, $action);
  9407. }
  9408. /**
  9409. * Register a new PATCH route with the router.
  9410. *
  9411. * @param string $uri
  9412. * @param \Closure|array|string|null $action
  9413. * @return \Illuminate\Routing\Route
  9414. * @static
  9415. */
  9416. public static function patch($uri, $action = null)
  9417. {
  9418. /** @var \Illuminate\Routing\Router $instance */
  9419. return $instance->patch($uri, $action);
  9420. }
  9421. /**
  9422. * Register a new DELETE route with the router.
  9423. *
  9424. * @param string $uri
  9425. * @param \Closure|array|string|null $action
  9426. * @return \Illuminate\Routing\Route
  9427. * @static
  9428. */
  9429. public static function delete($uri, $action = null)
  9430. {
  9431. /** @var \Illuminate\Routing\Router $instance */
  9432. return $instance->delete($uri, $action);
  9433. }
  9434. /**
  9435. * Register a new OPTIONS route with the router.
  9436. *
  9437. * @param string $uri
  9438. * @param \Closure|array|string|null $action
  9439. * @return \Illuminate\Routing\Route
  9440. * @static
  9441. */
  9442. public static function options($uri, $action = null)
  9443. {
  9444. /** @var \Illuminate\Routing\Router $instance */
  9445. return $instance->options($uri, $action);
  9446. }
  9447. /**
  9448. * Register a new route responding to all verbs.
  9449. *
  9450. * @param string $uri
  9451. * @param \Closure|array|string|null $action
  9452. * @return \Illuminate\Routing\Route
  9453. * @static
  9454. */
  9455. public static function any($uri, $action = null)
  9456. {
  9457. /** @var \Illuminate\Routing\Router $instance */
  9458. return $instance->any($uri, $action);
  9459. }
  9460. /**
  9461. * Register a new Fallback route with the router.
  9462. *
  9463. * @param \Closure|array|string|null $action
  9464. * @return \Illuminate\Routing\Route
  9465. * @static
  9466. */
  9467. public static function fallback($action)
  9468. {
  9469. /** @var \Illuminate\Routing\Router $instance */
  9470. return $instance->fallback($action);
  9471. }
  9472. /**
  9473. * Create a redirect from one URI to another.
  9474. *
  9475. * @param string $uri
  9476. * @param string $destination
  9477. * @param int $status
  9478. * @return \Illuminate\Routing\Route
  9479. * @static
  9480. */
  9481. public static function redirect($uri, $destination, $status = 301)
  9482. {
  9483. /** @var \Illuminate\Routing\Router $instance */
  9484. return $instance->redirect($uri, $destination, $status);
  9485. }
  9486. /**
  9487. * Register a new route that returns a view.
  9488. *
  9489. * @param string $uri
  9490. * @param string $view
  9491. * @param array $data
  9492. * @return \Illuminate\Routing\Route
  9493. * @static
  9494. */
  9495. public static function view($uri, $view, $data = array())
  9496. {
  9497. /** @var \Illuminate\Routing\Router $instance */
  9498. return $instance->view($uri, $view, $data);
  9499. }
  9500. /**
  9501. * Register a new route with the given verbs.
  9502. *
  9503. * @param array|string $methods
  9504. * @param string $uri
  9505. * @param \Closure|array|string|null $action
  9506. * @return \Illuminate\Routing\Route
  9507. * @static
  9508. */
  9509. public static function match($methods, $uri, $action = null)
  9510. {
  9511. /** @var \Illuminate\Routing\Router $instance */
  9512. return $instance->match($methods, $uri, $action);
  9513. }
  9514. /**
  9515. * Register an array of resource controllers.
  9516. *
  9517. * @param array $resources
  9518. * @return void
  9519. * @static
  9520. */
  9521. public static function resources($resources)
  9522. {
  9523. /** @var \Illuminate\Routing\Router $instance */
  9524. $instance->resources($resources);
  9525. }
  9526. /**
  9527. * Route a resource to a controller.
  9528. *
  9529. * @param string $name
  9530. * @param string $controller
  9531. * @param array $options
  9532. * @return \Illuminate\Routing\PendingResourceRegistration
  9533. * @static
  9534. */
  9535. public static function resource($name, $controller, $options = array())
  9536. {
  9537. /** @var \Illuminate\Routing\Router $instance */
  9538. return $instance->resource($name, $controller, $options);
  9539. }
  9540. /**
  9541. * Register an array of API resource controllers.
  9542. *
  9543. * @param array $resources
  9544. * @return void
  9545. * @static
  9546. */
  9547. public static function apiResources($resources)
  9548. {
  9549. /** @var \Illuminate\Routing\Router $instance */
  9550. $instance->apiResources($resources);
  9551. }
  9552. /**
  9553. * Route an API resource to a controller.
  9554. *
  9555. * @param string $name
  9556. * @param string $controller
  9557. * @param array $options
  9558. * @return \Illuminate\Routing\PendingResourceRegistration
  9559. * @static
  9560. */
  9561. public static function apiResource($name, $controller, $options = array())
  9562. {
  9563. /** @var \Illuminate\Routing\Router $instance */
  9564. return $instance->apiResource($name, $controller, $options);
  9565. }
  9566. /**
  9567. * Create a route group with shared attributes.
  9568. *
  9569. * @param array $attributes
  9570. * @param \Closure|string $routes
  9571. * @return void
  9572. * @static
  9573. */
  9574. public static function group($attributes, $routes)
  9575. {
  9576. /** @var \Illuminate\Routing\Router $instance */
  9577. $instance->group($attributes, $routes);
  9578. }
  9579. /**
  9580. * Merge the given array with the last group stack.
  9581. *
  9582. * @param array $new
  9583. * @return array
  9584. * @static
  9585. */
  9586. public static function mergeWithLastGroup($new)
  9587. {
  9588. /** @var \Illuminate\Routing\Router $instance */
  9589. return $instance->mergeWithLastGroup($new);
  9590. }
  9591. /**
  9592. * Get the prefix from the last group on the stack.
  9593. *
  9594. * @return string
  9595. * @static
  9596. */
  9597. public static function getLastGroupPrefix()
  9598. {
  9599. /** @var \Illuminate\Routing\Router $instance */
  9600. return $instance->getLastGroupPrefix();
  9601. }
  9602. /**
  9603. * Return the response returned by the given route.
  9604. *
  9605. * @param string $name
  9606. * @return mixed
  9607. * @static
  9608. */
  9609. public static function respondWithRoute($name)
  9610. {
  9611. /** @var \Illuminate\Routing\Router $instance */
  9612. return $instance->respondWithRoute($name);
  9613. }
  9614. /**
  9615. * Dispatch the request to the application.
  9616. *
  9617. * @param \Illuminate\Http\Request $request
  9618. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9619. * @static
  9620. */
  9621. public static function dispatch($request)
  9622. {
  9623. /** @var \Illuminate\Routing\Router $instance */
  9624. return $instance->dispatch($request);
  9625. }
  9626. /**
  9627. * Dispatch the request to a route and return the response.
  9628. *
  9629. * @param \Illuminate\Http\Request $request
  9630. * @return mixed
  9631. * @static
  9632. */
  9633. public static function dispatchToRoute($request)
  9634. {
  9635. /** @var \Illuminate\Routing\Router $instance */
  9636. return $instance->dispatchToRoute($request);
  9637. }
  9638. /**
  9639. * Gather the middleware for the given route with resolved class names.
  9640. *
  9641. * @param \Illuminate\Routing\Route $route
  9642. * @return array
  9643. * @static
  9644. */
  9645. public static function gatherRouteMiddleware($route)
  9646. {
  9647. /** @var \Illuminate\Routing\Router $instance */
  9648. return $instance->gatherRouteMiddleware($route);
  9649. }
  9650. /**
  9651. * Create a response instance from the given value.
  9652. *
  9653. * @param \Symfony\Component\HttpFoundation\Request $request
  9654. * @param mixed $response
  9655. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9656. * @static
  9657. */
  9658. public static function prepareResponse($request, $response)
  9659. {
  9660. /** @var \Illuminate\Routing\Router $instance */
  9661. return $instance->prepareResponse($request, $response);
  9662. }
  9663. /**
  9664. * Static version of prepareResponse.
  9665. *
  9666. * @param \Symfony\Component\HttpFoundation\Request $request
  9667. * @param mixed $response
  9668. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9669. * @static
  9670. */
  9671. public static function toResponse($request, $response)
  9672. {
  9673. return \Illuminate\Routing\Router::toResponse($request, $response);
  9674. }
  9675. /**
  9676. * Substitute the route bindings onto the route.
  9677. *
  9678. * @param \Illuminate\Routing\Route $route
  9679. * @return \Illuminate\Routing\Route
  9680. * @static
  9681. */
  9682. public static function substituteBindings($route)
  9683. {
  9684. /** @var \Illuminate\Routing\Router $instance */
  9685. return $instance->substituteBindings($route);
  9686. }
  9687. /**
  9688. * Substitute the implicit Eloquent model bindings for the route.
  9689. *
  9690. * @param \Illuminate\Routing\Route $route
  9691. * @return void
  9692. * @static
  9693. */
  9694. public static function substituteImplicitBindings($route)
  9695. {
  9696. /** @var \Illuminate\Routing\Router $instance */
  9697. $instance->substituteImplicitBindings($route);
  9698. }
  9699. /**
  9700. * Register a route matched event listener.
  9701. *
  9702. * @param string|callable $callback
  9703. * @return void
  9704. * @static
  9705. */
  9706. public static function matched($callback)
  9707. {
  9708. /** @var \Illuminate\Routing\Router $instance */
  9709. $instance->matched($callback);
  9710. }
  9711. /**
  9712. * Get all of the defined middleware short-hand names.
  9713. *
  9714. * @return array
  9715. * @static
  9716. */
  9717. public static function getMiddleware()
  9718. {
  9719. /** @var \Illuminate\Routing\Router $instance */
  9720. return $instance->getMiddleware();
  9721. }
  9722. /**
  9723. * Register a short-hand name for a middleware.
  9724. *
  9725. * @param string $name
  9726. * @param string $class
  9727. * @return \Illuminate\Routing\Router
  9728. * @static
  9729. */
  9730. public static function aliasMiddleware($name, $class)
  9731. {
  9732. /** @var \Illuminate\Routing\Router $instance */
  9733. return $instance->aliasMiddleware($name, $class);
  9734. }
  9735. /**
  9736. * Check if a middlewareGroup with the given name exists.
  9737. *
  9738. * @param string $name
  9739. * @return bool
  9740. * @static
  9741. */
  9742. public static function hasMiddlewareGroup($name)
  9743. {
  9744. /** @var \Illuminate\Routing\Router $instance */
  9745. return $instance->hasMiddlewareGroup($name);
  9746. }
  9747. /**
  9748. * Get all of the defined middleware groups.
  9749. *
  9750. * @return array
  9751. * @static
  9752. */
  9753. public static function getMiddlewareGroups()
  9754. {
  9755. /** @var \Illuminate\Routing\Router $instance */
  9756. return $instance->getMiddlewareGroups();
  9757. }
  9758. /**
  9759. * Register a group of middleware.
  9760. *
  9761. * @param string $name
  9762. * @param array $middleware
  9763. * @return \Illuminate\Routing\Router
  9764. * @static
  9765. */
  9766. public static function middlewareGroup($name, $middleware)
  9767. {
  9768. /** @var \Illuminate\Routing\Router $instance */
  9769. return $instance->middlewareGroup($name, $middleware);
  9770. }
  9771. /**
  9772. * Add a middleware to the beginning of a middleware group.
  9773. *
  9774. * If the middleware is already in the group, it will not be added again.
  9775. *
  9776. * @param string $group
  9777. * @param string $middleware
  9778. * @return \Illuminate\Routing\Router
  9779. * @static
  9780. */
  9781. public static function prependMiddlewareToGroup($group, $middleware)
  9782. {
  9783. /** @var \Illuminate\Routing\Router $instance */
  9784. return $instance->prependMiddlewareToGroup($group, $middleware);
  9785. }
  9786. /**
  9787. * Add a middleware to the end of a middleware group.
  9788. *
  9789. * If the middleware is already in the group, it will not be added again.
  9790. *
  9791. * @param string $group
  9792. * @param string $middleware
  9793. * @return \Illuminate\Routing\Router
  9794. * @static
  9795. */
  9796. public static function pushMiddlewareToGroup($group, $middleware)
  9797. {
  9798. /** @var \Illuminate\Routing\Router $instance */
  9799. return $instance->pushMiddlewareToGroup($group, $middleware);
  9800. }
  9801. /**
  9802. * Add a new route parameter binder.
  9803. *
  9804. * @param string $key
  9805. * @param string|callable $binder
  9806. * @return void
  9807. * @static
  9808. */
  9809. public static function bind($key, $binder)
  9810. {
  9811. /** @var \Illuminate\Routing\Router $instance */
  9812. $instance->bind($key, $binder);
  9813. }
  9814. /**
  9815. * Register a model binder for a wildcard.
  9816. *
  9817. * @param string $key
  9818. * @param string $class
  9819. * @param \Closure|null $callback
  9820. * @return void
  9821. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  9822. * @static
  9823. */
  9824. public static function model($key, $class, $callback = null)
  9825. {
  9826. /** @var \Illuminate\Routing\Router $instance */
  9827. $instance->model($key, $class, $callback);
  9828. }
  9829. /**
  9830. * Get the binding callback for a given binding.
  9831. *
  9832. * @param string $key
  9833. * @return \Closure|null
  9834. * @static
  9835. */
  9836. public static function getBindingCallback($key)
  9837. {
  9838. /** @var \Illuminate\Routing\Router $instance */
  9839. return $instance->getBindingCallback($key);
  9840. }
  9841. /**
  9842. * Get the global "where" patterns.
  9843. *
  9844. * @return array
  9845. * @static
  9846. */
  9847. public static function getPatterns()
  9848. {
  9849. /** @var \Illuminate\Routing\Router $instance */
  9850. return $instance->getPatterns();
  9851. }
  9852. /**
  9853. * Set a global where pattern on all routes.
  9854. *
  9855. * @param string $key
  9856. * @param string $pattern
  9857. * @return void
  9858. * @static
  9859. */
  9860. public static function pattern($key, $pattern)
  9861. {
  9862. /** @var \Illuminate\Routing\Router $instance */
  9863. $instance->pattern($key, $pattern);
  9864. }
  9865. /**
  9866. * Set a group of global where patterns on all routes.
  9867. *
  9868. * @param array $patterns
  9869. * @return void
  9870. * @static
  9871. */
  9872. public static function patterns($patterns)
  9873. {
  9874. /** @var \Illuminate\Routing\Router $instance */
  9875. $instance->patterns($patterns);
  9876. }
  9877. /**
  9878. * Determine if the router currently has a group stack.
  9879. *
  9880. * @return bool
  9881. * @static
  9882. */
  9883. public static function hasGroupStack()
  9884. {
  9885. /** @var \Illuminate\Routing\Router $instance */
  9886. return $instance->hasGroupStack();
  9887. }
  9888. /**
  9889. * Get the current group stack for the router.
  9890. *
  9891. * @return array
  9892. * @static
  9893. */
  9894. public static function getGroupStack()
  9895. {
  9896. /** @var \Illuminate\Routing\Router $instance */
  9897. return $instance->getGroupStack();
  9898. }
  9899. /**
  9900. * Get a route parameter for the current route.
  9901. *
  9902. * @param string $key
  9903. * @param string $default
  9904. * @return mixed
  9905. * @static
  9906. */
  9907. public static function input($key, $default = null)
  9908. {
  9909. /** @var \Illuminate\Routing\Router $instance */
  9910. return $instance->input($key, $default);
  9911. }
  9912. /**
  9913. * Get the request currently being dispatched.
  9914. *
  9915. * @return \Illuminate\Http\Request
  9916. * @static
  9917. */
  9918. public static function getCurrentRequest()
  9919. {
  9920. /** @var \Illuminate\Routing\Router $instance */
  9921. return $instance->getCurrentRequest();
  9922. }
  9923. /**
  9924. * Get the currently dispatched route instance.
  9925. *
  9926. * @return \Illuminate\Routing\Route
  9927. * @static
  9928. */
  9929. public static function getCurrentRoute()
  9930. {
  9931. /** @var \Illuminate\Routing\Router $instance */
  9932. return $instance->getCurrentRoute();
  9933. }
  9934. /**
  9935. * Get the currently dispatched route instance.
  9936. *
  9937. * @return \Illuminate\Routing\Route
  9938. * @static
  9939. */
  9940. public static function current()
  9941. {
  9942. /** @var \Illuminate\Routing\Router $instance */
  9943. return $instance->current();
  9944. }
  9945. /**
  9946. * Check if a route with the given name exists.
  9947. *
  9948. * @param string $name
  9949. * @return bool
  9950. * @static
  9951. */
  9952. public static function has($name)
  9953. {
  9954. /** @var \Illuminate\Routing\Router $instance */
  9955. return $instance->has($name);
  9956. }
  9957. /**
  9958. * Get the current route name.
  9959. *
  9960. * @return string|null
  9961. * @static
  9962. */
  9963. public static function currentRouteName()
  9964. {
  9965. /** @var \Illuminate\Routing\Router $instance */
  9966. return $instance->currentRouteName();
  9967. }
  9968. /**
  9969. * Alias for the "currentRouteNamed" method.
  9970. *
  9971. * @param mixed $patterns
  9972. * @return bool
  9973. * @static
  9974. */
  9975. public static function is($patterns = null)
  9976. {
  9977. /** @var \Illuminate\Routing\Router $instance */
  9978. return $instance->is($patterns);
  9979. }
  9980. /**
  9981. * Determine if the current route matches a pattern.
  9982. *
  9983. * @param mixed $patterns
  9984. * @return bool
  9985. * @static
  9986. */
  9987. public static function currentRouteNamed($patterns = null)
  9988. {
  9989. /** @var \Illuminate\Routing\Router $instance */
  9990. return $instance->currentRouteNamed($patterns);
  9991. }
  9992. /**
  9993. * Get the current route action.
  9994. *
  9995. * @return string|null
  9996. * @static
  9997. */
  9998. public static function currentRouteAction()
  9999. {
  10000. /** @var \Illuminate\Routing\Router $instance */
  10001. return $instance->currentRouteAction();
  10002. }
  10003. /**
  10004. * Alias for the "currentRouteUses" method.
  10005. *
  10006. * @param array $patterns
  10007. * @return bool
  10008. * @static
  10009. */
  10010. public static function uses($patterns = null)
  10011. {
  10012. /** @var \Illuminate\Routing\Router $instance */
  10013. return $instance->uses($patterns);
  10014. }
  10015. /**
  10016. * Determine if the current route action matches a given action.
  10017. *
  10018. * @param string $action
  10019. * @return bool
  10020. * @static
  10021. */
  10022. public static function currentRouteUses($action)
  10023. {
  10024. /** @var \Illuminate\Routing\Router $instance */
  10025. return $instance->currentRouteUses($action);
  10026. }
  10027. /**
  10028. * Register the typical authentication routes for an application.
  10029. *
  10030. * @return void
  10031. * @static
  10032. */
  10033. public static function auth()
  10034. {
  10035. /** @var \Illuminate\Routing\Router $instance */
  10036. $instance->auth();
  10037. }
  10038. /**
  10039. * Set the unmapped global resource parameters to singular.
  10040. *
  10041. * @param bool $singular
  10042. * @return void
  10043. * @static
  10044. */
  10045. public static function singularResourceParameters($singular = true)
  10046. {
  10047. /** @var \Illuminate\Routing\Router $instance */
  10048. $instance->singularResourceParameters($singular);
  10049. }
  10050. /**
  10051. * Set the global resource parameter mapping.
  10052. *
  10053. * @param array $parameters
  10054. * @return void
  10055. * @static
  10056. */
  10057. public static function resourceParameters($parameters = array())
  10058. {
  10059. /** @var \Illuminate\Routing\Router $instance */
  10060. $instance->resourceParameters($parameters);
  10061. }
  10062. /**
  10063. * Get or set the verbs used in the resource URIs.
  10064. *
  10065. * @param array $verbs
  10066. * @return array|null
  10067. * @static
  10068. */
  10069. public static function resourceVerbs($verbs = array())
  10070. {
  10071. /** @var \Illuminate\Routing\Router $instance */
  10072. return $instance->resourceVerbs($verbs);
  10073. }
  10074. /**
  10075. * Get the underlying route collection.
  10076. *
  10077. * @return \Illuminate\Routing\RouteCollection
  10078. * @static
  10079. */
  10080. public static function getRoutes()
  10081. {
  10082. /** @var \Illuminate\Routing\Router $instance */
  10083. return $instance->getRoutes();
  10084. }
  10085. /**
  10086. * Set the route collection instance.
  10087. *
  10088. * @param \Illuminate\Routing\RouteCollection $routes
  10089. * @return void
  10090. * @static
  10091. */
  10092. public static function setRoutes($routes)
  10093. {
  10094. /** @var \Illuminate\Routing\Router $instance */
  10095. $instance->setRoutes($routes);
  10096. }
  10097. /**
  10098. * Register a custom macro.
  10099. *
  10100. * @param string $name
  10101. * @param object|callable $macro
  10102. * @return void
  10103. * @static
  10104. */
  10105. public static function macro($name, $macro)
  10106. {
  10107. \Illuminate\Routing\Router::macro($name, $macro);
  10108. }
  10109. /**
  10110. * Mix another object into the class.
  10111. *
  10112. * @param object $mixin
  10113. * @return void
  10114. * @static
  10115. */
  10116. public static function mixin($mixin)
  10117. {
  10118. \Illuminate\Routing\Router::mixin($mixin);
  10119. }
  10120. /**
  10121. * Checks if macro is registered.
  10122. *
  10123. * @param string $name
  10124. * @return bool
  10125. * @static
  10126. */
  10127. public static function hasMacro($name)
  10128. {
  10129. return \Illuminate\Routing\Router::hasMacro($name);
  10130. }
  10131. /**
  10132. * Dynamically handle calls to the class.
  10133. *
  10134. * @param string $method
  10135. * @param array $parameters
  10136. * @return mixed
  10137. * @throws \BadMethodCallException
  10138. * @static
  10139. */
  10140. public static function macroCall($method, $parameters)
  10141. {
  10142. /** @var \Illuminate\Routing\Router $instance */
  10143. return $instance->macroCall($method, $parameters);
  10144. }
  10145. }
  10146. /**
  10147. *
  10148. *
  10149. * @see \Illuminate\Database\Schema\Builder
  10150. */
  10151. class Schema {
  10152. /**
  10153. * Determine if the given table exists.
  10154. *
  10155. * @param string $table
  10156. * @return bool
  10157. * @static
  10158. */
  10159. public static function hasTable($table)
  10160. {
  10161. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10162. return $instance->hasTable($table);
  10163. }
  10164. /**
  10165. * Get the column listing for a given table.
  10166. *
  10167. * @param string $table
  10168. * @return array
  10169. * @static
  10170. */
  10171. public static function getColumnListing($table)
  10172. {
  10173. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10174. return $instance->getColumnListing($table);
  10175. }
  10176. /**
  10177. * Drop all tables from the database.
  10178. *
  10179. * @return void
  10180. * @static
  10181. */
  10182. public static function dropAllTables()
  10183. {
  10184. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10185. $instance->dropAllTables();
  10186. }
  10187. /**
  10188. * Set the default string length for migrations.
  10189. *
  10190. * @param int $length
  10191. * @return void
  10192. * @static
  10193. */
  10194. public static function defaultStringLength($length)
  10195. {
  10196. //Method inherited from \Illuminate\Database\Schema\Builder
  10197. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  10198. }
  10199. /**
  10200. * Determine if the given table has a given column.
  10201. *
  10202. * @param string $table
  10203. * @param string $column
  10204. * @return bool
  10205. * @static
  10206. */
  10207. public static function hasColumn($table, $column)
  10208. {
  10209. //Method inherited from \Illuminate\Database\Schema\Builder
  10210. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10211. return $instance->hasColumn($table, $column);
  10212. }
  10213. /**
  10214. * Determine if the given table has given columns.
  10215. *
  10216. * @param string $table
  10217. * @param array $columns
  10218. * @return bool
  10219. * @static
  10220. */
  10221. public static function hasColumns($table, $columns)
  10222. {
  10223. //Method inherited from \Illuminate\Database\Schema\Builder
  10224. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10225. return $instance->hasColumns($table, $columns);
  10226. }
  10227. /**
  10228. * Get the data type for the given column name.
  10229. *
  10230. * @param string $table
  10231. * @param string $column
  10232. * @return string
  10233. * @static
  10234. */
  10235. public static function getColumnType($table, $column)
  10236. {
  10237. //Method inherited from \Illuminate\Database\Schema\Builder
  10238. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10239. return $instance->getColumnType($table, $column);
  10240. }
  10241. /**
  10242. * Modify a table on the schema.
  10243. *
  10244. * @param string $table
  10245. * @param \Closure $callback
  10246. * @return void
  10247. * @static
  10248. */
  10249. public static function table($table, $callback)
  10250. {
  10251. //Method inherited from \Illuminate\Database\Schema\Builder
  10252. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10253. $instance->table($table, $callback);
  10254. }
  10255. /**
  10256. * Create a new table on the schema.
  10257. *
  10258. * @param string $table
  10259. * @param \Closure $callback
  10260. * @return void
  10261. * @static
  10262. */
  10263. public static function create($table, $callback)
  10264. {
  10265. //Method inherited from \Illuminate\Database\Schema\Builder
  10266. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10267. $instance->create($table, $callback);
  10268. }
  10269. /**
  10270. * Drop a table from the schema.
  10271. *
  10272. * @param string $table
  10273. * @return void
  10274. * @static
  10275. */
  10276. public static function drop($table)
  10277. {
  10278. //Method inherited from \Illuminate\Database\Schema\Builder
  10279. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10280. $instance->drop($table);
  10281. }
  10282. /**
  10283. * Drop a table from the schema if it exists.
  10284. *
  10285. * @param string $table
  10286. * @return void
  10287. * @static
  10288. */
  10289. public static function dropIfExists($table)
  10290. {
  10291. //Method inherited from \Illuminate\Database\Schema\Builder
  10292. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10293. $instance->dropIfExists($table);
  10294. }
  10295. /**
  10296. * Rename a table on the schema.
  10297. *
  10298. * @param string $from
  10299. * @param string $to
  10300. * @return void
  10301. * @static
  10302. */
  10303. public static function rename($from, $to)
  10304. {
  10305. //Method inherited from \Illuminate\Database\Schema\Builder
  10306. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10307. $instance->rename($from, $to);
  10308. }
  10309. /**
  10310. * Enable foreign key constraints.
  10311. *
  10312. * @return bool
  10313. * @static
  10314. */
  10315. public static function enableForeignKeyConstraints()
  10316. {
  10317. //Method inherited from \Illuminate\Database\Schema\Builder
  10318. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10319. return $instance->enableForeignKeyConstraints();
  10320. }
  10321. /**
  10322. * Disable foreign key constraints.
  10323. *
  10324. * @return bool
  10325. * @static
  10326. */
  10327. public static function disableForeignKeyConstraints()
  10328. {
  10329. //Method inherited from \Illuminate\Database\Schema\Builder
  10330. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10331. return $instance->disableForeignKeyConstraints();
  10332. }
  10333. /**
  10334. * Get the database connection instance.
  10335. *
  10336. * @return \Illuminate\Database\Connection
  10337. * @static
  10338. */
  10339. public static function getConnection()
  10340. {
  10341. //Method inherited from \Illuminate\Database\Schema\Builder
  10342. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10343. return $instance->getConnection();
  10344. }
  10345. /**
  10346. * Set the database connection instance.
  10347. *
  10348. * @param \Illuminate\Database\Connection $connection
  10349. * @return \Illuminate\Database\Schema\MySqlBuilder
  10350. * @static
  10351. */
  10352. public static function setConnection($connection)
  10353. {
  10354. //Method inherited from \Illuminate\Database\Schema\Builder
  10355. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10356. return $instance->setConnection($connection);
  10357. }
  10358. /**
  10359. * Set the Schema Blueprint resolver callback.
  10360. *
  10361. * @param \Closure $resolver
  10362. * @return void
  10363. * @static
  10364. */
  10365. public static function blueprintResolver($resolver)
  10366. {
  10367. //Method inherited from \Illuminate\Database\Schema\Builder
  10368. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10369. $instance->blueprintResolver($resolver);
  10370. }
  10371. }
  10372. /**
  10373. *
  10374. *
  10375. * @see \Illuminate\Session\SessionManager
  10376. * @see \Illuminate\Session\Store
  10377. */
  10378. class Session {
  10379. /**
  10380. * Get the session configuration.
  10381. *
  10382. * @return array
  10383. * @static
  10384. */
  10385. public static function getSessionConfig()
  10386. {
  10387. /** @var \Illuminate\Session\SessionManager $instance */
  10388. return $instance->getSessionConfig();
  10389. }
  10390. /**
  10391. * Get the default session driver name.
  10392. *
  10393. * @return string
  10394. * @static
  10395. */
  10396. public static function getDefaultDriver()
  10397. {
  10398. /** @var \Illuminate\Session\SessionManager $instance */
  10399. return $instance->getDefaultDriver();
  10400. }
  10401. /**
  10402. * Set the default session driver name.
  10403. *
  10404. * @param string $name
  10405. * @return void
  10406. * @static
  10407. */
  10408. public static function setDefaultDriver($name)
  10409. {
  10410. /** @var \Illuminate\Session\SessionManager $instance */
  10411. $instance->setDefaultDriver($name);
  10412. }
  10413. /**
  10414. * Get a driver instance.
  10415. *
  10416. * @param string $driver
  10417. * @return mixed
  10418. * @static
  10419. */
  10420. public static function driver($driver = null)
  10421. {
  10422. //Method inherited from \Illuminate\Support\Manager
  10423. /** @var \Illuminate\Session\SessionManager $instance */
  10424. return $instance->driver($driver);
  10425. }
  10426. /**
  10427. * Register a custom driver creator Closure.
  10428. *
  10429. * @param string $driver
  10430. * @param \Closure $callback
  10431. * @return \Illuminate\Session\SessionManager
  10432. * @static
  10433. */
  10434. public static function extend($driver, $callback)
  10435. {
  10436. //Method inherited from \Illuminate\Support\Manager
  10437. /** @var \Illuminate\Session\SessionManager $instance */
  10438. return $instance->extend($driver, $callback);
  10439. }
  10440. /**
  10441. * Get all of the created "drivers".
  10442. *
  10443. * @return array
  10444. * @static
  10445. */
  10446. public static function getDrivers()
  10447. {
  10448. //Method inherited from \Illuminate\Support\Manager
  10449. /** @var \Illuminate\Session\SessionManager $instance */
  10450. return $instance->getDrivers();
  10451. }
  10452. /**
  10453. * Start the session, reading the data from a handler.
  10454. *
  10455. * @return bool
  10456. * @static
  10457. */
  10458. public static function start()
  10459. {
  10460. /** @var \Illuminate\Session\Store $instance */
  10461. return $instance->start();
  10462. }
  10463. /**
  10464. * Save the session data to storage.
  10465. *
  10466. * @return bool
  10467. * @static
  10468. */
  10469. public static function save()
  10470. {
  10471. /** @var \Illuminate\Session\Store $instance */
  10472. return $instance->save();
  10473. }
  10474. /**
  10475. * Age the flash data for the session.
  10476. *
  10477. * @return void
  10478. * @static
  10479. */
  10480. public static function ageFlashData()
  10481. {
  10482. /** @var \Illuminate\Session\Store $instance */
  10483. $instance->ageFlashData();
  10484. }
  10485. /**
  10486. * Get all of the session data.
  10487. *
  10488. * @return array
  10489. * @static
  10490. */
  10491. public static function all()
  10492. {
  10493. /** @var \Illuminate\Session\Store $instance */
  10494. return $instance->all();
  10495. }
  10496. /**
  10497. * Checks if a key exists.
  10498. *
  10499. * @param string|array $key
  10500. * @return bool
  10501. * @static
  10502. */
  10503. public static function exists($key)
  10504. {
  10505. /** @var \Illuminate\Session\Store $instance */
  10506. return $instance->exists($key);
  10507. }
  10508. /**
  10509. * Checks if a key is present and not null.
  10510. *
  10511. * @param string|array $key
  10512. * @return bool
  10513. * @static
  10514. */
  10515. public static function has($key)
  10516. {
  10517. /** @var \Illuminate\Session\Store $instance */
  10518. return $instance->has($key);
  10519. }
  10520. /**
  10521. * Get an item from the session.
  10522. *
  10523. * @param string $key
  10524. * @param mixed $default
  10525. * @return mixed
  10526. * @static
  10527. */
  10528. public static function get($key, $default = null)
  10529. {
  10530. /** @var \Illuminate\Session\Store $instance */
  10531. return $instance->get($key, $default);
  10532. }
  10533. /**
  10534. * Get the value of a given key and then forget it.
  10535. *
  10536. * @param string $key
  10537. * @param string $default
  10538. * @return mixed
  10539. * @static
  10540. */
  10541. public static function pull($key, $default = null)
  10542. {
  10543. /** @var \Illuminate\Session\Store $instance */
  10544. return $instance->pull($key, $default);
  10545. }
  10546. /**
  10547. * Determine if the session contains old input.
  10548. *
  10549. * @param string $key
  10550. * @return bool
  10551. * @static
  10552. */
  10553. public static function hasOldInput($key = null)
  10554. {
  10555. /** @var \Illuminate\Session\Store $instance */
  10556. return $instance->hasOldInput($key);
  10557. }
  10558. /**
  10559. * Get the requested item from the flashed input array.
  10560. *
  10561. * @param string $key
  10562. * @param mixed $default
  10563. * @return mixed
  10564. * @static
  10565. */
  10566. public static function getOldInput($key = null, $default = null)
  10567. {
  10568. /** @var \Illuminate\Session\Store $instance */
  10569. return $instance->getOldInput($key, $default);
  10570. }
  10571. /**
  10572. * Replace the given session attributes entirely.
  10573. *
  10574. * @param array $attributes
  10575. * @return void
  10576. * @static
  10577. */
  10578. public static function replace($attributes)
  10579. {
  10580. /** @var \Illuminate\Session\Store $instance */
  10581. $instance->replace($attributes);
  10582. }
  10583. /**
  10584. * Put a key / value pair or array of key / value pairs in the session.
  10585. *
  10586. * @param string|array $key
  10587. * @param mixed $value
  10588. * @return void
  10589. * @static
  10590. */
  10591. public static function put($key, $value = null)
  10592. {
  10593. /** @var \Illuminate\Session\Store $instance */
  10594. $instance->put($key, $value);
  10595. }
  10596. /**
  10597. * Get an item from the session, or store the default value.
  10598. *
  10599. * @param string $key
  10600. * @param \Closure $callback
  10601. * @return mixed
  10602. * @static
  10603. */
  10604. public static function remember($key, $callback)
  10605. {
  10606. /** @var \Illuminate\Session\Store $instance */
  10607. return $instance->remember($key, $callback);
  10608. }
  10609. /**
  10610. * Push a value onto a session array.
  10611. *
  10612. * @param string $key
  10613. * @param mixed $value
  10614. * @return void
  10615. * @static
  10616. */
  10617. public static function push($key, $value)
  10618. {
  10619. /** @var \Illuminate\Session\Store $instance */
  10620. $instance->push($key, $value);
  10621. }
  10622. /**
  10623. * Increment the value of an item in the session.
  10624. *
  10625. * @param string $key
  10626. * @param int $amount
  10627. * @return mixed
  10628. * @static
  10629. */
  10630. public static function increment($key, $amount = 1)
  10631. {
  10632. /** @var \Illuminate\Session\Store $instance */
  10633. return $instance->increment($key, $amount);
  10634. }
  10635. /**
  10636. * Decrement the value of an item in the session.
  10637. *
  10638. * @param string $key
  10639. * @param int $amount
  10640. * @return int
  10641. * @static
  10642. */
  10643. public static function decrement($key, $amount = 1)
  10644. {
  10645. /** @var \Illuminate\Session\Store $instance */
  10646. return $instance->decrement($key, $amount);
  10647. }
  10648. /**
  10649. * Flash a key / value pair to the session.
  10650. *
  10651. * @param string $key
  10652. * @param mixed $value
  10653. * @return void
  10654. * @static
  10655. */
  10656. public static function flash($key, $value = true)
  10657. {
  10658. /** @var \Illuminate\Session\Store $instance */
  10659. $instance->flash($key, $value);
  10660. }
  10661. /**
  10662. * Flash a key / value pair to the session for immediate use.
  10663. *
  10664. * @param string $key
  10665. * @param mixed $value
  10666. * @return void
  10667. * @static
  10668. */
  10669. public static function now($key, $value)
  10670. {
  10671. /** @var \Illuminate\Session\Store $instance */
  10672. $instance->now($key, $value);
  10673. }
  10674. /**
  10675. * Reflash all of the session flash data.
  10676. *
  10677. * @return void
  10678. * @static
  10679. */
  10680. public static function reflash()
  10681. {
  10682. /** @var \Illuminate\Session\Store $instance */
  10683. $instance->reflash();
  10684. }
  10685. /**
  10686. * Reflash a subset of the current flash data.
  10687. *
  10688. * @param array|mixed $keys
  10689. * @return void
  10690. * @static
  10691. */
  10692. public static function keep($keys = null)
  10693. {
  10694. /** @var \Illuminate\Session\Store $instance */
  10695. $instance->keep($keys);
  10696. }
  10697. /**
  10698. * Flash an input array to the session.
  10699. *
  10700. * @param array $value
  10701. * @return void
  10702. * @static
  10703. */
  10704. public static function flashInput($value)
  10705. {
  10706. /** @var \Illuminate\Session\Store $instance */
  10707. $instance->flashInput($value);
  10708. }
  10709. /**
  10710. * Remove an item from the session, returning its value.
  10711. *
  10712. * @param string $key
  10713. * @return mixed
  10714. * @static
  10715. */
  10716. public static function remove($key)
  10717. {
  10718. /** @var \Illuminate\Session\Store $instance */
  10719. return $instance->remove($key);
  10720. }
  10721. /**
  10722. * Remove one or many items from the session.
  10723. *
  10724. * @param string|array $keys
  10725. * @return void
  10726. * @static
  10727. */
  10728. public static function forget($keys)
  10729. {
  10730. /** @var \Illuminate\Session\Store $instance */
  10731. $instance->forget($keys);
  10732. }
  10733. /**
  10734. * Remove all of the items from the session.
  10735. *
  10736. * @return void
  10737. * @static
  10738. */
  10739. public static function flush()
  10740. {
  10741. /** @var \Illuminate\Session\Store $instance */
  10742. $instance->flush();
  10743. }
  10744. /**
  10745. * Flush the session data and regenerate the ID.
  10746. *
  10747. * @return bool
  10748. * @static
  10749. */
  10750. public static function invalidate()
  10751. {
  10752. /** @var \Illuminate\Session\Store $instance */
  10753. return $instance->invalidate();
  10754. }
  10755. /**
  10756. * Generate a new session identifier.
  10757. *
  10758. * @param bool $destroy
  10759. * @return bool
  10760. * @static
  10761. */
  10762. public static function regenerate($destroy = false)
  10763. {
  10764. /** @var \Illuminate\Session\Store $instance */
  10765. return $instance->regenerate($destroy);
  10766. }
  10767. /**
  10768. * Generate a new session ID for the session.
  10769. *
  10770. * @param bool $destroy
  10771. * @return bool
  10772. * @static
  10773. */
  10774. public static function migrate($destroy = false)
  10775. {
  10776. /** @var \Illuminate\Session\Store $instance */
  10777. return $instance->migrate($destroy);
  10778. }
  10779. /**
  10780. * Determine if the session has been started.
  10781. *
  10782. * @return bool
  10783. * @static
  10784. */
  10785. public static function isStarted()
  10786. {
  10787. /** @var \Illuminate\Session\Store $instance */
  10788. return $instance->isStarted();
  10789. }
  10790. /**
  10791. * Get the name of the session.
  10792. *
  10793. * @return string
  10794. * @static
  10795. */
  10796. public static function getName()
  10797. {
  10798. /** @var \Illuminate\Session\Store $instance */
  10799. return $instance->getName();
  10800. }
  10801. /**
  10802. * Set the name of the session.
  10803. *
  10804. * @param string $name
  10805. * @return void
  10806. * @static
  10807. */
  10808. public static function setName($name)
  10809. {
  10810. /** @var \Illuminate\Session\Store $instance */
  10811. $instance->setName($name);
  10812. }
  10813. /**
  10814. * Get the current session ID.
  10815. *
  10816. * @return string
  10817. * @static
  10818. */
  10819. public static function getId()
  10820. {
  10821. /** @var \Illuminate\Session\Store $instance */
  10822. return $instance->getId();
  10823. }
  10824. /**
  10825. * Set the session ID.
  10826. *
  10827. * @param string $id
  10828. * @return void
  10829. * @static
  10830. */
  10831. public static function setId($id)
  10832. {
  10833. /** @var \Illuminate\Session\Store $instance */
  10834. $instance->setId($id);
  10835. }
  10836. /**
  10837. * Determine if this is a valid session ID.
  10838. *
  10839. * @param string $id
  10840. * @return bool
  10841. * @static
  10842. */
  10843. public static function isValidId($id)
  10844. {
  10845. /** @var \Illuminate\Session\Store $instance */
  10846. return $instance->isValidId($id);
  10847. }
  10848. /**
  10849. * Set the existence of the session on the handler if applicable.
  10850. *
  10851. * @param bool $value
  10852. * @return void
  10853. * @static
  10854. */
  10855. public static function setExists($value)
  10856. {
  10857. /** @var \Illuminate\Session\Store $instance */
  10858. $instance->setExists($value);
  10859. }
  10860. /**
  10861. * Get the CSRF token value.
  10862. *
  10863. * @return string
  10864. * @static
  10865. */
  10866. public static function token()
  10867. {
  10868. /** @var \Illuminate\Session\Store $instance */
  10869. return $instance->token();
  10870. }
  10871. /**
  10872. * Regenerate the CSRF token value.
  10873. *
  10874. * @return void
  10875. * @static
  10876. */
  10877. public static function regenerateToken()
  10878. {
  10879. /** @var \Illuminate\Session\Store $instance */
  10880. $instance->regenerateToken();
  10881. }
  10882. /**
  10883. * Get the previous URL from the session.
  10884. *
  10885. * @return string|null
  10886. * @static
  10887. */
  10888. public static function previousUrl()
  10889. {
  10890. /** @var \Illuminate\Session\Store $instance */
  10891. return $instance->previousUrl();
  10892. }
  10893. /**
  10894. * Set the "previous" URL in the session.
  10895. *
  10896. * @param string $url
  10897. * @return void
  10898. * @static
  10899. */
  10900. public static function setPreviousUrl($url)
  10901. {
  10902. /** @var \Illuminate\Session\Store $instance */
  10903. $instance->setPreviousUrl($url);
  10904. }
  10905. /**
  10906. * Get the underlying session handler implementation.
  10907. *
  10908. * @return \SessionHandlerInterface
  10909. * @static
  10910. */
  10911. public static function getHandler()
  10912. {
  10913. /** @var \Illuminate\Session\Store $instance */
  10914. return $instance->getHandler();
  10915. }
  10916. /**
  10917. * Determine if the session handler needs a request.
  10918. *
  10919. * @return bool
  10920. * @static
  10921. */
  10922. public static function handlerNeedsRequest()
  10923. {
  10924. /** @var \Illuminate\Session\Store $instance */
  10925. return $instance->handlerNeedsRequest();
  10926. }
  10927. /**
  10928. * Set the request on the handler instance.
  10929. *
  10930. * @param \Illuminate\Http\Request $request
  10931. * @return void
  10932. * @static
  10933. */
  10934. public static function setRequestOnHandler($request)
  10935. {
  10936. /** @var \Illuminate\Session\Store $instance */
  10937. $instance->setRequestOnHandler($request);
  10938. }
  10939. }
  10940. /**
  10941. *
  10942. *
  10943. * @see \Illuminate\Filesystem\FilesystemManager
  10944. */
  10945. class Storage {
  10946. /**
  10947. * Get a filesystem instance.
  10948. *
  10949. * @param string $name
  10950. * @return \Illuminate\Filesystem\FilesystemAdapter
  10951. * @static
  10952. */
  10953. public static function drive($name = null)
  10954. {
  10955. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10956. return $instance->drive($name);
  10957. }
  10958. /**
  10959. * Get a filesystem instance.
  10960. *
  10961. * @param string $name
  10962. * @return \Illuminate\Filesystem\FilesystemAdapter
  10963. * @static
  10964. */
  10965. public static function disk($name = null)
  10966. {
  10967. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10968. return $instance->disk($name);
  10969. }
  10970. /**
  10971. * Get a default cloud filesystem instance.
  10972. *
  10973. * @return \Illuminate\Filesystem\FilesystemAdapter
  10974. * @static
  10975. */
  10976. public static function cloud()
  10977. {
  10978. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10979. return $instance->cloud();
  10980. }
  10981. /**
  10982. * Create an instance of the local driver.
  10983. *
  10984. * @param array $config
  10985. * @return \Illuminate\Filesystem\FilesystemAdapter
  10986. * @static
  10987. */
  10988. public static function createLocalDriver($config)
  10989. {
  10990. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10991. return $instance->createLocalDriver($config);
  10992. }
  10993. /**
  10994. * Create an instance of the ftp driver.
  10995. *
  10996. * @param array $config
  10997. * @return \Illuminate\Filesystem\FilesystemAdapter
  10998. * @static
  10999. */
  11000. public static function createFtpDriver($config)
  11001. {
  11002. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11003. return $instance->createFtpDriver($config);
  11004. }
  11005. /**
  11006. * Create an instance of the Amazon S3 driver.
  11007. *
  11008. * @param array $config
  11009. * @return \Illuminate\Contracts\Filesystem\Cloud
  11010. * @static
  11011. */
  11012. public static function createS3Driver($config)
  11013. {
  11014. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11015. return $instance->createS3Driver($config);
  11016. }
  11017. /**
  11018. * Create an instance of the Rackspace driver.
  11019. *
  11020. * @param array $config
  11021. * @return \Illuminate\Contracts\Filesystem\Cloud
  11022. * @static
  11023. */
  11024. public static function createRackspaceDriver($config)
  11025. {
  11026. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11027. return $instance->createRackspaceDriver($config);
  11028. }
  11029. /**
  11030. * Set the given disk instance.
  11031. *
  11032. * @param string $name
  11033. * @param mixed $disk
  11034. * @return void
  11035. * @static
  11036. */
  11037. public static function set($name, $disk)
  11038. {
  11039. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11040. $instance->set($name, $disk);
  11041. }
  11042. /**
  11043. * Get the default driver name.
  11044. *
  11045. * @return string
  11046. * @static
  11047. */
  11048. public static function getDefaultDriver()
  11049. {
  11050. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11051. return $instance->getDefaultDriver();
  11052. }
  11053. /**
  11054. * Get the default cloud driver name.
  11055. *
  11056. * @return string
  11057. * @static
  11058. */
  11059. public static function getDefaultCloudDriver()
  11060. {
  11061. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11062. return $instance->getDefaultCloudDriver();
  11063. }
  11064. /**
  11065. * Register a custom driver creator Closure.
  11066. *
  11067. * @param string $driver
  11068. * @param \Closure $callback
  11069. * @return \Illuminate\Filesystem\FilesystemManager
  11070. * @static
  11071. */
  11072. public static function extend($driver, $callback)
  11073. {
  11074. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11075. return $instance->extend($driver, $callback);
  11076. }
  11077. /**
  11078. * Assert that the given file exists.
  11079. *
  11080. * @param string $path
  11081. * @return void
  11082. * @static
  11083. */
  11084. public static function assertExists($path)
  11085. {
  11086. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11087. $instance->assertExists($path);
  11088. }
  11089. /**
  11090. * Assert that the given file does not exist.
  11091. *
  11092. * @param string $path
  11093. * @return void
  11094. * @static
  11095. */
  11096. public static function assertMissing($path)
  11097. {
  11098. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11099. $instance->assertMissing($path);
  11100. }
  11101. /**
  11102. * Determine if a file exists.
  11103. *
  11104. * @param string $path
  11105. * @return bool
  11106. * @static
  11107. */
  11108. public static function exists($path)
  11109. {
  11110. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11111. return $instance->exists($path);
  11112. }
  11113. /**
  11114. * Get the full path for the file at the given "short" path.
  11115. *
  11116. * @param string $path
  11117. * @return string
  11118. * @static
  11119. */
  11120. public static function path($path)
  11121. {
  11122. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11123. return $instance->path($path);
  11124. }
  11125. /**
  11126. * Get the contents of a file.
  11127. *
  11128. * @param string $path
  11129. * @return string
  11130. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  11131. * @static
  11132. */
  11133. public static function get($path)
  11134. {
  11135. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11136. return $instance->get($path);
  11137. }
  11138. /**
  11139. * Create a streamed response for a given file.
  11140. *
  11141. * @param string $path
  11142. * @param string|null $name
  11143. * @param array|null $headers
  11144. * @param string|null $disposition
  11145. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11146. * @static
  11147. */
  11148. public static function response($path, $name = null, $headers = array(), $disposition = 'inline')
  11149. {
  11150. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11151. return $instance->response($path, $name, $headers, $disposition);
  11152. }
  11153. /**
  11154. * Create a streamed download response for a given file.
  11155. *
  11156. * @param string $path
  11157. * @param string|null $name
  11158. * @param array|null $headers
  11159. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11160. * @static
  11161. */
  11162. public static function download($path, $name = null, $headers = array())
  11163. {
  11164. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11165. return $instance->download($path, $name, $headers);
  11166. }
  11167. /**
  11168. * Write the contents of a file.
  11169. *
  11170. * @param string $path
  11171. * @param string|resource $contents
  11172. * @param mixed $options
  11173. * @return bool
  11174. * @static
  11175. */
  11176. public static function put($path, $contents, $options = array())
  11177. {
  11178. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11179. return $instance->put($path, $contents, $options);
  11180. }
  11181. /**
  11182. * Store the uploaded file on the disk.
  11183. *
  11184. * @param string $path
  11185. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11186. * @param array $options
  11187. * @return string|false
  11188. * @static
  11189. */
  11190. public static function putFile($path, $file, $options = array())
  11191. {
  11192. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11193. return $instance->putFile($path, $file, $options);
  11194. }
  11195. /**
  11196. * Store the uploaded file on the disk with a given name.
  11197. *
  11198. * @param string $path
  11199. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11200. * @param string $name
  11201. * @param array $options
  11202. * @return string|false
  11203. * @static
  11204. */
  11205. public static function putFileAs($path, $file, $name, $options = array())
  11206. {
  11207. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11208. return $instance->putFileAs($path, $file, $name, $options);
  11209. }
  11210. /**
  11211. * Get the visibility for the given path.
  11212. *
  11213. * @param string $path
  11214. * @return string
  11215. * @static
  11216. */
  11217. public static function getVisibility($path)
  11218. {
  11219. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11220. return $instance->getVisibility($path);
  11221. }
  11222. /**
  11223. * Set the visibility for the given path.
  11224. *
  11225. * @param string $path
  11226. * @param string $visibility
  11227. * @return void
  11228. * @static
  11229. */
  11230. public static function setVisibility($path, $visibility)
  11231. {
  11232. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11233. $instance->setVisibility($path, $visibility);
  11234. }
  11235. /**
  11236. * Prepend to a file.
  11237. *
  11238. * @param string $path
  11239. * @param string $data
  11240. * @param string $separator
  11241. * @return int
  11242. * @static
  11243. */
  11244. public static function prepend($path, $data, $separator = '')
  11245. {
  11246. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11247. return $instance->prepend($path, $data, $separator);
  11248. }
  11249. /**
  11250. * Append to a file.
  11251. *
  11252. * @param string $path
  11253. * @param string $data
  11254. * @param string $separator
  11255. * @return int
  11256. * @static
  11257. */
  11258. public static function append($path, $data, $separator = '')
  11259. {
  11260. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11261. return $instance->append($path, $data, $separator);
  11262. }
  11263. /**
  11264. * Delete the file at a given path.
  11265. *
  11266. * @param string|array $paths
  11267. * @return bool
  11268. * @static
  11269. */
  11270. public static function delete($paths)
  11271. {
  11272. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11273. return $instance->delete($paths);
  11274. }
  11275. /**
  11276. * Copy a file to a new location.
  11277. *
  11278. * @param string $from
  11279. * @param string $to
  11280. * @return bool
  11281. * @static
  11282. */
  11283. public static function copy($from, $to)
  11284. {
  11285. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11286. return $instance->copy($from, $to);
  11287. }
  11288. /**
  11289. * Move a file to a new location.
  11290. *
  11291. * @param string $from
  11292. * @param string $to
  11293. * @return bool
  11294. * @static
  11295. */
  11296. public static function move($from, $to)
  11297. {
  11298. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11299. return $instance->move($from, $to);
  11300. }
  11301. /**
  11302. * Get the file size of a given file.
  11303. *
  11304. * @param string $path
  11305. * @return int
  11306. * @static
  11307. */
  11308. public static function size($path)
  11309. {
  11310. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11311. return $instance->size($path);
  11312. }
  11313. /**
  11314. * Get the mime-type of a given file.
  11315. *
  11316. * @param string $path
  11317. * @return string|false
  11318. * @static
  11319. */
  11320. public static function mimeType($path)
  11321. {
  11322. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11323. return $instance->mimeType($path);
  11324. }
  11325. /**
  11326. * Get the file's last modification time.
  11327. *
  11328. * @param string $path
  11329. * @return int
  11330. * @static
  11331. */
  11332. public static function lastModified($path)
  11333. {
  11334. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11335. return $instance->lastModified($path);
  11336. }
  11337. /**
  11338. * Get the URL for the file at the given path.
  11339. *
  11340. * @param string $path
  11341. * @return string
  11342. * @static
  11343. */
  11344. public static function url($path)
  11345. {
  11346. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11347. return $instance->url($path);
  11348. }
  11349. /**
  11350. * Get a temporary URL for the file at the given path.
  11351. *
  11352. * @param string $path
  11353. * @param \DateTimeInterface $expiration
  11354. * @param array $options
  11355. * @return string
  11356. * @static
  11357. */
  11358. public static function temporaryUrl($path, $expiration, $options = array())
  11359. {
  11360. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11361. return $instance->temporaryUrl($path, $expiration, $options);
  11362. }
  11363. /**
  11364. * Get a temporary URL for the file at the given path.
  11365. *
  11366. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  11367. * @param string $path
  11368. * @param \DateTimeInterface $expiration
  11369. * @param array $options
  11370. * @return string
  11371. * @static
  11372. */
  11373. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  11374. {
  11375. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11376. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  11377. }
  11378. /**
  11379. * Get a temporary URL for the file at the given path.
  11380. *
  11381. * @param \League\Flysystem\Rackspace\RackspaceAdapter $adapter
  11382. * @param string $path
  11383. * @param \DateTimeInterface $expiration
  11384. * @param array $options
  11385. * @return string
  11386. * @static
  11387. */
  11388. public static function getRackspaceTemporaryUrl($adapter, $path, $expiration, $options)
  11389. {
  11390. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11391. return $instance->getRackspaceTemporaryUrl($adapter, $path, $expiration, $options);
  11392. }
  11393. /**
  11394. * Get an array of all files in a directory.
  11395. *
  11396. * @param string|null $directory
  11397. * @param bool $recursive
  11398. * @return array
  11399. * @static
  11400. */
  11401. public static function files($directory = null, $recursive = false)
  11402. {
  11403. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11404. return $instance->files($directory, $recursive);
  11405. }
  11406. /**
  11407. * Get all of the files from the given directory (recursive).
  11408. *
  11409. * @param string|null $directory
  11410. * @return array
  11411. * @static
  11412. */
  11413. public static function allFiles($directory = null)
  11414. {
  11415. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11416. return $instance->allFiles($directory);
  11417. }
  11418. /**
  11419. * Get all of the directories within a given directory.
  11420. *
  11421. * @param string|null $directory
  11422. * @param bool $recursive
  11423. * @return array
  11424. * @static
  11425. */
  11426. public static function directories($directory = null, $recursive = false)
  11427. {
  11428. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11429. return $instance->directories($directory, $recursive);
  11430. }
  11431. /**
  11432. * Get all (recursive) of the directories within a given directory.
  11433. *
  11434. * @param string|null $directory
  11435. * @return array
  11436. * @static
  11437. */
  11438. public static function allDirectories($directory = null)
  11439. {
  11440. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11441. return $instance->allDirectories($directory);
  11442. }
  11443. /**
  11444. * Create a directory.
  11445. *
  11446. * @param string $path
  11447. * @return bool
  11448. * @static
  11449. */
  11450. public static function makeDirectory($path)
  11451. {
  11452. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11453. return $instance->makeDirectory($path);
  11454. }
  11455. /**
  11456. * Recursively delete a directory.
  11457. *
  11458. * @param string $directory
  11459. * @return bool
  11460. * @static
  11461. */
  11462. public static function deleteDirectory($directory)
  11463. {
  11464. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11465. return $instance->deleteDirectory($directory);
  11466. }
  11467. /**
  11468. * Flush the Flysystem cache.
  11469. *
  11470. * @return void
  11471. * @static
  11472. */
  11473. public static function flushCache()
  11474. {
  11475. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11476. $instance->flushCache();
  11477. }
  11478. /**
  11479. * Get the Flysystem driver.
  11480. *
  11481. * @return \League\Flysystem\FilesystemInterface
  11482. * @static
  11483. */
  11484. public static function getDriver()
  11485. {
  11486. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11487. return $instance->getDriver();
  11488. }
  11489. }
  11490. /**
  11491. *
  11492. *
  11493. * @see \Illuminate\Routing\UrlGenerator
  11494. */
  11495. class URL {
  11496. /**
  11497. * Get the full URL for the current request.
  11498. *
  11499. * @return string
  11500. * @static
  11501. */
  11502. public static function full()
  11503. {
  11504. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11505. return $instance->full();
  11506. }
  11507. /**
  11508. * Get the current URL for the request.
  11509. *
  11510. * @return string
  11511. * @static
  11512. */
  11513. public static function current()
  11514. {
  11515. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11516. return $instance->current();
  11517. }
  11518. /**
  11519. * Get the URL for the previous request.
  11520. *
  11521. * @param mixed $fallback
  11522. * @return string
  11523. * @static
  11524. */
  11525. public static function previous($fallback = false)
  11526. {
  11527. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11528. return $instance->previous($fallback);
  11529. }
  11530. /**
  11531. * Generate an absolute URL to the given path.
  11532. *
  11533. * @param string $path
  11534. * @param mixed $extra
  11535. * @param bool|null $secure
  11536. * @return string
  11537. * @static
  11538. */
  11539. public static function to($path, $extra = array(), $secure = null)
  11540. {
  11541. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11542. return $instance->to($path, $extra, $secure);
  11543. }
  11544. /**
  11545. * Generate a secure, absolute URL to the given path.
  11546. *
  11547. * @param string $path
  11548. * @param array $parameters
  11549. * @return string
  11550. * @static
  11551. */
  11552. public static function secure($path, $parameters = array())
  11553. {
  11554. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11555. return $instance->secure($path, $parameters);
  11556. }
  11557. /**
  11558. * Generate the URL to an application asset.
  11559. *
  11560. * @param string $path
  11561. * @param bool|null $secure
  11562. * @return string
  11563. * @static
  11564. */
  11565. public static function asset($path, $secure = null)
  11566. {
  11567. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11568. return $instance->asset($path, $secure);
  11569. }
  11570. /**
  11571. * Generate the URL to a secure asset.
  11572. *
  11573. * @param string $path
  11574. * @return string
  11575. * @static
  11576. */
  11577. public static function secureAsset($path)
  11578. {
  11579. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11580. return $instance->secureAsset($path);
  11581. }
  11582. /**
  11583. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  11584. *
  11585. * @param string $root
  11586. * @param string $path
  11587. * @param bool|null $secure
  11588. * @return string
  11589. * @static
  11590. */
  11591. public static function assetFrom($root, $path, $secure = null)
  11592. {
  11593. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11594. return $instance->assetFrom($root, $path, $secure);
  11595. }
  11596. /**
  11597. * Get the default scheme for a raw URL.
  11598. *
  11599. * @param bool|null $secure
  11600. * @return string
  11601. * @static
  11602. */
  11603. public static function formatScheme($secure)
  11604. {
  11605. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11606. return $instance->formatScheme($secure);
  11607. }
  11608. /**
  11609. * Get the URL to a named route.
  11610. *
  11611. * @param string $name
  11612. * @param mixed $parameters
  11613. * @param bool $absolute
  11614. * @return string
  11615. * @throws \InvalidArgumentException
  11616. * @static
  11617. */
  11618. public static function route($name, $parameters = array(), $absolute = true)
  11619. {
  11620. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11621. return $instance->route($name, $parameters, $absolute);
  11622. }
  11623. /**
  11624. * Get the URL to a controller action.
  11625. *
  11626. * @param string $action
  11627. * @param mixed $parameters
  11628. * @param bool $absolute
  11629. * @return string
  11630. * @throws \InvalidArgumentException
  11631. * @static
  11632. */
  11633. public static function action($action, $parameters = array(), $absolute = true)
  11634. {
  11635. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11636. return $instance->action($action, $parameters, $absolute);
  11637. }
  11638. /**
  11639. * Format the array of URL parameters.
  11640. *
  11641. * @param mixed|array $parameters
  11642. * @return array
  11643. * @static
  11644. */
  11645. public static function formatParameters($parameters)
  11646. {
  11647. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11648. return $instance->formatParameters($parameters);
  11649. }
  11650. /**
  11651. * Get the base URL for the request.
  11652. *
  11653. * @param string $scheme
  11654. * @param string $root
  11655. * @return string
  11656. * @static
  11657. */
  11658. public static function formatRoot($scheme, $root = null)
  11659. {
  11660. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11661. return $instance->formatRoot($scheme, $root);
  11662. }
  11663. /**
  11664. * Format the given URL segments into a single URL.
  11665. *
  11666. * @param string $root
  11667. * @param string $path
  11668. * @return string
  11669. * @static
  11670. */
  11671. public static function format($root, $path)
  11672. {
  11673. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11674. return $instance->format($root, $path);
  11675. }
  11676. /**
  11677. * Determine if the given path is a valid URL.
  11678. *
  11679. * @param string $path
  11680. * @return bool
  11681. * @static
  11682. */
  11683. public static function isValidUrl($path)
  11684. {
  11685. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11686. return $instance->isValidUrl($path);
  11687. }
  11688. /**
  11689. * Set the default named parameters used by the URL generator.
  11690. *
  11691. * @param array $defaults
  11692. * @return void
  11693. * @static
  11694. */
  11695. public static function defaults($defaults)
  11696. {
  11697. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11698. $instance->defaults($defaults);
  11699. }
  11700. /**
  11701. * Get the default named parameters used by the URL generator.
  11702. *
  11703. * @return array
  11704. * @static
  11705. */
  11706. public static function getDefaultParameters()
  11707. {
  11708. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11709. return $instance->getDefaultParameters();
  11710. }
  11711. /**
  11712. * Force the scheme for URLs.
  11713. *
  11714. * @param string $schema
  11715. * @return void
  11716. * @static
  11717. */
  11718. public static function forceScheme($schema)
  11719. {
  11720. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11721. $instance->forceScheme($schema);
  11722. }
  11723. /**
  11724. * Set the forced root URL.
  11725. *
  11726. * @param string $root
  11727. * @return void
  11728. * @static
  11729. */
  11730. public static function forceRootUrl($root)
  11731. {
  11732. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11733. $instance->forceRootUrl($root);
  11734. }
  11735. /**
  11736. * Set a callback to be used to format the host of generated URLs.
  11737. *
  11738. * @param \Closure $callback
  11739. * @return \Illuminate\Routing\UrlGenerator
  11740. * @static
  11741. */
  11742. public static function formatHostUsing($callback)
  11743. {
  11744. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11745. return $instance->formatHostUsing($callback);
  11746. }
  11747. /**
  11748. * Set a callback to be used to format the path of generated URLs.
  11749. *
  11750. * @param \Closure $callback
  11751. * @return \Illuminate\Routing\UrlGenerator
  11752. * @static
  11753. */
  11754. public static function formatPathUsing($callback)
  11755. {
  11756. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11757. return $instance->formatPathUsing($callback);
  11758. }
  11759. /**
  11760. * Get the path formatter being used by the URL generator.
  11761. *
  11762. * @return \Closure
  11763. * @static
  11764. */
  11765. public static function pathFormatter()
  11766. {
  11767. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11768. return $instance->pathFormatter();
  11769. }
  11770. /**
  11771. * Get the request instance.
  11772. *
  11773. * @return \Illuminate\Http\Request
  11774. * @static
  11775. */
  11776. public static function getRequest()
  11777. {
  11778. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11779. return $instance->getRequest();
  11780. }
  11781. /**
  11782. * Set the current request instance.
  11783. *
  11784. * @param \Illuminate\Http\Request $request
  11785. * @return void
  11786. * @static
  11787. */
  11788. public static function setRequest($request)
  11789. {
  11790. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11791. $instance->setRequest($request);
  11792. }
  11793. /**
  11794. * Set the route collection.
  11795. *
  11796. * @param \Illuminate\Routing\RouteCollection $routes
  11797. * @return \Illuminate\Routing\UrlGenerator
  11798. * @static
  11799. */
  11800. public static function setRoutes($routes)
  11801. {
  11802. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11803. return $instance->setRoutes($routes);
  11804. }
  11805. /**
  11806. * Set the session resolver for the generator.
  11807. *
  11808. * @param callable $sessionResolver
  11809. * @return \Illuminate\Routing\UrlGenerator
  11810. * @static
  11811. */
  11812. public static function setSessionResolver($sessionResolver)
  11813. {
  11814. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11815. return $instance->setSessionResolver($sessionResolver);
  11816. }
  11817. /**
  11818. * Set the root controller namespace.
  11819. *
  11820. * @param string $rootNamespace
  11821. * @return \Illuminate\Routing\UrlGenerator
  11822. * @static
  11823. */
  11824. public static function setRootControllerNamespace($rootNamespace)
  11825. {
  11826. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11827. return $instance->setRootControllerNamespace($rootNamespace);
  11828. }
  11829. /**
  11830. * Register a custom macro.
  11831. *
  11832. * @param string $name
  11833. * @param object|callable $macro
  11834. * @return void
  11835. * @static
  11836. */
  11837. public static function macro($name, $macro)
  11838. {
  11839. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  11840. }
  11841. /**
  11842. * Mix another object into the class.
  11843. *
  11844. * @param object $mixin
  11845. * @return void
  11846. * @static
  11847. */
  11848. public static function mixin($mixin)
  11849. {
  11850. \Illuminate\Routing\UrlGenerator::mixin($mixin);
  11851. }
  11852. /**
  11853. * Checks if macro is registered.
  11854. *
  11855. * @param string $name
  11856. * @return bool
  11857. * @static
  11858. */
  11859. public static function hasMacro($name)
  11860. {
  11861. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  11862. }
  11863. }
  11864. /**
  11865. *
  11866. *
  11867. * @see \Illuminate\Validation\Factory
  11868. */
  11869. class Validator {
  11870. /**
  11871. * Create a new Validator instance.
  11872. *
  11873. * @param array $data
  11874. * @param array $rules
  11875. * @param array $messages
  11876. * @param array $customAttributes
  11877. * @return \Illuminate\Validation\Validator
  11878. * @static
  11879. */
  11880. public static function make($data, $rules, $messages = array(), $customAttributes = array())
  11881. {
  11882. /** @var \Illuminate\Validation\Factory $instance */
  11883. return $instance->make($data, $rules, $messages, $customAttributes);
  11884. }
  11885. /**
  11886. * Validate the given data against the provided rules.
  11887. *
  11888. * @param array $data
  11889. * @param array $rules
  11890. * @param array $messages
  11891. * @param array $customAttributes
  11892. * @return void
  11893. * @throws \Illuminate\Validation\ValidationException
  11894. * @static
  11895. */
  11896. public static function validate($data, $rules, $messages = array(), $customAttributes = array())
  11897. {
  11898. /** @var \Illuminate\Validation\Factory $instance */
  11899. $instance->validate($data, $rules, $messages, $customAttributes);
  11900. }
  11901. /**
  11902. * Register a custom validator extension.
  11903. *
  11904. * @param string $rule
  11905. * @param \Closure|string $extension
  11906. * @param string $message
  11907. * @return void
  11908. * @static
  11909. */
  11910. public static function extend($rule, $extension, $message = null)
  11911. {
  11912. /** @var \Illuminate\Validation\Factory $instance */
  11913. $instance->extend($rule, $extension, $message);
  11914. }
  11915. /**
  11916. * Register a custom implicit validator extension.
  11917. *
  11918. * @param string $rule
  11919. * @param \Closure|string $extension
  11920. * @param string $message
  11921. * @return void
  11922. * @static
  11923. */
  11924. public static function extendImplicit($rule, $extension, $message = null)
  11925. {
  11926. /** @var \Illuminate\Validation\Factory $instance */
  11927. $instance->extendImplicit($rule, $extension, $message);
  11928. }
  11929. /**
  11930. * Register a custom dependent validator extension.
  11931. *
  11932. * @param string $rule
  11933. * @param \Closure|string $extension
  11934. * @param string $message
  11935. * @return void
  11936. * @static
  11937. */
  11938. public static function extendDependent($rule, $extension, $message = null)
  11939. {
  11940. /** @var \Illuminate\Validation\Factory $instance */
  11941. $instance->extendDependent($rule, $extension, $message);
  11942. }
  11943. /**
  11944. * Register a custom validator message replacer.
  11945. *
  11946. * @param string $rule
  11947. * @param \Closure|string $replacer
  11948. * @return void
  11949. * @static
  11950. */
  11951. public static function replacer($rule, $replacer)
  11952. {
  11953. /** @var \Illuminate\Validation\Factory $instance */
  11954. $instance->replacer($rule, $replacer);
  11955. }
  11956. /**
  11957. * Set the Validator instance resolver.
  11958. *
  11959. * @param \Closure $resolver
  11960. * @return void
  11961. * @static
  11962. */
  11963. public static function resolver($resolver)
  11964. {
  11965. /** @var \Illuminate\Validation\Factory $instance */
  11966. $instance->resolver($resolver);
  11967. }
  11968. /**
  11969. * Get the Translator implementation.
  11970. *
  11971. * @return \Illuminate\Contracts\Translation\Translator
  11972. * @static
  11973. */
  11974. public static function getTranslator()
  11975. {
  11976. /** @var \Illuminate\Validation\Factory $instance */
  11977. return $instance->getTranslator();
  11978. }
  11979. /**
  11980. * Get the Presence Verifier implementation.
  11981. *
  11982. * @return \Illuminate\Validation\PresenceVerifierInterface
  11983. * @static
  11984. */
  11985. public static function getPresenceVerifier()
  11986. {
  11987. /** @var \Illuminate\Validation\Factory $instance */
  11988. return $instance->getPresenceVerifier();
  11989. }
  11990. /**
  11991. * Set the Presence Verifier implementation.
  11992. *
  11993. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  11994. * @return void
  11995. * @static
  11996. */
  11997. public static function setPresenceVerifier($presenceVerifier)
  11998. {
  11999. /** @var \Illuminate\Validation\Factory $instance */
  12000. $instance->setPresenceVerifier($presenceVerifier);
  12001. }
  12002. }
  12003. /**
  12004. *
  12005. *
  12006. * @see \Illuminate\View\Factory
  12007. */
  12008. class View {
  12009. /**
  12010. * Get the evaluated view contents for the given view.
  12011. *
  12012. * @param string $path
  12013. * @param array $data
  12014. * @param array $mergeData
  12015. * @return \Illuminate\Contracts\View\View
  12016. * @static
  12017. */
  12018. public static function file($path, $data = array(), $mergeData = array())
  12019. {
  12020. /** @var \Illuminate\View\Factory $instance */
  12021. return $instance->file($path, $data, $mergeData);
  12022. }
  12023. /**
  12024. * Get the evaluated view contents for the given view.
  12025. *
  12026. * @param string $view
  12027. * @param array $data
  12028. * @param array $mergeData
  12029. * @return \Illuminate\Contracts\View\View
  12030. * @static
  12031. */
  12032. public static function make($view, $data = array(), $mergeData = array())
  12033. {
  12034. /** @var \Illuminate\View\Factory $instance */
  12035. return $instance->make($view, $data, $mergeData);
  12036. }
  12037. /**
  12038. * Get the first view that actually exists from the given list.
  12039. *
  12040. * @param array $views
  12041. * @param array $data
  12042. * @param array $mergeData
  12043. * @return \Illuminate\Contracts\View\View
  12044. * @static
  12045. */
  12046. public static function first($views, $data = array(), $mergeData = array())
  12047. {
  12048. /** @var \Illuminate\View\Factory $instance */
  12049. return $instance->first($views, $data, $mergeData);
  12050. }
  12051. /**
  12052. * Get the rendered content of the view based on a given condition.
  12053. *
  12054. * @param bool $condition
  12055. * @param string $view
  12056. * @param array $data
  12057. * @param array $mergeData
  12058. * @return string
  12059. * @static
  12060. */
  12061. public static function renderWhen($condition, $view, $data = array(), $mergeData = array())
  12062. {
  12063. /** @var \Illuminate\View\Factory $instance */
  12064. return $instance->renderWhen($condition, $view, $data, $mergeData);
  12065. }
  12066. /**
  12067. * Get the rendered contents of a partial from a loop.
  12068. *
  12069. * @param string $view
  12070. * @param array $data
  12071. * @param string $iterator
  12072. * @param string $empty
  12073. * @return string
  12074. * @static
  12075. */
  12076. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  12077. {
  12078. /** @var \Illuminate\View\Factory $instance */
  12079. return $instance->renderEach($view, $data, $iterator, $empty);
  12080. }
  12081. /**
  12082. * Determine if a given view exists.
  12083. *
  12084. * @param string $view
  12085. * @return bool
  12086. * @static
  12087. */
  12088. public static function exists($view)
  12089. {
  12090. /** @var \Illuminate\View\Factory $instance */
  12091. return $instance->exists($view);
  12092. }
  12093. /**
  12094. * Get the appropriate view engine for the given path.
  12095. *
  12096. * @param string $path
  12097. * @return \Illuminate\Contracts\View\Engine
  12098. * @throws \InvalidArgumentException
  12099. * @static
  12100. */
  12101. public static function getEngineFromPath($path)
  12102. {
  12103. /** @var \Illuminate\View\Factory $instance */
  12104. return $instance->getEngineFromPath($path);
  12105. }
  12106. /**
  12107. * Add a piece of shared data to the environment.
  12108. *
  12109. * @param array|string $key
  12110. * @param mixed $value
  12111. * @return mixed
  12112. * @static
  12113. */
  12114. public static function share($key, $value = null)
  12115. {
  12116. /** @var \Illuminate\View\Factory $instance */
  12117. return $instance->share($key, $value);
  12118. }
  12119. /**
  12120. * Increment the rendering counter.
  12121. *
  12122. * @return void
  12123. * @static
  12124. */
  12125. public static function incrementRender()
  12126. {
  12127. /** @var \Illuminate\View\Factory $instance */
  12128. $instance->incrementRender();
  12129. }
  12130. /**
  12131. * Decrement the rendering counter.
  12132. *
  12133. * @return void
  12134. * @static
  12135. */
  12136. public static function decrementRender()
  12137. {
  12138. /** @var \Illuminate\View\Factory $instance */
  12139. $instance->decrementRender();
  12140. }
  12141. /**
  12142. * Check if there are no active render operations.
  12143. *
  12144. * @return bool
  12145. * @static
  12146. */
  12147. public static function doneRendering()
  12148. {
  12149. /** @var \Illuminate\View\Factory $instance */
  12150. return $instance->doneRendering();
  12151. }
  12152. /**
  12153. * Add a location to the array of view locations.
  12154. *
  12155. * @param string $location
  12156. * @return void
  12157. * @static
  12158. */
  12159. public static function addLocation($location)
  12160. {
  12161. /** @var \Illuminate\View\Factory $instance */
  12162. $instance->addLocation($location);
  12163. }
  12164. /**
  12165. * Add a new namespace to the loader.
  12166. *
  12167. * @param string $namespace
  12168. * @param string|array $hints
  12169. * @return \Illuminate\View\Factory
  12170. * @static
  12171. */
  12172. public static function addNamespace($namespace, $hints)
  12173. {
  12174. /** @var \Illuminate\View\Factory $instance */
  12175. return $instance->addNamespace($namespace, $hints);
  12176. }
  12177. /**
  12178. * Prepend a new namespace to the loader.
  12179. *
  12180. * @param string $namespace
  12181. * @param string|array $hints
  12182. * @return \Illuminate\View\Factory
  12183. * @static
  12184. */
  12185. public static function prependNamespace($namespace, $hints)
  12186. {
  12187. /** @var \Illuminate\View\Factory $instance */
  12188. return $instance->prependNamespace($namespace, $hints);
  12189. }
  12190. /**
  12191. * Replace the namespace hints for the given namespace.
  12192. *
  12193. * @param string $namespace
  12194. * @param string|array $hints
  12195. * @return \Illuminate\View\Factory
  12196. * @static
  12197. */
  12198. public static function replaceNamespace($namespace, $hints)
  12199. {
  12200. /** @var \Illuminate\View\Factory $instance */
  12201. return $instance->replaceNamespace($namespace, $hints);
  12202. }
  12203. /**
  12204. * Register a valid view extension and its engine.
  12205. *
  12206. * @param string $extension
  12207. * @param string $engine
  12208. * @param \Closure $resolver
  12209. * @return void
  12210. * @static
  12211. */
  12212. public static function addExtension($extension, $engine, $resolver = null)
  12213. {
  12214. /** @var \Illuminate\View\Factory $instance */
  12215. $instance->addExtension($extension, $engine, $resolver);
  12216. }
  12217. /**
  12218. * Flush all of the factory state like sections and stacks.
  12219. *
  12220. * @return void
  12221. * @static
  12222. */
  12223. public static function flushState()
  12224. {
  12225. /** @var \Illuminate\View\Factory $instance */
  12226. $instance->flushState();
  12227. }
  12228. /**
  12229. * Flush all of the section contents if done rendering.
  12230. *
  12231. * @return void
  12232. * @static
  12233. */
  12234. public static function flushStateIfDoneRendering()
  12235. {
  12236. /** @var \Illuminate\View\Factory $instance */
  12237. $instance->flushStateIfDoneRendering();
  12238. }
  12239. /**
  12240. * Get the extension to engine bindings.
  12241. *
  12242. * @return array
  12243. * @static
  12244. */
  12245. public static function getExtensions()
  12246. {
  12247. /** @var \Illuminate\View\Factory $instance */
  12248. return $instance->getExtensions();
  12249. }
  12250. /**
  12251. * Get the engine resolver instance.
  12252. *
  12253. * @return \Illuminate\View\Engines\EngineResolver
  12254. * @static
  12255. */
  12256. public static function getEngineResolver()
  12257. {
  12258. /** @var \Illuminate\View\Factory $instance */
  12259. return $instance->getEngineResolver();
  12260. }
  12261. /**
  12262. * Get the view finder instance.
  12263. *
  12264. * @return \Illuminate\View\ViewFinderInterface
  12265. * @static
  12266. */
  12267. public static function getFinder()
  12268. {
  12269. /** @var \Illuminate\View\Factory $instance */
  12270. return $instance->getFinder();
  12271. }
  12272. /**
  12273. * Set the view finder instance.
  12274. *
  12275. * @param \Illuminate\View\ViewFinderInterface $finder
  12276. * @return void
  12277. * @static
  12278. */
  12279. public static function setFinder($finder)
  12280. {
  12281. /** @var \Illuminate\View\Factory $instance */
  12282. $instance->setFinder($finder);
  12283. }
  12284. /**
  12285. * Flush the cache of views located by the finder.
  12286. *
  12287. * @return void
  12288. * @static
  12289. */
  12290. public static function flushFinderCache()
  12291. {
  12292. /** @var \Illuminate\View\Factory $instance */
  12293. $instance->flushFinderCache();
  12294. }
  12295. /**
  12296. * Get the event dispatcher instance.
  12297. *
  12298. * @return \Illuminate\Contracts\Events\Dispatcher
  12299. * @static
  12300. */
  12301. public static function getDispatcher()
  12302. {
  12303. /** @var \Illuminate\View\Factory $instance */
  12304. return $instance->getDispatcher();
  12305. }
  12306. /**
  12307. * Set the event dispatcher instance.
  12308. *
  12309. * @param \Illuminate\Contracts\Events\Dispatcher $events
  12310. * @return void
  12311. * @static
  12312. */
  12313. public static function setDispatcher($events)
  12314. {
  12315. /** @var \Illuminate\View\Factory $instance */
  12316. $instance->setDispatcher($events);
  12317. }
  12318. /**
  12319. * Get the IoC container instance.
  12320. *
  12321. * @return \Illuminate\Contracts\Container\Container
  12322. * @static
  12323. */
  12324. public static function getContainer()
  12325. {
  12326. /** @var \Illuminate\View\Factory $instance */
  12327. return $instance->getContainer();
  12328. }
  12329. /**
  12330. * Set the IoC container instance.
  12331. *
  12332. * @param \Illuminate\Contracts\Container\Container $container
  12333. * @return void
  12334. * @static
  12335. */
  12336. public static function setContainer($container)
  12337. {
  12338. /** @var \Illuminate\View\Factory $instance */
  12339. $instance->setContainer($container);
  12340. }
  12341. /**
  12342. * Get an item from the shared data.
  12343. *
  12344. * @param string $key
  12345. * @param mixed $default
  12346. * @return mixed
  12347. * @static
  12348. */
  12349. public static function shared($key, $default = null)
  12350. {
  12351. /** @var \Illuminate\View\Factory $instance */
  12352. return $instance->shared($key, $default);
  12353. }
  12354. /**
  12355. * Get all of the shared data for the environment.
  12356. *
  12357. * @return array
  12358. * @static
  12359. */
  12360. public static function getShared()
  12361. {
  12362. /** @var \Illuminate\View\Factory $instance */
  12363. return $instance->getShared();
  12364. }
  12365. /**
  12366. * Start a component rendering process.
  12367. *
  12368. * @param string $name
  12369. * @param array $data
  12370. * @return void
  12371. * @static
  12372. */
  12373. public static function startComponent($name, $data = array())
  12374. {
  12375. /** @var \Illuminate\View\Factory $instance */
  12376. $instance->startComponent($name, $data);
  12377. }
  12378. /**
  12379. * Render the current component.
  12380. *
  12381. * @return string
  12382. * @static
  12383. */
  12384. public static function renderComponent()
  12385. {
  12386. /** @var \Illuminate\View\Factory $instance */
  12387. return $instance->renderComponent();
  12388. }
  12389. /**
  12390. * Start the slot rendering process.
  12391. *
  12392. * @param string $name
  12393. * @param string|null $content
  12394. * @return void
  12395. * @static
  12396. */
  12397. public static function slot($name, $content = null)
  12398. {
  12399. /** @var \Illuminate\View\Factory $instance */
  12400. $instance->slot($name, $content);
  12401. }
  12402. /**
  12403. * Save the slot content for rendering.
  12404. *
  12405. * @return void
  12406. * @static
  12407. */
  12408. public static function endSlot()
  12409. {
  12410. /** @var \Illuminate\View\Factory $instance */
  12411. $instance->endSlot();
  12412. }
  12413. /**
  12414. * Register a view creator event.
  12415. *
  12416. * @param array|string $views
  12417. * @param \Closure|string $callback
  12418. * @return array
  12419. * @static
  12420. */
  12421. public static function creator($views, $callback)
  12422. {
  12423. /** @var \Illuminate\View\Factory $instance */
  12424. return $instance->creator($views, $callback);
  12425. }
  12426. /**
  12427. * Register multiple view composers via an array.
  12428. *
  12429. * @param array $composers
  12430. * @return array
  12431. * @static
  12432. */
  12433. public static function composers($composers)
  12434. {
  12435. /** @var \Illuminate\View\Factory $instance */
  12436. return $instance->composers($composers);
  12437. }
  12438. /**
  12439. * Register a view composer event.
  12440. *
  12441. * @param array|string $views
  12442. * @param \Closure|string $callback
  12443. * @return array
  12444. * @static
  12445. */
  12446. public static function composer($views, $callback)
  12447. {
  12448. /** @var \Illuminate\View\Factory $instance */
  12449. return $instance->composer($views, $callback);
  12450. }
  12451. /**
  12452. * Call the composer for a given view.
  12453. *
  12454. * @param \Illuminate\Contracts\View\View $view
  12455. * @return void
  12456. * @static
  12457. */
  12458. public static function callComposer($view)
  12459. {
  12460. /** @var \Illuminate\View\Factory $instance */
  12461. $instance->callComposer($view);
  12462. }
  12463. /**
  12464. * Call the creator for a given view.
  12465. *
  12466. * @param \Illuminate\Contracts\View\View $view
  12467. * @return void
  12468. * @static
  12469. */
  12470. public static function callCreator($view)
  12471. {
  12472. /** @var \Illuminate\View\Factory $instance */
  12473. $instance->callCreator($view);
  12474. }
  12475. /**
  12476. * Start injecting content into a section.
  12477. *
  12478. * @param string $section
  12479. * @param string|null $content
  12480. * @return void
  12481. * @static
  12482. */
  12483. public static function startSection($section, $content = null)
  12484. {
  12485. /** @var \Illuminate\View\Factory $instance */
  12486. $instance->startSection($section, $content);
  12487. }
  12488. /**
  12489. * Inject inline content into a section.
  12490. *
  12491. * @param string $section
  12492. * @param string $content
  12493. * @return void
  12494. * @static
  12495. */
  12496. public static function inject($section, $content)
  12497. {
  12498. /** @var \Illuminate\View\Factory $instance */
  12499. $instance->inject($section, $content);
  12500. }
  12501. /**
  12502. * Stop injecting content into a section and return its contents.
  12503. *
  12504. * @return string
  12505. * @static
  12506. */
  12507. public static function yieldSection()
  12508. {
  12509. /** @var \Illuminate\View\Factory $instance */
  12510. return $instance->yieldSection();
  12511. }
  12512. /**
  12513. * Stop injecting content into a section.
  12514. *
  12515. * @param bool $overwrite
  12516. * @return string
  12517. * @throws \InvalidArgumentException
  12518. * @static
  12519. */
  12520. public static function stopSection($overwrite = false)
  12521. {
  12522. /** @var \Illuminate\View\Factory $instance */
  12523. return $instance->stopSection($overwrite);
  12524. }
  12525. /**
  12526. * Stop injecting content into a section and append it.
  12527. *
  12528. * @return string
  12529. * @throws \InvalidArgumentException
  12530. * @static
  12531. */
  12532. public static function appendSection()
  12533. {
  12534. /** @var \Illuminate\View\Factory $instance */
  12535. return $instance->appendSection();
  12536. }
  12537. /**
  12538. * Get the string contents of a section.
  12539. *
  12540. * @param string $section
  12541. * @param string $default
  12542. * @return string
  12543. * @static
  12544. */
  12545. public static function yieldContent($section, $default = '')
  12546. {
  12547. /** @var \Illuminate\View\Factory $instance */
  12548. return $instance->yieldContent($section, $default);
  12549. }
  12550. /**
  12551. * Get the parent placeholder for the current request.
  12552. *
  12553. * @param string $section
  12554. * @return string
  12555. * @static
  12556. */
  12557. public static function parentPlaceholder($section = '')
  12558. {
  12559. return \Illuminate\View\Factory::parentPlaceholder($section);
  12560. }
  12561. /**
  12562. * Check if section exists.
  12563. *
  12564. * @param string $name
  12565. * @return bool
  12566. * @static
  12567. */
  12568. public static function hasSection($name)
  12569. {
  12570. /** @var \Illuminate\View\Factory $instance */
  12571. return $instance->hasSection($name);
  12572. }
  12573. /**
  12574. * Get the contents of a section.
  12575. *
  12576. * @param string $name
  12577. * @param string $default
  12578. * @return mixed
  12579. * @static
  12580. */
  12581. public static function getSection($name, $default = null)
  12582. {
  12583. /** @var \Illuminate\View\Factory $instance */
  12584. return $instance->getSection($name, $default);
  12585. }
  12586. /**
  12587. * Get the entire array of sections.
  12588. *
  12589. * @return array
  12590. * @static
  12591. */
  12592. public static function getSections()
  12593. {
  12594. /** @var \Illuminate\View\Factory $instance */
  12595. return $instance->getSections();
  12596. }
  12597. /**
  12598. * Flush all of the sections.
  12599. *
  12600. * @return void
  12601. * @static
  12602. */
  12603. public static function flushSections()
  12604. {
  12605. /** @var \Illuminate\View\Factory $instance */
  12606. $instance->flushSections();
  12607. }
  12608. /**
  12609. * Add new loop to the stack.
  12610. *
  12611. * @param \Countable|array $data
  12612. * @return void
  12613. * @static
  12614. */
  12615. public static function addLoop($data)
  12616. {
  12617. /** @var \Illuminate\View\Factory $instance */
  12618. $instance->addLoop($data);
  12619. }
  12620. /**
  12621. * Increment the top loop's indices.
  12622. *
  12623. * @return void
  12624. * @static
  12625. */
  12626. public static function incrementLoopIndices()
  12627. {
  12628. /** @var \Illuminate\View\Factory $instance */
  12629. $instance->incrementLoopIndices();
  12630. }
  12631. /**
  12632. * Pop a loop from the top of the loop stack.
  12633. *
  12634. * @return void
  12635. * @static
  12636. */
  12637. public static function popLoop()
  12638. {
  12639. /** @var \Illuminate\View\Factory $instance */
  12640. $instance->popLoop();
  12641. }
  12642. /**
  12643. * Get an instance of the last loop in the stack.
  12644. *
  12645. * @return \stdClass|null
  12646. * @static
  12647. */
  12648. public static function getLastLoop()
  12649. {
  12650. /** @var \Illuminate\View\Factory $instance */
  12651. return $instance->getLastLoop();
  12652. }
  12653. /**
  12654. * Get the entire loop stack.
  12655. *
  12656. * @return array
  12657. * @static
  12658. */
  12659. public static function getLoopStack()
  12660. {
  12661. /** @var \Illuminate\View\Factory $instance */
  12662. return $instance->getLoopStack();
  12663. }
  12664. /**
  12665. * Start injecting content into a push section.
  12666. *
  12667. * @param string $section
  12668. * @param string $content
  12669. * @return void
  12670. * @static
  12671. */
  12672. public static function startPush($section, $content = '')
  12673. {
  12674. /** @var \Illuminate\View\Factory $instance */
  12675. $instance->startPush($section, $content);
  12676. }
  12677. /**
  12678. * Stop injecting content into a push section.
  12679. *
  12680. * @return string
  12681. * @throws \InvalidArgumentException
  12682. * @static
  12683. */
  12684. public static function stopPush()
  12685. {
  12686. /** @var \Illuminate\View\Factory $instance */
  12687. return $instance->stopPush();
  12688. }
  12689. /**
  12690. * Start prepending content into a push section.
  12691. *
  12692. * @param string $section
  12693. * @param string $content
  12694. * @return void
  12695. * @static
  12696. */
  12697. public static function startPrepend($section, $content = '')
  12698. {
  12699. /** @var \Illuminate\View\Factory $instance */
  12700. $instance->startPrepend($section, $content);
  12701. }
  12702. /**
  12703. * Stop prepending content into a push section.
  12704. *
  12705. * @return string
  12706. * @throws \InvalidArgumentException
  12707. * @static
  12708. */
  12709. public static function stopPrepend()
  12710. {
  12711. /** @var \Illuminate\View\Factory $instance */
  12712. return $instance->stopPrepend();
  12713. }
  12714. /**
  12715. * Get the string contents of a push section.
  12716. *
  12717. * @param string $section
  12718. * @param string $default
  12719. * @return string
  12720. * @static
  12721. */
  12722. public static function yieldPushContent($section, $default = '')
  12723. {
  12724. /** @var \Illuminate\View\Factory $instance */
  12725. return $instance->yieldPushContent($section, $default);
  12726. }
  12727. /**
  12728. * Flush all of the stacks.
  12729. *
  12730. * @return void
  12731. * @static
  12732. */
  12733. public static function flushStacks()
  12734. {
  12735. /** @var \Illuminate\View\Factory $instance */
  12736. $instance->flushStacks();
  12737. }
  12738. /**
  12739. * Start a translation block.
  12740. *
  12741. * @param array $replacements
  12742. * @return void
  12743. * @static
  12744. */
  12745. public static function startTranslation($replacements = array())
  12746. {
  12747. /** @var \Illuminate\View\Factory $instance */
  12748. $instance->startTranslation($replacements);
  12749. }
  12750. /**
  12751. * Render the current translation.
  12752. *
  12753. * @return string
  12754. * @static
  12755. */
  12756. public static function renderTranslation()
  12757. {
  12758. /** @var \Illuminate\View\Factory $instance */
  12759. return $instance->renderTranslation();
  12760. }
  12761. }
  12762. }
  12763. namespace Barryvdh\Debugbar {
  12764. /**
  12765. *
  12766. *
  12767. * @method static void alert(string $message)
  12768. * @method static void critical(string $message)
  12769. * @method static void debug(string $message)
  12770. * @method static void emergency(string $message)
  12771. * @method static void error(string $message)
  12772. * @method static void info(string $message)
  12773. * @method static void log(string $message)
  12774. * @method static void notice(string $message)
  12775. * @method static void warning(string $message)
  12776. * @see \Barryvdh\Debugbar\LaravelDebugbar
  12777. */
  12778. class Facade {
  12779. /**
  12780. * Enable the Debugbar and boot, if not already booted.
  12781. *
  12782. * @static
  12783. */
  12784. public static function enable()
  12785. {
  12786. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12787. return $instance->enable();
  12788. }
  12789. /**
  12790. * Boot the debugbar (add collectors, renderer and listener)
  12791. *
  12792. * @static
  12793. */
  12794. public static function boot()
  12795. {
  12796. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12797. return $instance->boot();
  12798. }
  12799. /**
  12800. *
  12801. *
  12802. * @static
  12803. */
  12804. public static function shouldCollect($name, $default = false)
  12805. {
  12806. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12807. return $instance->shouldCollect($name, $default);
  12808. }
  12809. /**
  12810. * Adds a data collector
  12811. *
  12812. * @param \Barryvdh\Debugbar\DataCollectorInterface $collector
  12813. * @throws DebugBarException
  12814. * @return \Barryvdh\Debugbar\LaravelDebugbar
  12815. * @static
  12816. */
  12817. public static function addCollector($collector)
  12818. {
  12819. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12820. return $instance->addCollector($collector);
  12821. }
  12822. /**
  12823. * Handle silenced errors
  12824. *
  12825. * @param $level
  12826. * @param $message
  12827. * @param string $file
  12828. * @param int $line
  12829. * @param array $context
  12830. * @throws \ErrorException
  12831. * @static
  12832. */
  12833. public static function handleError($level, $message, $file = '', $line = 0, $context = array())
  12834. {
  12835. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12836. return $instance->handleError($level, $message, $file, $line, $context);
  12837. }
  12838. /**
  12839. * Starts a measure
  12840. *
  12841. * @param string $name Internal name, used to stop the measure
  12842. * @param string $label Public name
  12843. * @static
  12844. */
  12845. public static function startMeasure($name, $label = null)
  12846. {
  12847. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12848. return $instance->startMeasure($name, $label);
  12849. }
  12850. /**
  12851. * Stops a measure
  12852. *
  12853. * @param string $name
  12854. * @static
  12855. */
  12856. public static function stopMeasure($name)
  12857. {
  12858. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12859. return $instance->stopMeasure($name);
  12860. }
  12861. /**
  12862. * Adds an exception to be profiled in the debug bar
  12863. *
  12864. * @param \Exception $e
  12865. * @deprecated in favor of addThrowable
  12866. * @static
  12867. */
  12868. public static function addException($e)
  12869. {
  12870. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12871. return $instance->addException($e);
  12872. }
  12873. /**
  12874. * Adds an exception to be profiled in the debug bar
  12875. *
  12876. * @param \Exception $e
  12877. * @static
  12878. */
  12879. public static function addThrowable($e)
  12880. {
  12881. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12882. return $instance->addThrowable($e);
  12883. }
  12884. /**
  12885. * Returns a JavascriptRenderer for this instance
  12886. *
  12887. * @param string $baseUrl
  12888. * @param string $basePathng
  12889. * @return \Barryvdh\Debugbar\JavascriptRenderer
  12890. * @static
  12891. */
  12892. public static function getJavascriptRenderer($baseUrl = null, $basePath = null)
  12893. {
  12894. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12895. return $instance->getJavascriptRenderer($baseUrl, $basePath);
  12896. }
  12897. /**
  12898. * Modify the response and inject the debugbar (or data in headers)
  12899. *
  12900. * @param \Symfony\Component\HttpFoundation\Request $request
  12901. * @param \Symfony\Component\HttpFoundation\Response $response
  12902. * @return \Symfony\Component\HttpFoundation\Response
  12903. * @static
  12904. */
  12905. public static function modifyResponse($request, $response)
  12906. {
  12907. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12908. return $instance->modifyResponse($request, $response);
  12909. }
  12910. /**
  12911. * Check if the Debugbar is enabled
  12912. *
  12913. * @return boolean
  12914. * @static
  12915. */
  12916. public static function isEnabled()
  12917. {
  12918. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12919. return $instance->isEnabled();
  12920. }
  12921. /**
  12922. * Collects the data from the collectors
  12923. *
  12924. * @return array
  12925. * @static
  12926. */
  12927. public static function collect()
  12928. {
  12929. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12930. return $instance->collect();
  12931. }
  12932. /**
  12933. * Injects the web debug toolbar into the given Response.
  12934. *
  12935. * @param \Symfony\Component\HttpFoundation\Response $response A Response instance
  12936. * Based on https://github.com/symfony/WebProfilerBundle/blob/master/EventListener/WebDebugToolbarListener.php
  12937. * @static
  12938. */
  12939. public static function injectDebugbar($response)
  12940. {
  12941. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12942. return $instance->injectDebugbar($response);
  12943. }
  12944. /**
  12945. * Disable the Debugbar
  12946. *
  12947. * @static
  12948. */
  12949. public static function disable()
  12950. {
  12951. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12952. return $instance->disable();
  12953. }
  12954. /**
  12955. * Adds a measure
  12956. *
  12957. * @param string $label
  12958. * @param float $start
  12959. * @param float $end
  12960. * @static
  12961. */
  12962. public static function addMeasure($label, $start, $end)
  12963. {
  12964. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12965. return $instance->addMeasure($label, $start, $end);
  12966. }
  12967. /**
  12968. * Utility function to measure the execution of a Closure
  12969. *
  12970. * @param string $label
  12971. * @param \Closure $closure
  12972. * @static
  12973. */
  12974. public static function measure($label, $closure)
  12975. {
  12976. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12977. return $instance->measure($label, $closure);
  12978. }
  12979. /**
  12980. * Collect data in a CLI request
  12981. *
  12982. * @return array
  12983. * @static
  12984. */
  12985. public static function collectConsole()
  12986. {
  12987. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  12988. return $instance->collectConsole();
  12989. }
  12990. /**
  12991. * Adds a message to the MessagesCollector
  12992. *
  12993. * A message can be anything from an object to a string
  12994. *
  12995. * @param mixed $message
  12996. * @param string $label
  12997. * @static
  12998. */
  12999. public static function addMessage($message, $label = 'info')
  13000. {
  13001. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13002. return $instance->addMessage($message, $label);
  13003. }
  13004. /**
  13005. * Checks if a data collector has been added
  13006. *
  13007. * @param string $name
  13008. * @return boolean
  13009. * @static
  13010. */
  13011. public static function hasCollector($name)
  13012. {
  13013. //Method inherited from \DebugBar\DebugBar
  13014. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13015. return $instance->hasCollector($name);
  13016. }
  13017. /**
  13018. * Returns a data collector
  13019. *
  13020. * @param string $name
  13021. * @return \DebugBar\DataCollectorInterface
  13022. * @throws DebugBarException
  13023. * @static
  13024. */
  13025. public static function getCollector($name)
  13026. {
  13027. //Method inherited from \DebugBar\DebugBar
  13028. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13029. return $instance->getCollector($name);
  13030. }
  13031. /**
  13032. * Returns an array of all data collectors
  13033. *
  13034. * @return \DebugBar\array[DataCollectorInterface]
  13035. * @static
  13036. */
  13037. public static function getCollectors()
  13038. {
  13039. //Method inherited from \DebugBar\DebugBar
  13040. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13041. return $instance->getCollectors();
  13042. }
  13043. /**
  13044. * Sets the request id generator
  13045. *
  13046. * @param \DebugBar\RequestIdGeneratorInterface $generator
  13047. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13048. * @static
  13049. */
  13050. public static function setRequestIdGenerator($generator)
  13051. {
  13052. //Method inherited from \DebugBar\DebugBar
  13053. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13054. return $instance->setRequestIdGenerator($generator);
  13055. }
  13056. /**
  13057. *
  13058. *
  13059. * @return \DebugBar\RequestIdGeneratorInterface
  13060. * @static
  13061. */
  13062. public static function getRequestIdGenerator()
  13063. {
  13064. //Method inherited from \DebugBar\DebugBar
  13065. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13066. return $instance->getRequestIdGenerator();
  13067. }
  13068. /**
  13069. * Returns the id of the current request
  13070. *
  13071. * @return string
  13072. * @static
  13073. */
  13074. public static function getCurrentRequestId()
  13075. {
  13076. //Method inherited from \DebugBar\DebugBar
  13077. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13078. return $instance->getCurrentRequestId();
  13079. }
  13080. /**
  13081. * Sets the storage backend to use to store the collected data
  13082. *
  13083. * @param \DebugBar\StorageInterface $storage
  13084. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13085. * @static
  13086. */
  13087. public static function setStorage($storage = null)
  13088. {
  13089. //Method inherited from \DebugBar\DebugBar
  13090. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13091. return $instance->setStorage($storage);
  13092. }
  13093. /**
  13094. *
  13095. *
  13096. * @return \DebugBar\StorageInterface
  13097. * @static
  13098. */
  13099. public static function getStorage()
  13100. {
  13101. //Method inherited from \DebugBar\DebugBar
  13102. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13103. return $instance->getStorage();
  13104. }
  13105. /**
  13106. * Checks if the data will be persisted
  13107. *
  13108. * @return boolean
  13109. * @static
  13110. */
  13111. public static function isDataPersisted()
  13112. {
  13113. //Method inherited from \DebugBar\DebugBar
  13114. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13115. return $instance->isDataPersisted();
  13116. }
  13117. /**
  13118. * Sets the HTTP driver
  13119. *
  13120. * @param \DebugBar\HttpDriverInterface $driver
  13121. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13122. * @static
  13123. */
  13124. public static function setHttpDriver($driver)
  13125. {
  13126. //Method inherited from \DebugBar\DebugBar
  13127. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13128. return $instance->setHttpDriver($driver);
  13129. }
  13130. /**
  13131. * Returns the HTTP driver
  13132. *
  13133. * If no http driver where defined, a PhpHttpDriver is automatically created
  13134. *
  13135. * @return \DebugBar\HttpDriverInterface
  13136. * @static
  13137. */
  13138. public static function getHttpDriver()
  13139. {
  13140. //Method inherited from \DebugBar\DebugBar
  13141. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13142. return $instance->getHttpDriver();
  13143. }
  13144. /**
  13145. * Returns collected data
  13146. *
  13147. * Will collect the data if none have been collected yet
  13148. *
  13149. * @return array
  13150. * @static
  13151. */
  13152. public static function getData()
  13153. {
  13154. //Method inherited from \DebugBar\DebugBar
  13155. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13156. return $instance->getData();
  13157. }
  13158. /**
  13159. * Returns an array of HTTP headers containing the data
  13160. *
  13161. * @param string $headerName
  13162. * @param integer $maxHeaderLength
  13163. * @return array
  13164. * @static
  13165. */
  13166. public static function getDataAsHeaders($headerName = 'phpdebugbar', $maxHeaderLength = 4096, $maxTotalHeaderLength = 250000)
  13167. {
  13168. //Method inherited from \DebugBar\DebugBar
  13169. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13170. return $instance->getDataAsHeaders($headerName, $maxHeaderLength, $maxTotalHeaderLength);
  13171. }
  13172. /**
  13173. * Sends the data through the HTTP headers
  13174. *
  13175. * @param bool $useOpenHandler
  13176. * @param string $headerName
  13177. * @param integer $maxHeaderLength
  13178. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13179. * @static
  13180. */
  13181. public static function sendDataInHeaders($useOpenHandler = null, $headerName = 'phpdebugbar', $maxHeaderLength = 4096)
  13182. {
  13183. //Method inherited from \DebugBar\DebugBar
  13184. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13185. return $instance->sendDataInHeaders($useOpenHandler, $headerName, $maxHeaderLength);
  13186. }
  13187. /**
  13188. * Stacks the data in the session for later rendering
  13189. *
  13190. * @static
  13191. */
  13192. public static function stackData()
  13193. {
  13194. //Method inherited from \DebugBar\DebugBar
  13195. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13196. return $instance->stackData();
  13197. }
  13198. /**
  13199. * Checks if there is stacked data in the session
  13200. *
  13201. * @return boolean
  13202. * @static
  13203. */
  13204. public static function hasStackedData()
  13205. {
  13206. //Method inherited from \DebugBar\DebugBar
  13207. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13208. return $instance->hasStackedData();
  13209. }
  13210. /**
  13211. * Returns the data stacked in the session
  13212. *
  13213. * @param boolean $delete Whether to delete the data in the session
  13214. * @return array
  13215. * @static
  13216. */
  13217. public static function getStackedData($delete = true)
  13218. {
  13219. //Method inherited from \DebugBar\DebugBar
  13220. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13221. return $instance->getStackedData($delete);
  13222. }
  13223. /**
  13224. * Sets the key to use in the $_SESSION array
  13225. *
  13226. * @param string $ns
  13227. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13228. * @static
  13229. */
  13230. public static function setStackDataSessionNamespace($ns)
  13231. {
  13232. //Method inherited from \DebugBar\DebugBar
  13233. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13234. return $instance->setStackDataSessionNamespace($ns);
  13235. }
  13236. /**
  13237. * Returns the key used in the $_SESSION array
  13238. *
  13239. * @return string
  13240. * @static
  13241. */
  13242. public static function getStackDataSessionNamespace()
  13243. {
  13244. //Method inherited from \DebugBar\DebugBar
  13245. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13246. return $instance->getStackDataSessionNamespace();
  13247. }
  13248. /**
  13249. * Sets whether to only use the session to store stacked data even
  13250. * if a storage is enabled
  13251. *
  13252. * @param boolean $enabled
  13253. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13254. * @static
  13255. */
  13256. public static function setStackAlwaysUseSessionStorage($enabled = true)
  13257. {
  13258. //Method inherited from \DebugBar\DebugBar
  13259. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13260. return $instance->setStackAlwaysUseSessionStorage($enabled);
  13261. }
  13262. /**
  13263. * Checks if the session is always used to store stacked data
  13264. * even if a storage is enabled
  13265. *
  13266. * @return boolean
  13267. * @static
  13268. */
  13269. public static function isStackAlwaysUseSessionStorage()
  13270. {
  13271. //Method inherited from \DebugBar\DebugBar
  13272. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13273. return $instance->isStackAlwaysUseSessionStorage();
  13274. }
  13275. /**
  13276. *
  13277. *
  13278. * @static
  13279. */
  13280. public static function offsetSet($key, $value)
  13281. {
  13282. //Method inherited from \DebugBar\DebugBar
  13283. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13284. return $instance->offsetSet($key, $value);
  13285. }
  13286. /**
  13287. *
  13288. *
  13289. * @static
  13290. */
  13291. public static function offsetGet($key)
  13292. {
  13293. //Method inherited from \DebugBar\DebugBar
  13294. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13295. return $instance->offsetGet($key);
  13296. }
  13297. /**
  13298. *
  13299. *
  13300. * @static
  13301. */
  13302. public static function offsetExists($key)
  13303. {
  13304. //Method inherited from \DebugBar\DebugBar
  13305. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13306. return $instance->offsetExists($key);
  13307. }
  13308. /**
  13309. *
  13310. *
  13311. * @static
  13312. */
  13313. public static function offsetUnset($key)
  13314. {
  13315. //Method inherited from \DebugBar\DebugBar
  13316. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13317. return $instance->offsetUnset($key);
  13318. }
  13319. }
  13320. }
  13321. namespace Encore\Admin\Facades {
  13322. /**
  13323. * Class Admin.
  13324. *
  13325. */
  13326. class Admin {
  13327. /**
  13328. * Returns the long version of Laravel-admin.
  13329. *
  13330. * @return string The long application version
  13331. * @static
  13332. */
  13333. public static function getLongVersion()
  13334. {
  13335. return \Encore\Admin\Admin::getLongVersion();
  13336. }
  13337. /**
  13338. *
  13339. *
  13340. * @param $model
  13341. * @param \Closure $callable
  13342. * @return \Encore\Admin\Grid
  13343. * @deprecated since v1.6.1
  13344. * @static
  13345. */
  13346. public static function grid($model, $callable)
  13347. {
  13348. /** @var \Encore\Admin\Admin $instance */
  13349. return $instance->grid($model, $callable);
  13350. }
  13351. /**
  13352. *
  13353. *
  13354. * @param $model
  13355. * @param \Closure $callable
  13356. * @return \Encore\Admin\Form @deprecated since v1.6.1
  13357. * @static
  13358. */
  13359. public static function form($model, $callable)
  13360. {
  13361. /** @var \Encore\Admin\Admin $instance */
  13362. return $instance->form($model, $callable);
  13363. }
  13364. /**
  13365. * Build a tree.
  13366. *
  13367. * @param $model
  13368. * @return \Encore\Admin\Tree
  13369. * @static
  13370. */
  13371. public static function tree($model, $callable = null)
  13372. {
  13373. /** @var \Encore\Admin\Admin $instance */
  13374. return $instance->tree($model, $callable);
  13375. }
  13376. /**
  13377. * Build show page.
  13378. *
  13379. * @param $model
  13380. * @param mixed $callable
  13381. * @return \Encore\Admin\Show
  13382. * @deprecated since v1.6.1
  13383. * @static
  13384. */
  13385. public static function show($model, $callable = null)
  13386. {
  13387. /** @var \Encore\Admin\Admin $instance */
  13388. return $instance->show($model, $callable);
  13389. }
  13390. /**
  13391. *
  13392. *
  13393. * @param \Closure $callable
  13394. * @return \Encore\Admin\Layout\Content
  13395. * @deprecated since v1.6.1
  13396. * @static
  13397. */
  13398. public static function content($callable = null)
  13399. {
  13400. /** @var \Encore\Admin\Admin $instance */
  13401. return $instance->content($callable);
  13402. }
  13403. /**
  13404. *
  13405. *
  13406. * @param $model
  13407. * @return mixed
  13408. * @static
  13409. */
  13410. public static function getModel($model)
  13411. {
  13412. /** @var \Encore\Admin\Admin $instance */
  13413. return $instance->getModel($model);
  13414. }
  13415. /**
  13416. * Left sider-bar menu.
  13417. *
  13418. * @return array
  13419. * @static
  13420. */
  13421. public static function menu()
  13422. {
  13423. /** @var \Encore\Admin\Admin $instance */
  13424. return $instance->menu();
  13425. }
  13426. /**
  13427. * Set admin title.
  13428. *
  13429. * @return void
  13430. * @static
  13431. */
  13432. public static function setTitle($title)
  13433. {
  13434. \Encore\Admin\Admin::setTitle($title);
  13435. }
  13436. /**
  13437. * Get admin title.
  13438. *
  13439. * @return \Config
  13440. * @static
  13441. */
  13442. public static function title()
  13443. {
  13444. /** @var \Encore\Admin\Admin $instance */
  13445. return $instance->title();
  13446. }
  13447. /**
  13448. * Get current login user.
  13449. *
  13450. * @return mixed
  13451. * @static
  13452. */
  13453. public static function user()
  13454. {
  13455. /** @var \Encore\Admin\Admin $instance */
  13456. return $instance->user();
  13457. }
  13458. /**
  13459. * Set navbar.
  13460. *
  13461. * @param \Closure|null $builder
  13462. * @return \Encore\Admin\Navbar
  13463. * @static
  13464. */
  13465. public static function navbar($builder = null)
  13466. {
  13467. /** @var \Encore\Admin\Admin $instance */
  13468. return $instance->navbar($builder);
  13469. }
  13470. /**
  13471. * Get navbar object.
  13472. *
  13473. * @return \Encore\Admin\Widgets\Navbar
  13474. * @static
  13475. */
  13476. public static function getNavbar()
  13477. {
  13478. /** @var \Encore\Admin\Admin $instance */
  13479. return $instance->getNavbar();
  13480. }
  13481. /**
  13482. * Register the auth routes.
  13483. *
  13484. * @return void
  13485. * @static
  13486. */
  13487. public static function registerAuthRoutes()
  13488. {
  13489. /** @var \Encore\Admin\Admin $instance */
  13490. $instance->registerAuthRoutes();
  13491. }
  13492. /**
  13493. * Extend a extension.
  13494. *
  13495. * @param string $name
  13496. * @param string $class
  13497. * @return void
  13498. * @static
  13499. */
  13500. public static function extend($name, $class)
  13501. {
  13502. \Encore\Admin\Admin::extend($name, $class);
  13503. }
  13504. /**
  13505. *
  13506. *
  13507. * @param callable $callback
  13508. * @static
  13509. */
  13510. public static function booting($callback)
  13511. {
  13512. return \Encore\Admin\Admin::booting($callback);
  13513. }
  13514. /**
  13515. *
  13516. *
  13517. * @param callable $callback
  13518. * @static
  13519. */
  13520. public static function booted($callback)
  13521. {
  13522. return \Encore\Admin\Admin::booted($callback);
  13523. }
  13524. /**
  13525. *
  13526. *
  13527. * @static
  13528. */
  13529. public static function disablePjax()
  13530. {
  13531. /** @var \Encore\Admin\Admin $instance */
  13532. return $instance->disablePjax();
  13533. }
  13534. /**
  13535. * Add css or get all css.
  13536. *
  13537. * @param null $css
  13538. * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View|void
  13539. * @static
  13540. */
  13541. public static function css($css = null)
  13542. {
  13543. return \Encore\Admin\Admin::css($css);
  13544. }
  13545. /**
  13546. *
  13547. *
  13548. * @param null $css
  13549. * @return array|void
  13550. * @static
  13551. */
  13552. public static function baseCss($css = null)
  13553. {
  13554. return \Encore\Admin\Admin::baseCss($css);
  13555. }
  13556. /**
  13557. * Add js or get all js.
  13558. *
  13559. * @param null $js
  13560. * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View|void
  13561. * @static
  13562. */
  13563. public static function js($js = null)
  13564. {
  13565. return \Encore\Admin\Admin::js($js);
  13566. }
  13567. /**
  13568. * Add js or get all js.
  13569. *
  13570. * @param null $js
  13571. * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View|void
  13572. * @static
  13573. */
  13574. public static function headerJs($js = null)
  13575. {
  13576. return \Encore\Admin\Admin::headerJs($js);
  13577. }
  13578. /**
  13579. *
  13580. *
  13581. * @param null $js
  13582. * @return array|void
  13583. * @static
  13584. */
  13585. public static function baseJs($js = null)
  13586. {
  13587. return \Encore\Admin\Admin::baseJs($js);
  13588. }
  13589. /**
  13590. *
  13591. *
  13592. * @param string $script
  13593. * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View|void
  13594. * @static
  13595. */
  13596. public static function script($script = '')
  13597. {
  13598. return \Encore\Admin\Admin::script($script);
  13599. }
  13600. /**
  13601. *
  13602. *
  13603. * @return string
  13604. * @static
  13605. */
  13606. public static function jQuery()
  13607. {
  13608. /** @var \Encore\Admin\Admin $instance */
  13609. return $instance->jQuery();
  13610. }
  13611. }
  13612. }
  13613. namespace Tymon\JWTAuth\Facades {
  13614. /**
  13615. *
  13616. *
  13617. */
  13618. class JWTAuth {
  13619. /**
  13620. * Attempt to authenticate the user and return the token.
  13621. *
  13622. * @param array $credentials
  13623. * @return false|string
  13624. * @static
  13625. */
  13626. public static function attempt($credentials)
  13627. {
  13628. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13629. return $instance->attempt($credentials);
  13630. }
  13631. /**
  13632. * Authenticate a user via a token.
  13633. *
  13634. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  13635. * @static
  13636. */
  13637. public static function authenticate()
  13638. {
  13639. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13640. return $instance->authenticate();
  13641. }
  13642. /**
  13643. * Alias for authenticate().
  13644. *
  13645. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  13646. * @static
  13647. */
  13648. public static function toUser()
  13649. {
  13650. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13651. return $instance->toUser();
  13652. }
  13653. /**
  13654. * Get the authenticated user.
  13655. *
  13656. * @return \Tymon\JWTAuth\Contracts\JWTSubject
  13657. * @static
  13658. */
  13659. public static function user()
  13660. {
  13661. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13662. return $instance->user();
  13663. }
  13664. /**
  13665. * Generate a token for a given subject.
  13666. *
  13667. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  13668. * @return string
  13669. * @static
  13670. */
  13671. public static function fromSubject($subject)
  13672. {
  13673. //Method inherited from \Tymon\JWTAuth\JWT
  13674. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13675. return $instance->fromSubject($subject);
  13676. }
  13677. /**
  13678. * Alias to generate a token for a given user.
  13679. *
  13680. * @param \Tymon\JWTAuth\Contracts\JWTSubject $user
  13681. * @return string
  13682. * @static
  13683. */
  13684. public static function fromUser($user)
  13685. {
  13686. //Method inherited from \Tymon\JWTAuth\JWT
  13687. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13688. return $instance->fromUser($user);
  13689. }
  13690. /**
  13691. * Refresh an expired token.
  13692. *
  13693. * @param bool $forceForever
  13694. * @param bool $resetClaims
  13695. * @return string
  13696. * @static
  13697. */
  13698. public static function refresh($forceForever = false, $resetClaims = false)
  13699. {
  13700. //Method inherited from \Tymon\JWTAuth\JWT
  13701. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13702. return $instance->refresh($forceForever, $resetClaims);
  13703. }
  13704. /**
  13705. * Invalidate a token (add it to the blacklist).
  13706. *
  13707. * @param bool $forceForever
  13708. * @return \Tymon\JWTAuth\JWTAuth
  13709. * @static
  13710. */
  13711. public static function invalidate($forceForever = false)
  13712. {
  13713. //Method inherited from \Tymon\JWTAuth\JWT
  13714. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13715. return $instance->invalidate($forceForever);
  13716. }
  13717. /**
  13718. * Alias to get the payload, and as a result checks that
  13719. * the token is valid i.e. not expired or blacklisted.
  13720. *
  13721. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  13722. * @return \Tymon\JWTAuth\Payload
  13723. * @static
  13724. */
  13725. public static function checkOrFail()
  13726. {
  13727. //Method inherited from \Tymon\JWTAuth\JWT
  13728. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13729. return $instance->checkOrFail();
  13730. }
  13731. /**
  13732. * Check that the token is valid.
  13733. *
  13734. * @param bool $getPayload
  13735. * @return \Tymon\JWTAuth\Payload|bool
  13736. * @static
  13737. */
  13738. public static function check($getPayload = false)
  13739. {
  13740. //Method inherited from \Tymon\JWTAuth\JWT
  13741. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13742. return $instance->check($getPayload);
  13743. }
  13744. /**
  13745. * Get the token.
  13746. *
  13747. * @return \Tymon\JWTAuth\Token|null
  13748. * @static
  13749. */
  13750. public static function getToken()
  13751. {
  13752. //Method inherited from \Tymon\JWTAuth\JWT
  13753. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13754. return $instance->getToken();
  13755. }
  13756. /**
  13757. * Parse the token from the request.
  13758. *
  13759. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  13760. * @return \Tymon\JWTAuth\JWTAuth
  13761. * @static
  13762. */
  13763. public static function parseToken()
  13764. {
  13765. //Method inherited from \Tymon\JWTAuth\JWT
  13766. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13767. return $instance->parseToken();
  13768. }
  13769. /**
  13770. * Get the raw Payload instance.
  13771. *
  13772. * @return \Tymon\JWTAuth\Payload
  13773. * @static
  13774. */
  13775. public static function getPayload()
  13776. {
  13777. //Method inherited from \Tymon\JWTAuth\JWT
  13778. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13779. return $instance->getPayload();
  13780. }
  13781. /**
  13782. * Alias for getPayload().
  13783. *
  13784. * @return \Tymon\JWTAuth\Payload
  13785. * @static
  13786. */
  13787. public static function payload()
  13788. {
  13789. //Method inherited from \Tymon\JWTAuth\JWT
  13790. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13791. return $instance->payload();
  13792. }
  13793. /**
  13794. * Convenience method to get a claim value.
  13795. *
  13796. * @param string $claim
  13797. * @return mixed
  13798. * @static
  13799. */
  13800. public static function getClaim($claim)
  13801. {
  13802. //Method inherited from \Tymon\JWTAuth\JWT
  13803. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13804. return $instance->getClaim($claim);
  13805. }
  13806. /**
  13807. * Create a Payload instance.
  13808. *
  13809. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  13810. * @return \Tymon\JWTAuth\Payload
  13811. * @static
  13812. */
  13813. public static function makePayload($subject)
  13814. {
  13815. //Method inherited from \Tymon\JWTAuth\JWT
  13816. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13817. return $instance->makePayload($subject);
  13818. }
  13819. /**
  13820. * Check if the subject model matches the one saved in the token.
  13821. *
  13822. * @param string|object $model
  13823. * @return bool
  13824. * @static
  13825. */
  13826. public static function checkSubjectModel($model)
  13827. {
  13828. //Method inherited from \Tymon\JWTAuth\JWT
  13829. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13830. return $instance->checkSubjectModel($model);
  13831. }
  13832. /**
  13833. * Set the token.
  13834. *
  13835. * @param \Tymon\JWTAuth\Token|string $token
  13836. * @return \Tymon\JWTAuth\JWTAuth
  13837. * @static
  13838. */
  13839. public static function setToken($token)
  13840. {
  13841. //Method inherited from \Tymon\JWTAuth\JWT
  13842. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13843. return $instance->setToken($token);
  13844. }
  13845. /**
  13846. * Unset the current token.
  13847. *
  13848. * @return \Tymon\JWTAuth\JWTAuth
  13849. * @static
  13850. */
  13851. public static function unsetToken()
  13852. {
  13853. //Method inherited from \Tymon\JWTAuth\JWT
  13854. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13855. return $instance->unsetToken();
  13856. }
  13857. /**
  13858. * Set the request instance.
  13859. *
  13860. * @param \Illuminate\Http\Request $request
  13861. * @return \Tymon\JWTAuth\JWTAuth
  13862. * @static
  13863. */
  13864. public static function setRequest($request)
  13865. {
  13866. //Method inherited from \Tymon\JWTAuth\JWT
  13867. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13868. return $instance->setRequest($request);
  13869. }
  13870. /**
  13871. * Set whether the subject should be "locked".
  13872. *
  13873. * @param bool $lock
  13874. * @return \Tymon\JWTAuth\JWTAuth
  13875. * @static
  13876. */
  13877. public static function lockSubject($lock)
  13878. {
  13879. //Method inherited from \Tymon\JWTAuth\JWT
  13880. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13881. return $instance->lockSubject($lock);
  13882. }
  13883. /**
  13884. * Get the Manager instance.
  13885. *
  13886. * @return \Tymon\JWTAuth\Manager
  13887. * @static
  13888. */
  13889. public static function manager()
  13890. {
  13891. //Method inherited from \Tymon\JWTAuth\JWT
  13892. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13893. return $instance->manager();
  13894. }
  13895. /**
  13896. * Get the Parser instance.
  13897. *
  13898. * @return \Tymon\JWTAuth\Http\Parser\Parser
  13899. * @static
  13900. */
  13901. public static function parser()
  13902. {
  13903. //Method inherited from \Tymon\JWTAuth\JWT
  13904. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13905. return $instance->parser();
  13906. }
  13907. /**
  13908. * Get the Payload Factory.
  13909. *
  13910. * @return \Tymon\JWTAuth\Factory
  13911. * @static
  13912. */
  13913. public static function factory()
  13914. {
  13915. //Method inherited from \Tymon\JWTAuth\JWT
  13916. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13917. return $instance->factory();
  13918. }
  13919. /**
  13920. * Get the Blacklist.
  13921. *
  13922. * @return \Tymon\JWTAuth\Blacklist
  13923. * @static
  13924. */
  13925. public static function blacklist()
  13926. {
  13927. //Method inherited from \Tymon\JWTAuth\JWT
  13928. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13929. return $instance->blacklist();
  13930. }
  13931. /**
  13932. * Set the custom claims.
  13933. *
  13934. * @param array $customClaims
  13935. * @return \Tymon\JWTAuth\JWTAuth
  13936. * @static
  13937. */
  13938. public static function customClaims($customClaims)
  13939. {
  13940. //Method inherited from \Tymon\JWTAuth\JWT
  13941. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13942. return $instance->customClaims($customClaims);
  13943. }
  13944. /**
  13945. * Alias to set the custom claims.
  13946. *
  13947. * @param array $customClaims
  13948. * @return \Tymon\JWTAuth\JWTAuth
  13949. * @static
  13950. */
  13951. public static function claims($customClaims)
  13952. {
  13953. //Method inherited from \Tymon\JWTAuth\JWT
  13954. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13955. return $instance->claims($customClaims);
  13956. }
  13957. /**
  13958. * Get the custom claims.
  13959. *
  13960. * @return array
  13961. * @static
  13962. */
  13963. public static function getCustomClaims()
  13964. {
  13965. //Method inherited from \Tymon\JWTAuth\JWT
  13966. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13967. return $instance->getCustomClaims();
  13968. }
  13969. }
  13970. /**
  13971. *
  13972. *
  13973. */
  13974. class JWTFactory {
  13975. /**
  13976. * Create the Payload instance.
  13977. *
  13978. * @param bool $resetClaims
  13979. * @return \Tymon\JWTAuth\Payload
  13980. * @static
  13981. */
  13982. public static function make($resetClaims = false)
  13983. {
  13984. /** @var \Tymon\JWTAuth\Factory $instance */
  13985. return $instance->make($resetClaims);
  13986. }
  13987. /**
  13988. * Empty the claims collection.
  13989. *
  13990. * @return \Tymon\JWTAuth\Factory
  13991. * @static
  13992. */
  13993. public static function emptyClaims()
  13994. {
  13995. /** @var \Tymon\JWTAuth\Factory $instance */
  13996. return $instance->emptyClaims();
  13997. }
  13998. /**
  13999. * Build and get the Claims Collection.
  14000. *
  14001. * @return \Tymon\JWTAuth\Claims\Collection
  14002. * @static
  14003. */
  14004. public static function buildClaimsCollection()
  14005. {
  14006. /** @var \Tymon\JWTAuth\Factory $instance */
  14007. return $instance->buildClaimsCollection();
  14008. }
  14009. /**
  14010. * Get a Payload instance with a claims collection.
  14011. *
  14012. * @param \Tymon\JWTAuth\Claims\Collection $claims
  14013. * @return \Tymon\JWTAuth\Payload
  14014. * @static
  14015. */
  14016. public static function withClaims($claims)
  14017. {
  14018. /** @var \Tymon\JWTAuth\Factory $instance */
  14019. return $instance->withClaims($claims);
  14020. }
  14021. /**
  14022. * Set the default claims to be added to the Payload.
  14023. *
  14024. * @param array $claims
  14025. * @return \Tymon\JWTAuth\Factory
  14026. * @static
  14027. */
  14028. public static function setDefaultClaims($claims)
  14029. {
  14030. /** @var \Tymon\JWTAuth\Factory $instance */
  14031. return $instance->setDefaultClaims($claims);
  14032. }
  14033. /**
  14034. * Helper to set the ttl.
  14035. *
  14036. * @param int $ttl
  14037. * @return \Tymon\JWTAuth\Factory
  14038. * @static
  14039. */
  14040. public static function setTTL($ttl)
  14041. {
  14042. /** @var \Tymon\JWTAuth\Factory $instance */
  14043. return $instance->setTTL($ttl);
  14044. }
  14045. /**
  14046. * Helper to get the ttl.
  14047. *
  14048. * @return int
  14049. * @static
  14050. */
  14051. public static function getTTL()
  14052. {
  14053. /** @var \Tymon\JWTAuth\Factory $instance */
  14054. return $instance->getTTL();
  14055. }
  14056. /**
  14057. * Get the default claims.
  14058. *
  14059. * @return array
  14060. * @static
  14061. */
  14062. public static function getDefaultClaims()
  14063. {
  14064. /** @var \Tymon\JWTAuth\Factory $instance */
  14065. return $instance->getDefaultClaims();
  14066. }
  14067. /**
  14068. * Get the PayloadValidator instance.
  14069. *
  14070. * @return \Tymon\JWTAuth\Validators\PayloadValidator
  14071. * @static
  14072. */
  14073. public static function validator()
  14074. {
  14075. /** @var \Tymon\JWTAuth\Factory $instance */
  14076. return $instance->validator();
  14077. }
  14078. /**
  14079. * Set the custom claims.
  14080. *
  14081. * @param array $customClaims
  14082. * @return \Tymon\JWTAuth\Factory
  14083. * @static
  14084. */
  14085. public static function customClaims($customClaims)
  14086. {
  14087. /** @var \Tymon\JWTAuth\Factory $instance */
  14088. return $instance->customClaims($customClaims);
  14089. }
  14090. /**
  14091. * Alias to set the custom claims.
  14092. *
  14093. * @param array $customClaims
  14094. * @return \Tymon\JWTAuth\Factory
  14095. * @static
  14096. */
  14097. public static function claims($customClaims)
  14098. {
  14099. /** @var \Tymon\JWTAuth\Factory $instance */
  14100. return $instance->claims($customClaims);
  14101. }
  14102. /**
  14103. * Get the custom claims.
  14104. *
  14105. * @return array
  14106. * @static
  14107. */
  14108. public static function getCustomClaims()
  14109. {
  14110. /** @var \Tymon\JWTAuth\Factory $instance */
  14111. return $instance->getCustomClaims();
  14112. }
  14113. /**
  14114. * Set the refresh flow flag.
  14115. *
  14116. * @param bool $refreshFlow
  14117. * @return \Tymon\JWTAuth\Factory
  14118. * @static
  14119. */
  14120. public static function setRefreshFlow($refreshFlow = true)
  14121. {
  14122. /** @var \Tymon\JWTAuth\Factory $instance */
  14123. return $instance->setRefreshFlow($refreshFlow);
  14124. }
  14125. }
  14126. }
  14127. namespace {
  14128. class App extends \Illuminate\Support\Facades\App {}
  14129. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  14130. class Auth extends \Illuminate\Support\Facades\Auth {}
  14131. class Blade extends \Illuminate\Support\Facades\Blade {}
  14132. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  14133. class Bus extends \Illuminate\Support\Facades\Bus {}
  14134. class Cache extends \Illuminate\Support\Facades\Cache {}
  14135. class Config extends \Illuminate\Support\Facades\Config {}
  14136. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  14137. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  14138. class DB extends \Illuminate\Support\Facades\DB {}
  14139. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  14140. /**
  14141. * Create and return an un-saved model instance.
  14142. *
  14143. * @param array $attributes
  14144. * @return \Illuminate\Database\Eloquent\Model
  14145. * @static
  14146. */
  14147. public static function make($attributes = array())
  14148. {
  14149. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14150. return $instance->make($attributes);
  14151. }
  14152. /**
  14153. * Register a new global scope.
  14154. *
  14155. * @param string $identifier
  14156. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  14157. * @return \Illuminate\Database\Eloquent\Builder
  14158. * @static
  14159. */
  14160. public static function withGlobalScope($identifier, $scope)
  14161. {
  14162. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14163. return $instance->withGlobalScope($identifier, $scope);
  14164. }
  14165. /**
  14166. * Remove a registered global scope.
  14167. *
  14168. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  14169. * @return \Illuminate\Database\Eloquent\Builder
  14170. * @static
  14171. */
  14172. public static function withoutGlobalScope($scope)
  14173. {
  14174. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14175. return $instance->withoutGlobalScope($scope);
  14176. }
  14177. /**
  14178. * Remove all or passed registered global scopes.
  14179. *
  14180. * @param array|null $scopes
  14181. * @return \Illuminate\Database\Eloquent\Builder
  14182. * @static
  14183. */
  14184. public static function withoutGlobalScopes($scopes = null)
  14185. {
  14186. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14187. return $instance->withoutGlobalScopes($scopes);
  14188. }
  14189. /**
  14190. * Get an array of global scopes that were removed from the query.
  14191. *
  14192. * @return array
  14193. * @static
  14194. */
  14195. public static function removedScopes()
  14196. {
  14197. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14198. return $instance->removedScopes();
  14199. }
  14200. /**
  14201. * Add a where clause on the primary key to the query.
  14202. *
  14203. * @param mixed $id
  14204. * @return \Illuminate\Database\Eloquent\Builder
  14205. * @static
  14206. */
  14207. public static function whereKey($id)
  14208. {
  14209. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14210. return $instance->whereKey($id);
  14211. }
  14212. /**
  14213. * Add a where clause on the primary key to the query.
  14214. *
  14215. * @param mixed $id
  14216. * @return \Illuminate\Database\Eloquent\Builder
  14217. * @static
  14218. */
  14219. public static function whereKeyNot($id)
  14220. {
  14221. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14222. return $instance->whereKeyNot($id);
  14223. }
  14224. /**
  14225. * Add a basic where clause to the query.
  14226. *
  14227. * @param string|array|\Closure $column
  14228. * @param string $operator
  14229. * @param mixed $value
  14230. * @param string $boolean
  14231. * @return \Illuminate\Database\Eloquent\Builder
  14232. * @static
  14233. */
  14234. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  14235. {
  14236. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14237. return $instance->where($column, $operator, $value, $boolean);
  14238. }
  14239. /**
  14240. * Add an "or where" clause to the query.
  14241. *
  14242. * @param \Closure|array|string $column
  14243. * @param string $operator
  14244. * @param mixed $value
  14245. * @return \Illuminate\Database\Eloquent\Builder|static
  14246. * @static
  14247. */
  14248. public static function orWhere($column, $operator = null, $value = null)
  14249. {
  14250. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14251. return $instance->orWhere($column, $operator, $value);
  14252. }
  14253. /**
  14254. * Create a collection of models from plain arrays.
  14255. *
  14256. * @param array $items
  14257. * @return \Illuminate\Database\Eloquent\Collection
  14258. * @static
  14259. */
  14260. public static function hydrate($items)
  14261. {
  14262. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14263. return $instance->hydrate($items);
  14264. }
  14265. /**
  14266. * Create a collection of models from a raw query.
  14267. *
  14268. * @param string $query
  14269. * @param array $bindings
  14270. * @return \Illuminate\Database\Eloquent\Collection
  14271. * @static
  14272. */
  14273. public static function fromQuery($query, $bindings = array())
  14274. {
  14275. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14276. return $instance->fromQuery($query, $bindings);
  14277. }
  14278. /**
  14279. * Find a model by its primary key.
  14280. *
  14281. * @param mixed $id
  14282. * @param array $columns
  14283. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  14284. * @static
  14285. */
  14286. public static function find($id, $columns = array())
  14287. {
  14288. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14289. return $instance->find($id, $columns);
  14290. }
  14291. /**
  14292. * Find multiple models by their primary keys.
  14293. *
  14294. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  14295. * @param array $columns
  14296. * @return \Illuminate\Database\Eloquent\Collection
  14297. * @static
  14298. */
  14299. public static function findMany($ids, $columns = array())
  14300. {
  14301. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14302. return $instance->findMany($ids, $columns);
  14303. }
  14304. /**
  14305. * Find a model by its primary key or throw an exception.
  14306. *
  14307. * @param mixed $id
  14308. * @param array $columns
  14309. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
  14310. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14311. * @static
  14312. */
  14313. public static function findOrFail($id, $columns = array())
  14314. {
  14315. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14316. return $instance->findOrFail($id, $columns);
  14317. }
  14318. /**
  14319. * Find a model by its primary key or return fresh model instance.
  14320. *
  14321. * @param mixed $id
  14322. * @param array $columns
  14323. * @return \Illuminate\Database\Eloquent\Model
  14324. * @static
  14325. */
  14326. public static function findOrNew($id, $columns = array())
  14327. {
  14328. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14329. return $instance->findOrNew($id, $columns);
  14330. }
  14331. /**
  14332. * Get the first record matching the attributes or instantiate it.
  14333. *
  14334. * @param array $attributes
  14335. * @param array $values
  14336. * @return \Illuminate\Database\Eloquent\Model
  14337. * @static
  14338. */
  14339. public static function firstOrNew($attributes, $values = array())
  14340. {
  14341. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14342. return $instance->firstOrNew($attributes, $values);
  14343. }
  14344. /**
  14345. * Get the first record matching the attributes or create it.
  14346. *
  14347. * @param array $attributes
  14348. * @param array $values
  14349. * @return \Illuminate\Database\Eloquent\Model
  14350. * @static
  14351. */
  14352. public static function firstOrCreate($attributes, $values = array())
  14353. {
  14354. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14355. return $instance->firstOrCreate($attributes, $values);
  14356. }
  14357. /**
  14358. * Create or update a record matching the attributes, and fill it with values.
  14359. *
  14360. * @param array $attributes
  14361. * @param array $values
  14362. * @return \Illuminate\Database\Eloquent\Model
  14363. * @static
  14364. */
  14365. public static function updateOrCreate($attributes, $values = array())
  14366. {
  14367. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14368. return $instance->updateOrCreate($attributes, $values);
  14369. }
  14370. /**
  14371. * Execute the query and get the first result or throw an exception.
  14372. *
  14373. * @param array $columns
  14374. * @return \Illuminate\Database\Eloquent\Model|static
  14375. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14376. * @static
  14377. */
  14378. public static function firstOrFail($columns = array())
  14379. {
  14380. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14381. return $instance->firstOrFail($columns);
  14382. }
  14383. /**
  14384. * Execute the query and get the first result or call a callback.
  14385. *
  14386. * @param \Closure|array $columns
  14387. * @param \Closure|null $callback
  14388. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  14389. * @static
  14390. */
  14391. public static function firstOr($columns = array(), $callback = null)
  14392. {
  14393. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14394. return $instance->firstOr($columns, $callback);
  14395. }
  14396. /**
  14397. * Get a single column's value from the first result of a query.
  14398. *
  14399. * @param string $column
  14400. * @return mixed
  14401. * @static
  14402. */
  14403. public static function value($column)
  14404. {
  14405. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14406. return $instance->value($column);
  14407. }
  14408. /**
  14409. * Execute the query as a "select" statement.
  14410. *
  14411. * @param array $columns
  14412. * @return \Illuminate\Database\Eloquent\Collection|static[]
  14413. * @static
  14414. */
  14415. public static function get($columns = array())
  14416. {
  14417. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14418. return $instance->get($columns);
  14419. }
  14420. /**
  14421. * Get the hydrated models without eager loading.
  14422. *
  14423. * @param array $columns
  14424. * @return \Illuminate\Database\Eloquent\Model[]
  14425. * @static
  14426. */
  14427. public static function getModels($columns = array())
  14428. {
  14429. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14430. return $instance->getModels($columns);
  14431. }
  14432. /**
  14433. * Eager load the relationships for the models.
  14434. *
  14435. * @param array $models
  14436. * @return array
  14437. * @static
  14438. */
  14439. public static function eagerLoadRelations($models)
  14440. {
  14441. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14442. return $instance->eagerLoadRelations($models);
  14443. }
  14444. /**
  14445. * Get a generator for the given query.
  14446. *
  14447. * @return \Generator
  14448. * @static
  14449. */
  14450. public static function cursor()
  14451. {
  14452. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14453. return $instance->cursor();
  14454. }
  14455. /**
  14456. * Chunk the results of a query by comparing numeric IDs.
  14457. *
  14458. * @param int $count
  14459. * @param callable $callback
  14460. * @param string $column
  14461. * @param string|null $alias
  14462. * @return bool
  14463. * @static
  14464. */
  14465. public static function chunkById($count, $callback, $column = null, $alias = null)
  14466. {
  14467. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14468. return $instance->chunkById($count, $callback, $column, $alias);
  14469. }
  14470. /**
  14471. * Get an array with the values of a given column.
  14472. *
  14473. * @param string $column
  14474. * @param string|null $key
  14475. * @return \Illuminate\Support\Collection
  14476. * @static
  14477. */
  14478. public static function pluck($column, $key = null)
  14479. {
  14480. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14481. return $instance->pluck($column, $key);
  14482. }
  14483. /**
  14484. * Paginate the given query.
  14485. *
  14486. * @param int $perPage
  14487. * @param array $columns
  14488. * @param string $pageName
  14489. * @param int|null $page
  14490. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  14491. * @throws \InvalidArgumentException
  14492. * @static
  14493. */
  14494. public static function paginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  14495. {
  14496. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14497. return $instance->paginate($perPage, $columns, $pageName, $page);
  14498. }
  14499. /**
  14500. * Paginate the given query into a simple paginator.
  14501. *
  14502. * @param int $perPage
  14503. * @param array $columns
  14504. * @param string $pageName
  14505. * @param int|null $page
  14506. * @return \Illuminate\Contracts\Pagination\Paginator
  14507. * @static
  14508. */
  14509. public static function simplePaginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  14510. {
  14511. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14512. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  14513. }
  14514. /**
  14515. * Save a new model and return the instance.
  14516. *
  14517. * @param array $attributes
  14518. * @return \Illuminate\Database\Eloquent\Model|$this
  14519. * @static
  14520. */
  14521. public static function create($attributes = array())
  14522. {
  14523. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14524. return $instance->create($attributes);
  14525. }
  14526. /**
  14527. * Save a new model and return the instance. Allow mass-assignment.
  14528. *
  14529. * @param array $attributes
  14530. * @return \Illuminate\Database\Eloquent\Model|$this
  14531. * @static
  14532. */
  14533. public static function forceCreate($attributes)
  14534. {
  14535. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14536. return $instance->forceCreate($attributes);
  14537. }
  14538. /**
  14539. * Register a replacement for the default delete function.
  14540. *
  14541. * @param \Closure $callback
  14542. * @return void
  14543. * @static
  14544. */
  14545. public static function onDelete($callback)
  14546. {
  14547. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14548. $instance->onDelete($callback);
  14549. }
  14550. /**
  14551. * Call the given local model scopes.
  14552. *
  14553. * @param array $scopes
  14554. * @return mixed
  14555. * @static
  14556. */
  14557. public static function scopes($scopes)
  14558. {
  14559. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14560. return $instance->scopes($scopes);
  14561. }
  14562. /**
  14563. * Apply the scopes to the Eloquent builder instance and return it.
  14564. *
  14565. * @return \Illuminate\Database\Eloquent\Builder|static
  14566. * @static
  14567. */
  14568. public static function applyScopes()
  14569. {
  14570. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14571. return $instance->applyScopes();
  14572. }
  14573. /**
  14574. * Prevent the specified relations from being eager loaded.
  14575. *
  14576. * @param mixed $relations
  14577. * @return \Illuminate\Database\Eloquent\Builder
  14578. * @static
  14579. */
  14580. public static function without($relations)
  14581. {
  14582. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14583. return $instance->without($relations);
  14584. }
  14585. /**
  14586. * Create a new instance of the model being queried.
  14587. *
  14588. * @param array $attributes
  14589. * @return \Illuminate\Database\Eloquent\Model
  14590. * @static
  14591. */
  14592. public static function newModelInstance($attributes = array())
  14593. {
  14594. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14595. return $instance->newModelInstance($attributes);
  14596. }
  14597. /**
  14598. * Get the underlying query builder instance.
  14599. *
  14600. * @return \Illuminate\Database\Query\Builder
  14601. * @static
  14602. */
  14603. public static function getQuery()
  14604. {
  14605. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14606. return $instance->getQuery();
  14607. }
  14608. /**
  14609. * Set the underlying query builder instance.
  14610. *
  14611. * @param \Illuminate\Database\Query\Builder $query
  14612. * @return \Illuminate\Database\Eloquent\Builder
  14613. * @static
  14614. */
  14615. public static function setQuery($query)
  14616. {
  14617. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14618. return $instance->setQuery($query);
  14619. }
  14620. /**
  14621. * Get a base query builder instance.
  14622. *
  14623. * @return \Illuminate\Database\Query\Builder
  14624. * @static
  14625. */
  14626. public static function toBase()
  14627. {
  14628. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14629. return $instance->toBase();
  14630. }
  14631. /**
  14632. * Get the relationships being eagerly loaded.
  14633. *
  14634. * @return array
  14635. * @static
  14636. */
  14637. public static function getEagerLoads()
  14638. {
  14639. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14640. return $instance->getEagerLoads();
  14641. }
  14642. /**
  14643. * Set the relationships being eagerly loaded.
  14644. *
  14645. * @param array $eagerLoad
  14646. * @return \Illuminate\Database\Eloquent\Builder
  14647. * @static
  14648. */
  14649. public static function setEagerLoads($eagerLoad)
  14650. {
  14651. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14652. return $instance->setEagerLoads($eagerLoad);
  14653. }
  14654. /**
  14655. * Get the model instance being queried.
  14656. *
  14657. * @return \Illuminate\Database\Eloquent\Model
  14658. * @static
  14659. */
  14660. public static function getModel()
  14661. {
  14662. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14663. return $instance->getModel();
  14664. }
  14665. /**
  14666. * Set a model instance for the model being queried.
  14667. *
  14668. * @param \Illuminate\Database\Eloquent\Model $model
  14669. * @return \Illuminate\Database\Eloquent\Builder
  14670. * @static
  14671. */
  14672. public static function setModel($model)
  14673. {
  14674. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14675. return $instance->setModel($model);
  14676. }
  14677. /**
  14678. * Get the given macro by name.
  14679. *
  14680. * @param string $name
  14681. * @return \Closure
  14682. * @static
  14683. */
  14684. public static function getMacro($name)
  14685. {
  14686. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14687. return $instance->getMacro($name);
  14688. }
  14689. /**
  14690. * Chunk the results of the query.
  14691. *
  14692. * @param int $count
  14693. * @param callable $callback
  14694. * @return bool
  14695. * @static
  14696. */
  14697. public static function chunk($count, $callback)
  14698. {
  14699. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14700. return $instance->chunk($count, $callback);
  14701. }
  14702. /**
  14703. * Execute a callback over each item while chunking.
  14704. *
  14705. * @param callable $callback
  14706. * @param int $count
  14707. * @return bool
  14708. * @static
  14709. */
  14710. public static function each($callback, $count = 1000)
  14711. {
  14712. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14713. return $instance->each($callback, $count);
  14714. }
  14715. /**
  14716. * Execute the query and get the first result.
  14717. *
  14718. * @param array $columns
  14719. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  14720. * @static
  14721. */
  14722. public static function first($columns = array())
  14723. {
  14724. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14725. return $instance->first($columns);
  14726. }
  14727. /**
  14728. * Apply the callback's query changes if the given "value" is true.
  14729. *
  14730. * @param mixed $value
  14731. * @param callable $callback
  14732. * @param callable $default
  14733. * @return mixed
  14734. * @static
  14735. */
  14736. public static function when($value, $callback, $default = null)
  14737. {
  14738. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14739. return $instance->when($value, $callback, $default);
  14740. }
  14741. /**
  14742. * Pass the query to a given callback.
  14743. *
  14744. * @param \Closure $callback
  14745. * @return \Illuminate\Database\Query\Builder
  14746. * @static
  14747. */
  14748. public static function tap($callback)
  14749. {
  14750. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14751. return $instance->tap($callback);
  14752. }
  14753. /**
  14754. * Apply the callback's query changes if the given "value" is false.
  14755. *
  14756. * @param mixed $value
  14757. * @param callable $callback
  14758. * @param callable $default
  14759. * @return mixed
  14760. * @static
  14761. */
  14762. public static function unless($value, $callback, $default = null)
  14763. {
  14764. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14765. return $instance->unless($value, $callback, $default);
  14766. }
  14767. /**
  14768. * Add a relationship count / exists condition to the query.
  14769. *
  14770. * @param string $relation
  14771. * @param string $operator
  14772. * @param int $count
  14773. * @param string $boolean
  14774. * @param \Closure|null $callback
  14775. * @return \Illuminate\Database\Eloquent\Builder|static
  14776. * @static
  14777. */
  14778. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  14779. {
  14780. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14781. return $instance->has($relation, $operator, $count, $boolean, $callback);
  14782. }
  14783. /**
  14784. * Add a relationship count / exists condition to the query with an "or".
  14785. *
  14786. * @param string $relation
  14787. * @param string $operator
  14788. * @param int $count
  14789. * @return \Illuminate\Database\Eloquent\Builder|static
  14790. * @static
  14791. */
  14792. public static function orHas($relation, $operator = '>=', $count = 1)
  14793. {
  14794. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14795. return $instance->orHas($relation, $operator, $count);
  14796. }
  14797. /**
  14798. * Add a relationship count / exists condition to the query.
  14799. *
  14800. * @param string $relation
  14801. * @param string $boolean
  14802. * @param \Closure|null $callback
  14803. * @return \Illuminate\Database\Eloquent\Builder|static
  14804. * @static
  14805. */
  14806. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  14807. {
  14808. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14809. return $instance->doesntHave($relation, $boolean, $callback);
  14810. }
  14811. /**
  14812. * Add a relationship count / exists condition to the query with an "or".
  14813. *
  14814. * @param string $relation
  14815. * @return \Illuminate\Database\Eloquent\Builder|static
  14816. * @static
  14817. */
  14818. public static function orDoesntHave($relation)
  14819. {
  14820. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14821. return $instance->orDoesntHave($relation);
  14822. }
  14823. /**
  14824. * Add a relationship count / exists condition to the query with where clauses.
  14825. *
  14826. * @param string $relation
  14827. * @param \Closure|null $callback
  14828. * @param string $operator
  14829. * @param int $count
  14830. * @return \Illuminate\Database\Eloquent\Builder|static
  14831. * @static
  14832. */
  14833. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  14834. {
  14835. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14836. return $instance->whereHas($relation, $callback, $operator, $count);
  14837. }
  14838. /**
  14839. * Add a relationship count / exists condition to the query with where clauses and an "or".
  14840. *
  14841. * @param string $relation
  14842. * @param \Closure $callback
  14843. * @param string $operator
  14844. * @param int $count
  14845. * @return \Illuminate\Database\Eloquent\Builder|static
  14846. * @static
  14847. */
  14848. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  14849. {
  14850. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14851. return $instance->orWhereHas($relation, $callback, $operator, $count);
  14852. }
  14853. /**
  14854. * Add a relationship count / exists condition to the query with where clauses.
  14855. *
  14856. * @param string $relation
  14857. * @param \Closure|null $callback
  14858. * @return \Illuminate\Database\Eloquent\Builder|static
  14859. * @static
  14860. */
  14861. public static function whereDoesntHave($relation, $callback = null)
  14862. {
  14863. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14864. return $instance->whereDoesntHave($relation, $callback);
  14865. }
  14866. /**
  14867. * Add a relationship count / exists condition to the query with where clauses and an "or".
  14868. *
  14869. * @param string $relation
  14870. * @param \Closure $callback
  14871. * @return \Illuminate\Database\Eloquent\Builder|static
  14872. * @static
  14873. */
  14874. public static function orWhereDoesntHave($relation, $callback = null)
  14875. {
  14876. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14877. return $instance->orWhereDoesntHave($relation, $callback);
  14878. }
  14879. /**
  14880. * Add subselect queries to count the relations.
  14881. *
  14882. * @param mixed $relations
  14883. * @return \Illuminate\Database\Eloquent\Builder
  14884. * @static
  14885. */
  14886. public static function withCount($relations)
  14887. {
  14888. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14889. return $instance->withCount($relations);
  14890. }
  14891. /**
  14892. * Merge the where constraints from another query to the current query.
  14893. *
  14894. * @param \Illuminate\Database\Eloquent\Builder $from
  14895. * @return \Illuminate\Database\Eloquent\Builder|static
  14896. * @static
  14897. */
  14898. public static function mergeConstraintsFrom($from)
  14899. {
  14900. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14901. return $instance->mergeConstraintsFrom($from);
  14902. }
  14903. /**
  14904. * Set the columns to be selected.
  14905. *
  14906. * @param array|mixed $columns
  14907. * @return \Illuminate\Database\Query\Builder
  14908. * @static
  14909. */
  14910. public static function select($columns = array())
  14911. {
  14912. /** @var \Illuminate\Database\Query\Builder $instance */
  14913. return $instance->select($columns);
  14914. }
  14915. /**
  14916. * Add a new "raw" select expression to the query.
  14917. *
  14918. * @param string $expression
  14919. * @param array $bindings
  14920. * @return \Illuminate\Database\Query\Builder|static
  14921. * @static
  14922. */
  14923. public static function selectRaw($expression, $bindings = array())
  14924. {
  14925. /** @var \Illuminate\Database\Query\Builder $instance */
  14926. return $instance->selectRaw($expression, $bindings);
  14927. }
  14928. /**
  14929. * Add a subselect expression to the query.
  14930. *
  14931. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  14932. * @param string $as
  14933. * @return \Illuminate\Database\Query\Builder|static
  14934. * @throws \InvalidArgumentException
  14935. * @static
  14936. */
  14937. public static function selectSub($query, $as)
  14938. {
  14939. /** @var \Illuminate\Database\Query\Builder $instance */
  14940. return $instance->selectSub($query, $as);
  14941. }
  14942. /**
  14943. * Add a new select column to the query.
  14944. *
  14945. * @param array|mixed $column
  14946. * @return \Illuminate\Database\Query\Builder
  14947. * @static
  14948. */
  14949. public static function addSelect($column)
  14950. {
  14951. /** @var \Illuminate\Database\Query\Builder $instance */
  14952. return $instance->addSelect($column);
  14953. }
  14954. /**
  14955. * Force the query to only return distinct results.
  14956. *
  14957. * @return \Illuminate\Database\Query\Builder
  14958. * @static
  14959. */
  14960. public static function distinct()
  14961. {
  14962. /** @var \Illuminate\Database\Query\Builder $instance */
  14963. return $instance->distinct();
  14964. }
  14965. /**
  14966. * Set the table which the query is targeting.
  14967. *
  14968. * @param string $table
  14969. * @return \Illuminate\Database\Query\Builder
  14970. * @static
  14971. */
  14972. public static function from($table)
  14973. {
  14974. /** @var \Illuminate\Database\Query\Builder $instance */
  14975. return $instance->from($table);
  14976. }
  14977. /**
  14978. * Add a join clause to the query.
  14979. *
  14980. * @param string $table
  14981. * @param string $first
  14982. * @param string|null $operator
  14983. * @param string|null $second
  14984. * @param string $type
  14985. * @param bool $where
  14986. * @return \Illuminate\Database\Query\Builder
  14987. * @static
  14988. */
  14989. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  14990. {
  14991. /** @var \Illuminate\Database\Query\Builder $instance */
  14992. return $instance->join($table, $first, $operator, $second, $type, $where);
  14993. }
  14994. /**
  14995. * Add a "join where" clause to the query.
  14996. *
  14997. * @param string $table
  14998. * @param string $first
  14999. * @param string $operator
  15000. * @param string $second
  15001. * @param string $type
  15002. * @return \Illuminate\Database\Query\Builder|static
  15003. * @static
  15004. */
  15005. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  15006. {
  15007. /** @var \Illuminate\Database\Query\Builder $instance */
  15008. return $instance->joinWhere($table, $first, $operator, $second, $type);
  15009. }
  15010. /**
  15011. * Add a left join to the query.
  15012. *
  15013. * @param string $table
  15014. * @param string $first
  15015. * @param string|null $operator
  15016. * @param string|null $second
  15017. * @return \Illuminate\Database\Query\Builder|static
  15018. * @static
  15019. */
  15020. public static function leftJoin($table, $first, $operator = null, $second = null)
  15021. {
  15022. /** @var \Illuminate\Database\Query\Builder $instance */
  15023. return $instance->leftJoin($table, $first, $operator, $second);
  15024. }
  15025. /**
  15026. * Add a "join where" clause to the query.
  15027. *
  15028. * @param string $table
  15029. * @param string $first
  15030. * @param string $operator
  15031. * @param string $second
  15032. * @return \Illuminate\Database\Query\Builder|static
  15033. * @static
  15034. */
  15035. public static function leftJoinWhere($table, $first, $operator, $second)
  15036. {
  15037. /** @var \Illuminate\Database\Query\Builder $instance */
  15038. return $instance->leftJoinWhere($table, $first, $operator, $second);
  15039. }
  15040. /**
  15041. * Add a right join to the query.
  15042. *
  15043. * @param string $table
  15044. * @param string $first
  15045. * @param string|null $operator
  15046. * @param string|null $second
  15047. * @return \Illuminate\Database\Query\Builder|static
  15048. * @static
  15049. */
  15050. public static function rightJoin($table, $first, $operator = null, $second = null)
  15051. {
  15052. /** @var \Illuminate\Database\Query\Builder $instance */
  15053. return $instance->rightJoin($table, $first, $operator, $second);
  15054. }
  15055. /**
  15056. * Add a "right join where" clause to the query.
  15057. *
  15058. * @param string $table
  15059. * @param string $first
  15060. * @param string $operator
  15061. * @param string $second
  15062. * @return \Illuminate\Database\Query\Builder|static
  15063. * @static
  15064. */
  15065. public static function rightJoinWhere($table, $first, $operator, $second)
  15066. {
  15067. /** @var \Illuminate\Database\Query\Builder $instance */
  15068. return $instance->rightJoinWhere($table, $first, $operator, $second);
  15069. }
  15070. /**
  15071. * Add a "cross join" clause to the query.
  15072. *
  15073. * @param string $table
  15074. * @param string|null $first
  15075. * @param string|null $operator
  15076. * @param string|null $second
  15077. * @return \Illuminate\Database\Query\Builder|static
  15078. * @static
  15079. */
  15080. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  15081. {
  15082. /** @var \Illuminate\Database\Query\Builder $instance */
  15083. return $instance->crossJoin($table, $first, $operator, $second);
  15084. }
  15085. /**
  15086. * Merge an array of where clauses and bindings.
  15087. *
  15088. * @param array $wheres
  15089. * @param array $bindings
  15090. * @return void
  15091. * @static
  15092. */
  15093. public static function mergeWheres($wheres, $bindings)
  15094. {
  15095. /** @var \Illuminate\Database\Query\Builder $instance */
  15096. $instance->mergeWheres($wheres, $bindings);
  15097. }
  15098. /**
  15099. * Prepare the value and operator for a where clause.
  15100. *
  15101. * @param string $value
  15102. * @param string $operator
  15103. * @param bool $useDefault
  15104. * @return array
  15105. * @throws \InvalidArgumentException
  15106. * @static
  15107. */
  15108. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  15109. {
  15110. /** @var \Illuminate\Database\Query\Builder $instance */
  15111. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  15112. }
  15113. /**
  15114. * Add a "where" clause comparing two columns to the query.
  15115. *
  15116. * @param string|array $first
  15117. * @param string|null $operator
  15118. * @param string|null $second
  15119. * @param string|null $boolean
  15120. * @return \Illuminate\Database\Query\Builder|static
  15121. * @static
  15122. */
  15123. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  15124. {
  15125. /** @var \Illuminate\Database\Query\Builder $instance */
  15126. return $instance->whereColumn($first, $operator, $second, $boolean);
  15127. }
  15128. /**
  15129. * Add an "or where" clause comparing two columns to the query.
  15130. *
  15131. * @param string|array $first
  15132. * @param string|null $operator
  15133. * @param string|null $second
  15134. * @return \Illuminate\Database\Query\Builder|static
  15135. * @static
  15136. */
  15137. public static function orWhereColumn($first, $operator = null, $second = null)
  15138. {
  15139. /** @var \Illuminate\Database\Query\Builder $instance */
  15140. return $instance->orWhereColumn($first, $operator, $second);
  15141. }
  15142. /**
  15143. * Add a raw where clause to the query.
  15144. *
  15145. * @param string $sql
  15146. * @param mixed $bindings
  15147. * @param string $boolean
  15148. * @return \Illuminate\Database\Query\Builder
  15149. * @static
  15150. */
  15151. public static function whereRaw($sql, $bindings = array(), $boolean = 'and')
  15152. {
  15153. /** @var \Illuminate\Database\Query\Builder $instance */
  15154. return $instance->whereRaw($sql, $bindings, $boolean);
  15155. }
  15156. /**
  15157. * Add a raw or where clause to the query.
  15158. *
  15159. * @param string $sql
  15160. * @param mixed $bindings
  15161. * @return \Illuminate\Database\Query\Builder|static
  15162. * @static
  15163. */
  15164. public static function orWhereRaw($sql, $bindings = array())
  15165. {
  15166. /** @var \Illuminate\Database\Query\Builder $instance */
  15167. return $instance->orWhereRaw($sql, $bindings);
  15168. }
  15169. /**
  15170. * Add a "where in" clause to the query.
  15171. *
  15172. * @param string $column
  15173. * @param mixed $values
  15174. * @param string $boolean
  15175. * @param bool $not
  15176. * @return \Illuminate\Database\Query\Builder
  15177. * @static
  15178. */
  15179. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  15180. {
  15181. /** @var \Illuminate\Database\Query\Builder $instance */
  15182. return $instance->whereIn($column, $values, $boolean, $not);
  15183. }
  15184. /**
  15185. * Add an "or where in" clause to the query.
  15186. *
  15187. * @param string $column
  15188. * @param mixed $values
  15189. * @return \Illuminate\Database\Query\Builder|static
  15190. * @static
  15191. */
  15192. public static function orWhereIn($column, $values)
  15193. {
  15194. /** @var \Illuminate\Database\Query\Builder $instance */
  15195. return $instance->orWhereIn($column, $values);
  15196. }
  15197. /**
  15198. * Add a "where not in" clause to the query.
  15199. *
  15200. * @param string $column
  15201. * @param mixed $values
  15202. * @param string $boolean
  15203. * @return \Illuminate\Database\Query\Builder|static
  15204. * @static
  15205. */
  15206. public static function whereNotIn($column, $values, $boolean = 'and')
  15207. {
  15208. /** @var \Illuminate\Database\Query\Builder $instance */
  15209. return $instance->whereNotIn($column, $values, $boolean);
  15210. }
  15211. /**
  15212. * Add an "or where not in" clause to the query.
  15213. *
  15214. * @param string $column
  15215. * @param mixed $values
  15216. * @return \Illuminate\Database\Query\Builder|static
  15217. * @static
  15218. */
  15219. public static function orWhereNotIn($column, $values)
  15220. {
  15221. /** @var \Illuminate\Database\Query\Builder $instance */
  15222. return $instance->orWhereNotIn($column, $values);
  15223. }
  15224. /**
  15225. * Add a "where null" clause to the query.
  15226. *
  15227. * @param string $column
  15228. * @param string $boolean
  15229. * @param bool $not
  15230. * @return \Illuminate\Database\Query\Builder
  15231. * @static
  15232. */
  15233. public static function whereNull($column, $boolean = 'and', $not = false)
  15234. {
  15235. /** @var \Illuminate\Database\Query\Builder $instance */
  15236. return $instance->whereNull($column, $boolean, $not);
  15237. }
  15238. /**
  15239. * Add an "or where null" clause to the query.
  15240. *
  15241. * @param string $column
  15242. * @return \Illuminate\Database\Query\Builder|static
  15243. * @static
  15244. */
  15245. public static function orWhereNull($column)
  15246. {
  15247. /** @var \Illuminate\Database\Query\Builder $instance */
  15248. return $instance->orWhereNull($column);
  15249. }
  15250. /**
  15251. * Add a "where not null" clause to the query.
  15252. *
  15253. * @param string $column
  15254. * @param string $boolean
  15255. * @return \Illuminate\Database\Query\Builder|static
  15256. * @static
  15257. */
  15258. public static function whereNotNull($column, $boolean = 'and')
  15259. {
  15260. /** @var \Illuminate\Database\Query\Builder $instance */
  15261. return $instance->whereNotNull($column, $boolean);
  15262. }
  15263. /**
  15264. * Add a where between statement to the query.
  15265. *
  15266. * @param string $column
  15267. * @param array $values
  15268. * @param string $boolean
  15269. * @param bool $not
  15270. * @return \Illuminate\Database\Query\Builder
  15271. * @static
  15272. */
  15273. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  15274. {
  15275. /** @var \Illuminate\Database\Query\Builder $instance */
  15276. return $instance->whereBetween($column, $values, $boolean, $not);
  15277. }
  15278. /**
  15279. * Add an or where between statement to the query.
  15280. *
  15281. * @param string $column
  15282. * @param array $values
  15283. * @return \Illuminate\Database\Query\Builder|static
  15284. * @static
  15285. */
  15286. public static function orWhereBetween($column, $values)
  15287. {
  15288. /** @var \Illuminate\Database\Query\Builder $instance */
  15289. return $instance->orWhereBetween($column, $values);
  15290. }
  15291. /**
  15292. * Add a where not between statement to the query.
  15293. *
  15294. * @param string $column
  15295. * @param array $values
  15296. * @param string $boolean
  15297. * @return \Illuminate\Database\Query\Builder|static
  15298. * @static
  15299. */
  15300. public static function whereNotBetween($column, $values, $boolean = 'and')
  15301. {
  15302. /** @var \Illuminate\Database\Query\Builder $instance */
  15303. return $instance->whereNotBetween($column, $values, $boolean);
  15304. }
  15305. /**
  15306. * Add an or where not between statement to the query.
  15307. *
  15308. * @param string $column
  15309. * @param array $values
  15310. * @return \Illuminate\Database\Query\Builder|static
  15311. * @static
  15312. */
  15313. public static function orWhereNotBetween($column, $values)
  15314. {
  15315. /** @var \Illuminate\Database\Query\Builder $instance */
  15316. return $instance->orWhereNotBetween($column, $values);
  15317. }
  15318. /**
  15319. * Add an "or where not null" clause to the query.
  15320. *
  15321. * @param string $column
  15322. * @return \Illuminate\Database\Query\Builder|static
  15323. * @static
  15324. */
  15325. public static function orWhereNotNull($column)
  15326. {
  15327. /** @var \Illuminate\Database\Query\Builder $instance */
  15328. return $instance->orWhereNotNull($column);
  15329. }
  15330. /**
  15331. * Add a "where date" statement to the query.
  15332. *
  15333. * @param string $column
  15334. * @param string $operator
  15335. * @param mixed $value
  15336. * @param string $boolean
  15337. * @return \Illuminate\Database\Query\Builder|static
  15338. * @static
  15339. */
  15340. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  15341. {
  15342. /** @var \Illuminate\Database\Query\Builder $instance */
  15343. return $instance->whereDate($column, $operator, $value, $boolean);
  15344. }
  15345. /**
  15346. * Add an "or where date" statement to the query.
  15347. *
  15348. * @param string $column
  15349. * @param string $operator
  15350. * @param string $value
  15351. * @return \Illuminate\Database\Query\Builder|static
  15352. * @static
  15353. */
  15354. public static function orWhereDate($column, $operator, $value)
  15355. {
  15356. /** @var \Illuminate\Database\Query\Builder $instance */
  15357. return $instance->orWhereDate($column, $operator, $value);
  15358. }
  15359. /**
  15360. * Add a "where time" statement to the query.
  15361. *
  15362. * @param string $column
  15363. * @param string $operator
  15364. * @param int $value
  15365. * @param string $boolean
  15366. * @return \Illuminate\Database\Query\Builder|static
  15367. * @static
  15368. */
  15369. public static function whereTime($column, $operator, $value, $boolean = 'and')
  15370. {
  15371. /** @var \Illuminate\Database\Query\Builder $instance */
  15372. return $instance->whereTime($column, $operator, $value, $boolean);
  15373. }
  15374. /**
  15375. * Add an "or where time" statement to the query.
  15376. *
  15377. * @param string $column
  15378. * @param string $operator
  15379. * @param int $value
  15380. * @return \Illuminate\Database\Query\Builder|static
  15381. * @static
  15382. */
  15383. public static function orWhereTime($column, $operator, $value)
  15384. {
  15385. /** @var \Illuminate\Database\Query\Builder $instance */
  15386. return $instance->orWhereTime($column, $operator, $value);
  15387. }
  15388. /**
  15389. * Add a "where day" statement to the query.
  15390. *
  15391. * @param string $column
  15392. * @param string $operator
  15393. * @param mixed $value
  15394. * @param string $boolean
  15395. * @return \Illuminate\Database\Query\Builder|static
  15396. * @static
  15397. */
  15398. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  15399. {
  15400. /** @var \Illuminate\Database\Query\Builder $instance */
  15401. return $instance->whereDay($column, $operator, $value, $boolean);
  15402. }
  15403. /**
  15404. * Add a "where month" statement to the query.
  15405. *
  15406. * @param string $column
  15407. * @param string $operator
  15408. * @param mixed $value
  15409. * @param string $boolean
  15410. * @return \Illuminate\Database\Query\Builder|static
  15411. * @static
  15412. */
  15413. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  15414. {
  15415. /** @var \Illuminate\Database\Query\Builder $instance */
  15416. return $instance->whereMonth($column, $operator, $value, $boolean);
  15417. }
  15418. /**
  15419. * Add a "where year" statement to the query.
  15420. *
  15421. * @param string $column
  15422. * @param string $operator
  15423. * @param mixed $value
  15424. * @param string $boolean
  15425. * @return \Illuminate\Database\Query\Builder|static
  15426. * @static
  15427. */
  15428. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  15429. {
  15430. /** @var \Illuminate\Database\Query\Builder $instance */
  15431. return $instance->whereYear($column, $operator, $value, $boolean);
  15432. }
  15433. /**
  15434. * Add a nested where statement to the query.
  15435. *
  15436. * @param \Closure $callback
  15437. * @param string $boolean
  15438. * @return \Illuminate\Database\Query\Builder|static
  15439. * @static
  15440. */
  15441. public static function whereNested($callback, $boolean = 'and')
  15442. {
  15443. /** @var \Illuminate\Database\Query\Builder $instance */
  15444. return $instance->whereNested($callback, $boolean);
  15445. }
  15446. /**
  15447. * Create a new query instance for nested where condition.
  15448. *
  15449. * @return \Illuminate\Database\Query\Builder
  15450. * @static
  15451. */
  15452. public static function forNestedWhere()
  15453. {
  15454. /** @var \Illuminate\Database\Query\Builder $instance */
  15455. return $instance->forNestedWhere();
  15456. }
  15457. /**
  15458. * Add another query builder as a nested where to the query builder.
  15459. *
  15460. * @param \Illuminate\Database\Query\Builder|static $query
  15461. * @param string $boolean
  15462. * @return \Illuminate\Database\Query\Builder
  15463. * @static
  15464. */
  15465. public static function addNestedWhereQuery($query, $boolean = 'and')
  15466. {
  15467. /** @var \Illuminate\Database\Query\Builder $instance */
  15468. return $instance->addNestedWhereQuery($query, $boolean);
  15469. }
  15470. /**
  15471. * Add an exists clause to the query.
  15472. *
  15473. * @param \Closure $callback
  15474. * @param string $boolean
  15475. * @param bool $not
  15476. * @return \Illuminate\Database\Query\Builder
  15477. * @static
  15478. */
  15479. public static function whereExists($callback, $boolean = 'and', $not = false)
  15480. {
  15481. /** @var \Illuminate\Database\Query\Builder $instance */
  15482. return $instance->whereExists($callback, $boolean, $not);
  15483. }
  15484. /**
  15485. * Add an or exists clause to the query.
  15486. *
  15487. * @param \Closure $callback
  15488. * @param bool $not
  15489. * @return \Illuminate\Database\Query\Builder|static
  15490. * @static
  15491. */
  15492. public static function orWhereExists($callback, $not = false)
  15493. {
  15494. /** @var \Illuminate\Database\Query\Builder $instance */
  15495. return $instance->orWhereExists($callback, $not);
  15496. }
  15497. /**
  15498. * Add a where not exists clause to the query.
  15499. *
  15500. * @param \Closure $callback
  15501. * @param string $boolean
  15502. * @return \Illuminate\Database\Query\Builder|static
  15503. * @static
  15504. */
  15505. public static function whereNotExists($callback, $boolean = 'and')
  15506. {
  15507. /** @var \Illuminate\Database\Query\Builder $instance */
  15508. return $instance->whereNotExists($callback, $boolean);
  15509. }
  15510. /**
  15511. * Add a where not exists clause to the query.
  15512. *
  15513. * @param \Closure $callback
  15514. * @return \Illuminate\Database\Query\Builder|static
  15515. * @static
  15516. */
  15517. public static function orWhereNotExists($callback)
  15518. {
  15519. /** @var \Illuminate\Database\Query\Builder $instance */
  15520. return $instance->orWhereNotExists($callback);
  15521. }
  15522. /**
  15523. * Add an exists clause to the query.
  15524. *
  15525. * @param \Illuminate\Database\Query\Builder $query
  15526. * @param string $boolean
  15527. * @param bool $not
  15528. * @return \Illuminate\Database\Query\Builder
  15529. * @static
  15530. */
  15531. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  15532. {
  15533. /** @var \Illuminate\Database\Query\Builder $instance */
  15534. return $instance->addWhereExistsQuery($query, $boolean, $not);
  15535. }
  15536. /**
  15537. * Handles dynamic "where" clauses to the query.
  15538. *
  15539. * @param string $method
  15540. * @param string $parameters
  15541. * @return \Illuminate\Database\Query\Builder
  15542. * @static
  15543. */
  15544. public static function dynamicWhere($method, $parameters)
  15545. {
  15546. /** @var \Illuminate\Database\Query\Builder $instance */
  15547. return $instance->dynamicWhere($method, $parameters);
  15548. }
  15549. /**
  15550. * Add a "group by" clause to the query.
  15551. *
  15552. * @param array $groups
  15553. * @return \Illuminate\Database\Query\Builder
  15554. * @static
  15555. */
  15556. public static function groupBy($groups = null)
  15557. {
  15558. /** @var \Illuminate\Database\Query\Builder $instance */
  15559. return $instance->groupBy($groups);
  15560. }
  15561. /**
  15562. * Add a "having" clause to the query.
  15563. *
  15564. * @param string $column
  15565. * @param string|null $operator
  15566. * @param string|null $value
  15567. * @param string $boolean
  15568. * @return \Illuminate\Database\Query\Builder
  15569. * @static
  15570. */
  15571. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  15572. {
  15573. /** @var \Illuminate\Database\Query\Builder $instance */
  15574. return $instance->having($column, $operator, $value, $boolean);
  15575. }
  15576. /**
  15577. * Add a "or having" clause to the query.
  15578. *
  15579. * @param string $column
  15580. * @param string|null $operator
  15581. * @param string|null $value
  15582. * @return \Illuminate\Database\Query\Builder|static
  15583. * @static
  15584. */
  15585. public static function orHaving($column, $operator = null, $value = null)
  15586. {
  15587. /** @var \Illuminate\Database\Query\Builder $instance */
  15588. return $instance->orHaving($column, $operator, $value);
  15589. }
  15590. /**
  15591. * Add a raw having clause to the query.
  15592. *
  15593. * @param string $sql
  15594. * @param array $bindings
  15595. * @param string $boolean
  15596. * @return \Illuminate\Database\Query\Builder
  15597. * @static
  15598. */
  15599. public static function havingRaw($sql, $bindings = array(), $boolean = 'and')
  15600. {
  15601. /** @var \Illuminate\Database\Query\Builder $instance */
  15602. return $instance->havingRaw($sql, $bindings, $boolean);
  15603. }
  15604. /**
  15605. * Add a raw or having clause to the query.
  15606. *
  15607. * @param string $sql
  15608. * @param array $bindings
  15609. * @return \Illuminate\Database\Query\Builder|static
  15610. * @static
  15611. */
  15612. public static function orHavingRaw($sql, $bindings = array())
  15613. {
  15614. /** @var \Illuminate\Database\Query\Builder $instance */
  15615. return $instance->orHavingRaw($sql, $bindings);
  15616. }
  15617. /**
  15618. * Add an "order by" clause to the query.
  15619. *
  15620. * @param string $column
  15621. * @param string $direction
  15622. * @return \Illuminate\Database\Query\Builder
  15623. * @static
  15624. */
  15625. public static function orderBy($column, $direction = 'asc')
  15626. {
  15627. /** @var \Illuminate\Database\Query\Builder $instance */
  15628. return $instance->orderBy($column, $direction);
  15629. }
  15630. /**
  15631. * Add a descending "order by" clause to the query.
  15632. *
  15633. * @param string $column
  15634. * @return \Illuminate\Database\Query\Builder
  15635. * @static
  15636. */
  15637. public static function orderByDesc($column)
  15638. {
  15639. /** @var \Illuminate\Database\Query\Builder $instance */
  15640. return $instance->orderByDesc($column);
  15641. }
  15642. /**
  15643. * Add an "order by" clause for a timestamp to the query.
  15644. *
  15645. * @param string $column
  15646. * @return \Illuminate\Database\Query\Builder|static
  15647. * @static
  15648. */
  15649. public static function latest($column = 'created_at')
  15650. {
  15651. /** @var \Illuminate\Database\Query\Builder $instance */
  15652. return $instance->latest($column);
  15653. }
  15654. /**
  15655. * Add an "order by" clause for a timestamp to the query.
  15656. *
  15657. * @param string $column
  15658. * @return \Illuminate\Database\Query\Builder|static
  15659. * @static
  15660. */
  15661. public static function oldest($column = 'created_at')
  15662. {
  15663. /** @var \Illuminate\Database\Query\Builder $instance */
  15664. return $instance->oldest($column);
  15665. }
  15666. /**
  15667. * Put the query's results in random order.
  15668. *
  15669. * @param string $seed
  15670. * @return \Illuminate\Database\Query\Builder
  15671. * @static
  15672. */
  15673. public static function inRandomOrder($seed = '')
  15674. {
  15675. /** @var \Illuminate\Database\Query\Builder $instance */
  15676. return $instance->inRandomOrder($seed);
  15677. }
  15678. /**
  15679. * Add a raw "order by" clause to the query.
  15680. *
  15681. * @param string $sql
  15682. * @param array $bindings
  15683. * @return \Illuminate\Database\Query\Builder
  15684. * @static
  15685. */
  15686. public static function orderByRaw($sql, $bindings = array())
  15687. {
  15688. /** @var \Illuminate\Database\Query\Builder $instance */
  15689. return $instance->orderByRaw($sql, $bindings);
  15690. }
  15691. /**
  15692. * Alias to set the "offset" value of the query.
  15693. *
  15694. * @param int $value
  15695. * @return \Illuminate\Database\Query\Builder|static
  15696. * @static
  15697. */
  15698. public static function skip($value)
  15699. {
  15700. /** @var \Illuminate\Database\Query\Builder $instance */
  15701. return $instance->skip($value);
  15702. }
  15703. /**
  15704. * Set the "offset" value of the query.
  15705. *
  15706. * @param int $value
  15707. * @return \Illuminate\Database\Query\Builder
  15708. * @static
  15709. */
  15710. public static function offset($value)
  15711. {
  15712. /** @var \Illuminate\Database\Query\Builder $instance */
  15713. return $instance->offset($value);
  15714. }
  15715. /**
  15716. * Alias to set the "limit" value of the query.
  15717. *
  15718. * @param int $value
  15719. * @return \Illuminate\Database\Query\Builder|static
  15720. * @static
  15721. */
  15722. public static function take($value)
  15723. {
  15724. /** @var \Illuminate\Database\Query\Builder $instance */
  15725. return $instance->take($value);
  15726. }
  15727. /**
  15728. * Set the "limit" value of the query.
  15729. *
  15730. * @param int $value
  15731. * @return \Illuminate\Database\Query\Builder
  15732. * @static
  15733. */
  15734. public static function limit($value)
  15735. {
  15736. /** @var \Illuminate\Database\Query\Builder $instance */
  15737. return $instance->limit($value);
  15738. }
  15739. /**
  15740. * Set the limit and offset for a given page.
  15741. *
  15742. * @param int $page
  15743. * @param int $perPage
  15744. * @return \Illuminate\Database\Query\Builder|static
  15745. * @static
  15746. */
  15747. public static function forPage($page, $perPage = 15)
  15748. {
  15749. /** @var \Illuminate\Database\Query\Builder $instance */
  15750. return $instance->forPage($page, $perPage);
  15751. }
  15752. /**
  15753. * Constrain the query to the next "page" of results after a given ID.
  15754. *
  15755. * @param int $perPage
  15756. * @param int $lastId
  15757. * @param string $column
  15758. * @return \Illuminate\Database\Query\Builder|static
  15759. * @static
  15760. */
  15761. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  15762. {
  15763. /** @var \Illuminate\Database\Query\Builder $instance */
  15764. return $instance->forPageAfterId($perPage, $lastId, $column);
  15765. }
  15766. /**
  15767. * Add a union statement to the query.
  15768. *
  15769. * @param \Illuminate\Database\Query\Builder|\Closure $query
  15770. * @param bool $all
  15771. * @return \Illuminate\Database\Query\Builder|static
  15772. * @static
  15773. */
  15774. public static function union($query, $all = false)
  15775. {
  15776. /** @var \Illuminate\Database\Query\Builder $instance */
  15777. return $instance->union($query, $all);
  15778. }
  15779. /**
  15780. * Add a union all statement to the query.
  15781. *
  15782. * @param \Illuminate\Database\Query\Builder|\Closure $query
  15783. * @return \Illuminate\Database\Query\Builder|static
  15784. * @static
  15785. */
  15786. public static function unionAll($query)
  15787. {
  15788. /** @var \Illuminate\Database\Query\Builder $instance */
  15789. return $instance->unionAll($query);
  15790. }
  15791. /**
  15792. * Lock the selected rows in the table.
  15793. *
  15794. * @param string|bool $value
  15795. * @return \Illuminate\Database\Query\Builder
  15796. * @static
  15797. */
  15798. public static function lock($value = true)
  15799. {
  15800. /** @var \Illuminate\Database\Query\Builder $instance */
  15801. return $instance->lock($value);
  15802. }
  15803. /**
  15804. * Lock the selected rows in the table for updating.
  15805. *
  15806. * @return \Illuminate\Database\Query\Builder
  15807. * @static
  15808. */
  15809. public static function lockForUpdate()
  15810. {
  15811. /** @var \Illuminate\Database\Query\Builder $instance */
  15812. return $instance->lockForUpdate();
  15813. }
  15814. /**
  15815. * Share lock the selected rows in the table.
  15816. *
  15817. * @return \Illuminate\Database\Query\Builder
  15818. * @static
  15819. */
  15820. public static function sharedLock()
  15821. {
  15822. /** @var \Illuminate\Database\Query\Builder $instance */
  15823. return $instance->sharedLock();
  15824. }
  15825. /**
  15826. * Get the SQL representation of the query.
  15827. *
  15828. * @return string
  15829. * @static
  15830. */
  15831. public static function toSql()
  15832. {
  15833. /** @var \Illuminate\Database\Query\Builder $instance */
  15834. return $instance->toSql();
  15835. }
  15836. /**
  15837. * Get the count of the total records for the paginator.
  15838. *
  15839. * @param array $columns
  15840. * @return int
  15841. * @static
  15842. */
  15843. public static function getCountForPagination($columns = array())
  15844. {
  15845. /** @var \Illuminate\Database\Query\Builder $instance */
  15846. return $instance->getCountForPagination($columns);
  15847. }
  15848. /**
  15849. * Concatenate values of a given column as a string.
  15850. *
  15851. * @param string $column
  15852. * @param string $glue
  15853. * @return string
  15854. * @static
  15855. */
  15856. public static function implode($column, $glue = '')
  15857. {
  15858. /** @var \Illuminate\Database\Query\Builder $instance */
  15859. return $instance->implode($column, $glue);
  15860. }
  15861. /**
  15862. * Determine if any rows exist for the current query.
  15863. *
  15864. * @return bool
  15865. * @static
  15866. */
  15867. public static function exists()
  15868. {
  15869. /** @var \Illuminate\Database\Query\Builder $instance */
  15870. return $instance->exists();
  15871. }
  15872. /**
  15873. * Determine if no rows exist for the current query.
  15874. *
  15875. * @return bool
  15876. * @static
  15877. */
  15878. public static function doesntExist()
  15879. {
  15880. /** @var \Illuminate\Database\Query\Builder $instance */
  15881. return $instance->doesntExist();
  15882. }
  15883. /**
  15884. * Retrieve the "count" result of the query.
  15885. *
  15886. * @param string $columns
  15887. * @return int
  15888. * @static
  15889. */
  15890. public static function count($columns = '*')
  15891. {
  15892. /** @var \Illuminate\Database\Query\Builder $instance */
  15893. return $instance->count($columns);
  15894. }
  15895. /**
  15896. * Retrieve the minimum value of a given column.
  15897. *
  15898. * @param string $column
  15899. * @return mixed
  15900. * @static
  15901. */
  15902. public static function min($column)
  15903. {
  15904. /** @var \Illuminate\Database\Query\Builder $instance */
  15905. return $instance->min($column);
  15906. }
  15907. /**
  15908. * Retrieve the maximum value of a given column.
  15909. *
  15910. * @param string $column
  15911. * @return mixed
  15912. * @static
  15913. */
  15914. public static function max($column)
  15915. {
  15916. /** @var \Illuminate\Database\Query\Builder $instance */
  15917. return $instance->max($column);
  15918. }
  15919. /**
  15920. * Retrieve the sum of the values of a given column.
  15921. *
  15922. * @param string $column
  15923. * @return mixed
  15924. * @static
  15925. */
  15926. public static function sum($column)
  15927. {
  15928. /** @var \Illuminate\Database\Query\Builder $instance */
  15929. return $instance->sum($column);
  15930. }
  15931. /**
  15932. * Retrieve the average of the values of a given column.
  15933. *
  15934. * @param string $column
  15935. * @return mixed
  15936. * @static
  15937. */
  15938. public static function avg($column)
  15939. {
  15940. /** @var \Illuminate\Database\Query\Builder $instance */
  15941. return $instance->avg($column);
  15942. }
  15943. /**
  15944. * Alias for the "avg" method.
  15945. *
  15946. * @param string $column
  15947. * @return mixed
  15948. * @static
  15949. */
  15950. public static function average($column)
  15951. {
  15952. /** @var \Illuminate\Database\Query\Builder $instance */
  15953. return $instance->average($column);
  15954. }
  15955. /**
  15956. * Execute an aggregate function on the database.
  15957. *
  15958. * @param string $function
  15959. * @param array $columns
  15960. * @return mixed
  15961. * @static
  15962. */
  15963. public static function aggregate($function, $columns = array())
  15964. {
  15965. /** @var \Illuminate\Database\Query\Builder $instance */
  15966. return $instance->aggregate($function, $columns);
  15967. }
  15968. /**
  15969. * Execute a numeric aggregate function on the database.
  15970. *
  15971. * @param string $function
  15972. * @param array $columns
  15973. * @return float|int
  15974. * @static
  15975. */
  15976. public static function numericAggregate($function, $columns = array())
  15977. {
  15978. /** @var \Illuminate\Database\Query\Builder $instance */
  15979. return $instance->numericAggregate($function, $columns);
  15980. }
  15981. /**
  15982. * Insert a new record into the database.
  15983. *
  15984. * @param array $values
  15985. * @return bool
  15986. * @static
  15987. */
  15988. public static function insert($values)
  15989. {
  15990. /** @var \Illuminate\Database\Query\Builder $instance */
  15991. return $instance->insert($values);
  15992. }
  15993. /**
  15994. * Insert a new record and get the value of the primary key.
  15995. *
  15996. * @param array $values
  15997. * @param string|null $sequence
  15998. * @return int
  15999. * @static
  16000. */
  16001. public static function insertGetId($values, $sequence = null)
  16002. {
  16003. /** @var \Illuminate\Database\Query\Builder $instance */
  16004. return $instance->insertGetId($values, $sequence);
  16005. }
  16006. /**
  16007. * Insert or update a record matching the attributes, and fill it with values.
  16008. *
  16009. * @param array $attributes
  16010. * @param array $values
  16011. * @return bool
  16012. * @static
  16013. */
  16014. public static function updateOrInsert($attributes, $values = array())
  16015. {
  16016. /** @var \Illuminate\Database\Query\Builder $instance */
  16017. return $instance->updateOrInsert($attributes, $values);
  16018. }
  16019. /**
  16020. * Run a truncate statement on the table.
  16021. *
  16022. * @return void
  16023. * @static
  16024. */
  16025. public static function truncate()
  16026. {
  16027. /** @var \Illuminate\Database\Query\Builder $instance */
  16028. $instance->truncate();
  16029. }
  16030. /**
  16031. * Create a raw database expression.
  16032. *
  16033. * @param mixed $value
  16034. * @return \Illuminate\Database\Query\Expression
  16035. * @static
  16036. */
  16037. public static function raw($value)
  16038. {
  16039. /** @var \Illuminate\Database\Query\Builder $instance */
  16040. return $instance->raw($value);
  16041. }
  16042. /**
  16043. * Get the current query value bindings in a flattened array.
  16044. *
  16045. * @return array
  16046. * @static
  16047. */
  16048. public static function getBindings()
  16049. {
  16050. /** @var \Illuminate\Database\Query\Builder $instance */
  16051. return $instance->getBindings();
  16052. }
  16053. /**
  16054. * Get the raw array of bindings.
  16055. *
  16056. * @return array
  16057. * @static
  16058. */
  16059. public static function getRawBindings()
  16060. {
  16061. /** @var \Illuminate\Database\Query\Builder $instance */
  16062. return $instance->getRawBindings();
  16063. }
  16064. /**
  16065. * Set the bindings on the query builder.
  16066. *
  16067. * @param array $bindings
  16068. * @param string $type
  16069. * @return \Illuminate\Database\Query\Builder
  16070. * @throws \InvalidArgumentException
  16071. * @static
  16072. */
  16073. public static function setBindings($bindings, $type = 'where')
  16074. {
  16075. /** @var \Illuminate\Database\Query\Builder $instance */
  16076. return $instance->setBindings($bindings, $type);
  16077. }
  16078. /**
  16079. * Add a binding to the query.
  16080. *
  16081. * @param mixed $value
  16082. * @param string $type
  16083. * @return \Illuminate\Database\Query\Builder
  16084. * @throws \InvalidArgumentException
  16085. * @static
  16086. */
  16087. public static function addBinding($value, $type = 'where')
  16088. {
  16089. /** @var \Illuminate\Database\Query\Builder $instance */
  16090. return $instance->addBinding($value, $type);
  16091. }
  16092. /**
  16093. * Merge an array of bindings into our bindings.
  16094. *
  16095. * @param \Illuminate\Database\Query\Builder $query
  16096. * @return \Illuminate\Database\Query\Builder
  16097. * @static
  16098. */
  16099. public static function mergeBindings($query)
  16100. {
  16101. /** @var \Illuminate\Database\Query\Builder $instance */
  16102. return $instance->mergeBindings($query);
  16103. }
  16104. /**
  16105. * Get the database query processor instance.
  16106. *
  16107. * @return \Illuminate\Database\Query\Processors\Processor
  16108. * @static
  16109. */
  16110. public static function getProcessor()
  16111. {
  16112. /** @var \Illuminate\Database\Query\Builder $instance */
  16113. return $instance->getProcessor();
  16114. }
  16115. /**
  16116. * Get the query grammar instance.
  16117. *
  16118. * @return \Illuminate\Database\Query\Grammars\Grammar
  16119. * @static
  16120. */
  16121. public static function getGrammar()
  16122. {
  16123. /** @var \Illuminate\Database\Query\Builder $instance */
  16124. return $instance->getGrammar();
  16125. }
  16126. /**
  16127. * Use the write pdo for query.
  16128. *
  16129. * @return \Illuminate\Database\Query\Builder
  16130. * @static
  16131. */
  16132. public static function useWritePdo()
  16133. {
  16134. /** @var \Illuminate\Database\Query\Builder $instance */
  16135. return $instance->useWritePdo();
  16136. }
  16137. /**
  16138. * Clone the query without the given properties.
  16139. *
  16140. * @param array $properties
  16141. * @return static
  16142. * @static
  16143. */
  16144. public static function cloneWithout($properties)
  16145. {
  16146. /** @var \Illuminate\Database\Query\Builder $instance */
  16147. return $instance->cloneWithout($properties);
  16148. }
  16149. /**
  16150. * Clone the query without the given bindings.
  16151. *
  16152. * @param array $except
  16153. * @return static
  16154. * @static
  16155. */
  16156. public static function cloneWithoutBindings($except)
  16157. {
  16158. /** @var \Illuminate\Database\Query\Builder $instance */
  16159. return $instance->cloneWithoutBindings($except);
  16160. }
  16161. /**
  16162. * Register a custom macro.
  16163. *
  16164. * @param string $name
  16165. * @param object|callable $macro
  16166. * @return void
  16167. * @static
  16168. */
  16169. public static function macro($name, $macro)
  16170. {
  16171. \Illuminate\Database\Query\Builder::macro($name, $macro);
  16172. }
  16173. /**
  16174. * Mix another object into the class.
  16175. *
  16176. * @param object $mixin
  16177. * @return void
  16178. * @static
  16179. */
  16180. public static function mixin($mixin)
  16181. {
  16182. \Illuminate\Database\Query\Builder::mixin($mixin);
  16183. }
  16184. /**
  16185. * Checks if macro is registered.
  16186. *
  16187. * @param string $name
  16188. * @return bool
  16189. * @static
  16190. */
  16191. public static function hasMacro($name)
  16192. {
  16193. return \Illuminate\Database\Query\Builder::hasMacro($name);
  16194. }
  16195. /**
  16196. * Dynamically handle calls to the class.
  16197. *
  16198. * @param string $method
  16199. * @param array $parameters
  16200. * @return mixed
  16201. * @throws \BadMethodCallException
  16202. * @static
  16203. */
  16204. public static function macroCall($method, $parameters)
  16205. {
  16206. /** @var \Illuminate\Database\Query\Builder $instance */
  16207. return $instance->macroCall($method, $parameters);
  16208. }
  16209. }
  16210. class Event extends \Illuminate\Support\Facades\Event {}
  16211. class File extends \Illuminate\Support\Facades\File {}
  16212. class Gate extends \Illuminate\Support\Facades\Gate {}
  16213. class Hash extends \Illuminate\Support\Facades\Hash {}
  16214. class Lang extends \Illuminate\Support\Facades\Lang {}
  16215. class Log extends \Illuminate\Support\Facades\Log {}
  16216. class Mail extends \Illuminate\Support\Facades\Mail {}
  16217. class Notification extends \Illuminate\Support\Facades\Notification {}
  16218. class Password extends \Illuminate\Support\Facades\Password {}
  16219. class Queue extends \Illuminate\Support\Facades\Queue {}
  16220. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  16221. class Redis extends \Illuminate\Support\Facades\Redis {}
  16222. class Request extends \Illuminate\Support\Facades\Request {}
  16223. class Response extends \Illuminate\Support\Facades\Response {}
  16224. class Route extends \Illuminate\Support\Facades\Route {}
  16225. class Schema extends \Illuminate\Support\Facades\Schema {}
  16226. class Session extends \Illuminate\Support\Facades\Session {}
  16227. class Storage extends \Illuminate\Support\Facades\Storage {}
  16228. class URL extends \Illuminate\Support\Facades\URL {}
  16229. class Validator extends \Illuminate\Support\Facades\Validator {}
  16230. class View extends \Illuminate\Support\Facades\View {}
  16231. class Debugbar extends \Barryvdh\Debugbar\Facade {}
  16232. class Admin extends \Encore\Admin\Facades\Admin {}
  16233. class JWTAuth extends \Tymon\JWTAuth\Facades\JWTAuth {}
  16234. class JWTFactory extends \Tymon\JWTAuth\Facades\JWTFactory {}
  16235. }
  16236. namespace Illuminate\Support {
  16237. /**
  16238. * Methods commonly used in migrations
  16239. *
  16240. * @method Fluent after(string $column) Add the after modifier
  16241. * @method Fluent charset(string $charset) Add the character set modifier
  16242. * @method Fluent collation(string $collation) Add the collation modifier
  16243. * @method Fluent comment(string $comment) Add comment
  16244. * @method Fluent default($value) Add the default modifier
  16245. * @method Fluent first() Select first row
  16246. * @method Fluent index(string $name = null) Add the in dex clause
  16247. * @method Fluent on(string $table) `on` of a foreign key
  16248. * @method Fluent onDelete(string $action) `on delete` of a foreign key
  16249. * @method Fluent onUpdate(string $action) `on update` of a foreign key
  16250. * @method Fluent primary() Add the primary key modifier
  16251. * @method Fluent references(string $column) `references` of a foreign key
  16252. * @method Fluent nullable(bool $value = true) Add the nullable modifier
  16253. * @method Fluent unique(string $name = null) Add unique index clause
  16254. * @method Fluent unsigned() Add the unsigned modifier
  16255. * @method Fluent useCurrent() Add the default timestamp value
  16256. * @method Fluent change() Add the change modifier
  16257. */
  16258. class Fluent {}
  16259. }