_ide_helper.php 548 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996
  1. <?php
  2. // @formatter:off
  3. /**
  4. * A helper file for Laravel 5, to provide autocomplete information to your IDE
  5. * Generated for Laravel 5.5.48 on 2019-10-26 16:30:36.
  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\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\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 void
  1721. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  1722. * @static
  1723. */
  1724. public static function basic($field = 'email', $extraConditions = array())
  1725. {
  1726. /** @var \Illuminate\Auth\SessionGuard $instance */
  1727. $instance->basic($field, $extraConditions);
  1728. }
  1729. /**
  1730. * Perform a stateless HTTP Basic login attempt.
  1731. *
  1732. * @param string $field
  1733. * @param array $extraConditions
  1734. * @return void
  1735. * @throws \Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException
  1736. * @static
  1737. */
  1738. public static function onceBasic($field = 'email', $extraConditions = array())
  1739. {
  1740. /** @var \Illuminate\Auth\SessionGuard $instance */
  1741. $instance->onceBasic($field, $extraConditions);
  1742. }
  1743. /**
  1744. * Attempt to authenticate a user using the given credentials.
  1745. *
  1746. * @param array $credentials
  1747. * @param bool $remember
  1748. * @return bool
  1749. * @static
  1750. */
  1751. public static function attempt($credentials = array(), $remember = false)
  1752. {
  1753. /** @var \Illuminate\Auth\SessionGuard $instance */
  1754. return $instance->attempt($credentials, $remember);
  1755. }
  1756. /**
  1757. * Log the given user ID into the application.
  1758. *
  1759. * @param mixed $id
  1760. * @param bool $remember
  1761. * @return \App\User|false
  1762. * @static
  1763. */
  1764. public static function loginUsingId($id, $remember = false)
  1765. {
  1766. /** @var \Illuminate\Auth\SessionGuard $instance */
  1767. return $instance->loginUsingId($id, $remember);
  1768. }
  1769. /**
  1770. * Log a user into the application.
  1771. *
  1772. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1773. * @param bool $remember
  1774. * @return void
  1775. * @static
  1776. */
  1777. public static function login($user, $remember = false)
  1778. {
  1779. /** @var \Illuminate\Auth\SessionGuard $instance */
  1780. $instance->login($user, $remember);
  1781. }
  1782. /**
  1783. * Log the user out of the application.
  1784. *
  1785. * @return void
  1786. * @static
  1787. */
  1788. public static function logout()
  1789. {
  1790. /** @var \Illuminate\Auth\SessionGuard $instance */
  1791. $instance->logout();
  1792. }
  1793. /**
  1794. * Register an authentication attempt event listener.
  1795. *
  1796. * @param mixed $callback
  1797. * @return void
  1798. * @static
  1799. */
  1800. public static function attempting($callback)
  1801. {
  1802. /** @var \Illuminate\Auth\SessionGuard $instance */
  1803. $instance->attempting($callback);
  1804. }
  1805. /**
  1806. * Get the last user we attempted to authenticate.
  1807. *
  1808. * @return \App\User
  1809. * @static
  1810. */
  1811. public static function getLastAttempted()
  1812. {
  1813. /** @var \Illuminate\Auth\SessionGuard $instance */
  1814. return $instance->getLastAttempted();
  1815. }
  1816. /**
  1817. * Get a unique identifier for the auth session value.
  1818. *
  1819. * @return string
  1820. * @static
  1821. */
  1822. public static function getName()
  1823. {
  1824. /** @var \Illuminate\Auth\SessionGuard $instance */
  1825. return $instance->getName();
  1826. }
  1827. /**
  1828. * Get the name of the cookie used to store the "recaller".
  1829. *
  1830. * @return string
  1831. * @static
  1832. */
  1833. public static function getRecallerName()
  1834. {
  1835. /** @var \Illuminate\Auth\SessionGuard $instance */
  1836. return $instance->getRecallerName();
  1837. }
  1838. /**
  1839. * Determine if the user was authenticated via "remember me" cookie.
  1840. *
  1841. * @return bool
  1842. * @static
  1843. */
  1844. public static function viaRemember()
  1845. {
  1846. /** @var \Illuminate\Auth\SessionGuard $instance */
  1847. return $instance->viaRemember();
  1848. }
  1849. /**
  1850. * Get the cookie creator instance used by the guard.
  1851. *
  1852. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1853. * @throws \RuntimeException
  1854. * @static
  1855. */
  1856. public static function getCookieJar()
  1857. {
  1858. /** @var \Illuminate\Auth\SessionGuard $instance */
  1859. return $instance->getCookieJar();
  1860. }
  1861. /**
  1862. * Set the cookie creator instance used by the guard.
  1863. *
  1864. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1865. * @return void
  1866. * @static
  1867. */
  1868. public static function setCookieJar($cookie)
  1869. {
  1870. /** @var \Illuminate\Auth\SessionGuard $instance */
  1871. $instance->setCookieJar($cookie);
  1872. }
  1873. /**
  1874. * Get the event dispatcher instance.
  1875. *
  1876. * @return \Illuminate\Contracts\Events\Dispatcher
  1877. * @static
  1878. */
  1879. public static function getDispatcher()
  1880. {
  1881. /** @var \Illuminate\Auth\SessionGuard $instance */
  1882. return $instance->getDispatcher();
  1883. }
  1884. /**
  1885. * Set the event dispatcher instance.
  1886. *
  1887. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1888. * @return void
  1889. * @static
  1890. */
  1891. public static function setDispatcher($events)
  1892. {
  1893. /** @var \Illuminate\Auth\SessionGuard $instance */
  1894. $instance->setDispatcher($events);
  1895. }
  1896. /**
  1897. * Get the session store used by the guard.
  1898. *
  1899. * @return \Illuminate\Contracts\Session\Session
  1900. * @static
  1901. */
  1902. public static function getSession()
  1903. {
  1904. /** @var \Illuminate\Auth\SessionGuard $instance */
  1905. return $instance->getSession();
  1906. }
  1907. /**
  1908. * Return the currently cached user.
  1909. *
  1910. * @return \App\User|null
  1911. * @static
  1912. */
  1913. public static function getUser()
  1914. {
  1915. /** @var \Illuminate\Auth\SessionGuard $instance */
  1916. return $instance->getUser();
  1917. }
  1918. /**
  1919. * Set the current user.
  1920. *
  1921. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1922. * @return \Illuminate\Auth\SessionGuard
  1923. * @static
  1924. */
  1925. public static function setUser($user)
  1926. {
  1927. /** @var \Illuminate\Auth\SessionGuard $instance */
  1928. return $instance->setUser($user);
  1929. }
  1930. /**
  1931. * Get the current request instance.
  1932. *
  1933. * @return \Symfony\Component\HttpFoundation\Request
  1934. * @static
  1935. */
  1936. public static function getRequest()
  1937. {
  1938. /** @var \Illuminate\Auth\SessionGuard $instance */
  1939. return $instance->getRequest();
  1940. }
  1941. /**
  1942. * Set the current request instance.
  1943. *
  1944. * @param \Symfony\Component\HttpFoundation\Request $request
  1945. * @return \Illuminate\Auth\SessionGuard
  1946. * @static
  1947. */
  1948. public static function setRequest($request)
  1949. {
  1950. /** @var \Illuminate\Auth\SessionGuard $instance */
  1951. return $instance->setRequest($request);
  1952. }
  1953. /**
  1954. * Determine if the current user is authenticated.
  1955. *
  1956. * @return \App\User
  1957. * @throws \Illuminate\Auth\AuthenticationException
  1958. * @static
  1959. */
  1960. public static function authenticate()
  1961. {
  1962. /** @var \Illuminate\Auth\SessionGuard $instance */
  1963. return $instance->authenticate();
  1964. }
  1965. /**
  1966. * Determine if the current user is authenticated.
  1967. *
  1968. * @return bool
  1969. * @static
  1970. */
  1971. public static function check()
  1972. {
  1973. /** @var \Illuminate\Auth\SessionGuard $instance */
  1974. return $instance->check();
  1975. }
  1976. /**
  1977. * Determine if the current user is a guest.
  1978. *
  1979. * @return bool
  1980. * @static
  1981. */
  1982. public static function guest()
  1983. {
  1984. /** @var \Illuminate\Auth\SessionGuard $instance */
  1985. return $instance->guest();
  1986. }
  1987. /**
  1988. * Get the user provider used by the guard.
  1989. *
  1990. * @return \Illuminate\Contracts\Auth\UserProvider
  1991. * @static
  1992. */
  1993. public static function getProvider()
  1994. {
  1995. /** @var \Illuminate\Auth\SessionGuard $instance */
  1996. return $instance->getProvider();
  1997. }
  1998. /**
  1999. * Set the user provider used by the guard.
  2000. *
  2001. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2002. * @return void
  2003. * @static
  2004. */
  2005. public static function setProvider($provider)
  2006. {
  2007. /** @var \Illuminate\Auth\SessionGuard $instance */
  2008. $instance->setProvider($provider);
  2009. }
  2010. /**
  2011. * Register a custom macro.
  2012. *
  2013. * @param string $name
  2014. * @param object|callable $macro
  2015. * @return void
  2016. * @static
  2017. */
  2018. public static function macro($name, $macro)
  2019. {
  2020. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2021. }
  2022. /**
  2023. * Mix another object into the class.
  2024. *
  2025. * @param object $mixin
  2026. * @return void
  2027. * @static
  2028. */
  2029. public static function mixin($mixin)
  2030. {
  2031. \Illuminate\Auth\SessionGuard::mixin($mixin);
  2032. }
  2033. /**
  2034. * Checks if macro is registered.
  2035. *
  2036. * @param string $name
  2037. * @return bool
  2038. * @static
  2039. */
  2040. public static function hasMacro($name)
  2041. {
  2042. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2043. }
  2044. }
  2045. /**
  2046. *
  2047. *
  2048. * @see \Illuminate\View\Compilers\BladeCompiler
  2049. */
  2050. class Blade {
  2051. /**
  2052. * Compile the view at the given path.
  2053. *
  2054. * @param string $path
  2055. * @return void
  2056. * @static
  2057. */
  2058. public static function compile($path = null)
  2059. {
  2060. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2061. $instance->compile($path);
  2062. }
  2063. /**
  2064. * Get the path currently being compiled.
  2065. *
  2066. * @return string
  2067. * @static
  2068. */
  2069. public static function getPath()
  2070. {
  2071. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2072. return $instance->getPath();
  2073. }
  2074. /**
  2075. * Set the path currently being compiled.
  2076. *
  2077. * @param string $path
  2078. * @return void
  2079. * @static
  2080. */
  2081. public static function setPath($path)
  2082. {
  2083. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2084. $instance->setPath($path);
  2085. }
  2086. /**
  2087. * Compile the given Blade template contents.
  2088. *
  2089. * @param string $value
  2090. * @return string
  2091. * @static
  2092. */
  2093. public static function compileString($value)
  2094. {
  2095. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2096. return $instance->compileString($value);
  2097. }
  2098. /**
  2099. * Strip the parentheses from the given expression.
  2100. *
  2101. * @param string $expression
  2102. * @return string
  2103. * @static
  2104. */
  2105. public static function stripParentheses($expression)
  2106. {
  2107. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2108. return $instance->stripParentheses($expression);
  2109. }
  2110. /**
  2111. * Register a custom Blade compiler.
  2112. *
  2113. * @param callable $compiler
  2114. * @return void
  2115. * @static
  2116. */
  2117. public static function extend($compiler)
  2118. {
  2119. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2120. $instance->extend($compiler);
  2121. }
  2122. /**
  2123. * Get the extensions used by the compiler.
  2124. *
  2125. * @return array
  2126. * @static
  2127. */
  2128. public static function getExtensions()
  2129. {
  2130. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2131. return $instance->getExtensions();
  2132. }
  2133. /**
  2134. * Register an "if" statement directive.
  2135. *
  2136. * @param string $name
  2137. * @param callable $callback
  2138. * @return void
  2139. * @static
  2140. */
  2141. public static function if($name, $callback)
  2142. {
  2143. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2144. $instance->if($name, $callback);
  2145. }
  2146. /**
  2147. * Check the result of a condition.
  2148. *
  2149. * @param string $name
  2150. * @param array $parameters
  2151. * @return bool
  2152. * @static
  2153. */
  2154. public static function check($name, $parameters = null)
  2155. {
  2156. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2157. return $instance->check($name, $parameters);
  2158. }
  2159. /**
  2160. * Register a handler for custom directives.
  2161. *
  2162. * @param string $name
  2163. * @param callable $handler
  2164. * @return void
  2165. * @static
  2166. */
  2167. public static function directive($name, $handler)
  2168. {
  2169. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2170. $instance->directive($name, $handler);
  2171. }
  2172. /**
  2173. * Get the list of custom directives.
  2174. *
  2175. * @return array
  2176. * @static
  2177. */
  2178. public static function getCustomDirectives()
  2179. {
  2180. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2181. return $instance->getCustomDirectives();
  2182. }
  2183. /**
  2184. * Set the echo format to be used by the compiler.
  2185. *
  2186. * @param string $format
  2187. * @return void
  2188. * @static
  2189. */
  2190. public static function setEchoFormat($format)
  2191. {
  2192. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2193. $instance->setEchoFormat($format);
  2194. }
  2195. /**
  2196. * Set the echo format to double encode entities.
  2197. *
  2198. * @return void
  2199. * @static
  2200. */
  2201. public static function doubleEncode()
  2202. {
  2203. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2204. $instance->doubleEncode();
  2205. }
  2206. /**
  2207. * Get the path to the compiled version of a view.
  2208. *
  2209. * @param string $path
  2210. * @return string
  2211. * @static
  2212. */
  2213. public static function getCompiledPath($path)
  2214. {
  2215. //Method inherited from \Illuminate\View\Compilers\Compiler
  2216. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2217. return $instance->getCompiledPath($path);
  2218. }
  2219. /**
  2220. * Determine if the view at the given path is expired.
  2221. *
  2222. * @param string $path
  2223. * @return bool
  2224. * @static
  2225. */
  2226. public static function isExpired($path)
  2227. {
  2228. //Method inherited from \Illuminate\View\Compilers\Compiler
  2229. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2230. return $instance->isExpired($path);
  2231. }
  2232. /**
  2233. * Compile the default values for the echo statement.
  2234. *
  2235. * @param string $value
  2236. * @return string
  2237. * @static
  2238. */
  2239. public static function compileEchoDefaults($value)
  2240. {
  2241. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2242. return $instance->compileEchoDefaults($value);
  2243. }
  2244. }
  2245. /**
  2246. *
  2247. *
  2248. * @see \Illuminate\Contracts\Broadcasting\Factory
  2249. */
  2250. class Broadcast {
  2251. /**
  2252. * Register the routes for handling broadcast authentication and sockets.
  2253. *
  2254. * @param array|null $attributes
  2255. * @return void
  2256. * @static
  2257. */
  2258. public static function routes($attributes = null)
  2259. {
  2260. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2261. $instance->routes($attributes);
  2262. }
  2263. /**
  2264. * Get the socket ID for the given request.
  2265. *
  2266. * @param \Illuminate\Http\Request|null $request
  2267. * @return string|null
  2268. * @static
  2269. */
  2270. public static function socket($request = null)
  2271. {
  2272. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2273. return $instance->socket($request);
  2274. }
  2275. /**
  2276. * Begin broadcasting an event.
  2277. *
  2278. * @param mixed|null $event
  2279. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  2280. * @static
  2281. */
  2282. public static function event($event = null)
  2283. {
  2284. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2285. return $instance->event($event);
  2286. }
  2287. /**
  2288. * Queue the given event for broadcast.
  2289. *
  2290. * @param mixed $event
  2291. * @return void
  2292. * @static
  2293. */
  2294. public static function queue($event)
  2295. {
  2296. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2297. $instance->queue($event);
  2298. }
  2299. /**
  2300. * Get a driver instance.
  2301. *
  2302. * @param string $driver
  2303. * @return mixed
  2304. * @static
  2305. */
  2306. public static function connection($driver = null)
  2307. {
  2308. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2309. return $instance->connection($driver);
  2310. }
  2311. /**
  2312. * Get a driver instance.
  2313. *
  2314. * @param string $name
  2315. * @return mixed
  2316. * @static
  2317. */
  2318. public static function driver($name = null)
  2319. {
  2320. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2321. return $instance->driver($name);
  2322. }
  2323. /**
  2324. * Get the default driver name.
  2325. *
  2326. * @return string
  2327. * @static
  2328. */
  2329. public static function getDefaultDriver()
  2330. {
  2331. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2332. return $instance->getDefaultDriver();
  2333. }
  2334. /**
  2335. * Set the default driver name.
  2336. *
  2337. * @param string $name
  2338. * @return void
  2339. * @static
  2340. */
  2341. public static function setDefaultDriver($name)
  2342. {
  2343. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2344. $instance->setDefaultDriver($name);
  2345. }
  2346. /**
  2347. * Register a custom driver creator Closure.
  2348. *
  2349. * @param string $driver
  2350. * @param \Closure $callback
  2351. * @return \Illuminate\Broadcasting\BroadcastManager
  2352. * @static
  2353. */
  2354. public static function extend($driver, $callback)
  2355. {
  2356. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2357. return $instance->extend($driver, $callback);
  2358. }
  2359. }
  2360. /**
  2361. *
  2362. *
  2363. * @see \Illuminate\Contracts\Bus\Dispatcher
  2364. */
  2365. class Bus {
  2366. /**
  2367. * Dispatch a command to its appropriate handler.
  2368. *
  2369. * @param mixed $command
  2370. * @return mixed
  2371. * @static
  2372. */
  2373. public static function dispatch($command)
  2374. {
  2375. /** @var \Illuminate\Bus\Dispatcher $instance */
  2376. return $instance->dispatch($command);
  2377. }
  2378. /**
  2379. * Dispatch a command to its appropriate handler in the current process.
  2380. *
  2381. * @param mixed $command
  2382. * @param mixed $handler
  2383. * @return mixed
  2384. * @static
  2385. */
  2386. public static function dispatchNow($command, $handler = null)
  2387. {
  2388. /** @var \Illuminate\Bus\Dispatcher $instance */
  2389. return $instance->dispatchNow($command, $handler);
  2390. }
  2391. /**
  2392. * Determine if the given command has a handler.
  2393. *
  2394. * @param mixed $command
  2395. * @return bool
  2396. * @static
  2397. */
  2398. public static function hasCommandHandler($command)
  2399. {
  2400. /** @var \Illuminate\Bus\Dispatcher $instance */
  2401. return $instance->hasCommandHandler($command);
  2402. }
  2403. /**
  2404. * Retrieve the handler for a command.
  2405. *
  2406. * @param mixed $command
  2407. * @return bool|mixed
  2408. * @static
  2409. */
  2410. public static function getCommandHandler($command)
  2411. {
  2412. /** @var \Illuminate\Bus\Dispatcher $instance */
  2413. return $instance->getCommandHandler($command);
  2414. }
  2415. /**
  2416. * Dispatch a command to its appropriate handler behind a queue.
  2417. *
  2418. * @param mixed $command
  2419. * @return mixed
  2420. * @throws \RuntimeException
  2421. * @static
  2422. */
  2423. public static function dispatchToQueue($command)
  2424. {
  2425. /** @var \Illuminate\Bus\Dispatcher $instance */
  2426. return $instance->dispatchToQueue($command);
  2427. }
  2428. /**
  2429. * Set the pipes through which commands should be piped before dispatching.
  2430. *
  2431. * @param array $pipes
  2432. * @return \Illuminate\Bus\Dispatcher
  2433. * @static
  2434. */
  2435. public static function pipeThrough($pipes)
  2436. {
  2437. /** @var \Illuminate\Bus\Dispatcher $instance */
  2438. return $instance->pipeThrough($pipes);
  2439. }
  2440. /**
  2441. * Map a command to a handler.
  2442. *
  2443. * @param array $map
  2444. * @return \Illuminate\Bus\Dispatcher
  2445. * @static
  2446. */
  2447. public static function map($map)
  2448. {
  2449. /** @var \Illuminate\Bus\Dispatcher $instance */
  2450. return $instance->map($map);
  2451. }
  2452. /**
  2453. * Assert if a job was dispatched based on a truth-test callback.
  2454. *
  2455. * @param string $command
  2456. * @param callable|int|null $callback
  2457. * @return void
  2458. * @static
  2459. */
  2460. public static function assertDispatched($command, $callback = null)
  2461. {
  2462. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2463. $instance->assertDispatched($command, $callback);
  2464. }
  2465. /**
  2466. * Determine if a job was dispatched based on a truth-test callback.
  2467. *
  2468. * @param string $command
  2469. * @param callable|null $callback
  2470. * @return void
  2471. * @static
  2472. */
  2473. public static function assertNotDispatched($command, $callback = null)
  2474. {
  2475. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2476. $instance->assertNotDispatched($command, $callback);
  2477. }
  2478. /**
  2479. * Get all of the jobs matching a truth-test callback.
  2480. *
  2481. * @param string $command
  2482. * @param callable|null $callback
  2483. * @return \Illuminate\Support\Collection
  2484. * @static
  2485. */
  2486. public static function dispatched($command, $callback = null)
  2487. {
  2488. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2489. return $instance->dispatched($command, $callback);
  2490. }
  2491. /**
  2492. * Determine if there are any stored commands for a given class.
  2493. *
  2494. * @param string $command
  2495. * @return bool
  2496. * @static
  2497. */
  2498. public static function hasDispatched($command)
  2499. {
  2500. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2501. return $instance->hasDispatched($command);
  2502. }
  2503. }
  2504. /**
  2505. *
  2506. *
  2507. * @see \Illuminate\Cache\CacheManager
  2508. * @see \Illuminate\Cache\Repository
  2509. */
  2510. class Cache {
  2511. /**
  2512. * Get a cache store instance by name.
  2513. *
  2514. * @param string|null $name
  2515. * @return \Illuminate\Contracts\Cache\Repository
  2516. * @static
  2517. */
  2518. public static function store($name = null)
  2519. {
  2520. /** @var \Illuminate\Cache\CacheManager $instance */
  2521. return $instance->store($name);
  2522. }
  2523. /**
  2524. * Get a cache driver instance.
  2525. *
  2526. * @param string $driver
  2527. * @return mixed
  2528. * @static
  2529. */
  2530. public static function driver($driver = null)
  2531. {
  2532. /** @var \Illuminate\Cache\CacheManager $instance */
  2533. return $instance->driver($driver);
  2534. }
  2535. /**
  2536. * Create a new cache repository with the given implementation.
  2537. *
  2538. * @param \Illuminate\Contracts\Cache\Store $store
  2539. * @return \Illuminate\Cache\Repository
  2540. * @static
  2541. */
  2542. public static function repository($store)
  2543. {
  2544. /** @var \Illuminate\Cache\CacheManager $instance */
  2545. return $instance->repository($store);
  2546. }
  2547. /**
  2548. * Get the default cache driver name.
  2549. *
  2550. * @return string
  2551. * @static
  2552. */
  2553. public static function getDefaultDriver()
  2554. {
  2555. /** @var \Illuminate\Cache\CacheManager $instance */
  2556. return $instance->getDefaultDriver();
  2557. }
  2558. /**
  2559. * Set the default cache driver name.
  2560. *
  2561. * @param string $name
  2562. * @return void
  2563. * @static
  2564. */
  2565. public static function setDefaultDriver($name)
  2566. {
  2567. /** @var \Illuminate\Cache\CacheManager $instance */
  2568. $instance->setDefaultDriver($name);
  2569. }
  2570. /**
  2571. * Register a custom driver creator Closure.
  2572. *
  2573. * @param string $driver
  2574. * @param \Closure $callback
  2575. * @return \Illuminate\Cache\CacheManager
  2576. * @static
  2577. */
  2578. public static function extend($driver, $callback)
  2579. {
  2580. /** @var \Illuminate\Cache\CacheManager $instance */
  2581. return $instance->extend($driver, $callback);
  2582. }
  2583. /**
  2584. * Determine if an item exists in the cache.
  2585. *
  2586. * @param string $key
  2587. * @return bool
  2588. * @static
  2589. */
  2590. public static function has($key)
  2591. {
  2592. /** @var \Illuminate\Cache\Repository $instance */
  2593. return $instance->has($key);
  2594. }
  2595. /**
  2596. * Retrieve an item from the cache by key.
  2597. *
  2598. * @param string $key
  2599. * @param mixed $default
  2600. * @return mixed
  2601. * @static
  2602. */
  2603. public static function get($key, $default = null)
  2604. {
  2605. /** @var \Illuminate\Cache\Repository $instance */
  2606. return $instance->get($key, $default);
  2607. }
  2608. /**
  2609. * Retrieve multiple items from the cache by key.
  2610. *
  2611. * Items not found in the cache will have a null value.
  2612. *
  2613. * @param array $keys
  2614. * @return array
  2615. * @static
  2616. */
  2617. public static function many($keys)
  2618. {
  2619. /** @var \Illuminate\Cache\Repository $instance */
  2620. return $instance->many($keys);
  2621. }
  2622. /**
  2623. * Obtains multiple cache items by their unique keys.
  2624. *
  2625. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  2626. * @param mixed $default Default value to return for keys that do not exist.
  2627. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  2628. * @throws \Psr\SimpleCache\InvalidArgumentException
  2629. * MUST be thrown if $keys is neither an array nor a Traversable,
  2630. * or if any of the $keys are not a legal value.
  2631. * @static
  2632. */
  2633. public static function getMultiple($keys, $default = null)
  2634. {
  2635. /** @var \Illuminate\Cache\Repository $instance */
  2636. return $instance->getMultiple($keys, $default);
  2637. }
  2638. /**
  2639. * Retrieve an item from the cache and delete it.
  2640. *
  2641. * @param string $key
  2642. * @param mixed $default
  2643. * @return mixed
  2644. * @static
  2645. */
  2646. public static function pull($key, $default = null)
  2647. {
  2648. /** @var \Illuminate\Cache\Repository $instance */
  2649. return $instance->pull($key, $default);
  2650. }
  2651. /**
  2652. * Store an item in the cache.
  2653. *
  2654. * @param string $key
  2655. * @param mixed $value
  2656. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2657. * @return void
  2658. * @static
  2659. */
  2660. public static function put($key, $value, $minutes = null)
  2661. {
  2662. /** @var \Illuminate\Cache\Repository $instance */
  2663. $instance->put($key, $value, $minutes);
  2664. }
  2665. /**
  2666. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  2667. *
  2668. * @param string $key The key of the item to store.
  2669. * @param mixed $value The value of the item to store, must be serializable.
  2670. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2671. * the driver supports TTL then the library may set a default value
  2672. * for it or let the driver take care of that.
  2673. * @return bool True on success and false on failure.
  2674. * @throws \Psr\SimpleCache\InvalidArgumentException
  2675. * MUST be thrown if the $key string is not a legal value.
  2676. * @static
  2677. */
  2678. public static function set($key, $value, $ttl = null)
  2679. {
  2680. /** @var \Illuminate\Cache\Repository $instance */
  2681. return $instance->set($key, $value, $ttl);
  2682. }
  2683. /**
  2684. * Store multiple items in the cache for a given number of minutes.
  2685. *
  2686. * @param array $values
  2687. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2688. * @return void
  2689. * @static
  2690. */
  2691. public static function putMany($values, $minutes)
  2692. {
  2693. /** @var \Illuminate\Cache\Repository $instance */
  2694. $instance->putMany($values, $minutes);
  2695. }
  2696. /**
  2697. * Persists a set of key => value pairs in the cache, with an optional TTL.
  2698. *
  2699. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  2700. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2701. * the driver supports TTL then the library may set a default value
  2702. * for it or let the driver take care of that.
  2703. * @return bool True on success and false on failure.
  2704. * @throws \Psr\SimpleCache\InvalidArgumentException
  2705. * MUST be thrown if $values is neither an array nor a Traversable,
  2706. * or if any of the $values are not a legal value.
  2707. * @static
  2708. */
  2709. public static function setMultiple($values, $ttl = null)
  2710. {
  2711. /** @var \Illuminate\Cache\Repository $instance */
  2712. return $instance->setMultiple($values, $ttl);
  2713. }
  2714. /**
  2715. * Store an item in the cache if the key does not exist.
  2716. *
  2717. * @param string $key
  2718. * @param mixed $value
  2719. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2720. * @return bool
  2721. * @static
  2722. */
  2723. public static function add($key, $value, $minutes)
  2724. {
  2725. /** @var \Illuminate\Cache\Repository $instance */
  2726. return $instance->add($key, $value, $minutes);
  2727. }
  2728. /**
  2729. * Increment the value of an item in the cache.
  2730. *
  2731. * @param string $key
  2732. * @param mixed $value
  2733. * @return int|bool
  2734. * @static
  2735. */
  2736. public static function increment($key, $value = 1)
  2737. {
  2738. /** @var \Illuminate\Cache\Repository $instance */
  2739. return $instance->increment($key, $value);
  2740. }
  2741. /**
  2742. * Decrement the value of an item in the cache.
  2743. *
  2744. * @param string $key
  2745. * @param mixed $value
  2746. * @return int|bool
  2747. * @static
  2748. */
  2749. public static function decrement($key, $value = 1)
  2750. {
  2751. /** @var \Illuminate\Cache\Repository $instance */
  2752. return $instance->decrement($key, $value);
  2753. }
  2754. /**
  2755. * Store an item in the cache indefinitely.
  2756. *
  2757. * @param string $key
  2758. * @param mixed $value
  2759. * @return void
  2760. * @static
  2761. */
  2762. public static function forever($key, $value)
  2763. {
  2764. /** @var \Illuminate\Cache\Repository $instance */
  2765. $instance->forever($key, $value);
  2766. }
  2767. /**
  2768. * Get an item from the cache, or store the default value.
  2769. *
  2770. * @param string $key
  2771. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2772. * @param \Closure $callback
  2773. * @return mixed
  2774. * @static
  2775. */
  2776. public static function remember($key, $minutes, $callback)
  2777. {
  2778. /** @var \Illuminate\Cache\Repository $instance */
  2779. return $instance->remember($key, $minutes, $callback);
  2780. }
  2781. /**
  2782. * Get an item from the cache, or store the default value forever.
  2783. *
  2784. * @param string $key
  2785. * @param \Closure $callback
  2786. * @return mixed
  2787. * @static
  2788. */
  2789. public static function sear($key, $callback)
  2790. {
  2791. /** @var \Illuminate\Cache\Repository $instance */
  2792. return $instance->sear($key, $callback);
  2793. }
  2794. /**
  2795. * Get an item from the cache, or store the default value forever.
  2796. *
  2797. * @param string $key
  2798. * @param \Closure $callback
  2799. * @return mixed
  2800. * @static
  2801. */
  2802. public static function rememberForever($key, $callback)
  2803. {
  2804. /** @var \Illuminate\Cache\Repository $instance */
  2805. return $instance->rememberForever($key, $callback);
  2806. }
  2807. /**
  2808. * Remove an item from the cache.
  2809. *
  2810. * @param string $key
  2811. * @return bool
  2812. * @static
  2813. */
  2814. public static function forget($key)
  2815. {
  2816. /** @var \Illuminate\Cache\Repository $instance */
  2817. return $instance->forget($key);
  2818. }
  2819. /**
  2820. * Delete an item from the cache by its unique key.
  2821. *
  2822. * @param string $key The unique cache key of the item to delete.
  2823. * @return bool True if the item was successfully removed. False if there was an error.
  2824. * @throws \Psr\SimpleCache\InvalidArgumentException
  2825. * MUST be thrown if the $key string is not a legal value.
  2826. * @static
  2827. */
  2828. public static function delete($key)
  2829. {
  2830. /** @var \Illuminate\Cache\Repository $instance */
  2831. return $instance->delete($key);
  2832. }
  2833. /**
  2834. * Deletes multiple cache items in a single operation.
  2835. *
  2836. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  2837. * @return bool True if the items were successfully removed. False if there was an error.
  2838. * @throws \Psr\SimpleCache\InvalidArgumentException
  2839. * MUST be thrown if $keys is neither an array nor a Traversable,
  2840. * or if any of the $keys are not a legal value.
  2841. * @static
  2842. */
  2843. public static function deleteMultiple($keys)
  2844. {
  2845. /** @var \Illuminate\Cache\Repository $instance */
  2846. return $instance->deleteMultiple($keys);
  2847. }
  2848. /**
  2849. * Wipes clean the entire cache's keys.
  2850. *
  2851. * @return bool True on success and false on failure.
  2852. * @static
  2853. */
  2854. public static function clear()
  2855. {
  2856. /** @var \Illuminate\Cache\Repository $instance */
  2857. return $instance->clear();
  2858. }
  2859. /**
  2860. * Begin executing a new tags operation if the store supports it.
  2861. *
  2862. * @param array|mixed $names
  2863. * @return \Illuminate\Cache\TaggedCache
  2864. * @throws \BadMethodCallException
  2865. * @static
  2866. */
  2867. public static function tags($names)
  2868. {
  2869. /** @var \Illuminate\Cache\Repository $instance */
  2870. return $instance->tags($names);
  2871. }
  2872. /**
  2873. * Get the default cache time.
  2874. *
  2875. * @return float|int
  2876. * @static
  2877. */
  2878. public static function getDefaultCacheTime()
  2879. {
  2880. /** @var \Illuminate\Cache\Repository $instance */
  2881. return $instance->getDefaultCacheTime();
  2882. }
  2883. /**
  2884. * Set the default cache time in minutes.
  2885. *
  2886. * @param float|int $minutes
  2887. * @return \Illuminate\Cache\Repository
  2888. * @static
  2889. */
  2890. public static function setDefaultCacheTime($minutes)
  2891. {
  2892. /** @var \Illuminate\Cache\Repository $instance */
  2893. return $instance->setDefaultCacheTime($minutes);
  2894. }
  2895. /**
  2896. * Get the cache store implementation.
  2897. *
  2898. * @return \Illuminate\Contracts\Cache\Store
  2899. * @static
  2900. */
  2901. public static function getStore()
  2902. {
  2903. /** @var \Illuminate\Cache\Repository $instance */
  2904. return $instance->getStore();
  2905. }
  2906. /**
  2907. * Set the event dispatcher instance.
  2908. *
  2909. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2910. * @return void
  2911. * @static
  2912. */
  2913. public static function setEventDispatcher($events)
  2914. {
  2915. /** @var \Illuminate\Cache\Repository $instance */
  2916. $instance->setEventDispatcher($events);
  2917. }
  2918. /**
  2919. * Determine if a cached value exists.
  2920. *
  2921. * @param string $key
  2922. * @return bool
  2923. * @static
  2924. */
  2925. public static function offsetExists($key)
  2926. {
  2927. /** @var \Illuminate\Cache\Repository $instance */
  2928. return $instance->offsetExists($key);
  2929. }
  2930. /**
  2931. * Retrieve an item from the cache by key.
  2932. *
  2933. * @param string $key
  2934. * @return mixed
  2935. * @static
  2936. */
  2937. public static function offsetGet($key)
  2938. {
  2939. /** @var \Illuminate\Cache\Repository $instance */
  2940. return $instance->offsetGet($key);
  2941. }
  2942. /**
  2943. * Store an item in the cache for the default time.
  2944. *
  2945. * @param string $key
  2946. * @param mixed $value
  2947. * @return void
  2948. * @static
  2949. */
  2950. public static function offsetSet($key, $value)
  2951. {
  2952. /** @var \Illuminate\Cache\Repository $instance */
  2953. $instance->offsetSet($key, $value);
  2954. }
  2955. /**
  2956. * Remove an item from the cache.
  2957. *
  2958. * @param string $key
  2959. * @return void
  2960. * @static
  2961. */
  2962. public static function offsetUnset($key)
  2963. {
  2964. /** @var \Illuminate\Cache\Repository $instance */
  2965. $instance->offsetUnset($key);
  2966. }
  2967. /**
  2968. * Register a custom macro.
  2969. *
  2970. * @param string $name
  2971. * @param object|callable $macro
  2972. * @return void
  2973. * @static
  2974. */
  2975. public static function macro($name, $macro)
  2976. {
  2977. \Illuminate\Cache\Repository::macro($name, $macro);
  2978. }
  2979. /**
  2980. * Mix another object into the class.
  2981. *
  2982. * @param object $mixin
  2983. * @return void
  2984. * @static
  2985. */
  2986. public static function mixin($mixin)
  2987. {
  2988. \Illuminate\Cache\Repository::mixin($mixin);
  2989. }
  2990. /**
  2991. * Checks if macro is registered.
  2992. *
  2993. * @param string $name
  2994. * @return bool
  2995. * @static
  2996. */
  2997. public static function hasMacro($name)
  2998. {
  2999. return \Illuminate\Cache\Repository::hasMacro($name);
  3000. }
  3001. /**
  3002. * Dynamically handle calls to the class.
  3003. *
  3004. * @param string $method
  3005. * @param array $parameters
  3006. * @return mixed
  3007. * @throws \BadMethodCallException
  3008. * @static
  3009. */
  3010. public static function macroCall($method, $parameters)
  3011. {
  3012. /** @var \Illuminate\Cache\Repository $instance */
  3013. return $instance->macroCall($method, $parameters);
  3014. }
  3015. /**
  3016. * Remove all items from the cache.
  3017. *
  3018. * @return bool
  3019. * @static
  3020. */
  3021. public static function flush()
  3022. {
  3023. /** @var \Illuminate\Cache\FileStore $instance */
  3024. return $instance->flush();
  3025. }
  3026. /**
  3027. * Get the Filesystem instance.
  3028. *
  3029. * @return \Illuminate\Filesystem\Filesystem
  3030. * @static
  3031. */
  3032. public static function getFilesystem()
  3033. {
  3034. /** @var \Illuminate\Cache\FileStore $instance */
  3035. return $instance->getFilesystem();
  3036. }
  3037. /**
  3038. * Get the working directory of the cache.
  3039. *
  3040. * @return string
  3041. * @static
  3042. */
  3043. public static function getDirectory()
  3044. {
  3045. /** @var \Illuminate\Cache\FileStore $instance */
  3046. return $instance->getDirectory();
  3047. }
  3048. /**
  3049. * Get the cache key prefix.
  3050. *
  3051. * @return string
  3052. * @static
  3053. */
  3054. public static function getPrefix()
  3055. {
  3056. /** @var \Illuminate\Cache\FileStore $instance */
  3057. return $instance->getPrefix();
  3058. }
  3059. }
  3060. /**
  3061. *
  3062. *
  3063. * @see \Illuminate\Config\Repository
  3064. */
  3065. class Config {
  3066. /**
  3067. * Determine if the given configuration value exists.
  3068. *
  3069. * @param string $key
  3070. * @return bool
  3071. * @static
  3072. */
  3073. public static function has($key)
  3074. {
  3075. /** @var \Illuminate\Config\Repository $instance */
  3076. return $instance->has($key);
  3077. }
  3078. /**
  3079. * Get the specified configuration value.
  3080. *
  3081. * @param array|string $key
  3082. * @param mixed $default
  3083. * @return mixed
  3084. * @static
  3085. */
  3086. public static function get($key, $default = null)
  3087. {
  3088. /** @var \Illuminate\Config\Repository $instance */
  3089. return $instance->get($key, $default);
  3090. }
  3091. /**
  3092. * Get many configuration values.
  3093. *
  3094. * @param array $keys
  3095. * @return array
  3096. * @static
  3097. */
  3098. public static function getMany($keys)
  3099. {
  3100. /** @var \Illuminate\Config\Repository $instance */
  3101. return $instance->getMany($keys);
  3102. }
  3103. /**
  3104. * Set a given configuration value.
  3105. *
  3106. * @param array|string $key
  3107. * @param mixed $value
  3108. * @return void
  3109. * @static
  3110. */
  3111. public static function set($key, $value = null)
  3112. {
  3113. /** @var \Illuminate\Config\Repository $instance */
  3114. $instance->set($key, $value);
  3115. }
  3116. /**
  3117. * Prepend a value onto an array configuration value.
  3118. *
  3119. * @param string $key
  3120. * @param mixed $value
  3121. * @return void
  3122. * @static
  3123. */
  3124. public static function prepend($key, $value)
  3125. {
  3126. /** @var \Illuminate\Config\Repository $instance */
  3127. $instance->prepend($key, $value);
  3128. }
  3129. /**
  3130. * Push a value onto an array configuration value.
  3131. *
  3132. * @param string $key
  3133. * @param mixed $value
  3134. * @return void
  3135. * @static
  3136. */
  3137. public static function push($key, $value)
  3138. {
  3139. /** @var \Illuminate\Config\Repository $instance */
  3140. $instance->push($key, $value);
  3141. }
  3142. /**
  3143. * Get all of the configuration items for the application.
  3144. *
  3145. * @return array
  3146. * @static
  3147. */
  3148. public static function all()
  3149. {
  3150. /** @var \Illuminate\Config\Repository $instance */
  3151. return $instance->all();
  3152. }
  3153. /**
  3154. * Determine if the given configuration option exists.
  3155. *
  3156. * @param string $key
  3157. * @return bool
  3158. * @static
  3159. */
  3160. public static function offsetExists($key)
  3161. {
  3162. /** @var \Illuminate\Config\Repository $instance */
  3163. return $instance->offsetExists($key);
  3164. }
  3165. /**
  3166. * Get a configuration option.
  3167. *
  3168. * @param string $key
  3169. * @return mixed
  3170. * @static
  3171. */
  3172. public static function offsetGet($key)
  3173. {
  3174. /** @var \Illuminate\Config\Repository $instance */
  3175. return $instance->offsetGet($key);
  3176. }
  3177. /**
  3178. * Set a configuration option.
  3179. *
  3180. * @param string $key
  3181. * @param mixed $value
  3182. * @return void
  3183. * @static
  3184. */
  3185. public static function offsetSet($key, $value)
  3186. {
  3187. /** @var \Illuminate\Config\Repository $instance */
  3188. $instance->offsetSet($key, $value);
  3189. }
  3190. /**
  3191. * Unset a configuration option.
  3192. *
  3193. * @param string $key
  3194. * @return void
  3195. * @static
  3196. */
  3197. public static function offsetUnset($key)
  3198. {
  3199. /** @var \Illuminate\Config\Repository $instance */
  3200. $instance->offsetUnset($key);
  3201. }
  3202. }
  3203. /**
  3204. *
  3205. *
  3206. * @see \Illuminate\Cookie\CookieJar
  3207. */
  3208. class Cookie {
  3209. /**
  3210. * Create a new cookie instance.
  3211. *
  3212. * @param string $name
  3213. * @param string $value
  3214. * @param int $minutes
  3215. * @param string $path
  3216. * @param string $domain
  3217. * @param bool $secure
  3218. * @param bool $httpOnly
  3219. * @param bool $raw
  3220. * @param string|null $sameSite
  3221. * @return \Symfony\Component\HttpFoundation\Cookie
  3222. * @static
  3223. */
  3224. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null)
  3225. {
  3226. /** @var \Illuminate\Cookie\CookieJar $instance */
  3227. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3228. }
  3229. /**
  3230. * Create a cookie that lasts "forever" (five years).
  3231. *
  3232. * @param string $name
  3233. * @param string $value
  3234. * @param string $path
  3235. * @param string $domain
  3236. * @param bool $secure
  3237. * @param bool $httpOnly
  3238. * @param bool $raw
  3239. * @param string|null $sameSite
  3240. * @return \Symfony\Component\HttpFoundation\Cookie
  3241. * @static
  3242. */
  3243. public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null)
  3244. {
  3245. /** @var \Illuminate\Cookie\CookieJar $instance */
  3246. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3247. }
  3248. /**
  3249. * Expire the given cookie.
  3250. *
  3251. * @param string $name
  3252. * @param string $path
  3253. * @param string $domain
  3254. * @return \Symfony\Component\HttpFoundation\Cookie
  3255. * @static
  3256. */
  3257. public static function forget($name, $path = null, $domain = null)
  3258. {
  3259. /** @var \Illuminate\Cookie\CookieJar $instance */
  3260. return $instance->forget($name, $path, $domain);
  3261. }
  3262. /**
  3263. * Determine if a cookie has been queued.
  3264. *
  3265. * @param string $key
  3266. * @return bool
  3267. * @static
  3268. */
  3269. public static function hasQueued($key)
  3270. {
  3271. /** @var \Illuminate\Cookie\CookieJar $instance */
  3272. return $instance->hasQueued($key);
  3273. }
  3274. /**
  3275. * Get a queued cookie instance.
  3276. *
  3277. * @param string $key
  3278. * @param mixed $default
  3279. * @return \Symfony\Component\HttpFoundation\Cookie
  3280. * @static
  3281. */
  3282. public static function queued($key, $default = null)
  3283. {
  3284. /** @var \Illuminate\Cookie\CookieJar $instance */
  3285. return $instance->queued($key, $default);
  3286. }
  3287. /**
  3288. * Queue a cookie to send with the next response.
  3289. *
  3290. * @param array $parameters
  3291. * @return void
  3292. * @static
  3293. */
  3294. public static function queue($parameters = null)
  3295. {
  3296. /** @var \Illuminate\Cookie\CookieJar $instance */
  3297. $instance->queue($parameters);
  3298. }
  3299. /**
  3300. * Remove a cookie from the queue.
  3301. *
  3302. * @param string $name
  3303. * @return void
  3304. * @static
  3305. */
  3306. public static function unqueue($name)
  3307. {
  3308. /** @var \Illuminate\Cookie\CookieJar $instance */
  3309. $instance->unqueue($name);
  3310. }
  3311. /**
  3312. * Set the default path and domain for the jar.
  3313. *
  3314. * @param string $path
  3315. * @param string $domain
  3316. * @param bool $secure
  3317. * @param string $sameSite
  3318. * @return \Illuminate\Cookie\CookieJar
  3319. * @static
  3320. */
  3321. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3322. {
  3323. /** @var \Illuminate\Cookie\CookieJar $instance */
  3324. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3325. }
  3326. /**
  3327. * Get the cookies which have been queued for the next request.
  3328. *
  3329. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3330. * @static
  3331. */
  3332. public static function getQueuedCookies()
  3333. {
  3334. /** @var \Illuminate\Cookie\CookieJar $instance */
  3335. return $instance->getQueuedCookies();
  3336. }
  3337. }
  3338. /**
  3339. *
  3340. *
  3341. * @see \Illuminate\Encryption\Encrypter
  3342. */
  3343. class Crypt {
  3344. /**
  3345. * Determine if the given key and cipher combination is valid.
  3346. *
  3347. * @param string $key
  3348. * @param string $cipher
  3349. * @return bool
  3350. * @static
  3351. */
  3352. public static function supported($key, $cipher)
  3353. {
  3354. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3355. }
  3356. /**
  3357. * Create a new encryption key for the given cipher.
  3358. *
  3359. * @param string $cipher
  3360. * @return string
  3361. * @static
  3362. */
  3363. public static function generateKey($cipher)
  3364. {
  3365. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3366. }
  3367. /**
  3368. * Encrypt the given value.
  3369. *
  3370. * @param mixed $value
  3371. * @param bool $serialize
  3372. * @return string
  3373. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3374. * @static
  3375. */
  3376. public static function encrypt($value, $serialize = true)
  3377. {
  3378. /** @var \Illuminate\Encryption\Encrypter $instance */
  3379. return $instance->encrypt($value, $serialize);
  3380. }
  3381. /**
  3382. * Encrypt a string without serialization.
  3383. *
  3384. * @param string $value
  3385. * @return string
  3386. * @static
  3387. */
  3388. public static function encryptString($value)
  3389. {
  3390. /** @var \Illuminate\Encryption\Encrypter $instance */
  3391. return $instance->encryptString($value);
  3392. }
  3393. /**
  3394. * Decrypt the given value.
  3395. *
  3396. * @param mixed $payload
  3397. * @param bool $unserialize
  3398. * @return string
  3399. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3400. * @static
  3401. */
  3402. public static function decrypt($payload, $unserialize = true)
  3403. {
  3404. /** @var \Illuminate\Encryption\Encrypter $instance */
  3405. return $instance->decrypt($payload, $unserialize);
  3406. }
  3407. /**
  3408. * Decrypt the given string without unserialization.
  3409. *
  3410. * @param string $payload
  3411. * @return string
  3412. * @static
  3413. */
  3414. public static function decryptString($payload)
  3415. {
  3416. /** @var \Illuminate\Encryption\Encrypter $instance */
  3417. return $instance->decryptString($payload);
  3418. }
  3419. /**
  3420. * Get the encryption key.
  3421. *
  3422. * @return string
  3423. * @static
  3424. */
  3425. public static function getKey()
  3426. {
  3427. /** @var \Illuminate\Encryption\Encrypter $instance */
  3428. return $instance->getKey();
  3429. }
  3430. }
  3431. /**
  3432. *
  3433. *
  3434. * @see \Illuminate\Database\DatabaseManager
  3435. * @see \Illuminate\Database\Connection
  3436. */
  3437. class DB {
  3438. /**
  3439. * Get a database connection instance.
  3440. *
  3441. * @param string $name
  3442. * @return \Illuminate\Database\Connection
  3443. * @static
  3444. */
  3445. public static function connection($name = null)
  3446. {
  3447. /** @var \Illuminate\Database\DatabaseManager $instance */
  3448. return $instance->connection($name);
  3449. }
  3450. /**
  3451. * Disconnect from the given database and remove from local cache.
  3452. *
  3453. * @param string $name
  3454. * @return void
  3455. * @static
  3456. */
  3457. public static function purge($name = null)
  3458. {
  3459. /** @var \Illuminate\Database\DatabaseManager $instance */
  3460. $instance->purge($name);
  3461. }
  3462. /**
  3463. * Disconnect from the given database.
  3464. *
  3465. * @param string $name
  3466. * @return void
  3467. * @static
  3468. */
  3469. public static function disconnect($name = null)
  3470. {
  3471. /** @var \Illuminate\Database\DatabaseManager $instance */
  3472. $instance->disconnect($name);
  3473. }
  3474. /**
  3475. * Reconnect to the given database.
  3476. *
  3477. * @param string $name
  3478. * @return \Illuminate\Database\Connection
  3479. * @static
  3480. */
  3481. public static function reconnect($name = null)
  3482. {
  3483. /** @var \Illuminate\Database\DatabaseManager $instance */
  3484. return $instance->reconnect($name);
  3485. }
  3486. /**
  3487. * Get the default connection name.
  3488. *
  3489. * @return string
  3490. * @static
  3491. */
  3492. public static function getDefaultConnection()
  3493. {
  3494. /** @var \Illuminate\Database\DatabaseManager $instance */
  3495. return $instance->getDefaultConnection();
  3496. }
  3497. /**
  3498. * Set the default connection name.
  3499. *
  3500. * @param string $name
  3501. * @return void
  3502. * @static
  3503. */
  3504. public static function setDefaultConnection($name)
  3505. {
  3506. /** @var \Illuminate\Database\DatabaseManager $instance */
  3507. $instance->setDefaultConnection($name);
  3508. }
  3509. /**
  3510. * Get all of the support drivers.
  3511. *
  3512. * @return array
  3513. * @static
  3514. */
  3515. public static function supportedDrivers()
  3516. {
  3517. /** @var \Illuminate\Database\DatabaseManager $instance */
  3518. return $instance->supportedDrivers();
  3519. }
  3520. /**
  3521. * Get all of the drivers that are actually available.
  3522. *
  3523. * @return array
  3524. * @static
  3525. */
  3526. public static function availableDrivers()
  3527. {
  3528. /** @var \Illuminate\Database\DatabaseManager $instance */
  3529. return $instance->availableDrivers();
  3530. }
  3531. /**
  3532. * Register an extension connection resolver.
  3533. *
  3534. * @param string $name
  3535. * @param callable $resolver
  3536. * @return void
  3537. * @static
  3538. */
  3539. public static function extend($name, $resolver)
  3540. {
  3541. /** @var \Illuminate\Database\DatabaseManager $instance */
  3542. $instance->extend($name, $resolver);
  3543. }
  3544. /**
  3545. * Return all of the created connections.
  3546. *
  3547. * @return array
  3548. * @static
  3549. */
  3550. public static function getConnections()
  3551. {
  3552. /** @var \Illuminate\Database\DatabaseManager $instance */
  3553. return $instance->getConnections();
  3554. }
  3555. /**
  3556. * Get a schema builder instance for the connection.
  3557. *
  3558. * @return \Illuminate\Database\Schema\MySqlBuilder
  3559. * @static
  3560. */
  3561. public static function getSchemaBuilder()
  3562. {
  3563. /** @var \Illuminate\Database\MySqlConnection $instance */
  3564. return $instance->getSchemaBuilder();
  3565. }
  3566. /**
  3567. * Bind values to their parameters in the given statement.
  3568. *
  3569. * @param \PDOStatement $statement
  3570. * @param array $bindings
  3571. * @return void
  3572. * @static
  3573. */
  3574. public static function bindValues($statement, $bindings)
  3575. {
  3576. /** @var \Illuminate\Database\MySqlConnection $instance */
  3577. $instance->bindValues($statement, $bindings);
  3578. }
  3579. /**
  3580. * Set the query grammar to the default implementation.
  3581. *
  3582. * @return void
  3583. * @static
  3584. */
  3585. public static function useDefaultQueryGrammar()
  3586. {
  3587. //Method inherited from \Illuminate\Database\Connection
  3588. /** @var \Illuminate\Database\MySqlConnection $instance */
  3589. $instance->useDefaultQueryGrammar();
  3590. }
  3591. /**
  3592. * Set the schema grammar to the default implementation.
  3593. *
  3594. * @return void
  3595. * @static
  3596. */
  3597. public static function useDefaultSchemaGrammar()
  3598. {
  3599. //Method inherited from \Illuminate\Database\Connection
  3600. /** @var \Illuminate\Database\MySqlConnection $instance */
  3601. $instance->useDefaultSchemaGrammar();
  3602. }
  3603. /**
  3604. * Set the query post processor to the default implementation.
  3605. *
  3606. * @return void
  3607. * @static
  3608. */
  3609. public static function useDefaultPostProcessor()
  3610. {
  3611. //Method inherited from \Illuminate\Database\Connection
  3612. /** @var \Illuminate\Database\MySqlConnection $instance */
  3613. $instance->useDefaultPostProcessor();
  3614. }
  3615. /**
  3616. * Begin a fluent query against a database table.
  3617. *
  3618. * @param string $table
  3619. * @return \Illuminate\Database\Query\Builder
  3620. * @static
  3621. */
  3622. public static function table($table)
  3623. {
  3624. //Method inherited from \Illuminate\Database\Connection
  3625. /** @var \Illuminate\Database\MySqlConnection $instance */
  3626. return $instance->table($table);
  3627. }
  3628. /**
  3629. * Get a new query builder instance.
  3630. *
  3631. * @return \Illuminate\Database\Query\Builder
  3632. * @static
  3633. */
  3634. public static function query()
  3635. {
  3636. //Method inherited from \Illuminate\Database\Connection
  3637. /** @var \Illuminate\Database\MySqlConnection $instance */
  3638. return $instance->query();
  3639. }
  3640. /**
  3641. * Run a select statement and return a single result.
  3642. *
  3643. * @param string $query
  3644. * @param array $bindings
  3645. * @param bool $useReadPdo
  3646. * @return mixed
  3647. * @static
  3648. */
  3649. public static function selectOne($query, $bindings = array(), $useReadPdo = true)
  3650. {
  3651. //Method inherited from \Illuminate\Database\Connection
  3652. /** @var \Illuminate\Database\MySqlConnection $instance */
  3653. return $instance->selectOne($query, $bindings, $useReadPdo);
  3654. }
  3655. /**
  3656. * Run a select statement against the database.
  3657. *
  3658. * @param string $query
  3659. * @param array $bindings
  3660. * @return array
  3661. * @static
  3662. */
  3663. public static function selectFromWriteConnection($query, $bindings = array())
  3664. {
  3665. //Method inherited from \Illuminate\Database\Connection
  3666. /** @var \Illuminate\Database\MySqlConnection $instance */
  3667. return $instance->selectFromWriteConnection($query, $bindings);
  3668. }
  3669. /**
  3670. * Run a select statement against the database.
  3671. *
  3672. * @param string $query
  3673. * @param array $bindings
  3674. * @param bool $useReadPdo
  3675. * @return array
  3676. * @static
  3677. */
  3678. public static function select($query, $bindings = array(), $useReadPdo = true)
  3679. {
  3680. //Method inherited from \Illuminate\Database\Connection
  3681. /** @var \Illuminate\Database\MySqlConnection $instance */
  3682. return $instance->select($query, $bindings, $useReadPdo);
  3683. }
  3684. /**
  3685. * Run a select statement against the database and returns a generator.
  3686. *
  3687. * @param string $query
  3688. * @param array $bindings
  3689. * @param bool $useReadPdo
  3690. * @return \Generator
  3691. * @static
  3692. */
  3693. public static function cursor($query, $bindings = array(), $useReadPdo = true)
  3694. {
  3695. //Method inherited from \Illuminate\Database\Connection
  3696. /** @var \Illuminate\Database\MySqlConnection $instance */
  3697. return $instance->cursor($query, $bindings, $useReadPdo);
  3698. }
  3699. /**
  3700. * Run an insert statement against the database.
  3701. *
  3702. * @param string $query
  3703. * @param array $bindings
  3704. * @return bool
  3705. * @static
  3706. */
  3707. public static function insert($query, $bindings = array())
  3708. {
  3709. //Method inherited from \Illuminate\Database\Connection
  3710. /** @var \Illuminate\Database\MySqlConnection $instance */
  3711. return $instance->insert($query, $bindings);
  3712. }
  3713. /**
  3714. * Run an update statement against the database.
  3715. *
  3716. * @param string $query
  3717. * @param array $bindings
  3718. * @return int
  3719. * @static
  3720. */
  3721. public static function update($query, $bindings = array())
  3722. {
  3723. //Method inherited from \Illuminate\Database\Connection
  3724. /** @var \Illuminate\Database\MySqlConnection $instance */
  3725. return $instance->update($query, $bindings);
  3726. }
  3727. /**
  3728. * Run a delete statement against the database.
  3729. *
  3730. * @param string $query
  3731. * @param array $bindings
  3732. * @return int
  3733. * @static
  3734. */
  3735. public static function delete($query, $bindings = array())
  3736. {
  3737. //Method inherited from \Illuminate\Database\Connection
  3738. /** @var \Illuminate\Database\MySqlConnection $instance */
  3739. return $instance->delete($query, $bindings);
  3740. }
  3741. /**
  3742. * Execute an SQL statement and return the boolean result.
  3743. *
  3744. * @param string $query
  3745. * @param array $bindings
  3746. * @return bool
  3747. * @static
  3748. */
  3749. public static function statement($query, $bindings = array())
  3750. {
  3751. //Method inherited from \Illuminate\Database\Connection
  3752. /** @var \Illuminate\Database\MySqlConnection $instance */
  3753. return $instance->statement($query, $bindings);
  3754. }
  3755. /**
  3756. * Run an SQL statement and get the number of rows affected.
  3757. *
  3758. * @param string $query
  3759. * @param array $bindings
  3760. * @return int
  3761. * @static
  3762. */
  3763. public static function affectingStatement($query, $bindings = array())
  3764. {
  3765. //Method inherited from \Illuminate\Database\Connection
  3766. /** @var \Illuminate\Database\MySqlConnection $instance */
  3767. return $instance->affectingStatement($query, $bindings);
  3768. }
  3769. /**
  3770. * Run a raw, unprepared query against the PDO connection.
  3771. *
  3772. * @param string $query
  3773. * @return bool
  3774. * @static
  3775. */
  3776. public static function unprepared($query)
  3777. {
  3778. //Method inherited from \Illuminate\Database\Connection
  3779. /** @var \Illuminate\Database\MySqlConnection $instance */
  3780. return $instance->unprepared($query);
  3781. }
  3782. /**
  3783. * Execute the given callback in "dry run" mode.
  3784. *
  3785. * @param \Closure $callback
  3786. * @return array
  3787. * @static
  3788. */
  3789. public static function pretend($callback)
  3790. {
  3791. //Method inherited from \Illuminate\Database\Connection
  3792. /** @var \Illuminate\Database\MySqlConnection $instance */
  3793. return $instance->pretend($callback);
  3794. }
  3795. /**
  3796. * Prepare the query bindings for execution.
  3797. *
  3798. * @param array $bindings
  3799. * @return array
  3800. * @static
  3801. */
  3802. public static function prepareBindings($bindings)
  3803. {
  3804. //Method inherited from \Illuminate\Database\Connection
  3805. /** @var \Illuminate\Database\MySqlConnection $instance */
  3806. return $instance->prepareBindings($bindings);
  3807. }
  3808. /**
  3809. * Log a query in the connection's query log.
  3810. *
  3811. * @param string $query
  3812. * @param array $bindings
  3813. * @param float|null $time
  3814. * @return void
  3815. * @static
  3816. */
  3817. public static function logQuery($query, $bindings, $time = null)
  3818. {
  3819. //Method inherited from \Illuminate\Database\Connection
  3820. /** @var \Illuminate\Database\MySqlConnection $instance */
  3821. $instance->logQuery($query, $bindings, $time);
  3822. }
  3823. /**
  3824. * Register a database query listener with the connection.
  3825. *
  3826. * @param \Closure $callback
  3827. * @return void
  3828. * @static
  3829. */
  3830. public static function listen($callback)
  3831. {
  3832. //Method inherited from \Illuminate\Database\Connection
  3833. /** @var \Illuminate\Database\MySqlConnection $instance */
  3834. $instance->listen($callback);
  3835. }
  3836. /**
  3837. * Get a new raw query expression.
  3838. *
  3839. * @param mixed $value
  3840. * @return \Illuminate\Database\Query\Expression
  3841. * @static
  3842. */
  3843. public static function raw($value)
  3844. {
  3845. //Method inherited from \Illuminate\Database\Connection
  3846. /** @var \Illuminate\Database\MySqlConnection $instance */
  3847. return $instance->raw($value);
  3848. }
  3849. /**
  3850. * Indicate if any records have been modified.
  3851. *
  3852. * @param bool $value
  3853. * @return void
  3854. * @static
  3855. */
  3856. public static function recordsHaveBeenModified($value = true)
  3857. {
  3858. //Method inherited from \Illuminate\Database\Connection
  3859. /** @var \Illuminate\Database\MySqlConnection $instance */
  3860. $instance->recordsHaveBeenModified($value);
  3861. }
  3862. /**
  3863. * Is Doctrine available?
  3864. *
  3865. * @return bool
  3866. * @static
  3867. */
  3868. public static function isDoctrineAvailable()
  3869. {
  3870. //Method inherited from \Illuminate\Database\Connection
  3871. /** @var \Illuminate\Database\MySqlConnection $instance */
  3872. return $instance->isDoctrineAvailable();
  3873. }
  3874. /**
  3875. * Get a Doctrine Schema Column instance.
  3876. *
  3877. * @param string $table
  3878. * @param string $column
  3879. * @return \Doctrine\DBAL\Schema\Column
  3880. * @static
  3881. */
  3882. public static function getDoctrineColumn($table, $column)
  3883. {
  3884. //Method inherited from \Illuminate\Database\Connection
  3885. /** @var \Illuminate\Database\MySqlConnection $instance */
  3886. return $instance->getDoctrineColumn($table, $column);
  3887. }
  3888. /**
  3889. * Get the Doctrine DBAL schema manager for the connection.
  3890. *
  3891. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3892. * @static
  3893. */
  3894. public static function getDoctrineSchemaManager()
  3895. {
  3896. //Method inherited from \Illuminate\Database\Connection
  3897. /** @var \Illuminate\Database\MySqlConnection $instance */
  3898. return $instance->getDoctrineSchemaManager();
  3899. }
  3900. /**
  3901. * Get the Doctrine DBAL database connection instance.
  3902. *
  3903. * @return \Doctrine\DBAL\Connection
  3904. * @static
  3905. */
  3906. public static function getDoctrineConnection()
  3907. {
  3908. //Method inherited from \Illuminate\Database\Connection
  3909. /** @var \Illuminate\Database\MySqlConnection $instance */
  3910. return $instance->getDoctrineConnection();
  3911. }
  3912. /**
  3913. * Get the current PDO connection.
  3914. *
  3915. * @return \PDO
  3916. * @static
  3917. */
  3918. public static function getPdo()
  3919. {
  3920. //Method inherited from \Illuminate\Database\Connection
  3921. /** @var \Illuminate\Database\MySqlConnection $instance */
  3922. return $instance->getPdo();
  3923. }
  3924. /**
  3925. * Get the current PDO connection used for reading.
  3926. *
  3927. * @return \PDO
  3928. * @static
  3929. */
  3930. public static function getReadPdo()
  3931. {
  3932. //Method inherited from \Illuminate\Database\Connection
  3933. /** @var \Illuminate\Database\MySqlConnection $instance */
  3934. return $instance->getReadPdo();
  3935. }
  3936. /**
  3937. * Set the PDO connection.
  3938. *
  3939. * @param \PDO|\Closure|null $pdo
  3940. * @return \Illuminate\Database\MySqlConnection
  3941. * @static
  3942. */
  3943. public static function setPdo($pdo)
  3944. {
  3945. //Method inherited from \Illuminate\Database\Connection
  3946. /** @var \Illuminate\Database\MySqlConnection $instance */
  3947. return $instance->setPdo($pdo);
  3948. }
  3949. /**
  3950. * Set the PDO connection used for reading.
  3951. *
  3952. * @param \PDO|\Closure|null $pdo
  3953. * @return \Illuminate\Database\MySqlConnection
  3954. * @static
  3955. */
  3956. public static function setReadPdo($pdo)
  3957. {
  3958. //Method inherited from \Illuminate\Database\Connection
  3959. /** @var \Illuminate\Database\MySqlConnection $instance */
  3960. return $instance->setReadPdo($pdo);
  3961. }
  3962. /**
  3963. * Set the reconnect instance on the connection.
  3964. *
  3965. * @param callable $reconnector
  3966. * @return \Illuminate\Database\MySqlConnection
  3967. * @static
  3968. */
  3969. public static function setReconnector($reconnector)
  3970. {
  3971. //Method inherited from \Illuminate\Database\Connection
  3972. /** @var \Illuminate\Database\MySqlConnection $instance */
  3973. return $instance->setReconnector($reconnector);
  3974. }
  3975. /**
  3976. * Get the database connection name.
  3977. *
  3978. * @return string|null
  3979. * @static
  3980. */
  3981. public static function getName()
  3982. {
  3983. //Method inherited from \Illuminate\Database\Connection
  3984. /** @var \Illuminate\Database\MySqlConnection $instance */
  3985. return $instance->getName();
  3986. }
  3987. /**
  3988. * Get an option from the configuration options.
  3989. *
  3990. * @param string|null $option
  3991. * @return mixed
  3992. * @static
  3993. */
  3994. public static function getConfig($option = null)
  3995. {
  3996. //Method inherited from \Illuminate\Database\Connection
  3997. /** @var \Illuminate\Database\MySqlConnection $instance */
  3998. return $instance->getConfig($option);
  3999. }
  4000. /**
  4001. * Get the PDO driver name.
  4002. *
  4003. * @return string
  4004. * @static
  4005. */
  4006. public static function getDriverName()
  4007. {
  4008. //Method inherited from \Illuminate\Database\Connection
  4009. /** @var \Illuminate\Database\MySqlConnection $instance */
  4010. return $instance->getDriverName();
  4011. }
  4012. /**
  4013. * Get the query grammar used by the connection.
  4014. *
  4015. * @return \Illuminate\Database\Query\Grammars\Grammar
  4016. * @static
  4017. */
  4018. public static function getQueryGrammar()
  4019. {
  4020. //Method inherited from \Illuminate\Database\Connection
  4021. /** @var \Illuminate\Database\MySqlConnection $instance */
  4022. return $instance->getQueryGrammar();
  4023. }
  4024. /**
  4025. * Set the query grammar used by the connection.
  4026. *
  4027. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  4028. * @return void
  4029. * @static
  4030. */
  4031. public static function setQueryGrammar($grammar)
  4032. {
  4033. //Method inherited from \Illuminate\Database\Connection
  4034. /** @var \Illuminate\Database\MySqlConnection $instance */
  4035. $instance->setQueryGrammar($grammar);
  4036. }
  4037. /**
  4038. * Get the schema grammar used by the connection.
  4039. *
  4040. * @return \Illuminate\Database\Schema\Grammars\Grammar
  4041. * @static
  4042. */
  4043. public static function getSchemaGrammar()
  4044. {
  4045. //Method inherited from \Illuminate\Database\Connection
  4046. /** @var \Illuminate\Database\MySqlConnection $instance */
  4047. return $instance->getSchemaGrammar();
  4048. }
  4049. /**
  4050. * Set the schema grammar used by the connection.
  4051. *
  4052. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  4053. * @return void
  4054. * @static
  4055. */
  4056. public static function setSchemaGrammar($grammar)
  4057. {
  4058. //Method inherited from \Illuminate\Database\Connection
  4059. /** @var \Illuminate\Database\MySqlConnection $instance */
  4060. $instance->setSchemaGrammar($grammar);
  4061. }
  4062. /**
  4063. * Get the query post processor used by the connection.
  4064. *
  4065. * @return \Illuminate\Database\Query\Processors\Processor
  4066. * @static
  4067. */
  4068. public static function getPostProcessor()
  4069. {
  4070. //Method inherited from \Illuminate\Database\Connection
  4071. /** @var \Illuminate\Database\MySqlConnection $instance */
  4072. return $instance->getPostProcessor();
  4073. }
  4074. /**
  4075. * Set the query post processor used by the connection.
  4076. *
  4077. * @param \Illuminate\Database\Query\Processors\Processor $processor
  4078. * @return void
  4079. * @static
  4080. */
  4081. public static function setPostProcessor($processor)
  4082. {
  4083. //Method inherited from \Illuminate\Database\Connection
  4084. /** @var \Illuminate\Database\MySqlConnection $instance */
  4085. $instance->setPostProcessor($processor);
  4086. }
  4087. /**
  4088. * Get the event dispatcher used by the connection.
  4089. *
  4090. * @return \Illuminate\Contracts\Events\Dispatcher
  4091. * @static
  4092. */
  4093. public static function getEventDispatcher()
  4094. {
  4095. //Method inherited from \Illuminate\Database\Connection
  4096. /** @var \Illuminate\Database\MySqlConnection $instance */
  4097. return $instance->getEventDispatcher();
  4098. }
  4099. /**
  4100. * Set the event dispatcher instance on the connection.
  4101. *
  4102. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4103. * @return void
  4104. * @static
  4105. */
  4106. public static function setEventDispatcher($events)
  4107. {
  4108. //Method inherited from \Illuminate\Database\Connection
  4109. /** @var \Illuminate\Database\MySqlConnection $instance */
  4110. $instance->setEventDispatcher($events);
  4111. }
  4112. /**
  4113. * Determine if the connection in a "dry run".
  4114. *
  4115. * @return bool
  4116. * @static
  4117. */
  4118. public static function pretending()
  4119. {
  4120. //Method inherited from \Illuminate\Database\Connection
  4121. /** @var \Illuminate\Database\MySqlConnection $instance */
  4122. return $instance->pretending();
  4123. }
  4124. /**
  4125. * Get the connection query log.
  4126. *
  4127. * @return array
  4128. * @static
  4129. */
  4130. public static function getQueryLog()
  4131. {
  4132. //Method inherited from \Illuminate\Database\Connection
  4133. /** @var \Illuminate\Database\MySqlConnection $instance */
  4134. return $instance->getQueryLog();
  4135. }
  4136. /**
  4137. * Clear the query log.
  4138. *
  4139. * @return void
  4140. * @static
  4141. */
  4142. public static function flushQueryLog()
  4143. {
  4144. //Method inherited from \Illuminate\Database\Connection
  4145. /** @var \Illuminate\Database\MySqlConnection $instance */
  4146. $instance->flushQueryLog();
  4147. }
  4148. /**
  4149. * Enable the query log on the connection.
  4150. *
  4151. * @return void
  4152. * @static
  4153. */
  4154. public static function enableQueryLog()
  4155. {
  4156. //Method inherited from \Illuminate\Database\Connection
  4157. /** @var \Illuminate\Database\MySqlConnection $instance */
  4158. $instance->enableQueryLog();
  4159. }
  4160. /**
  4161. * Disable the query log on the connection.
  4162. *
  4163. * @return void
  4164. * @static
  4165. */
  4166. public static function disableQueryLog()
  4167. {
  4168. //Method inherited from \Illuminate\Database\Connection
  4169. /** @var \Illuminate\Database\MySqlConnection $instance */
  4170. $instance->disableQueryLog();
  4171. }
  4172. /**
  4173. * Determine whether we're logging queries.
  4174. *
  4175. * @return bool
  4176. * @static
  4177. */
  4178. public static function logging()
  4179. {
  4180. //Method inherited from \Illuminate\Database\Connection
  4181. /** @var \Illuminate\Database\MySqlConnection $instance */
  4182. return $instance->logging();
  4183. }
  4184. /**
  4185. * Get the name of the connected database.
  4186. *
  4187. * @return string
  4188. * @static
  4189. */
  4190. public static function getDatabaseName()
  4191. {
  4192. //Method inherited from \Illuminate\Database\Connection
  4193. /** @var \Illuminate\Database\MySqlConnection $instance */
  4194. return $instance->getDatabaseName();
  4195. }
  4196. /**
  4197. * Set the name of the connected database.
  4198. *
  4199. * @param string $database
  4200. * @return string
  4201. * @static
  4202. */
  4203. public static function setDatabaseName($database)
  4204. {
  4205. //Method inherited from \Illuminate\Database\Connection
  4206. /** @var \Illuminate\Database\MySqlConnection $instance */
  4207. return $instance->setDatabaseName($database);
  4208. }
  4209. /**
  4210. * Get the table prefix for the connection.
  4211. *
  4212. * @return string
  4213. * @static
  4214. */
  4215. public static function getTablePrefix()
  4216. {
  4217. //Method inherited from \Illuminate\Database\Connection
  4218. /** @var \Illuminate\Database\MySqlConnection $instance */
  4219. return $instance->getTablePrefix();
  4220. }
  4221. /**
  4222. * Set the table prefix in use by the connection.
  4223. *
  4224. * @param string $prefix
  4225. * @return void
  4226. * @static
  4227. */
  4228. public static function setTablePrefix($prefix)
  4229. {
  4230. //Method inherited from \Illuminate\Database\Connection
  4231. /** @var \Illuminate\Database\MySqlConnection $instance */
  4232. $instance->setTablePrefix($prefix);
  4233. }
  4234. /**
  4235. * Set the table prefix and return the grammar.
  4236. *
  4237. * @param \Illuminate\Database\Grammar $grammar
  4238. * @return \Illuminate\Database\Grammar
  4239. * @static
  4240. */
  4241. public static function withTablePrefix($grammar)
  4242. {
  4243. //Method inherited from \Illuminate\Database\Connection
  4244. /** @var \Illuminate\Database\MySqlConnection $instance */
  4245. return $instance->withTablePrefix($grammar);
  4246. }
  4247. /**
  4248. * Register a connection resolver.
  4249. *
  4250. * @param string $driver
  4251. * @param \Closure $callback
  4252. * @return void
  4253. * @static
  4254. */
  4255. public static function resolverFor($driver, $callback)
  4256. {
  4257. //Method inherited from \Illuminate\Database\Connection
  4258. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  4259. }
  4260. /**
  4261. * Get the connection resolver for the given driver.
  4262. *
  4263. * @param string $driver
  4264. * @return mixed
  4265. * @static
  4266. */
  4267. public static function getResolver($driver)
  4268. {
  4269. //Method inherited from \Illuminate\Database\Connection
  4270. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  4271. }
  4272. /**
  4273. * Execute a Closure within a transaction.
  4274. *
  4275. * @param \Closure $callback
  4276. * @param int $attempts
  4277. * @return mixed
  4278. * @throws \Exception|\Throwable
  4279. * @static
  4280. */
  4281. public static function transaction($callback, $attempts = 1)
  4282. {
  4283. //Method inherited from \Illuminate\Database\Connection
  4284. /** @var \Illuminate\Database\MySqlConnection $instance */
  4285. return $instance->transaction($callback, $attempts);
  4286. }
  4287. /**
  4288. * Start a new database transaction.
  4289. *
  4290. * @return void
  4291. * @throws \Exception
  4292. * @static
  4293. */
  4294. public static function beginTransaction()
  4295. {
  4296. //Method inherited from \Illuminate\Database\Connection
  4297. /** @var \Illuminate\Database\MySqlConnection $instance */
  4298. $instance->beginTransaction();
  4299. }
  4300. /**
  4301. * Commit the active database transaction.
  4302. *
  4303. * @return void
  4304. * @static
  4305. */
  4306. public static function commit()
  4307. {
  4308. //Method inherited from \Illuminate\Database\Connection
  4309. /** @var \Illuminate\Database\MySqlConnection $instance */
  4310. $instance->commit();
  4311. }
  4312. /**
  4313. * Rollback the active database transaction.
  4314. *
  4315. * @param int|null $toLevel
  4316. * @return void
  4317. * @static
  4318. */
  4319. public static function rollBack($toLevel = null)
  4320. {
  4321. //Method inherited from \Illuminate\Database\Connection
  4322. /** @var \Illuminate\Database\MySqlConnection $instance */
  4323. $instance->rollBack($toLevel);
  4324. }
  4325. /**
  4326. * Get the number of active transactions.
  4327. *
  4328. * @return int
  4329. * @static
  4330. */
  4331. public static function transactionLevel()
  4332. {
  4333. //Method inherited from \Illuminate\Database\Connection
  4334. /** @var \Illuminate\Database\MySqlConnection $instance */
  4335. return $instance->transactionLevel();
  4336. }
  4337. }
  4338. /**
  4339. *
  4340. *
  4341. * @see \Illuminate\Events\Dispatcher
  4342. */
  4343. class Event {
  4344. /**
  4345. * Register an event listener with the dispatcher.
  4346. *
  4347. * @param string|array $events
  4348. * @param mixed $listener
  4349. * @return void
  4350. * @static
  4351. */
  4352. public static function listen($events, $listener)
  4353. {
  4354. /** @var \Illuminate\Events\Dispatcher $instance */
  4355. $instance->listen($events, $listener);
  4356. }
  4357. /**
  4358. * Determine if a given event has listeners.
  4359. *
  4360. * @param string $eventName
  4361. * @return bool
  4362. * @static
  4363. */
  4364. public static function hasListeners($eventName)
  4365. {
  4366. /** @var \Illuminate\Events\Dispatcher $instance */
  4367. return $instance->hasListeners($eventName);
  4368. }
  4369. /**
  4370. * Register an event and payload to be fired later.
  4371. *
  4372. * @param string $event
  4373. * @param array $payload
  4374. * @return void
  4375. * @static
  4376. */
  4377. public static function push($event, $payload = array())
  4378. {
  4379. /** @var \Illuminate\Events\Dispatcher $instance */
  4380. $instance->push($event, $payload);
  4381. }
  4382. /**
  4383. * Flush a set of pushed events.
  4384. *
  4385. * @param string $event
  4386. * @return void
  4387. * @static
  4388. */
  4389. public static function flush($event)
  4390. {
  4391. /** @var \Illuminate\Events\Dispatcher $instance */
  4392. $instance->flush($event);
  4393. }
  4394. /**
  4395. * Register an event subscriber with the dispatcher.
  4396. *
  4397. * @param object|string $subscriber
  4398. * @return void
  4399. * @static
  4400. */
  4401. public static function subscribe($subscriber)
  4402. {
  4403. /** @var \Illuminate\Events\Dispatcher $instance */
  4404. $instance->subscribe($subscriber);
  4405. }
  4406. /**
  4407. * Fire an event until the first non-null response is returned.
  4408. *
  4409. * @param string|object $event
  4410. * @param mixed $payload
  4411. * @return array|null
  4412. * @static
  4413. */
  4414. public static function until($event, $payload = array())
  4415. {
  4416. /** @var \Illuminate\Events\Dispatcher $instance */
  4417. return $instance->until($event, $payload);
  4418. }
  4419. /**
  4420. * Fire an event and call the listeners.
  4421. *
  4422. * @param string|object $event
  4423. * @param mixed $payload
  4424. * @param bool $halt
  4425. * @return array|null
  4426. * @static
  4427. */
  4428. public static function fire($event, $payload = array(), $halt = false)
  4429. {
  4430. /** @var \Illuminate\Events\Dispatcher $instance */
  4431. return $instance->fire($event, $payload, $halt);
  4432. }
  4433. /**
  4434. * Fire an event and call the listeners.
  4435. *
  4436. * @param string|object $event
  4437. * @param mixed $payload
  4438. * @param bool $halt
  4439. * @return array|null
  4440. * @static
  4441. */
  4442. public static function dispatch($event, $payload = array(), $halt = false)
  4443. {
  4444. /** @var \Illuminate\Events\Dispatcher $instance */
  4445. return $instance->dispatch($event, $payload, $halt);
  4446. }
  4447. /**
  4448. * Get all of the listeners for a given event name.
  4449. *
  4450. * @param string $eventName
  4451. * @return array
  4452. * @static
  4453. */
  4454. public static function getListeners($eventName)
  4455. {
  4456. /** @var \Illuminate\Events\Dispatcher $instance */
  4457. return $instance->getListeners($eventName);
  4458. }
  4459. /**
  4460. * Register an event listener with the dispatcher.
  4461. *
  4462. * @param \Closure|string $listener
  4463. * @param bool $wildcard
  4464. * @return \Closure
  4465. * @static
  4466. */
  4467. public static function makeListener($listener, $wildcard = false)
  4468. {
  4469. /** @var \Illuminate\Events\Dispatcher $instance */
  4470. return $instance->makeListener($listener, $wildcard);
  4471. }
  4472. /**
  4473. * Create a class based listener using the IoC container.
  4474. *
  4475. * @param string $listener
  4476. * @param bool $wildcard
  4477. * @return \Closure
  4478. * @static
  4479. */
  4480. public static function createClassListener($listener, $wildcard = false)
  4481. {
  4482. /** @var \Illuminate\Events\Dispatcher $instance */
  4483. return $instance->createClassListener($listener, $wildcard);
  4484. }
  4485. /**
  4486. * Remove a set of listeners from the dispatcher.
  4487. *
  4488. * @param string $event
  4489. * @return void
  4490. * @static
  4491. */
  4492. public static function forget($event)
  4493. {
  4494. /** @var \Illuminate\Events\Dispatcher $instance */
  4495. $instance->forget($event);
  4496. }
  4497. /**
  4498. * Forget all of the pushed listeners.
  4499. *
  4500. * @return void
  4501. * @static
  4502. */
  4503. public static function forgetPushed()
  4504. {
  4505. /** @var \Illuminate\Events\Dispatcher $instance */
  4506. $instance->forgetPushed();
  4507. }
  4508. /**
  4509. * Set the queue resolver implementation.
  4510. *
  4511. * @param callable $resolver
  4512. * @return \Illuminate\Events\Dispatcher
  4513. * @static
  4514. */
  4515. public static function setQueueResolver($resolver)
  4516. {
  4517. /** @var \Illuminate\Events\Dispatcher $instance */
  4518. return $instance->setQueueResolver($resolver);
  4519. }
  4520. /**
  4521. * Assert if an event was dispatched based on a truth-test callback.
  4522. *
  4523. * @param string $event
  4524. * @param callable|int|null $callback
  4525. * @return void
  4526. * @static
  4527. */
  4528. public static function assertDispatched($event, $callback = null)
  4529. {
  4530. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4531. $instance->assertDispatched($event, $callback);
  4532. }
  4533. /**
  4534. * Assert if a event was dispatched a number of times.
  4535. *
  4536. * @param string $event
  4537. * @param int $times
  4538. * @return void
  4539. * @static
  4540. */
  4541. public static function assertDispatchedTimes($event, $times = 1)
  4542. {
  4543. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4544. $instance->assertDispatchedTimes($event, $times);
  4545. }
  4546. /**
  4547. * Determine if an event was dispatched based on a truth-test callback.
  4548. *
  4549. * @param string $event
  4550. * @param callable|null $callback
  4551. * @return void
  4552. * @static
  4553. */
  4554. public static function assertNotDispatched($event, $callback = null)
  4555. {
  4556. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4557. $instance->assertNotDispatched($event, $callback);
  4558. }
  4559. /**
  4560. * Get all of the events matching a truth-test callback.
  4561. *
  4562. * @param string $event
  4563. * @param callable|null $callback
  4564. * @return \Illuminate\Support\Collection
  4565. * @static
  4566. */
  4567. public static function dispatched($event, $callback = null)
  4568. {
  4569. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4570. return $instance->dispatched($event, $callback);
  4571. }
  4572. /**
  4573. * Determine if the given event has been dispatched.
  4574. *
  4575. * @param string $event
  4576. * @return bool
  4577. * @static
  4578. */
  4579. public static function hasDispatched($event)
  4580. {
  4581. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4582. return $instance->hasDispatched($event);
  4583. }
  4584. }
  4585. /**
  4586. *
  4587. *
  4588. * @see \Illuminate\Filesystem\Filesystem
  4589. */
  4590. class File {
  4591. /**
  4592. * Determine if a file or directory exists.
  4593. *
  4594. * @param string $path
  4595. * @return bool
  4596. * @static
  4597. */
  4598. public static function exists($path)
  4599. {
  4600. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4601. return $instance->exists($path);
  4602. }
  4603. /**
  4604. * Get the contents of a file.
  4605. *
  4606. * @param string $path
  4607. * @param bool $lock
  4608. * @return string
  4609. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4610. * @static
  4611. */
  4612. public static function get($path, $lock = false)
  4613. {
  4614. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4615. return $instance->get($path, $lock);
  4616. }
  4617. /**
  4618. * Get contents of a file with shared access.
  4619. *
  4620. * @param string $path
  4621. * @return string
  4622. * @static
  4623. */
  4624. public static function sharedGet($path)
  4625. {
  4626. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4627. return $instance->sharedGet($path);
  4628. }
  4629. /**
  4630. * Get the returned value of a file.
  4631. *
  4632. * @param string $path
  4633. * @return mixed
  4634. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4635. * @static
  4636. */
  4637. public static function getRequire($path)
  4638. {
  4639. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4640. return $instance->getRequire($path);
  4641. }
  4642. /**
  4643. * Require the given file once.
  4644. *
  4645. * @param string $file
  4646. * @return mixed
  4647. * @static
  4648. */
  4649. public static function requireOnce($file)
  4650. {
  4651. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4652. return $instance->requireOnce($file);
  4653. }
  4654. /**
  4655. * Get the MD5 hash of the file at the given path.
  4656. *
  4657. * @param string $path
  4658. * @return string
  4659. * @static
  4660. */
  4661. public static function hash($path)
  4662. {
  4663. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4664. return $instance->hash($path);
  4665. }
  4666. /**
  4667. * Write the contents of a file.
  4668. *
  4669. * @param string $path
  4670. * @param string $contents
  4671. * @param bool $lock
  4672. * @return int
  4673. * @static
  4674. */
  4675. public static function put($path, $contents, $lock = false)
  4676. {
  4677. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4678. return $instance->put($path, $contents, $lock);
  4679. }
  4680. /**
  4681. * Prepend to a file.
  4682. *
  4683. * @param string $path
  4684. * @param string $data
  4685. * @return int
  4686. * @static
  4687. */
  4688. public static function prepend($path, $data)
  4689. {
  4690. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4691. return $instance->prepend($path, $data);
  4692. }
  4693. /**
  4694. * Append to a file.
  4695. *
  4696. * @param string $path
  4697. * @param string $data
  4698. * @return int
  4699. * @static
  4700. */
  4701. public static function append($path, $data)
  4702. {
  4703. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4704. return $instance->append($path, $data);
  4705. }
  4706. /**
  4707. * Get or set UNIX mode of a file or directory.
  4708. *
  4709. * @param string $path
  4710. * @param int $mode
  4711. * @return mixed
  4712. * @static
  4713. */
  4714. public static function chmod($path, $mode = null)
  4715. {
  4716. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4717. return $instance->chmod($path, $mode);
  4718. }
  4719. /**
  4720. * Delete the file at a given path.
  4721. *
  4722. * @param string|array $paths
  4723. * @return bool
  4724. * @static
  4725. */
  4726. public static function delete($paths)
  4727. {
  4728. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4729. return $instance->delete($paths);
  4730. }
  4731. /**
  4732. * Move a file to a new location.
  4733. *
  4734. * @param string $path
  4735. * @param string $target
  4736. * @return bool
  4737. * @static
  4738. */
  4739. public static function move($path, $target)
  4740. {
  4741. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4742. return $instance->move($path, $target);
  4743. }
  4744. /**
  4745. * Copy a file to a new location.
  4746. *
  4747. * @param string $path
  4748. * @param string $target
  4749. * @return bool
  4750. * @static
  4751. */
  4752. public static function copy($path, $target)
  4753. {
  4754. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4755. return $instance->copy($path, $target);
  4756. }
  4757. /**
  4758. * Create a hard link to the target file or directory.
  4759. *
  4760. * @param string $target
  4761. * @param string $link
  4762. * @return void
  4763. * @static
  4764. */
  4765. public static function link($target, $link)
  4766. {
  4767. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4768. $instance->link($target, $link);
  4769. }
  4770. /**
  4771. * Extract the file name from a file path.
  4772. *
  4773. * @param string $path
  4774. * @return string
  4775. * @static
  4776. */
  4777. public static function name($path)
  4778. {
  4779. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4780. return $instance->name($path);
  4781. }
  4782. /**
  4783. * Extract the trailing name component from a file path.
  4784. *
  4785. * @param string $path
  4786. * @return string
  4787. * @static
  4788. */
  4789. public static function basename($path)
  4790. {
  4791. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4792. return $instance->basename($path);
  4793. }
  4794. /**
  4795. * Extract the parent directory from a file path.
  4796. *
  4797. * @param string $path
  4798. * @return string
  4799. * @static
  4800. */
  4801. public static function dirname($path)
  4802. {
  4803. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4804. return $instance->dirname($path);
  4805. }
  4806. /**
  4807. * Extract the file extension from a file path.
  4808. *
  4809. * @param string $path
  4810. * @return string
  4811. * @static
  4812. */
  4813. public static function extension($path)
  4814. {
  4815. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4816. return $instance->extension($path);
  4817. }
  4818. /**
  4819. * Get the file type of a given file.
  4820. *
  4821. * @param string $path
  4822. * @return string
  4823. * @static
  4824. */
  4825. public static function type($path)
  4826. {
  4827. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4828. return $instance->type($path);
  4829. }
  4830. /**
  4831. * Get the mime-type of a given file.
  4832. *
  4833. * @param string $path
  4834. * @return string|false
  4835. * @static
  4836. */
  4837. public static function mimeType($path)
  4838. {
  4839. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4840. return $instance->mimeType($path);
  4841. }
  4842. /**
  4843. * Get the file size of a given file.
  4844. *
  4845. * @param string $path
  4846. * @return int
  4847. * @static
  4848. */
  4849. public static function size($path)
  4850. {
  4851. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4852. return $instance->size($path);
  4853. }
  4854. /**
  4855. * Get the file's last modification time.
  4856. *
  4857. * @param string $path
  4858. * @return int
  4859. * @static
  4860. */
  4861. public static function lastModified($path)
  4862. {
  4863. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4864. return $instance->lastModified($path);
  4865. }
  4866. /**
  4867. * Determine if the given path is a directory.
  4868. *
  4869. * @param string $directory
  4870. * @return bool
  4871. * @static
  4872. */
  4873. public static function isDirectory($directory)
  4874. {
  4875. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4876. return $instance->isDirectory($directory);
  4877. }
  4878. /**
  4879. * Determine if the given path is readable.
  4880. *
  4881. * @param string $path
  4882. * @return bool
  4883. * @static
  4884. */
  4885. public static function isReadable($path)
  4886. {
  4887. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4888. return $instance->isReadable($path);
  4889. }
  4890. /**
  4891. * Determine if the given path is writable.
  4892. *
  4893. * @param string $path
  4894. * @return bool
  4895. * @static
  4896. */
  4897. public static function isWritable($path)
  4898. {
  4899. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4900. return $instance->isWritable($path);
  4901. }
  4902. /**
  4903. * Determine if the given path is a file.
  4904. *
  4905. * @param string $file
  4906. * @return bool
  4907. * @static
  4908. */
  4909. public static function isFile($file)
  4910. {
  4911. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4912. return $instance->isFile($file);
  4913. }
  4914. /**
  4915. * Find path names matching a given pattern.
  4916. *
  4917. * @param string $pattern
  4918. * @param int $flags
  4919. * @return array
  4920. * @static
  4921. */
  4922. public static function glob($pattern, $flags = 0)
  4923. {
  4924. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4925. return $instance->glob($pattern, $flags);
  4926. }
  4927. /**
  4928. * Get an array of all files in a directory.
  4929. *
  4930. * @param string $directory
  4931. * @param bool $hidden
  4932. * @return \Symfony\Component\Finder\SplFileInfo[]
  4933. * @static
  4934. */
  4935. public static function files($directory, $hidden = false)
  4936. {
  4937. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4938. return $instance->files($directory, $hidden);
  4939. }
  4940. /**
  4941. * Get all of the files from the given directory (recursive).
  4942. *
  4943. * @param string $directory
  4944. * @param bool $hidden
  4945. * @return \Symfony\Component\Finder\SplFileInfo[]
  4946. * @static
  4947. */
  4948. public static function allFiles($directory, $hidden = false)
  4949. {
  4950. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4951. return $instance->allFiles($directory, $hidden);
  4952. }
  4953. /**
  4954. * Get all of the directories within a given directory.
  4955. *
  4956. * @param string $directory
  4957. * @return array
  4958. * @static
  4959. */
  4960. public static function directories($directory)
  4961. {
  4962. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4963. return $instance->directories($directory);
  4964. }
  4965. /**
  4966. * Create a directory.
  4967. *
  4968. * @param string $path
  4969. * @param int $mode
  4970. * @param bool $recursive
  4971. * @param bool $force
  4972. * @return bool
  4973. * @static
  4974. */
  4975. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  4976. {
  4977. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4978. return $instance->makeDirectory($path, $mode, $recursive, $force);
  4979. }
  4980. /**
  4981. * Move a directory.
  4982. *
  4983. * @param string $from
  4984. * @param string $to
  4985. * @param bool $overwrite
  4986. * @return bool
  4987. * @static
  4988. */
  4989. public static function moveDirectory($from, $to, $overwrite = false)
  4990. {
  4991. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4992. return $instance->moveDirectory($from, $to, $overwrite);
  4993. }
  4994. /**
  4995. * Copy a directory from one location to another.
  4996. *
  4997. * @param string $directory
  4998. * @param string $destination
  4999. * @param int $options
  5000. * @return bool
  5001. * @static
  5002. */
  5003. public static function copyDirectory($directory, $destination, $options = null)
  5004. {
  5005. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5006. return $instance->copyDirectory($directory, $destination, $options);
  5007. }
  5008. /**
  5009. * Recursively delete a directory.
  5010. *
  5011. * The directory itself may be optionally preserved.
  5012. *
  5013. * @param string $directory
  5014. * @param bool $preserve
  5015. * @return bool
  5016. * @static
  5017. */
  5018. public static function deleteDirectory($directory, $preserve = false)
  5019. {
  5020. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5021. return $instance->deleteDirectory($directory, $preserve);
  5022. }
  5023. /**
  5024. * Empty the specified directory of all files and folders.
  5025. *
  5026. * @param string $directory
  5027. * @return bool
  5028. * @static
  5029. */
  5030. public static function cleanDirectory($directory)
  5031. {
  5032. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5033. return $instance->cleanDirectory($directory);
  5034. }
  5035. /**
  5036. * Register a custom macro.
  5037. *
  5038. * @param string $name
  5039. * @param object|callable $macro
  5040. * @return void
  5041. * @static
  5042. */
  5043. public static function macro($name, $macro)
  5044. {
  5045. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  5046. }
  5047. /**
  5048. * Mix another object into the class.
  5049. *
  5050. * @param object $mixin
  5051. * @return void
  5052. * @static
  5053. */
  5054. public static function mixin($mixin)
  5055. {
  5056. \Illuminate\Filesystem\Filesystem::mixin($mixin);
  5057. }
  5058. /**
  5059. * Checks if macro is registered.
  5060. *
  5061. * @param string $name
  5062. * @return bool
  5063. * @static
  5064. */
  5065. public static function hasMacro($name)
  5066. {
  5067. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  5068. }
  5069. }
  5070. /**
  5071. *
  5072. *
  5073. * @see \Illuminate\Contracts\Auth\Access\Gate
  5074. */
  5075. class Gate {
  5076. /**
  5077. * Determine if a given ability has been defined.
  5078. *
  5079. * @param string|array $ability
  5080. * @return bool
  5081. * @static
  5082. */
  5083. public static function has($ability)
  5084. {
  5085. /** @var \Illuminate\Auth\Access\Gate $instance */
  5086. return $instance->has($ability);
  5087. }
  5088. /**
  5089. * Define a new ability.
  5090. *
  5091. * @param string $ability
  5092. * @param callable|string $callback
  5093. * @return \Illuminate\Auth\Access\Gate
  5094. * @throws \InvalidArgumentException
  5095. * @static
  5096. */
  5097. public static function define($ability, $callback)
  5098. {
  5099. /** @var \Illuminate\Auth\Access\Gate $instance */
  5100. return $instance->define($ability, $callback);
  5101. }
  5102. /**
  5103. * Define abilities for a resource.
  5104. *
  5105. * @param string $name
  5106. * @param string $class
  5107. * @param array $abilities
  5108. * @return \Illuminate\Auth\Access\Gate
  5109. * @static
  5110. */
  5111. public static function resource($name, $class, $abilities = null)
  5112. {
  5113. /** @var \Illuminate\Auth\Access\Gate $instance */
  5114. return $instance->resource($name, $class, $abilities);
  5115. }
  5116. /**
  5117. * Define a policy class for a given class type.
  5118. *
  5119. * @param string $class
  5120. * @param string $policy
  5121. * @return \Illuminate\Auth\Access\Gate
  5122. * @static
  5123. */
  5124. public static function policy($class, $policy)
  5125. {
  5126. /** @var \Illuminate\Auth\Access\Gate $instance */
  5127. return $instance->policy($class, $policy);
  5128. }
  5129. /**
  5130. * Register a callback to run before all Gate checks.
  5131. *
  5132. * @param callable $callback
  5133. * @return \Illuminate\Auth\Access\Gate
  5134. * @static
  5135. */
  5136. public static function before($callback)
  5137. {
  5138. /** @var \Illuminate\Auth\Access\Gate $instance */
  5139. return $instance->before($callback);
  5140. }
  5141. /**
  5142. * Register a callback to run after all Gate checks.
  5143. *
  5144. * @param callable $callback
  5145. * @return \Illuminate\Auth\Access\Gate
  5146. * @static
  5147. */
  5148. public static function after($callback)
  5149. {
  5150. /** @var \Illuminate\Auth\Access\Gate $instance */
  5151. return $instance->after($callback);
  5152. }
  5153. /**
  5154. * Determine if the given ability should be granted for the current user.
  5155. *
  5156. * @param string $ability
  5157. * @param array|mixed $arguments
  5158. * @return bool
  5159. * @static
  5160. */
  5161. public static function allows($ability, $arguments = array())
  5162. {
  5163. /** @var \Illuminate\Auth\Access\Gate $instance */
  5164. return $instance->allows($ability, $arguments);
  5165. }
  5166. /**
  5167. * Determine if the given ability should be denied for the current user.
  5168. *
  5169. * @param string $ability
  5170. * @param array|mixed $arguments
  5171. * @return bool
  5172. * @static
  5173. */
  5174. public static function denies($ability, $arguments = array())
  5175. {
  5176. /** @var \Illuminate\Auth\Access\Gate $instance */
  5177. return $instance->denies($ability, $arguments);
  5178. }
  5179. /**
  5180. * Determine if all of the given abilities should be granted for the current user.
  5181. *
  5182. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5183. * @param array|mixed $arguments
  5184. * @return bool
  5185. * @static
  5186. */
  5187. public static function check($abilities, $arguments = array())
  5188. {
  5189. /** @var \Illuminate\Auth\Access\Gate $instance */
  5190. return $instance->check($abilities, $arguments);
  5191. }
  5192. /**
  5193. * Determine if any one of the given abilities should be granted for the current user.
  5194. *
  5195. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5196. * @param array|mixed $arguments
  5197. * @return bool
  5198. * @static
  5199. */
  5200. public static function any($abilities, $arguments = array())
  5201. {
  5202. /** @var \Illuminate\Auth\Access\Gate $instance */
  5203. return $instance->any($abilities, $arguments);
  5204. }
  5205. /**
  5206. * Determine if the given ability should be granted for the current user.
  5207. *
  5208. * @param string $ability
  5209. * @param array|mixed $arguments
  5210. * @return \Illuminate\Auth\Access\Response
  5211. * @throws \Illuminate\Auth\Access\AuthorizationException
  5212. * @static
  5213. */
  5214. public static function authorize($ability, $arguments = array())
  5215. {
  5216. /** @var \Illuminate\Auth\Access\Gate $instance */
  5217. return $instance->authorize($ability, $arguments);
  5218. }
  5219. /**
  5220. * Get a policy instance for a given class.
  5221. *
  5222. * @param object|string $class
  5223. * @return mixed
  5224. * @static
  5225. */
  5226. public static function getPolicyFor($class)
  5227. {
  5228. /** @var \Illuminate\Auth\Access\Gate $instance */
  5229. return $instance->getPolicyFor($class);
  5230. }
  5231. /**
  5232. * Build a policy class instance of the given type.
  5233. *
  5234. * @param object|string $class
  5235. * @return mixed
  5236. * @static
  5237. */
  5238. public static function resolvePolicy($class)
  5239. {
  5240. /** @var \Illuminate\Auth\Access\Gate $instance */
  5241. return $instance->resolvePolicy($class);
  5242. }
  5243. /**
  5244. * Get a gate instance for the given user.
  5245. *
  5246. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  5247. * @return static
  5248. * @static
  5249. */
  5250. public static function forUser($user)
  5251. {
  5252. /** @var \Illuminate\Auth\Access\Gate $instance */
  5253. return $instance->forUser($user);
  5254. }
  5255. /**
  5256. * Get all of the defined abilities.
  5257. *
  5258. * @return array
  5259. * @static
  5260. */
  5261. public static function abilities()
  5262. {
  5263. /** @var \Illuminate\Auth\Access\Gate $instance */
  5264. return $instance->abilities();
  5265. }
  5266. /**
  5267. * Get all of the defined policies.
  5268. *
  5269. * @return array
  5270. * @static
  5271. */
  5272. public static function policies()
  5273. {
  5274. /** @var \Illuminate\Auth\Access\Gate $instance */
  5275. return $instance->policies();
  5276. }
  5277. }
  5278. /**
  5279. *
  5280. *
  5281. * @see \Illuminate\Hashing\BcryptHasher
  5282. */
  5283. class Hash {
  5284. /**
  5285. * Hash the given value.
  5286. *
  5287. * @param string $value
  5288. * @param array $options
  5289. * @return string
  5290. * @throws \RuntimeException
  5291. * @static
  5292. */
  5293. public static function make($value, $options = array())
  5294. {
  5295. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5296. return $instance->make($value, $options);
  5297. }
  5298. /**
  5299. * Check the given plain value against a hash.
  5300. *
  5301. * @param string $value
  5302. * @param string $hashedValue
  5303. * @param array $options
  5304. * @return bool
  5305. * @static
  5306. */
  5307. public static function check($value, $hashedValue, $options = array())
  5308. {
  5309. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5310. return $instance->check($value, $hashedValue, $options);
  5311. }
  5312. /**
  5313. * Check if the given hash has been hashed using the given options.
  5314. *
  5315. * @param string $hashedValue
  5316. * @param array $options
  5317. * @return bool
  5318. * @static
  5319. */
  5320. public static function needsRehash($hashedValue, $options = array())
  5321. {
  5322. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5323. return $instance->needsRehash($hashedValue, $options);
  5324. }
  5325. /**
  5326. * Set the default password work factor.
  5327. *
  5328. * @param int $rounds
  5329. * @return \Illuminate\Hashing\BcryptHasher
  5330. * @static
  5331. */
  5332. public static function setRounds($rounds)
  5333. {
  5334. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5335. return $instance->setRounds($rounds);
  5336. }
  5337. }
  5338. /**
  5339. *
  5340. *
  5341. * @see \Illuminate\Translation\Translator
  5342. */
  5343. class Lang {
  5344. /**
  5345. * Determine if a translation exists for a given locale.
  5346. *
  5347. * @param string $key
  5348. * @param string|null $locale
  5349. * @return bool
  5350. * @static
  5351. */
  5352. public static function hasForLocale($key, $locale = null)
  5353. {
  5354. /** @var \Illuminate\Translation\Translator $instance */
  5355. return $instance->hasForLocale($key, $locale);
  5356. }
  5357. /**
  5358. * Determine if a translation exists.
  5359. *
  5360. * @param string $key
  5361. * @param string|null $locale
  5362. * @param bool $fallback
  5363. * @return bool
  5364. * @static
  5365. */
  5366. public static function has($key, $locale = null, $fallback = true)
  5367. {
  5368. /** @var \Illuminate\Translation\Translator $instance */
  5369. return $instance->has($key, $locale, $fallback);
  5370. }
  5371. /**
  5372. * Get the translation for a given key.
  5373. *
  5374. * @param string $key
  5375. * @param array $replace
  5376. * @param string $locale
  5377. * @return string|array|null
  5378. * @static
  5379. */
  5380. public static function trans($key, $replace = array(), $locale = null)
  5381. {
  5382. /** @var \Illuminate\Translation\Translator $instance */
  5383. return $instance->trans($key, $replace, $locale);
  5384. }
  5385. /**
  5386. * Get the translation for the given key.
  5387. *
  5388. * @param string $key
  5389. * @param array $replace
  5390. * @param string|null $locale
  5391. * @param bool $fallback
  5392. * @return string|array|null
  5393. * @static
  5394. */
  5395. public static function get($key, $replace = array(), $locale = null, $fallback = true)
  5396. {
  5397. /** @var \Illuminate\Translation\Translator $instance */
  5398. return $instance->get($key, $replace, $locale, $fallback);
  5399. }
  5400. /**
  5401. * Get the translation for a given key from the JSON translation files.
  5402. *
  5403. * @param string $key
  5404. * @param array $replace
  5405. * @param string $locale
  5406. * @return string|array|null
  5407. * @static
  5408. */
  5409. public static function getFromJson($key, $replace = array(), $locale = null)
  5410. {
  5411. /** @var \Illuminate\Translation\Translator $instance */
  5412. return $instance->getFromJson($key, $replace, $locale);
  5413. }
  5414. /**
  5415. * Get a translation according to an integer value.
  5416. *
  5417. * @param string $key
  5418. * @param int|array|\Countable $number
  5419. * @param array $replace
  5420. * @param string $locale
  5421. * @return string
  5422. * @static
  5423. */
  5424. public static function transChoice($key, $number, $replace = array(), $locale = null)
  5425. {
  5426. /** @var \Illuminate\Translation\Translator $instance */
  5427. return $instance->transChoice($key, $number, $replace, $locale);
  5428. }
  5429. /**
  5430. * Get a translation according to an integer value.
  5431. *
  5432. * @param string $key
  5433. * @param int|array|\Countable $number
  5434. * @param array $replace
  5435. * @param string $locale
  5436. * @return string
  5437. * @static
  5438. */
  5439. public static function choice($key, $number, $replace = array(), $locale = null)
  5440. {
  5441. /** @var \Illuminate\Translation\Translator $instance */
  5442. return $instance->choice($key, $number, $replace, $locale);
  5443. }
  5444. /**
  5445. * Add translation lines to the given locale.
  5446. *
  5447. * @param array $lines
  5448. * @param string $locale
  5449. * @param string $namespace
  5450. * @return void
  5451. * @static
  5452. */
  5453. public static function addLines($lines, $locale, $namespace = '*')
  5454. {
  5455. /** @var \Illuminate\Translation\Translator $instance */
  5456. $instance->addLines($lines, $locale, $namespace);
  5457. }
  5458. /**
  5459. * Load the specified language group.
  5460. *
  5461. * @param string $namespace
  5462. * @param string $group
  5463. * @param string $locale
  5464. * @return void
  5465. * @static
  5466. */
  5467. public static function load($namespace, $group, $locale)
  5468. {
  5469. /** @var \Illuminate\Translation\Translator $instance */
  5470. $instance->load($namespace, $group, $locale);
  5471. }
  5472. /**
  5473. * Add a new namespace to the loader.
  5474. *
  5475. * @param string $namespace
  5476. * @param string $hint
  5477. * @return void
  5478. * @static
  5479. */
  5480. public static function addNamespace($namespace, $hint)
  5481. {
  5482. /** @var \Illuminate\Translation\Translator $instance */
  5483. $instance->addNamespace($namespace, $hint);
  5484. }
  5485. /**
  5486. * Add a new JSON path to the loader.
  5487. *
  5488. * @param string $path
  5489. * @return void
  5490. * @static
  5491. */
  5492. public static function addJsonPath($path)
  5493. {
  5494. /** @var \Illuminate\Translation\Translator $instance */
  5495. $instance->addJsonPath($path);
  5496. }
  5497. /**
  5498. * Parse a key into namespace, group, and item.
  5499. *
  5500. * @param string $key
  5501. * @return array
  5502. * @static
  5503. */
  5504. public static function parseKey($key)
  5505. {
  5506. /** @var \Illuminate\Translation\Translator $instance */
  5507. return $instance->parseKey($key);
  5508. }
  5509. /**
  5510. * Get the message selector instance.
  5511. *
  5512. * @return \Illuminate\Translation\MessageSelector
  5513. * @static
  5514. */
  5515. public static function getSelector()
  5516. {
  5517. /** @var \Illuminate\Translation\Translator $instance */
  5518. return $instance->getSelector();
  5519. }
  5520. /**
  5521. * Set the message selector instance.
  5522. *
  5523. * @param \Illuminate\Translation\MessageSelector $selector
  5524. * @return void
  5525. * @static
  5526. */
  5527. public static function setSelector($selector)
  5528. {
  5529. /** @var \Illuminate\Translation\Translator $instance */
  5530. $instance->setSelector($selector);
  5531. }
  5532. /**
  5533. * Get the language line loader implementation.
  5534. *
  5535. * @return \Illuminate\Contracts\Translation\Loader
  5536. * @static
  5537. */
  5538. public static function getLoader()
  5539. {
  5540. /** @var \Illuminate\Translation\Translator $instance */
  5541. return $instance->getLoader();
  5542. }
  5543. /**
  5544. * Get the default locale being used.
  5545. *
  5546. * @return string
  5547. * @static
  5548. */
  5549. public static function locale()
  5550. {
  5551. /** @var \Illuminate\Translation\Translator $instance */
  5552. return $instance->locale();
  5553. }
  5554. /**
  5555. * Get the default locale being used.
  5556. *
  5557. * @return string
  5558. * @static
  5559. */
  5560. public static function getLocale()
  5561. {
  5562. /** @var \Illuminate\Translation\Translator $instance */
  5563. return $instance->getLocale();
  5564. }
  5565. /**
  5566. * Set the default locale.
  5567. *
  5568. * @param string $locale
  5569. * @return void
  5570. * @static
  5571. */
  5572. public static function setLocale($locale)
  5573. {
  5574. /** @var \Illuminate\Translation\Translator $instance */
  5575. $instance->setLocale($locale);
  5576. }
  5577. /**
  5578. * Get the fallback locale being used.
  5579. *
  5580. * @return string
  5581. * @static
  5582. */
  5583. public static function getFallback()
  5584. {
  5585. /** @var \Illuminate\Translation\Translator $instance */
  5586. return $instance->getFallback();
  5587. }
  5588. /**
  5589. * Set the fallback locale being used.
  5590. *
  5591. * @param string $fallback
  5592. * @return void
  5593. * @static
  5594. */
  5595. public static function setFallback($fallback)
  5596. {
  5597. /** @var \Illuminate\Translation\Translator $instance */
  5598. $instance->setFallback($fallback);
  5599. }
  5600. /**
  5601. * Set the parsed value of a key.
  5602. *
  5603. * @param string $key
  5604. * @param array $parsed
  5605. * @return void
  5606. * @static
  5607. */
  5608. public static function setParsedKey($key, $parsed)
  5609. {
  5610. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  5611. /** @var \Illuminate\Translation\Translator $instance */
  5612. $instance->setParsedKey($key, $parsed);
  5613. }
  5614. /**
  5615. * Register a custom macro.
  5616. *
  5617. * @param string $name
  5618. * @param object|callable $macro
  5619. * @return void
  5620. * @static
  5621. */
  5622. public static function macro($name, $macro)
  5623. {
  5624. \Illuminate\Translation\Translator::macro($name, $macro);
  5625. }
  5626. /**
  5627. * Mix another object into the class.
  5628. *
  5629. * @param object $mixin
  5630. * @return void
  5631. * @static
  5632. */
  5633. public static function mixin($mixin)
  5634. {
  5635. \Illuminate\Translation\Translator::mixin($mixin);
  5636. }
  5637. /**
  5638. * Checks if macro is registered.
  5639. *
  5640. * @param string $name
  5641. * @return bool
  5642. * @static
  5643. */
  5644. public static function hasMacro($name)
  5645. {
  5646. return \Illuminate\Translation\Translator::hasMacro($name);
  5647. }
  5648. }
  5649. /**
  5650. *
  5651. *
  5652. * @see \Illuminate\Log\Writer
  5653. */
  5654. class Log {
  5655. /**
  5656. * Log an emergency message to the logs.
  5657. *
  5658. * @param string $message
  5659. * @param array $context
  5660. * @return void
  5661. * @static
  5662. */
  5663. public static function emergency($message, $context = array())
  5664. {
  5665. /** @var \Illuminate\Log\Writer $instance */
  5666. $instance->emergency($message, $context);
  5667. }
  5668. /**
  5669. * Log an alert message to the logs.
  5670. *
  5671. * @param string $message
  5672. * @param array $context
  5673. * @return void
  5674. * @static
  5675. */
  5676. public static function alert($message, $context = array())
  5677. {
  5678. /** @var \Illuminate\Log\Writer $instance */
  5679. $instance->alert($message, $context);
  5680. }
  5681. /**
  5682. * Log a critical message to the logs.
  5683. *
  5684. * @param string $message
  5685. * @param array $context
  5686. * @return void
  5687. * @static
  5688. */
  5689. public static function critical($message, $context = array())
  5690. {
  5691. /** @var \Illuminate\Log\Writer $instance */
  5692. $instance->critical($message, $context);
  5693. }
  5694. /**
  5695. * Log an error message to the logs.
  5696. *
  5697. * @param string $message
  5698. * @param array $context
  5699. * @return void
  5700. * @static
  5701. */
  5702. public static function error($message, $context = array())
  5703. {
  5704. /** @var \Illuminate\Log\Writer $instance */
  5705. $instance->error($message, $context);
  5706. }
  5707. /**
  5708. * Log a warning message to the logs.
  5709. *
  5710. * @param string $message
  5711. * @param array $context
  5712. * @return void
  5713. * @static
  5714. */
  5715. public static function warning($message, $context = array())
  5716. {
  5717. /** @var \Illuminate\Log\Writer $instance */
  5718. $instance->warning($message, $context);
  5719. }
  5720. /**
  5721. * Log a notice to the logs.
  5722. *
  5723. * @param string $message
  5724. * @param array $context
  5725. * @return void
  5726. * @static
  5727. */
  5728. public static function notice($message, $context = array())
  5729. {
  5730. /** @var \Illuminate\Log\Writer $instance */
  5731. $instance->notice($message, $context);
  5732. }
  5733. /**
  5734. * Log an informational message to the logs.
  5735. *
  5736. * @param string $message
  5737. * @param array $context
  5738. * @return void
  5739. * @static
  5740. */
  5741. public static function info($message, $context = array())
  5742. {
  5743. /** @var \Illuminate\Log\Writer $instance */
  5744. $instance->info($message, $context);
  5745. }
  5746. /**
  5747. * Log a debug message to the logs.
  5748. *
  5749. * @param string $message
  5750. * @param array $context
  5751. * @return void
  5752. * @static
  5753. */
  5754. public static function debug($message, $context = array())
  5755. {
  5756. /** @var \Illuminate\Log\Writer $instance */
  5757. $instance->debug($message, $context);
  5758. }
  5759. /**
  5760. * Log a message to the logs.
  5761. *
  5762. * @param string $level
  5763. * @param string $message
  5764. * @param array $context
  5765. * @return void
  5766. * @static
  5767. */
  5768. public static function log($level, $message, $context = array())
  5769. {
  5770. /** @var \Illuminate\Log\Writer $instance */
  5771. $instance->log($level, $message, $context);
  5772. }
  5773. /**
  5774. * Dynamically pass log calls into the writer.
  5775. *
  5776. * @param string $level
  5777. * @param string $message
  5778. * @param array $context
  5779. * @return void
  5780. * @static
  5781. */
  5782. public static function write($level, $message, $context = array())
  5783. {
  5784. /** @var \Illuminate\Log\Writer $instance */
  5785. $instance->write($level, $message, $context);
  5786. }
  5787. /**
  5788. * Register a file log handler.
  5789. *
  5790. * @param string $path
  5791. * @param string $level
  5792. * @return void
  5793. * @static
  5794. */
  5795. public static function useFiles($path, $level = 'debug')
  5796. {
  5797. /** @var \Illuminate\Log\Writer $instance */
  5798. $instance->useFiles($path, $level);
  5799. }
  5800. /**
  5801. * Register a daily file log handler.
  5802. *
  5803. * @param string $path
  5804. * @param int $days
  5805. * @param string $level
  5806. * @return void
  5807. * @static
  5808. */
  5809. public static function useDailyFiles($path, $days = 0, $level = 'debug')
  5810. {
  5811. /** @var \Illuminate\Log\Writer $instance */
  5812. $instance->useDailyFiles($path, $days, $level);
  5813. }
  5814. /**
  5815. * Register a Syslog handler.
  5816. *
  5817. * @param string $name
  5818. * @param string $level
  5819. * @param mixed $facility
  5820. * @return \Psr\Log\LoggerInterface
  5821. * @static
  5822. */
  5823. public static function useSyslog($name = 'laravel', $level = 'debug', $facility = 8)
  5824. {
  5825. /** @var \Illuminate\Log\Writer $instance */
  5826. return $instance->useSyslog($name, $level, $facility);
  5827. }
  5828. /**
  5829. * Register an error_log handler.
  5830. *
  5831. * @param string $level
  5832. * @param int $messageType
  5833. * @return void
  5834. * @static
  5835. */
  5836. public static function useErrorLog($level = 'debug', $messageType = 0)
  5837. {
  5838. /** @var \Illuminate\Log\Writer $instance */
  5839. $instance->useErrorLog($level, $messageType);
  5840. }
  5841. /**
  5842. * Register a new callback handler for when a log event is triggered.
  5843. *
  5844. * @param \Closure $callback
  5845. * @return void
  5846. * @throws \RuntimeException
  5847. * @static
  5848. */
  5849. public static function listen($callback)
  5850. {
  5851. /** @var \Illuminate\Log\Writer $instance */
  5852. $instance->listen($callback);
  5853. }
  5854. /**
  5855. * Get the underlying Monolog instance.
  5856. *
  5857. * @return \Monolog\Logger
  5858. * @static
  5859. */
  5860. public static function getMonolog()
  5861. {
  5862. /** @var \Illuminate\Log\Writer $instance */
  5863. return $instance->getMonolog();
  5864. }
  5865. /**
  5866. * Get the event dispatcher instance.
  5867. *
  5868. * @return \Illuminate\Contracts\Events\Dispatcher
  5869. * @static
  5870. */
  5871. public static function getEventDispatcher()
  5872. {
  5873. /** @var \Illuminate\Log\Writer $instance */
  5874. return $instance->getEventDispatcher();
  5875. }
  5876. /**
  5877. * Set the event dispatcher instance.
  5878. *
  5879. * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher
  5880. * @return void
  5881. * @static
  5882. */
  5883. public static function setEventDispatcher($dispatcher)
  5884. {
  5885. /** @var \Illuminate\Log\Writer $instance */
  5886. $instance->setEventDispatcher($dispatcher);
  5887. }
  5888. }
  5889. /**
  5890. *
  5891. *
  5892. * @see \Illuminate\Mail\Mailer
  5893. */
  5894. class Mail {
  5895. /**
  5896. * Set the global from address and name.
  5897. *
  5898. * @param string $address
  5899. * @param string|null $name
  5900. * @return void
  5901. * @static
  5902. */
  5903. public static function alwaysFrom($address, $name = null)
  5904. {
  5905. /** @var \Illuminate\Mail\Mailer $instance */
  5906. $instance->alwaysFrom($address, $name);
  5907. }
  5908. /**
  5909. * Set the global reply-to address and name.
  5910. *
  5911. * @param string $address
  5912. * @param string|null $name
  5913. * @return void
  5914. * @static
  5915. */
  5916. public static function alwaysReplyTo($address, $name = null)
  5917. {
  5918. /** @var \Illuminate\Mail\Mailer $instance */
  5919. $instance->alwaysReplyTo($address, $name);
  5920. }
  5921. /**
  5922. * Set the global to address and name.
  5923. *
  5924. * @param string $address
  5925. * @param string|null $name
  5926. * @return void
  5927. * @static
  5928. */
  5929. public static function alwaysTo($address, $name = null)
  5930. {
  5931. /** @var \Illuminate\Mail\Mailer $instance */
  5932. $instance->alwaysTo($address, $name);
  5933. }
  5934. /**
  5935. * Begin the process of mailing a mailable class instance.
  5936. *
  5937. * @param mixed $users
  5938. * @return \Illuminate\Mail\PendingMail
  5939. * @static
  5940. */
  5941. public static function to($users)
  5942. {
  5943. /** @var \Illuminate\Mail\Mailer $instance */
  5944. return $instance->to($users);
  5945. }
  5946. /**
  5947. * Begin the process of mailing a mailable class instance.
  5948. *
  5949. * @param mixed $users
  5950. * @return \Illuminate\Mail\PendingMail
  5951. * @static
  5952. */
  5953. public static function bcc($users)
  5954. {
  5955. /** @var \Illuminate\Mail\Mailer $instance */
  5956. return $instance->bcc($users);
  5957. }
  5958. /**
  5959. * Send a new message when only a raw text part.
  5960. *
  5961. * @param string $text
  5962. * @param mixed $callback
  5963. * @return void
  5964. * @static
  5965. */
  5966. public static function raw($text, $callback)
  5967. {
  5968. /** @var \Illuminate\Mail\Mailer $instance */
  5969. $instance->raw($text, $callback);
  5970. }
  5971. /**
  5972. * Send a new message when only a plain part.
  5973. *
  5974. * @param string $view
  5975. * @param array $data
  5976. * @param mixed $callback
  5977. * @return void
  5978. * @static
  5979. */
  5980. public static function plain($view, $data, $callback)
  5981. {
  5982. /** @var \Illuminate\Mail\Mailer $instance */
  5983. $instance->plain($view, $data, $callback);
  5984. }
  5985. /**
  5986. * Render the given message as a view.
  5987. *
  5988. * @param string|array $view
  5989. * @param array $data
  5990. * @return string
  5991. * @static
  5992. */
  5993. public static function render($view, $data = array())
  5994. {
  5995. /** @var \Illuminate\Mail\Mailer $instance */
  5996. return $instance->render($view, $data);
  5997. }
  5998. /**
  5999. * Send a new message using a view.
  6000. *
  6001. * @param string|array|\Illuminate\Mail\MailableContract $view
  6002. * @param array $data
  6003. * @param \Closure|string $callback
  6004. * @return void
  6005. * @static
  6006. */
  6007. public static function send($view, $data = array(), $callback = null)
  6008. {
  6009. /** @var \Illuminate\Mail\Mailer $instance */
  6010. $instance->send($view, $data, $callback);
  6011. }
  6012. /**
  6013. * Queue a new e-mail message for sending.
  6014. *
  6015. * @param string|array|\Illuminate\Mail\MailableContract $view
  6016. * @param string|null $queue
  6017. * @return mixed
  6018. * @static
  6019. */
  6020. public static function queue($view, $queue = null)
  6021. {
  6022. /** @var \Illuminate\Mail\Mailer $instance */
  6023. return $instance->queue($view, $queue);
  6024. }
  6025. /**
  6026. * Queue a new e-mail message for sending on the given queue.
  6027. *
  6028. * @param string $queue
  6029. * @param string|array $view
  6030. * @return mixed
  6031. * @static
  6032. */
  6033. public static function onQueue($queue, $view)
  6034. {
  6035. /** @var \Illuminate\Mail\Mailer $instance */
  6036. return $instance->onQueue($queue, $view);
  6037. }
  6038. /**
  6039. * Queue a new e-mail message for sending on the given queue.
  6040. *
  6041. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  6042. *
  6043. * @param string $queue
  6044. * @param string|array $view
  6045. * @return mixed
  6046. * @static
  6047. */
  6048. public static function queueOn($queue, $view)
  6049. {
  6050. /** @var \Illuminate\Mail\Mailer $instance */
  6051. return $instance->queueOn($queue, $view);
  6052. }
  6053. /**
  6054. * Queue a new e-mail message for sending after (n) seconds.
  6055. *
  6056. * @param \DateTimeInterface|\DateInterval|int $delay
  6057. * @param string|array|\Illuminate\Mail\MailableContract $view
  6058. * @param string|null $queue
  6059. * @return mixed
  6060. * @static
  6061. */
  6062. public static function later($delay, $view, $queue = null)
  6063. {
  6064. /** @var \Illuminate\Mail\Mailer $instance */
  6065. return $instance->later($delay, $view, $queue);
  6066. }
  6067. /**
  6068. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  6069. *
  6070. * @param string $queue
  6071. * @param \DateTimeInterface|\DateInterval|int $delay
  6072. * @param string|array $view
  6073. * @return mixed
  6074. * @static
  6075. */
  6076. public static function laterOn($queue, $delay, $view)
  6077. {
  6078. /** @var \Illuminate\Mail\Mailer $instance */
  6079. return $instance->laterOn($queue, $delay, $view);
  6080. }
  6081. /**
  6082. * Get the view factory instance.
  6083. *
  6084. * @return \Illuminate\Contracts\View\Factory
  6085. * @static
  6086. */
  6087. public static function getViewFactory()
  6088. {
  6089. /** @var \Illuminate\Mail\Mailer $instance */
  6090. return $instance->getViewFactory();
  6091. }
  6092. /**
  6093. * Get the Swift Mailer instance.
  6094. *
  6095. * @return \Swift_Mailer
  6096. * @static
  6097. */
  6098. public static function getSwiftMailer()
  6099. {
  6100. /** @var \Illuminate\Mail\Mailer $instance */
  6101. return $instance->getSwiftMailer();
  6102. }
  6103. /**
  6104. * Get the array of failed recipients.
  6105. *
  6106. * @return array
  6107. * @static
  6108. */
  6109. public static function failures()
  6110. {
  6111. /** @var \Illuminate\Mail\Mailer $instance */
  6112. return $instance->failures();
  6113. }
  6114. /**
  6115. * Set the Swift Mailer instance.
  6116. *
  6117. * @param \Swift_Mailer $swift
  6118. * @return void
  6119. * @static
  6120. */
  6121. public static function setSwiftMailer($swift)
  6122. {
  6123. /** @var \Illuminate\Mail\Mailer $instance */
  6124. $instance->setSwiftMailer($swift);
  6125. }
  6126. /**
  6127. * Set the queue manager instance.
  6128. *
  6129. * @param \Illuminate\Contracts\Queue\Factory $queue
  6130. * @return \Illuminate\Mail\Mailer
  6131. * @static
  6132. */
  6133. public static function setQueue($queue)
  6134. {
  6135. /** @var \Illuminate\Mail\Mailer $instance */
  6136. return $instance->setQueue($queue);
  6137. }
  6138. /**
  6139. * Register a custom macro.
  6140. *
  6141. * @param string $name
  6142. * @param object|callable $macro
  6143. * @return void
  6144. * @static
  6145. */
  6146. public static function macro($name, $macro)
  6147. {
  6148. \Illuminate\Mail\Mailer::macro($name, $macro);
  6149. }
  6150. /**
  6151. * Mix another object into the class.
  6152. *
  6153. * @param object $mixin
  6154. * @return void
  6155. * @static
  6156. */
  6157. public static function mixin($mixin)
  6158. {
  6159. \Illuminate\Mail\Mailer::mixin($mixin);
  6160. }
  6161. /**
  6162. * Checks if macro is registered.
  6163. *
  6164. * @param string $name
  6165. * @return bool
  6166. * @static
  6167. */
  6168. public static function hasMacro($name)
  6169. {
  6170. return \Illuminate\Mail\Mailer::hasMacro($name);
  6171. }
  6172. /**
  6173. * Assert if a mailable was sent based on a truth-test callback.
  6174. *
  6175. * @param string $mailable
  6176. * @param callable|int|null $callback
  6177. * @return void
  6178. * @static
  6179. */
  6180. public static function assertSent($mailable, $callback = null)
  6181. {
  6182. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6183. $instance->assertSent($mailable, $callback);
  6184. }
  6185. /**
  6186. * Determine if a mailable was not sent based on a truth-test callback.
  6187. *
  6188. * @param string $mailable
  6189. * @param callable|null $callback
  6190. * @return void
  6191. * @static
  6192. */
  6193. public static function assertNotSent($mailable, $callback = null)
  6194. {
  6195. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6196. $instance->assertNotSent($mailable, $callback);
  6197. }
  6198. /**
  6199. * Assert that no mailables were sent.
  6200. *
  6201. * @return void
  6202. * @static
  6203. */
  6204. public static function assertNothingSent()
  6205. {
  6206. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6207. $instance->assertNothingSent();
  6208. }
  6209. /**
  6210. * Assert if a mailable was queued based on a truth-test callback.
  6211. *
  6212. * @param string $mailable
  6213. * @param callable|int|null $callback
  6214. * @return void
  6215. * @static
  6216. */
  6217. public static function assertQueued($mailable, $callback = null)
  6218. {
  6219. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6220. $instance->assertQueued($mailable, $callback);
  6221. }
  6222. /**
  6223. * Determine if a mailable was not queued based on a truth-test callback.
  6224. *
  6225. * @param string $mailable
  6226. * @param callable|null $callback
  6227. * @return void
  6228. * @static
  6229. */
  6230. public static function assertNotQueued($mailable, $callback = null)
  6231. {
  6232. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6233. $instance->assertNotQueued($mailable, $callback);
  6234. }
  6235. /**
  6236. * Assert that no mailables were queued.
  6237. *
  6238. * @return void
  6239. * @static
  6240. */
  6241. public static function assertNothingQueued()
  6242. {
  6243. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6244. $instance->assertNothingQueued();
  6245. }
  6246. /**
  6247. * Get all of the mailables matching a truth-test callback.
  6248. *
  6249. * @param string $mailable
  6250. * @param callable|null $callback
  6251. * @return \Illuminate\Support\Collection
  6252. * @static
  6253. */
  6254. public static function sent($mailable, $callback = null)
  6255. {
  6256. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6257. return $instance->sent($mailable, $callback);
  6258. }
  6259. /**
  6260. * Determine if the given mailable has been sent.
  6261. *
  6262. * @param string $mailable
  6263. * @return bool
  6264. * @static
  6265. */
  6266. public static function hasSent($mailable)
  6267. {
  6268. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6269. return $instance->hasSent($mailable);
  6270. }
  6271. /**
  6272. * Get all of the queued mailables matching a truth-test callback.
  6273. *
  6274. * @param string $mailable
  6275. * @param callable|null $callback
  6276. * @return \Illuminate\Support\Collection
  6277. * @static
  6278. */
  6279. public static function queued($mailable, $callback = null)
  6280. {
  6281. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6282. return $instance->queued($mailable, $callback);
  6283. }
  6284. /**
  6285. * Determine if the given mailable has been queued.
  6286. *
  6287. * @param string $mailable
  6288. * @return bool
  6289. * @static
  6290. */
  6291. public static function hasQueued($mailable)
  6292. {
  6293. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6294. return $instance->hasQueued($mailable);
  6295. }
  6296. }
  6297. /**
  6298. *
  6299. *
  6300. * @see \Illuminate\Notifications\ChannelManager
  6301. */
  6302. class Notification {
  6303. /**
  6304. * Send the given notification to the given notifiable entities.
  6305. *
  6306. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6307. * @param mixed $notification
  6308. * @return void
  6309. * @static
  6310. */
  6311. public static function send($notifiables, $notification)
  6312. {
  6313. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6314. $instance->send($notifiables, $notification);
  6315. }
  6316. /**
  6317. * Send the given notification immediately.
  6318. *
  6319. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6320. * @param mixed $notification
  6321. * @param array|null $channels
  6322. * @return void
  6323. * @static
  6324. */
  6325. public static function sendNow($notifiables, $notification, $channels = null)
  6326. {
  6327. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6328. $instance->sendNow($notifiables, $notification, $channels);
  6329. }
  6330. /**
  6331. * Get a channel instance.
  6332. *
  6333. * @param string|null $name
  6334. * @return mixed
  6335. * @static
  6336. */
  6337. public static function channel($name = null)
  6338. {
  6339. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6340. return $instance->channel($name);
  6341. }
  6342. /**
  6343. * Get the default channel driver name.
  6344. *
  6345. * @return string
  6346. * @static
  6347. */
  6348. public static function getDefaultDriver()
  6349. {
  6350. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6351. return $instance->getDefaultDriver();
  6352. }
  6353. /**
  6354. * Get the default channel driver name.
  6355. *
  6356. * @return string
  6357. * @static
  6358. */
  6359. public static function deliversVia()
  6360. {
  6361. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6362. return $instance->deliversVia();
  6363. }
  6364. /**
  6365. * Set the default channel driver name.
  6366. *
  6367. * @param string $channel
  6368. * @return void
  6369. * @static
  6370. */
  6371. public static function deliverVia($channel)
  6372. {
  6373. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6374. $instance->deliverVia($channel);
  6375. }
  6376. /**
  6377. * Get a driver instance.
  6378. *
  6379. * @param string $driver
  6380. * @return mixed
  6381. * @static
  6382. */
  6383. public static function driver($driver = null)
  6384. {
  6385. //Method inherited from \Illuminate\Support\Manager
  6386. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6387. return $instance->driver($driver);
  6388. }
  6389. /**
  6390. * Register a custom driver creator Closure.
  6391. *
  6392. * @param string $driver
  6393. * @param \Closure $callback
  6394. * @return \Illuminate\Notifications\ChannelManager
  6395. * @static
  6396. */
  6397. public static function extend($driver, $callback)
  6398. {
  6399. //Method inherited from \Illuminate\Support\Manager
  6400. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6401. return $instance->extend($driver, $callback);
  6402. }
  6403. /**
  6404. * Get all of the created "drivers".
  6405. *
  6406. * @return array
  6407. * @static
  6408. */
  6409. public static function getDrivers()
  6410. {
  6411. //Method inherited from \Illuminate\Support\Manager
  6412. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6413. return $instance->getDrivers();
  6414. }
  6415. /**
  6416. * Assert if a notification was sent based on a truth-test callback.
  6417. *
  6418. * @param mixed $notifiable
  6419. * @param string $notification
  6420. * @param callable|null $callback
  6421. * @return void
  6422. * @static
  6423. */
  6424. public static function assertSentTo($notifiable, $notification, $callback = null)
  6425. {
  6426. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6427. $instance->assertSentTo($notifiable, $notification, $callback);
  6428. }
  6429. /**
  6430. * Assert if a notification was sent a number of times.
  6431. *
  6432. * @param mixed $notifiable
  6433. * @param string $notification
  6434. * @param int $times
  6435. * @return void
  6436. * @static
  6437. */
  6438. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  6439. {
  6440. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6441. $instance->assertSentToTimes($notifiable, $notification, $times);
  6442. }
  6443. /**
  6444. * Determine if a notification was sent based on a truth-test callback.
  6445. *
  6446. * @param mixed $notifiable
  6447. * @param string $notification
  6448. * @param callable|null $callback
  6449. * @return void
  6450. * @static
  6451. */
  6452. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  6453. {
  6454. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6455. $instance->assertNotSentTo($notifiable, $notification, $callback);
  6456. }
  6457. /**
  6458. * Assert that no notifications were sent.
  6459. *
  6460. * @return void
  6461. * @static
  6462. */
  6463. public static function assertNothingSent()
  6464. {
  6465. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6466. $instance->assertNothingSent();
  6467. }
  6468. /**
  6469. * Get all of the notifications matching a truth-test callback.
  6470. *
  6471. * @param mixed $notifiable
  6472. * @param string $notification
  6473. * @param callable|null $callback
  6474. * @return \Illuminate\Support\Collection
  6475. * @static
  6476. */
  6477. public static function sent($notifiable, $notification, $callback = null)
  6478. {
  6479. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6480. return $instance->sent($notifiable, $notification, $callback);
  6481. }
  6482. /**
  6483. * Determine if there are more notifications left to inspect.
  6484. *
  6485. * @param mixed $notifiable
  6486. * @param string $notification
  6487. * @return bool
  6488. * @static
  6489. */
  6490. public static function hasSent($notifiable, $notification)
  6491. {
  6492. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6493. return $instance->hasSent($notifiable, $notification);
  6494. }
  6495. }
  6496. /**
  6497. *
  6498. *
  6499. * @see \Illuminate\Auth\Passwords\PasswordBroker
  6500. */
  6501. class Password {
  6502. /**
  6503. * Attempt to get the broker from the local cache.
  6504. *
  6505. * @param string $name
  6506. * @return \Illuminate\Contracts\Auth\PasswordBroker
  6507. * @static
  6508. */
  6509. public static function broker($name = null)
  6510. {
  6511. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6512. return $instance->broker($name);
  6513. }
  6514. /**
  6515. * Get the default password broker name.
  6516. *
  6517. * @return string
  6518. * @static
  6519. */
  6520. public static function getDefaultDriver()
  6521. {
  6522. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6523. return $instance->getDefaultDriver();
  6524. }
  6525. /**
  6526. * Set the default password broker name.
  6527. *
  6528. * @param string $name
  6529. * @return void
  6530. * @static
  6531. */
  6532. public static function setDefaultDriver($name)
  6533. {
  6534. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6535. $instance->setDefaultDriver($name);
  6536. }
  6537. }
  6538. /**
  6539. *
  6540. *
  6541. * @see \Illuminate\Queue\QueueManager
  6542. * @see \Illuminate\Queue\Queue
  6543. */
  6544. class Queue {
  6545. /**
  6546. * Register an event listener for the before job event.
  6547. *
  6548. * @param mixed $callback
  6549. * @return void
  6550. * @static
  6551. */
  6552. public static function before($callback)
  6553. {
  6554. /** @var \Illuminate\Queue\QueueManager $instance */
  6555. $instance->before($callback);
  6556. }
  6557. /**
  6558. * Register an event listener for the after job event.
  6559. *
  6560. * @param mixed $callback
  6561. * @return void
  6562. * @static
  6563. */
  6564. public static function after($callback)
  6565. {
  6566. /** @var \Illuminate\Queue\QueueManager $instance */
  6567. $instance->after($callback);
  6568. }
  6569. /**
  6570. * Register an event listener for the exception occurred job event.
  6571. *
  6572. * @param mixed $callback
  6573. * @return void
  6574. * @static
  6575. */
  6576. public static function exceptionOccurred($callback)
  6577. {
  6578. /** @var \Illuminate\Queue\QueueManager $instance */
  6579. $instance->exceptionOccurred($callback);
  6580. }
  6581. /**
  6582. * Register an event listener for the daemon queue loop.
  6583. *
  6584. * @param mixed $callback
  6585. * @return void
  6586. * @static
  6587. */
  6588. public static function looping($callback)
  6589. {
  6590. /** @var \Illuminate\Queue\QueueManager $instance */
  6591. $instance->looping($callback);
  6592. }
  6593. /**
  6594. * Register an event listener for the failed job event.
  6595. *
  6596. * @param mixed $callback
  6597. * @return void
  6598. * @static
  6599. */
  6600. public static function failing($callback)
  6601. {
  6602. /** @var \Illuminate\Queue\QueueManager $instance */
  6603. $instance->failing($callback);
  6604. }
  6605. /**
  6606. * Register an event listener for the daemon queue stopping.
  6607. *
  6608. * @param mixed $callback
  6609. * @return void
  6610. * @static
  6611. */
  6612. public static function stopping($callback)
  6613. {
  6614. /** @var \Illuminate\Queue\QueueManager $instance */
  6615. $instance->stopping($callback);
  6616. }
  6617. /**
  6618. * Determine if the driver is connected.
  6619. *
  6620. * @param string $name
  6621. * @return bool
  6622. * @static
  6623. */
  6624. public static function connected($name = null)
  6625. {
  6626. /** @var \Illuminate\Queue\QueueManager $instance */
  6627. return $instance->connected($name);
  6628. }
  6629. /**
  6630. * Resolve a queue connection instance.
  6631. *
  6632. * @param string $name
  6633. * @return \Illuminate\Contracts\Queue\Queue
  6634. * @static
  6635. */
  6636. public static function connection($name = null)
  6637. {
  6638. /** @var \Illuminate\Queue\QueueManager $instance */
  6639. return $instance->connection($name);
  6640. }
  6641. /**
  6642. * Add a queue connection resolver.
  6643. *
  6644. * @param string $driver
  6645. * @param \Closure $resolver
  6646. * @return void
  6647. * @static
  6648. */
  6649. public static function extend($driver, $resolver)
  6650. {
  6651. /** @var \Illuminate\Queue\QueueManager $instance */
  6652. $instance->extend($driver, $resolver);
  6653. }
  6654. /**
  6655. * Add a queue connection resolver.
  6656. *
  6657. * @param string $driver
  6658. * @param \Closure $resolver
  6659. * @return void
  6660. * @static
  6661. */
  6662. public static function addConnector($driver, $resolver)
  6663. {
  6664. /** @var \Illuminate\Queue\QueueManager $instance */
  6665. $instance->addConnector($driver, $resolver);
  6666. }
  6667. /**
  6668. * Get the name of the default queue connection.
  6669. *
  6670. * @return string
  6671. * @static
  6672. */
  6673. public static function getDefaultDriver()
  6674. {
  6675. /** @var \Illuminate\Queue\QueueManager $instance */
  6676. return $instance->getDefaultDriver();
  6677. }
  6678. /**
  6679. * Set the name of the default queue connection.
  6680. *
  6681. * @param string $name
  6682. * @return void
  6683. * @static
  6684. */
  6685. public static function setDefaultDriver($name)
  6686. {
  6687. /** @var \Illuminate\Queue\QueueManager $instance */
  6688. $instance->setDefaultDriver($name);
  6689. }
  6690. /**
  6691. * Get the full name for the given connection.
  6692. *
  6693. * @param string $connection
  6694. * @return string
  6695. * @static
  6696. */
  6697. public static function getName($connection = null)
  6698. {
  6699. /** @var \Illuminate\Queue\QueueManager $instance */
  6700. return $instance->getName($connection);
  6701. }
  6702. /**
  6703. * Determine if the application is in maintenance mode.
  6704. *
  6705. * @return bool
  6706. * @static
  6707. */
  6708. public static function isDownForMaintenance()
  6709. {
  6710. /** @var \Illuminate\Queue\QueueManager $instance */
  6711. return $instance->isDownForMaintenance();
  6712. }
  6713. /**
  6714. * Assert if a job was pushed based on a truth-test callback.
  6715. *
  6716. * @param string $job
  6717. * @param callable|int|null $callback
  6718. * @return void
  6719. * @static
  6720. */
  6721. public static function assertPushed($job, $callback = null)
  6722. {
  6723. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6724. $instance->assertPushed($job, $callback);
  6725. }
  6726. /**
  6727. * Assert if a job was pushed based on a truth-test callback.
  6728. *
  6729. * @param string $queue
  6730. * @param string $job
  6731. * @param callable|null $callback
  6732. * @return void
  6733. * @static
  6734. */
  6735. public static function assertPushedOn($queue, $job, $callback = null)
  6736. {
  6737. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6738. $instance->assertPushedOn($queue, $job, $callback);
  6739. }
  6740. /**
  6741. * Determine if a job was pushed based on a truth-test callback.
  6742. *
  6743. * @param string $job
  6744. * @param callable|null $callback
  6745. * @return void
  6746. * @static
  6747. */
  6748. public static function assertNotPushed($job, $callback = null)
  6749. {
  6750. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6751. $instance->assertNotPushed($job, $callback);
  6752. }
  6753. /**
  6754. * Assert that no jobs were pushed.
  6755. *
  6756. * @return void
  6757. * @static
  6758. */
  6759. public static function assertNothingPushed()
  6760. {
  6761. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6762. $instance->assertNothingPushed();
  6763. }
  6764. /**
  6765. * Get all of the jobs matching a truth-test callback.
  6766. *
  6767. * @param string $job
  6768. * @param callable|null $callback
  6769. * @return \Illuminate\Support\Collection
  6770. * @static
  6771. */
  6772. public static function pushed($job, $callback = null)
  6773. {
  6774. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6775. return $instance->pushed($job, $callback);
  6776. }
  6777. /**
  6778. * Determine if there are any stored jobs for a given class.
  6779. *
  6780. * @param string $job
  6781. * @return bool
  6782. * @static
  6783. */
  6784. public static function hasPushed($job)
  6785. {
  6786. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6787. return $instance->hasPushed($job);
  6788. }
  6789. /**
  6790. * Get the size of the queue.
  6791. *
  6792. * @param string $queue
  6793. * @return int
  6794. * @static
  6795. */
  6796. public static function size($queue = null)
  6797. {
  6798. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6799. return $instance->size($queue);
  6800. }
  6801. /**
  6802. * Push a new job onto the queue.
  6803. *
  6804. * @param string $job
  6805. * @param mixed $data
  6806. * @param string $queue
  6807. * @return mixed
  6808. * @static
  6809. */
  6810. public static function push($job, $data = '', $queue = null)
  6811. {
  6812. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6813. return $instance->push($job, $data, $queue);
  6814. }
  6815. /**
  6816. * Push a raw payload onto the queue.
  6817. *
  6818. * @param string $payload
  6819. * @param string $queue
  6820. * @param array $options
  6821. * @return mixed
  6822. * @static
  6823. */
  6824. public static function pushRaw($payload, $queue = null, $options = array())
  6825. {
  6826. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6827. return $instance->pushRaw($payload, $queue, $options);
  6828. }
  6829. /**
  6830. * Push a new job onto the queue after a delay.
  6831. *
  6832. * @param \DateTime|int $delay
  6833. * @param string $job
  6834. * @param mixed $data
  6835. * @param string $queue
  6836. * @return mixed
  6837. * @static
  6838. */
  6839. public static function later($delay, $job, $data = '', $queue = null)
  6840. {
  6841. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6842. return $instance->later($delay, $job, $data, $queue);
  6843. }
  6844. /**
  6845. * Push a new job onto the queue.
  6846. *
  6847. * @param string $queue
  6848. * @param string $job
  6849. * @param mixed $data
  6850. * @return mixed
  6851. * @static
  6852. */
  6853. public static function pushOn($queue, $job, $data = '')
  6854. {
  6855. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6856. return $instance->pushOn($queue, $job, $data);
  6857. }
  6858. /**
  6859. * Push a new job onto the queue after a delay.
  6860. *
  6861. * @param string $queue
  6862. * @param \DateTime|int $delay
  6863. * @param string $job
  6864. * @param mixed $data
  6865. * @return mixed
  6866. * @static
  6867. */
  6868. public static function laterOn($queue, $delay, $job, $data = '')
  6869. {
  6870. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6871. return $instance->laterOn($queue, $delay, $job, $data);
  6872. }
  6873. /**
  6874. * Pop the next job off of the queue.
  6875. *
  6876. * @param string $queue
  6877. * @return \Illuminate\Contracts\Queue\Job|null
  6878. * @static
  6879. */
  6880. public static function pop($queue = null)
  6881. {
  6882. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6883. return $instance->pop($queue);
  6884. }
  6885. /**
  6886. * Push an array of jobs onto the queue.
  6887. *
  6888. * @param array $jobs
  6889. * @param mixed $data
  6890. * @param string $queue
  6891. * @return mixed
  6892. * @static
  6893. */
  6894. public static function bulk($jobs, $data = '', $queue = null)
  6895. {
  6896. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6897. return $instance->bulk($jobs, $data, $queue);
  6898. }
  6899. /**
  6900. * Get the connection name for the queue.
  6901. *
  6902. * @return string
  6903. * @static
  6904. */
  6905. public static function getConnectionName()
  6906. {
  6907. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6908. return $instance->getConnectionName();
  6909. }
  6910. /**
  6911. * Set the connection name for the queue.
  6912. *
  6913. * @param string $name
  6914. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  6915. * @static
  6916. */
  6917. public static function setConnectionName($name)
  6918. {
  6919. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6920. return $instance->setConnectionName($name);
  6921. }
  6922. /**
  6923. * Get the expiration timestamp for an object-based queue handler.
  6924. *
  6925. * @param mixed $job
  6926. * @return mixed
  6927. * @static
  6928. */
  6929. public static function getJobExpiration($job)
  6930. {
  6931. //Method inherited from \Illuminate\Queue\Queue
  6932. /** @var \Illuminate\Queue\SyncQueue $instance */
  6933. return $instance->getJobExpiration($job);
  6934. }
  6935. /**
  6936. * Set the IoC container instance.
  6937. *
  6938. * @param \Illuminate\Container\Container $container
  6939. * @return void
  6940. * @static
  6941. */
  6942. public static function setContainer($container)
  6943. {
  6944. //Method inherited from \Illuminate\Queue\Queue
  6945. /** @var \Illuminate\Queue\SyncQueue $instance */
  6946. $instance->setContainer($container);
  6947. }
  6948. }
  6949. /**
  6950. *
  6951. *
  6952. * @see \Illuminate\Routing\Redirector
  6953. */
  6954. class Redirect {
  6955. /**
  6956. * Create a new redirect response to the "home" route.
  6957. *
  6958. * @param int $status
  6959. * @return \Illuminate\Http\RedirectResponse
  6960. * @static
  6961. */
  6962. public static function home($status = 302)
  6963. {
  6964. /** @var \Illuminate\Routing\Redirector $instance */
  6965. return $instance->home($status);
  6966. }
  6967. /**
  6968. * Create a new redirect response to the previous location.
  6969. *
  6970. * @param int $status
  6971. * @param array $headers
  6972. * @param mixed $fallback
  6973. * @return \Illuminate\Http\RedirectResponse
  6974. * @static
  6975. */
  6976. public static function back($status = 302, $headers = array(), $fallback = false)
  6977. {
  6978. /** @var \Illuminate\Routing\Redirector $instance */
  6979. return $instance->back($status, $headers, $fallback);
  6980. }
  6981. /**
  6982. * Create a new redirect response to the current URI.
  6983. *
  6984. * @param int $status
  6985. * @param array $headers
  6986. * @return \Illuminate\Http\RedirectResponse
  6987. * @static
  6988. */
  6989. public static function refresh($status = 302, $headers = array())
  6990. {
  6991. /** @var \Illuminate\Routing\Redirector $instance */
  6992. return $instance->refresh($status, $headers);
  6993. }
  6994. /**
  6995. * Create a new redirect response, while putting the current URL in the session.
  6996. *
  6997. * @param string $path
  6998. * @param int $status
  6999. * @param array $headers
  7000. * @param bool $secure
  7001. * @return \Illuminate\Http\RedirectResponse
  7002. * @static
  7003. */
  7004. public static function guest($path, $status = 302, $headers = array(), $secure = null)
  7005. {
  7006. /** @var \Illuminate\Routing\Redirector $instance */
  7007. return $instance->guest($path, $status, $headers, $secure);
  7008. }
  7009. /**
  7010. * Create a new redirect response to the previously intended location.
  7011. *
  7012. * @param string $default
  7013. * @param int $status
  7014. * @param array $headers
  7015. * @param bool $secure
  7016. * @return \Illuminate\Http\RedirectResponse
  7017. * @static
  7018. */
  7019. public static function intended($default = '/', $status = 302, $headers = array(), $secure = null)
  7020. {
  7021. /** @var \Illuminate\Routing\Redirector $instance */
  7022. return $instance->intended($default, $status, $headers, $secure);
  7023. }
  7024. /**
  7025. * Create a new redirect response to the given path.
  7026. *
  7027. * @param string $path
  7028. * @param int $status
  7029. * @param array $headers
  7030. * @param bool $secure
  7031. * @return \Illuminate\Http\RedirectResponse
  7032. * @static
  7033. */
  7034. public static function to($path, $status = 302, $headers = array(), $secure = null)
  7035. {
  7036. /** @var \Illuminate\Routing\Redirector $instance */
  7037. return $instance->to($path, $status, $headers, $secure);
  7038. }
  7039. /**
  7040. * Create a new redirect response to an external URL (no validation).
  7041. *
  7042. * @param string $path
  7043. * @param int $status
  7044. * @param array $headers
  7045. * @return \Illuminate\Http\RedirectResponse
  7046. * @static
  7047. */
  7048. public static function away($path, $status = 302, $headers = array())
  7049. {
  7050. /** @var \Illuminate\Routing\Redirector $instance */
  7051. return $instance->away($path, $status, $headers);
  7052. }
  7053. /**
  7054. * Create a new redirect response to the given HTTPS path.
  7055. *
  7056. * @param string $path
  7057. * @param int $status
  7058. * @param array $headers
  7059. * @return \Illuminate\Http\RedirectResponse
  7060. * @static
  7061. */
  7062. public static function secure($path, $status = 302, $headers = array())
  7063. {
  7064. /** @var \Illuminate\Routing\Redirector $instance */
  7065. return $instance->secure($path, $status, $headers);
  7066. }
  7067. /**
  7068. * Create a new redirect response to a named route.
  7069. *
  7070. * @param string $route
  7071. * @param array $parameters
  7072. * @param int $status
  7073. * @param array $headers
  7074. * @return \Illuminate\Http\RedirectResponse
  7075. * @static
  7076. */
  7077. public static function route($route, $parameters = array(), $status = 302, $headers = array())
  7078. {
  7079. /** @var \Illuminate\Routing\Redirector $instance */
  7080. return $instance->route($route, $parameters, $status, $headers);
  7081. }
  7082. /**
  7083. * Create a new redirect response to a controller action.
  7084. *
  7085. * @param string $action
  7086. * @param array $parameters
  7087. * @param int $status
  7088. * @param array $headers
  7089. * @return \Illuminate\Http\RedirectResponse
  7090. * @static
  7091. */
  7092. public static function action($action, $parameters = array(), $status = 302, $headers = array())
  7093. {
  7094. /** @var \Illuminate\Routing\Redirector $instance */
  7095. return $instance->action($action, $parameters, $status, $headers);
  7096. }
  7097. /**
  7098. * Get the URL generator instance.
  7099. *
  7100. * @return \Illuminate\Routing\UrlGenerator
  7101. * @static
  7102. */
  7103. public static function getUrlGenerator()
  7104. {
  7105. /** @var \Illuminate\Routing\Redirector $instance */
  7106. return $instance->getUrlGenerator();
  7107. }
  7108. /**
  7109. * Set the active session store.
  7110. *
  7111. * @param \Illuminate\Session\Store $session
  7112. * @return void
  7113. * @static
  7114. */
  7115. public static function setSession($session)
  7116. {
  7117. /** @var \Illuminate\Routing\Redirector $instance */
  7118. $instance->setSession($session);
  7119. }
  7120. /**
  7121. * Register a custom macro.
  7122. *
  7123. * @param string $name
  7124. * @param object|callable $macro
  7125. * @return void
  7126. * @static
  7127. */
  7128. public static function macro($name, $macro)
  7129. {
  7130. \Illuminate\Routing\Redirector::macro($name, $macro);
  7131. }
  7132. /**
  7133. * Mix another object into the class.
  7134. *
  7135. * @param object $mixin
  7136. * @return void
  7137. * @static
  7138. */
  7139. public static function mixin($mixin)
  7140. {
  7141. \Illuminate\Routing\Redirector::mixin($mixin);
  7142. }
  7143. /**
  7144. * Checks if macro is registered.
  7145. *
  7146. * @param string $name
  7147. * @return bool
  7148. * @static
  7149. */
  7150. public static function hasMacro($name)
  7151. {
  7152. return \Illuminate\Routing\Redirector::hasMacro($name);
  7153. }
  7154. }
  7155. /**
  7156. *
  7157. *
  7158. * @see \Illuminate\Http\Request
  7159. */
  7160. class Request {
  7161. /**
  7162. * Create a new Illuminate HTTP request from server variables.
  7163. *
  7164. * @return static
  7165. * @static
  7166. */
  7167. public static function capture()
  7168. {
  7169. return \Illuminate\Http\Request::capture();
  7170. }
  7171. /**
  7172. * Return the Request instance.
  7173. *
  7174. * @return \Illuminate\Http\Request
  7175. * @static
  7176. */
  7177. public static function instance()
  7178. {
  7179. /** @var \Illuminate\Http\Request $instance */
  7180. return $instance->instance();
  7181. }
  7182. /**
  7183. * Get the request method.
  7184. *
  7185. * @return string
  7186. * @static
  7187. */
  7188. public static function method()
  7189. {
  7190. /** @var \Illuminate\Http\Request $instance */
  7191. return $instance->method();
  7192. }
  7193. /**
  7194. * Get the root URL for the application.
  7195. *
  7196. * @return string
  7197. * @static
  7198. */
  7199. public static function root()
  7200. {
  7201. /** @var \Illuminate\Http\Request $instance */
  7202. return $instance->root();
  7203. }
  7204. /**
  7205. * Get the URL (no query string) for the request.
  7206. *
  7207. * @return string
  7208. * @static
  7209. */
  7210. public static function url()
  7211. {
  7212. /** @var \Illuminate\Http\Request $instance */
  7213. return $instance->url();
  7214. }
  7215. /**
  7216. * Get the full URL for the request.
  7217. *
  7218. * @return string
  7219. * @static
  7220. */
  7221. public static function fullUrl()
  7222. {
  7223. /** @var \Illuminate\Http\Request $instance */
  7224. return $instance->fullUrl();
  7225. }
  7226. /**
  7227. * Get the full URL for the request with the added query string parameters.
  7228. *
  7229. * @param array $query
  7230. * @return string
  7231. * @static
  7232. */
  7233. public static function fullUrlWithQuery($query)
  7234. {
  7235. /** @var \Illuminate\Http\Request $instance */
  7236. return $instance->fullUrlWithQuery($query);
  7237. }
  7238. /**
  7239. * Get the current path info for the request.
  7240. *
  7241. * @return string
  7242. * @static
  7243. */
  7244. public static function path()
  7245. {
  7246. /** @var \Illuminate\Http\Request $instance */
  7247. return $instance->path();
  7248. }
  7249. /**
  7250. * Get the current decoded path info for the request.
  7251. *
  7252. * @return string
  7253. * @static
  7254. */
  7255. public static function decodedPath()
  7256. {
  7257. /** @var \Illuminate\Http\Request $instance */
  7258. return $instance->decodedPath();
  7259. }
  7260. /**
  7261. * Get a segment from the URI (1 based index).
  7262. *
  7263. * @param int $index
  7264. * @param string|null $default
  7265. * @return string|null
  7266. * @static
  7267. */
  7268. public static function segment($index, $default = null)
  7269. {
  7270. /** @var \Illuminate\Http\Request $instance */
  7271. return $instance->segment($index, $default);
  7272. }
  7273. /**
  7274. * Get all of the segments for the request path.
  7275. *
  7276. * @return array
  7277. * @static
  7278. */
  7279. public static function segments()
  7280. {
  7281. /** @var \Illuminate\Http\Request $instance */
  7282. return $instance->segments();
  7283. }
  7284. /**
  7285. * Determine if the current request URI matches a pattern.
  7286. *
  7287. * @param mixed $patterns
  7288. * @return bool
  7289. * @static
  7290. */
  7291. public static function is($patterns = null)
  7292. {
  7293. /** @var \Illuminate\Http\Request $instance */
  7294. return $instance->is($patterns);
  7295. }
  7296. /**
  7297. * Determine if the route name matches a given pattern.
  7298. *
  7299. * @param mixed $patterns
  7300. * @return bool
  7301. * @static
  7302. */
  7303. public static function routeIs($patterns = null)
  7304. {
  7305. /** @var \Illuminate\Http\Request $instance */
  7306. return $instance->routeIs($patterns);
  7307. }
  7308. /**
  7309. * Determine if the current request URL and query string matches a pattern.
  7310. *
  7311. * @param mixed $patterns
  7312. * @return bool
  7313. * @static
  7314. */
  7315. public static function fullUrlIs($patterns = null)
  7316. {
  7317. /** @var \Illuminate\Http\Request $instance */
  7318. return $instance->fullUrlIs($patterns);
  7319. }
  7320. /**
  7321. * Determine if the request is the result of an AJAX call.
  7322. *
  7323. * @return bool
  7324. * @static
  7325. */
  7326. public static function ajax()
  7327. {
  7328. /** @var \Illuminate\Http\Request $instance */
  7329. return $instance->ajax();
  7330. }
  7331. /**
  7332. * Determine if the request is the result of an PJAX call.
  7333. *
  7334. * @return bool
  7335. * @static
  7336. */
  7337. public static function pjax()
  7338. {
  7339. /** @var \Illuminate\Http\Request $instance */
  7340. return $instance->pjax();
  7341. }
  7342. /**
  7343. * Determine if the request is over HTTPS.
  7344. *
  7345. * @return bool
  7346. * @static
  7347. */
  7348. public static function secure()
  7349. {
  7350. /** @var \Illuminate\Http\Request $instance */
  7351. return $instance->secure();
  7352. }
  7353. /**
  7354. * Get the client IP address.
  7355. *
  7356. * @return string
  7357. * @static
  7358. */
  7359. public static function ip()
  7360. {
  7361. /** @var \Illuminate\Http\Request $instance */
  7362. return $instance->ip();
  7363. }
  7364. /**
  7365. * Get the client IP addresses.
  7366. *
  7367. * @return array
  7368. * @static
  7369. */
  7370. public static function ips()
  7371. {
  7372. /** @var \Illuminate\Http\Request $instance */
  7373. return $instance->ips();
  7374. }
  7375. /**
  7376. * Get the client user agent.
  7377. *
  7378. * @return string
  7379. * @static
  7380. */
  7381. public static function userAgent()
  7382. {
  7383. /** @var \Illuminate\Http\Request $instance */
  7384. return $instance->userAgent();
  7385. }
  7386. /**
  7387. * Merge new input into the current request's input array.
  7388. *
  7389. * @param array $input
  7390. * @return \Illuminate\Http\Request
  7391. * @static
  7392. */
  7393. public static function merge($input)
  7394. {
  7395. /** @var \Illuminate\Http\Request $instance */
  7396. return $instance->merge($input);
  7397. }
  7398. /**
  7399. * Replace the input for the current request.
  7400. *
  7401. * @param array $input
  7402. * @return \Illuminate\Http\Request
  7403. * @static
  7404. */
  7405. public static function replace($input)
  7406. {
  7407. /** @var \Illuminate\Http\Request $instance */
  7408. return $instance->replace($input);
  7409. }
  7410. /**
  7411. * Get the JSON payload for the request.
  7412. *
  7413. * @param string $key
  7414. * @param mixed $default
  7415. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  7416. * @static
  7417. */
  7418. public static function json($key = null, $default = null)
  7419. {
  7420. /** @var \Illuminate\Http\Request $instance */
  7421. return $instance->json($key, $default);
  7422. }
  7423. /**
  7424. * Create an Illuminate request from a Symfony instance.
  7425. *
  7426. * @param \Symfony\Component\HttpFoundation\Request $request
  7427. * @return \Illuminate\Http\Request
  7428. * @static
  7429. */
  7430. public static function createFromBase($request)
  7431. {
  7432. return \Illuminate\Http\Request::createFromBase($request);
  7433. }
  7434. /**
  7435. * Clones a request and overrides some of its parameters.
  7436. *
  7437. * @param array $query The GET parameters
  7438. * @param array $request The POST parameters
  7439. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7440. * @param array $cookies The COOKIE parameters
  7441. * @param array $files The FILES parameters
  7442. * @param array $server The SERVER parameters
  7443. * @return static
  7444. * @static
  7445. */
  7446. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  7447. {
  7448. /** @var \Illuminate\Http\Request $instance */
  7449. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  7450. }
  7451. /**
  7452. * Get the session associated with the request.
  7453. *
  7454. * @return \Illuminate\Session\Store
  7455. * @throws \RuntimeException
  7456. * @static
  7457. */
  7458. public static function session()
  7459. {
  7460. /** @var \Illuminate\Http\Request $instance */
  7461. return $instance->session();
  7462. }
  7463. /**
  7464. * Set the session instance on the request.
  7465. *
  7466. * @param \Illuminate\Contracts\Session\Session $session
  7467. * @return void
  7468. * @static
  7469. */
  7470. public static function setLaravelSession($session)
  7471. {
  7472. /** @var \Illuminate\Http\Request $instance */
  7473. $instance->setLaravelSession($session);
  7474. }
  7475. /**
  7476. * Get the user making the request.
  7477. *
  7478. * @param string|null $guard
  7479. * @return mixed
  7480. * @static
  7481. */
  7482. public static function user($guard = null)
  7483. {
  7484. /** @var \Illuminate\Http\Request $instance */
  7485. return $instance->user($guard);
  7486. }
  7487. /**
  7488. * Get the route handling the request.
  7489. *
  7490. * @param string|null $param
  7491. * @return \Illuminate\Routing\Route|object|string
  7492. * @static
  7493. */
  7494. public static function route($param = null)
  7495. {
  7496. /** @var \Illuminate\Http\Request $instance */
  7497. return $instance->route($param);
  7498. }
  7499. /**
  7500. * Get a unique fingerprint for the request / route / IP address.
  7501. *
  7502. * @return string
  7503. * @throws \RuntimeException
  7504. * @static
  7505. */
  7506. public static function fingerprint()
  7507. {
  7508. /** @var \Illuminate\Http\Request $instance */
  7509. return $instance->fingerprint();
  7510. }
  7511. /**
  7512. * Set the JSON payload for the request.
  7513. *
  7514. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  7515. * @return \Illuminate\Http\Request
  7516. * @static
  7517. */
  7518. public static function setJson($json)
  7519. {
  7520. /** @var \Illuminate\Http\Request $instance */
  7521. return $instance->setJson($json);
  7522. }
  7523. /**
  7524. * Get the user resolver callback.
  7525. *
  7526. * @return \Closure
  7527. * @static
  7528. */
  7529. public static function getUserResolver()
  7530. {
  7531. /** @var \Illuminate\Http\Request $instance */
  7532. return $instance->getUserResolver();
  7533. }
  7534. /**
  7535. * Set the user resolver callback.
  7536. *
  7537. * @param \Closure $callback
  7538. * @return \Illuminate\Http\Request
  7539. * @static
  7540. */
  7541. public static function setUserResolver($callback)
  7542. {
  7543. /** @var \Illuminate\Http\Request $instance */
  7544. return $instance->setUserResolver($callback);
  7545. }
  7546. /**
  7547. * Get the route resolver callback.
  7548. *
  7549. * @return \Closure
  7550. * @static
  7551. */
  7552. public static function getRouteResolver()
  7553. {
  7554. /** @var \Illuminate\Http\Request $instance */
  7555. return $instance->getRouteResolver();
  7556. }
  7557. /**
  7558. * Set the route resolver callback.
  7559. *
  7560. * @param \Closure $callback
  7561. * @return \Illuminate\Http\Request
  7562. * @static
  7563. */
  7564. public static function setRouteResolver($callback)
  7565. {
  7566. /** @var \Illuminate\Http\Request $instance */
  7567. return $instance->setRouteResolver($callback);
  7568. }
  7569. /**
  7570. * Get all of the input and files for the request.
  7571. *
  7572. * @return array
  7573. * @static
  7574. */
  7575. public static function toArray()
  7576. {
  7577. /** @var \Illuminate\Http\Request $instance */
  7578. return $instance->toArray();
  7579. }
  7580. /**
  7581. * Determine if the given offset exists.
  7582. *
  7583. * @param string $offset
  7584. * @return bool
  7585. * @static
  7586. */
  7587. public static function offsetExists($offset)
  7588. {
  7589. /** @var \Illuminate\Http\Request $instance */
  7590. return $instance->offsetExists($offset);
  7591. }
  7592. /**
  7593. * Get the value at the given offset.
  7594. *
  7595. * @param string $offset
  7596. * @return mixed
  7597. * @static
  7598. */
  7599. public static function offsetGet($offset)
  7600. {
  7601. /** @var \Illuminate\Http\Request $instance */
  7602. return $instance->offsetGet($offset);
  7603. }
  7604. /**
  7605. * Set the value at the given offset.
  7606. *
  7607. * @param string $offset
  7608. * @param mixed $value
  7609. * @return void
  7610. * @static
  7611. */
  7612. public static function offsetSet($offset, $value)
  7613. {
  7614. /** @var \Illuminate\Http\Request $instance */
  7615. $instance->offsetSet($offset, $value);
  7616. }
  7617. /**
  7618. * Remove the value at the given offset.
  7619. *
  7620. * @param string $offset
  7621. * @return void
  7622. * @static
  7623. */
  7624. public static function offsetUnset($offset)
  7625. {
  7626. /** @var \Illuminate\Http\Request $instance */
  7627. $instance->offsetUnset($offset);
  7628. }
  7629. /**
  7630. * Sets the parameters for this request.
  7631. *
  7632. * This method also re-initializes all properties.
  7633. *
  7634. * @param array $query The GET parameters
  7635. * @param array $request The POST parameters
  7636. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7637. * @param array $cookies The COOKIE parameters
  7638. * @param array $files The FILES parameters
  7639. * @param array $server The SERVER parameters
  7640. * @param string|resource|null $content The raw body data
  7641. * @static
  7642. */
  7643. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  7644. {
  7645. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7646. /** @var \Illuminate\Http\Request $instance */
  7647. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  7648. }
  7649. /**
  7650. * Creates a new request with values from PHP's super globals.
  7651. *
  7652. * @return static
  7653. * @static
  7654. */
  7655. public static function createFromGlobals()
  7656. {
  7657. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7658. return \Illuminate\Http\Request::createFromGlobals();
  7659. }
  7660. /**
  7661. * Creates a Request based on a given URI and configuration.
  7662. *
  7663. * The information contained in the URI always take precedence
  7664. * over the other information (server and parameters).
  7665. *
  7666. * @param string $uri The URI
  7667. * @param string $method The HTTP method
  7668. * @param array $parameters The query (GET) or request (POST) parameters
  7669. * @param array $cookies The request cookies ($_COOKIE)
  7670. * @param array $files The request files ($_FILES)
  7671. * @param array $server The server parameters ($_SERVER)
  7672. * @param string|resource|null $content The raw body data
  7673. * @return static
  7674. * @static
  7675. */
  7676. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  7677. {
  7678. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7679. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  7680. }
  7681. /**
  7682. * Sets a callable able to create a Request instance.
  7683. *
  7684. * This is mainly useful when you need to override the Request class
  7685. * to keep BC with an existing system. It should not be used for any
  7686. * other purpose.
  7687. *
  7688. * @param callable|null $callable A PHP callable
  7689. * @static
  7690. */
  7691. public static function setFactory($callable)
  7692. {
  7693. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7694. return \Illuminate\Http\Request::setFactory($callable);
  7695. }
  7696. /**
  7697. * Overrides the PHP global variables according to this request instance.
  7698. *
  7699. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  7700. * $_FILES is never overridden, see rfc1867
  7701. *
  7702. * @static
  7703. */
  7704. public static function overrideGlobals()
  7705. {
  7706. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7707. /** @var \Illuminate\Http\Request $instance */
  7708. return $instance->overrideGlobals();
  7709. }
  7710. /**
  7711. * Sets a list of trusted proxies.
  7712. *
  7713. * You should only list the reverse proxies that you manage directly.
  7714. *
  7715. * @param array $proxies A list of trusted proxies
  7716. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  7717. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  7718. * @static
  7719. */
  7720. public static function setTrustedProxies($proxies)
  7721. {
  7722. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7723. return \Illuminate\Http\Request::setTrustedProxies($proxies);
  7724. }
  7725. /**
  7726. * Gets the list of trusted proxies.
  7727. *
  7728. * @return array An array of trusted proxies
  7729. * @static
  7730. */
  7731. public static function getTrustedProxies()
  7732. {
  7733. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7734. return \Illuminate\Http\Request::getTrustedProxies();
  7735. }
  7736. /**
  7737. * Gets the set of trusted headers from trusted proxies.
  7738. *
  7739. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  7740. * @static
  7741. */
  7742. public static function getTrustedHeaderSet()
  7743. {
  7744. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7745. return \Illuminate\Http\Request::getTrustedHeaderSet();
  7746. }
  7747. /**
  7748. * Sets a list of trusted host patterns.
  7749. *
  7750. * You should only list the hosts you manage using regexs.
  7751. *
  7752. * @param array $hostPatterns A list of trusted host patterns
  7753. * @static
  7754. */
  7755. public static function setTrustedHosts($hostPatterns)
  7756. {
  7757. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7758. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  7759. }
  7760. /**
  7761. * Gets the list of trusted host patterns.
  7762. *
  7763. * @return array An array of trusted host patterns
  7764. * @static
  7765. */
  7766. public static function getTrustedHosts()
  7767. {
  7768. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7769. return \Illuminate\Http\Request::getTrustedHosts();
  7770. }
  7771. /**
  7772. * Sets the name for trusted headers.
  7773. *
  7774. * The following header keys are supported:
  7775. *
  7776. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  7777. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getHost())
  7778. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getPort())
  7779. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  7780. * * Request::HEADER_FORWARDED: defaults to Forwarded (see RFC 7239)
  7781. *
  7782. * Setting an empty value allows to disable the trusted header for the given key.
  7783. *
  7784. * @param string $key The header key
  7785. * @param string $value The header name
  7786. * @throws \InvalidArgumentException
  7787. * @deprecated since version 3.3, to be removed in 4.0. Use the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.
  7788. * @static
  7789. */
  7790. public static function setTrustedHeaderName($key, $value)
  7791. {
  7792. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7793. return \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  7794. }
  7795. /**
  7796. * Gets the trusted proxy header name.
  7797. *
  7798. * @param string $key The header key
  7799. * @return string The header name
  7800. * @throws \InvalidArgumentException
  7801. * @deprecated since version 3.3, to be removed in 4.0. Use the Request::getTrustedHeaderSet() method instead.
  7802. * @static
  7803. */
  7804. public static function getTrustedHeaderName($key)
  7805. {
  7806. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7807. return \Illuminate\Http\Request::getTrustedHeaderName($key);
  7808. }
  7809. /**
  7810. * Normalizes a query string.
  7811. *
  7812. * It builds a normalized query string, where keys/value pairs are alphabetized,
  7813. * have consistent escaping and unneeded delimiters are removed.
  7814. *
  7815. * @param string $qs Query string
  7816. * @return string A normalized query string for the Request
  7817. * @static
  7818. */
  7819. public static function normalizeQueryString($qs)
  7820. {
  7821. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7822. return \Illuminate\Http\Request::normalizeQueryString($qs);
  7823. }
  7824. /**
  7825. * Enables support for the _method request parameter to determine the intended HTTP method.
  7826. *
  7827. * Be warned that enabling this feature might lead to CSRF issues in your code.
  7828. * Check that you are using CSRF tokens when required.
  7829. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  7830. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  7831. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  7832. *
  7833. * The HTTP method can only be overridden when the real HTTP method is POST.
  7834. *
  7835. * @static
  7836. */
  7837. public static function enableHttpMethodParameterOverride()
  7838. {
  7839. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7840. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  7841. }
  7842. /**
  7843. * Checks whether support for the _method request parameter is enabled.
  7844. *
  7845. * @return bool True when the _method request parameter is enabled, false otherwise
  7846. * @static
  7847. */
  7848. public static function getHttpMethodParameterOverride()
  7849. {
  7850. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7851. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  7852. }
  7853. /**
  7854. * Gets a "parameter" value from any bag.
  7855. *
  7856. * This method is mainly useful for libraries that want to provide some flexibility. If you don't need the
  7857. * flexibility in controllers, it is better to explicitly get request parameters from the appropriate
  7858. * public property instead (attributes, query, request).
  7859. *
  7860. * Order of precedence: PATH (routing placeholders or custom attributes), GET, BODY
  7861. *
  7862. * @param string $key The key
  7863. * @param mixed $default The default value if the parameter key does not exist
  7864. * @return mixed
  7865. * @static
  7866. */
  7867. public static function get($key, $default = null)
  7868. {
  7869. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7870. /** @var \Illuminate\Http\Request $instance */
  7871. return $instance->get($key, $default);
  7872. }
  7873. /**
  7874. * Gets the Session.
  7875. *
  7876. * @return \Symfony\Component\HttpFoundation\SessionInterface|null The session
  7877. * @static
  7878. */
  7879. public static function getSession()
  7880. {
  7881. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7882. /** @var \Illuminate\Http\Request $instance */
  7883. return $instance->getSession();
  7884. }
  7885. /**
  7886. * Whether the request contains a Session which was started in one of the
  7887. * previous requests.
  7888. *
  7889. * @return bool
  7890. * @static
  7891. */
  7892. public static function hasPreviousSession()
  7893. {
  7894. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7895. /** @var \Illuminate\Http\Request $instance */
  7896. return $instance->hasPreviousSession();
  7897. }
  7898. /**
  7899. * Whether the request contains a Session object.
  7900. *
  7901. * This method does not give any information about the state of the session object,
  7902. * like whether the session is started or not. It is just a way to check if this Request
  7903. * is associated with a Session instance.
  7904. *
  7905. * @return bool true when the Request contains a Session object, false otherwise
  7906. * @static
  7907. */
  7908. public static function hasSession()
  7909. {
  7910. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7911. /** @var \Illuminate\Http\Request $instance */
  7912. return $instance->hasSession();
  7913. }
  7914. /**
  7915. * Sets the Session.
  7916. *
  7917. * @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
  7918. * @static
  7919. */
  7920. public static function setSession($session)
  7921. {
  7922. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7923. /** @var \Illuminate\Http\Request $instance */
  7924. return $instance->setSession($session);
  7925. }
  7926. /**
  7927. * Returns the client IP addresses.
  7928. *
  7929. * In the returned array the most trusted IP address is first, and the
  7930. * least trusted one last. The "real" client IP address is the last one,
  7931. * but this is also the least trusted one. Trusted proxies are stripped.
  7932. *
  7933. * Use this method carefully; you should use getClientIp() instead.
  7934. *
  7935. * @return array The client IP addresses
  7936. * @see getClientIp()
  7937. * @static
  7938. */
  7939. public static function getClientIps()
  7940. {
  7941. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7942. /** @var \Illuminate\Http\Request $instance */
  7943. return $instance->getClientIps();
  7944. }
  7945. /**
  7946. * Returns the client IP address.
  7947. *
  7948. * This method can read the client IP address from the "X-Forwarded-For" header
  7949. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  7950. * header value is a comma+space separated list of IP addresses, the left-most
  7951. * being the original client, and each successive proxy that passed the request
  7952. * adding the IP address where it received the request from.
  7953. *
  7954. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  7955. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  7956. * argument of the Request::setTrustedProxies() method instead.
  7957. *
  7958. * @return string|null The client IP address
  7959. * @see getClientIps()
  7960. * @see https://wikipedia.org/wiki/X-Forwarded-For
  7961. * @static
  7962. */
  7963. public static function getClientIp()
  7964. {
  7965. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7966. /** @var \Illuminate\Http\Request $instance */
  7967. return $instance->getClientIp();
  7968. }
  7969. /**
  7970. * Returns current script name.
  7971. *
  7972. * @return string
  7973. * @static
  7974. */
  7975. public static function getScriptName()
  7976. {
  7977. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7978. /** @var \Illuminate\Http\Request $instance */
  7979. return $instance->getScriptName();
  7980. }
  7981. /**
  7982. * Returns the path being requested relative to the executed script.
  7983. *
  7984. * The path info always starts with a /.
  7985. *
  7986. * Suppose this request is instantiated from /mysite on localhost:
  7987. *
  7988. * * http://localhost/mysite returns an empty string
  7989. * * http://localhost/mysite/about returns '/about'
  7990. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  7991. * * http://localhost/mysite/about?var=1 returns '/about'
  7992. *
  7993. * @return string The raw path (i.e. not urldecoded)
  7994. * @static
  7995. */
  7996. public static function getPathInfo()
  7997. {
  7998. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7999. /** @var \Illuminate\Http\Request $instance */
  8000. return $instance->getPathInfo();
  8001. }
  8002. /**
  8003. * Returns the root path from which this request is executed.
  8004. *
  8005. * Suppose that an index.php file instantiates this request object:
  8006. *
  8007. * * http://localhost/index.php returns an empty string
  8008. * * http://localhost/index.php/page returns an empty string
  8009. * * http://localhost/web/index.php returns '/web'
  8010. * * http://localhost/we%20b/index.php returns '/we%20b'
  8011. *
  8012. * @return string The raw path (i.e. not urldecoded)
  8013. * @static
  8014. */
  8015. public static function getBasePath()
  8016. {
  8017. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8018. /** @var \Illuminate\Http\Request $instance */
  8019. return $instance->getBasePath();
  8020. }
  8021. /**
  8022. * Returns the root URL from which this request is executed.
  8023. *
  8024. * The base URL never ends with a /.
  8025. *
  8026. * This is similar to getBasePath(), except that it also includes the
  8027. * script filename (e.g. index.php) if one exists.
  8028. *
  8029. * @return string The raw URL (i.e. not urldecoded)
  8030. * @static
  8031. */
  8032. public static function getBaseUrl()
  8033. {
  8034. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8035. /** @var \Illuminate\Http\Request $instance */
  8036. return $instance->getBaseUrl();
  8037. }
  8038. /**
  8039. * Gets the request's scheme.
  8040. *
  8041. * @return string
  8042. * @static
  8043. */
  8044. public static function getScheme()
  8045. {
  8046. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8047. /** @var \Illuminate\Http\Request $instance */
  8048. return $instance->getScheme();
  8049. }
  8050. /**
  8051. * Returns the port on which the request is made.
  8052. *
  8053. * This method can read the client port from the "X-Forwarded-Port" header
  8054. * when trusted proxies were set via "setTrustedProxies()".
  8055. *
  8056. * The "X-Forwarded-Port" header must contain the client port.
  8057. *
  8058. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  8059. * configure it via via the $trustedHeaderSet argument of the
  8060. * Request::setTrustedProxies() method instead.
  8061. *
  8062. * @return int|string can be a string if fetched from the server bag
  8063. * @static
  8064. */
  8065. public static function getPort()
  8066. {
  8067. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8068. /** @var \Illuminate\Http\Request $instance */
  8069. return $instance->getPort();
  8070. }
  8071. /**
  8072. * Returns the user.
  8073. *
  8074. * @return string|null
  8075. * @static
  8076. */
  8077. public static function getUser()
  8078. {
  8079. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8080. /** @var \Illuminate\Http\Request $instance */
  8081. return $instance->getUser();
  8082. }
  8083. /**
  8084. * Returns the password.
  8085. *
  8086. * @return string|null
  8087. * @static
  8088. */
  8089. public static function getPassword()
  8090. {
  8091. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8092. /** @var \Illuminate\Http\Request $instance */
  8093. return $instance->getPassword();
  8094. }
  8095. /**
  8096. * Gets the user info.
  8097. *
  8098. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  8099. * @static
  8100. */
  8101. public static function getUserInfo()
  8102. {
  8103. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8104. /** @var \Illuminate\Http\Request $instance */
  8105. return $instance->getUserInfo();
  8106. }
  8107. /**
  8108. * Returns the HTTP host being requested.
  8109. *
  8110. * The port name will be appended to the host if it's non-standard.
  8111. *
  8112. * @return string
  8113. * @static
  8114. */
  8115. public static function getHttpHost()
  8116. {
  8117. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8118. /** @var \Illuminate\Http\Request $instance */
  8119. return $instance->getHttpHost();
  8120. }
  8121. /**
  8122. * Returns the requested URI (path and query string).
  8123. *
  8124. * @return string The raw URI (i.e. not URI decoded)
  8125. * @static
  8126. */
  8127. public static function getRequestUri()
  8128. {
  8129. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8130. /** @var \Illuminate\Http\Request $instance */
  8131. return $instance->getRequestUri();
  8132. }
  8133. /**
  8134. * Gets the scheme and HTTP host.
  8135. *
  8136. * If the URL was called with basic authentication, the user
  8137. * and the password are not added to the generated string.
  8138. *
  8139. * @return string The scheme and HTTP host
  8140. * @static
  8141. */
  8142. public static function getSchemeAndHttpHost()
  8143. {
  8144. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8145. /** @var \Illuminate\Http\Request $instance */
  8146. return $instance->getSchemeAndHttpHost();
  8147. }
  8148. /**
  8149. * Generates a normalized URI (URL) for the Request.
  8150. *
  8151. * @return string A normalized URI (URL) for the Request
  8152. * @see getQueryString()
  8153. * @static
  8154. */
  8155. public static function getUri()
  8156. {
  8157. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8158. /** @var \Illuminate\Http\Request $instance */
  8159. return $instance->getUri();
  8160. }
  8161. /**
  8162. * Generates a normalized URI for the given path.
  8163. *
  8164. * @param string $path A path to use instead of the current one
  8165. * @return string The normalized URI for the path
  8166. * @static
  8167. */
  8168. public static function getUriForPath($path)
  8169. {
  8170. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8171. /** @var \Illuminate\Http\Request $instance */
  8172. return $instance->getUriForPath($path);
  8173. }
  8174. /**
  8175. * Returns the path as relative reference from the current Request path.
  8176. *
  8177. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  8178. * Both paths must be absolute and not contain relative parts.
  8179. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  8180. * Furthermore, they can be used to reduce the link size in documents.
  8181. *
  8182. * Example target paths, given a base path of "/a/b/c/d":
  8183. * - "/a/b/c/d" -> ""
  8184. * - "/a/b/c/" -> "./"
  8185. * - "/a/b/" -> "../"
  8186. * - "/a/b/c/other" -> "other"
  8187. * - "/a/x/y" -> "../../x/y"
  8188. *
  8189. * @param string $path The target path
  8190. * @return string The relative target path
  8191. * @static
  8192. */
  8193. public static function getRelativeUriForPath($path)
  8194. {
  8195. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8196. /** @var \Illuminate\Http\Request $instance */
  8197. return $instance->getRelativeUriForPath($path);
  8198. }
  8199. /**
  8200. * Generates the normalized query string for the Request.
  8201. *
  8202. * It builds a normalized query string, where keys/value pairs are alphabetized
  8203. * and have consistent escaping.
  8204. *
  8205. * @return string|null A normalized query string for the Request
  8206. * @static
  8207. */
  8208. public static function getQueryString()
  8209. {
  8210. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8211. /** @var \Illuminate\Http\Request $instance */
  8212. return $instance->getQueryString();
  8213. }
  8214. /**
  8215. * Checks whether the request is secure or not.
  8216. *
  8217. * This method can read the client protocol from the "X-Forwarded-Proto" header
  8218. * when trusted proxies were set via "setTrustedProxies()".
  8219. *
  8220. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  8221. *
  8222. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  8223. * ("SSL_HTTPS" for instance), configure it via the $trustedHeaderSet
  8224. * argument of the Request::setTrustedProxies() method instead.
  8225. *
  8226. * @return bool
  8227. * @static
  8228. */
  8229. public static function isSecure()
  8230. {
  8231. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8232. /** @var \Illuminate\Http\Request $instance */
  8233. return $instance->isSecure();
  8234. }
  8235. /**
  8236. * Returns the host name.
  8237. *
  8238. * This method can read the client host name from the "X-Forwarded-Host" header
  8239. * when trusted proxies were set via "setTrustedProxies()".
  8240. *
  8241. * The "X-Forwarded-Host" header must contain the client host name.
  8242. *
  8243. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  8244. * configure it via the $trustedHeaderSet argument of the
  8245. * Request::setTrustedProxies() method instead.
  8246. *
  8247. * @return string
  8248. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  8249. * @static
  8250. */
  8251. public static function getHost()
  8252. {
  8253. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8254. /** @var \Illuminate\Http\Request $instance */
  8255. return $instance->getHost();
  8256. }
  8257. /**
  8258. * Sets the request method.
  8259. *
  8260. * @param string $method
  8261. * @static
  8262. */
  8263. public static function setMethod($method)
  8264. {
  8265. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8266. /** @var \Illuminate\Http\Request $instance */
  8267. return $instance->setMethod($method);
  8268. }
  8269. /**
  8270. * Gets the request "intended" method.
  8271. *
  8272. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  8273. * then it is used to determine the "real" intended HTTP method.
  8274. *
  8275. * The _method request parameter can also be used to determine the HTTP method,
  8276. * but only if enableHttpMethodParameterOverride() has been called.
  8277. *
  8278. * The method is always an uppercased string.
  8279. *
  8280. * @return string The request method
  8281. * @see getRealMethod()
  8282. * @static
  8283. */
  8284. public static function getMethod()
  8285. {
  8286. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8287. /** @var \Illuminate\Http\Request $instance */
  8288. return $instance->getMethod();
  8289. }
  8290. /**
  8291. * Gets the "real" request method.
  8292. *
  8293. * @return string The request method
  8294. * @see getMethod()
  8295. * @static
  8296. */
  8297. public static function getRealMethod()
  8298. {
  8299. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8300. /** @var \Illuminate\Http\Request $instance */
  8301. return $instance->getRealMethod();
  8302. }
  8303. /**
  8304. * Gets the mime type associated with the format.
  8305. *
  8306. * @param string $format The format
  8307. * @return string|null The associated mime type (null if not found)
  8308. * @static
  8309. */
  8310. public static function getMimeType($format)
  8311. {
  8312. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8313. /** @var \Illuminate\Http\Request $instance */
  8314. return $instance->getMimeType($format);
  8315. }
  8316. /**
  8317. * Gets the mime types associated with the format.
  8318. *
  8319. * @param string $format The format
  8320. * @return array The associated mime types
  8321. * @static
  8322. */
  8323. public static function getMimeTypes($format)
  8324. {
  8325. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8326. return \Illuminate\Http\Request::getMimeTypes($format);
  8327. }
  8328. /**
  8329. * Gets the format associated with the mime type.
  8330. *
  8331. * @param string $mimeType The associated mime type
  8332. * @return string|null The format (null if not found)
  8333. * @static
  8334. */
  8335. public static function getFormat($mimeType)
  8336. {
  8337. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8338. /** @var \Illuminate\Http\Request $instance */
  8339. return $instance->getFormat($mimeType);
  8340. }
  8341. /**
  8342. * Associates a format with mime types.
  8343. *
  8344. * @param string $format The format
  8345. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  8346. * @static
  8347. */
  8348. public static function setFormat($format, $mimeTypes)
  8349. {
  8350. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8351. /** @var \Illuminate\Http\Request $instance */
  8352. return $instance->setFormat($format, $mimeTypes);
  8353. }
  8354. /**
  8355. * Gets the request format.
  8356. *
  8357. * Here is the process to determine the format:
  8358. *
  8359. * * format defined by the user (with setRequestFormat())
  8360. * * _format request attribute
  8361. * * $default
  8362. *
  8363. * @param string|null $default The default format
  8364. * @return string|null The request format
  8365. * @static
  8366. */
  8367. public static function getRequestFormat($default = 'html')
  8368. {
  8369. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8370. /** @var \Illuminate\Http\Request $instance */
  8371. return $instance->getRequestFormat($default);
  8372. }
  8373. /**
  8374. * Sets the request format.
  8375. *
  8376. * @param string $format The request format
  8377. * @static
  8378. */
  8379. public static function setRequestFormat($format)
  8380. {
  8381. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8382. /** @var \Illuminate\Http\Request $instance */
  8383. return $instance->setRequestFormat($format);
  8384. }
  8385. /**
  8386. * Gets the format associated with the request.
  8387. *
  8388. * @return string|null The format (null if no content type is present)
  8389. * @static
  8390. */
  8391. public static function getContentType()
  8392. {
  8393. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8394. /** @var \Illuminate\Http\Request $instance */
  8395. return $instance->getContentType();
  8396. }
  8397. /**
  8398. * Sets the default locale.
  8399. *
  8400. * @param string $locale
  8401. * @static
  8402. */
  8403. public static function setDefaultLocale($locale)
  8404. {
  8405. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8406. /** @var \Illuminate\Http\Request $instance */
  8407. return $instance->setDefaultLocale($locale);
  8408. }
  8409. /**
  8410. * Get the default locale.
  8411. *
  8412. * @return string
  8413. * @static
  8414. */
  8415. public static function getDefaultLocale()
  8416. {
  8417. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8418. /** @var \Illuminate\Http\Request $instance */
  8419. return $instance->getDefaultLocale();
  8420. }
  8421. /**
  8422. * Sets the locale.
  8423. *
  8424. * @param string $locale
  8425. * @static
  8426. */
  8427. public static function setLocale($locale)
  8428. {
  8429. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8430. /** @var \Illuminate\Http\Request $instance */
  8431. return $instance->setLocale($locale);
  8432. }
  8433. /**
  8434. * Get the locale.
  8435. *
  8436. * @return string
  8437. * @static
  8438. */
  8439. public static function getLocale()
  8440. {
  8441. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8442. /** @var \Illuminate\Http\Request $instance */
  8443. return $instance->getLocale();
  8444. }
  8445. /**
  8446. * Checks if the request method is of specified type.
  8447. *
  8448. * @param string $method Uppercase request method (GET, POST etc)
  8449. * @return bool
  8450. * @static
  8451. */
  8452. public static function isMethod($method)
  8453. {
  8454. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8455. /** @var \Illuminate\Http\Request $instance */
  8456. return $instance->isMethod($method);
  8457. }
  8458. /**
  8459. * Checks whether or not the method is safe.
  8460. *
  8461. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  8462. * @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default.
  8463. * @return bool
  8464. * @static
  8465. */
  8466. public static function isMethodSafe()
  8467. {
  8468. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8469. /** @var \Illuminate\Http\Request $instance */
  8470. return $instance->isMethodSafe();
  8471. }
  8472. /**
  8473. * Checks whether or not the method is idempotent.
  8474. *
  8475. * @return bool
  8476. * @static
  8477. */
  8478. public static function isMethodIdempotent()
  8479. {
  8480. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8481. /** @var \Illuminate\Http\Request $instance */
  8482. return $instance->isMethodIdempotent();
  8483. }
  8484. /**
  8485. * Checks whether the method is cacheable or not.
  8486. *
  8487. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  8488. * @return bool True for GET and HEAD, false otherwise
  8489. * @static
  8490. */
  8491. public static function isMethodCacheable()
  8492. {
  8493. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8494. /** @var \Illuminate\Http\Request $instance */
  8495. return $instance->isMethodCacheable();
  8496. }
  8497. /**
  8498. * Returns the protocol version.
  8499. *
  8500. * If the application is behind a proxy, the protocol version used in the
  8501. * requests between the client and the proxy and between the proxy and the
  8502. * server might be different. This returns the former (from the "Via" header)
  8503. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  8504. * the latter (from the "SERVER_PROTOCOL" server parameter).
  8505. *
  8506. * @return string
  8507. * @static
  8508. */
  8509. public static function getProtocolVersion()
  8510. {
  8511. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8512. /** @var \Illuminate\Http\Request $instance */
  8513. return $instance->getProtocolVersion();
  8514. }
  8515. /**
  8516. * Returns the request body content.
  8517. *
  8518. * @param bool $asResource If true, a resource will be returned
  8519. * @return string|resource The request body content or a resource to read the body stream
  8520. * @throws \LogicException
  8521. * @static
  8522. */
  8523. public static function getContent($asResource = false)
  8524. {
  8525. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8526. /** @var \Illuminate\Http\Request $instance */
  8527. return $instance->getContent($asResource);
  8528. }
  8529. /**
  8530. * Gets the Etags.
  8531. *
  8532. * @return array The entity tags
  8533. * @static
  8534. */
  8535. public static function getETags()
  8536. {
  8537. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8538. /** @var \Illuminate\Http\Request $instance */
  8539. return $instance->getETags();
  8540. }
  8541. /**
  8542. *
  8543. *
  8544. * @return bool
  8545. * @static
  8546. */
  8547. public static function isNoCache()
  8548. {
  8549. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8550. /** @var \Illuminate\Http\Request $instance */
  8551. return $instance->isNoCache();
  8552. }
  8553. /**
  8554. * Returns the preferred language.
  8555. *
  8556. * @param array $locales An array of ordered available locales
  8557. * @return string|null The preferred locale
  8558. * @static
  8559. */
  8560. public static function getPreferredLanguage($locales = null)
  8561. {
  8562. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8563. /** @var \Illuminate\Http\Request $instance */
  8564. return $instance->getPreferredLanguage($locales);
  8565. }
  8566. /**
  8567. * Gets a list of languages acceptable by the client browser.
  8568. *
  8569. * @return array Languages ordered in the user browser preferences
  8570. * @static
  8571. */
  8572. public static function getLanguages()
  8573. {
  8574. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8575. /** @var \Illuminate\Http\Request $instance */
  8576. return $instance->getLanguages();
  8577. }
  8578. /**
  8579. * Gets a list of charsets acceptable by the client browser.
  8580. *
  8581. * @return array List of charsets in preferable order
  8582. * @static
  8583. */
  8584. public static function getCharsets()
  8585. {
  8586. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8587. /** @var \Illuminate\Http\Request $instance */
  8588. return $instance->getCharsets();
  8589. }
  8590. /**
  8591. * Gets a list of encodings acceptable by the client browser.
  8592. *
  8593. * @return array List of encodings in preferable order
  8594. * @static
  8595. */
  8596. public static function getEncodings()
  8597. {
  8598. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8599. /** @var \Illuminate\Http\Request $instance */
  8600. return $instance->getEncodings();
  8601. }
  8602. /**
  8603. * Gets a list of content types acceptable by the client browser.
  8604. *
  8605. * @return array List of content types in preferable order
  8606. * @static
  8607. */
  8608. public static function getAcceptableContentTypes()
  8609. {
  8610. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8611. /** @var \Illuminate\Http\Request $instance */
  8612. return $instance->getAcceptableContentTypes();
  8613. }
  8614. /**
  8615. * Returns true if the request is a XMLHttpRequest.
  8616. *
  8617. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  8618. * It is known to work with common JavaScript frameworks:
  8619. *
  8620. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  8621. * @return bool true if the request is an XMLHttpRequest, false otherwise
  8622. * @static
  8623. */
  8624. public static function isXmlHttpRequest()
  8625. {
  8626. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8627. /** @var \Illuminate\Http\Request $instance */
  8628. return $instance->isXmlHttpRequest();
  8629. }
  8630. /**
  8631. * Indicates whether this request originated from a trusted proxy.
  8632. *
  8633. * This can be useful to determine whether or not to trust the
  8634. * contents of a proxy-specific header.
  8635. *
  8636. * @return bool true if the request came from a trusted proxy, false otherwise
  8637. * @static
  8638. */
  8639. public static function isFromTrustedProxy()
  8640. {
  8641. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8642. /** @var \Illuminate\Http\Request $instance */
  8643. return $instance->isFromTrustedProxy();
  8644. }
  8645. /**
  8646. * Determine if the given content types match.
  8647. *
  8648. * @param string $actual
  8649. * @param string $type
  8650. * @return bool
  8651. * @static
  8652. */
  8653. public static function matchesType($actual, $type)
  8654. {
  8655. return \Illuminate\Http\Request::matchesType($actual, $type);
  8656. }
  8657. /**
  8658. * Determine if the request is sending JSON.
  8659. *
  8660. * @return bool
  8661. * @static
  8662. */
  8663. public static function isJson()
  8664. {
  8665. /** @var \Illuminate\Http\Request $instance */
  8666. return $instance->isJson();
  8667. }
  8668. /**
  8669. * Determine if the current request probably expects a JSON response.
  8670. *
  8671. * @return bool
  8672. * @static
  8673. */
  8674. public static function expectsJson()
  8675. {
  8676. /** @var \Illuminate\Http\Request $instance */
  8677. return $instance->expectsJson();
  8678. }
  8679. /**
  8680. * Determine if the current request is asking for JSON in return.
  8681. *
  8682. * @return bool
  8683. * @static
  8684. */
  8685. public static function wantsJson()
  8686. {
  8687. /** @var \Illuminate\Http\Request $instance */
  8688. return $instance->wantsJson();
  8689. }
  8690. /**
  8691. * Determines whether the current requests accepts a given content type.
  8692. *
  8693. * @param string|array $contentTypes
  8694. * @return bool
  8695. * @static
  8696. */
  8697. public static function accepts($contentTypes)
  8698. {
  8699. /** @var \Illuminate\Http\Request $instance */
  8700. return $instance->accepts($contentTypes);
  8701. }
  8702. /**
  8703. * Return the most suitable content type from the given array based on content negotiation.
  8704. *
  8705. * @param string|array $contentTypes
  8706. * @return string|null
  8707. * @static
  8708. */
  8709. public static function prefers($contentTypes)
  8710. {
  8711. /** @var \Illuminate\Http\Request $instance */
  8712. return $instance->prefers($contentTypes);
  8713. }
  8714. /**
  8715. * Determines whether a request accepts JSON.
  8716. *
  8717. * @return bool
  8718. * @static
  8719. */
  8720. public static function acceptsJson()
  8721. {
  8722. /** @var \Illuminate\Http\Request $instance */
  8723. return $instance->acceptsJson();
  8724. }
  8725. /**
  8726. * Determines whether a request accepts HTML.
  8727. *
  8728. * @return bool
  8729. * @static
  8730. */
  8731. public static function acceptsHtml()
  8732. {
  8733. /** @var \Illuminate\Http\Request $instance */
  8734. return $instance->acceptsHtml();
  8735. }
  8736. /**
  8737. * Get the data format expected in the response.
  8738. *
  8739. * @param string $default
  8740. * @return string
  8741. * @static
  8742. */
  8743. public static function format($default = 'html')
  8744. {
  8745. /** @var \Illuminate\Http\Request $instance */
  8746. return $instance->format($default);
  8747. }
  8748. /**
  8749. * Retrieve an old input item.
  8750. *
  8751. * @param string $key
  8752. * @param string|array|null $default
  8753. * @return string|array
  8754. * @static
  8755. */
  8756. public static function old($key = null, $default = null)
  8757. {
  8758. /** @var \Illuminate\Http\Request $instance */
  8759. return $instance->old($key, $default);
  8760. }
  8761. /**
  8762. * Flash the input for the current request to the session.
  8763. *
  8764. * @return void
  8765. * @static
  8766. */
  8767. public static function flash()
  8768. {
  8769. /** @var \Illuminate\Http\Request $instance */
  8770. $instance->flash();
  8771. }
  8772. /**
  8773. * Flash only some of the input to the session.
  8774. *
  8775. * @param array|mixed $keys
  8776. * @return void
  8777. * @static
  8778. */
  8779. public static function flashOnly($keys)
  8780. {
  8781. /** @var \Illuminate\Http\Request $instance */
  8782. $instance->flashOnly($keys);
  8783. }
  8784. /**
  8785. * Flash only some of the input to the session.
  8786. *
  8787. * @param array|mixed $keys
  8788. * @return void
  8789. * @static
  8790. */
  8791. public static function flashExcept($keys)
  8792. {
  8793. /** @var \Illuminate\Http\Request $instance */
  8794. $instance->flashExcept($keys);
  8795. }
  8796. /**
  8797. * Flush all of the old input from the session.
  8798. *
  8799. * @return void
  8800. * @static
  8801. */
  8802. public static function flush()
  8803. {
  8804. /** @var \Illuminate\Http\Request $instance */
  8805. $instance->flush();
  8806. }
  8807. /**
  8808. * Retrieve a server variable from the request.
  8809. *
  8810. * @param string $key
  8811. * @param string|array|null $default
  8812. * @return string|array
  8813. * @static
  8814. */
  8815. public static function server($key = null, $default = null)
  8816. {
  8817. /** @var \Illuminate\Http\Request $instance */
  8818. return $instance->server($key, $default);
  8819. }
  8820. /**
  8821. * Determine if a header is set on the request.
  8822. *
  8823. * @param string $key
  8824. * @return bool
  8825. * @static
  8826. */
  8827. public static function hasHeader($key)
  8828. {
  8829. /** @var \Illuminate\Http\Request $instance */
  8830. return $instance->hasHeader($key);
  8831. }
  8832. /**
  8833. * Retrieve a header from the request.
  8834. *
  8835. * @param string $key
  8836. * @param string|array|null $default
  8837. * @return string|array
  8838. * @static
  8839. */
  8840. public static function header($key = null, $default = null)
  8841. {
  8842. /** @var \Illuminate\Http\Request $instance */
  8843. return $instance->header($key, $default);
  8844. }
  8845. /**
  8846. * Get the bearer token from the request headers.
  8847. *
  8848. * @return string|null
  8849. * @static
  8850. */
  8851. public static function bearerToken()
  8852. {
  8853. /** @var \Illuminate\Http\Request $instance */
  8854. return $instance->bearerToken();
  8855. }
  8856. /**
  8857. * Determine if the request contains a given input item key.
  8858. *
  8859. * @param string|array $key
  8860. * @return bool
  8861. * @static
  8862. */
  8863. public static function exists($key)
  8864. {
  8865. /** @var \Illuminate\Http\Request $instance */
  8866. return $instance->exists($key);
  8867. }
  8868. /**
  8869. * Determine if the request contains a given input item key.
  8870. *
  8871. * @param string|array $key
  8872. * @return bool
  8873. * @static
  8874. */
  8875. public static function has($key)
  8876. {
  8877. /** @var \Illuminate\Http\Request $instance */
  8878. return $instance->has($key);
  8879. }
  8880. /**
  8881. * Determine if the request contains any of the given inputs.
  8882. *
  8883. * @param mixed $key
  8884. * @return bool
  8885. * @static
  8886. */
  8887. public static function hasAny($keys = null)
  8888. {
  8889. /** @var \Illuminate\Http\Request $instance */
  8890. return $instance->hasAny($keys);
  8891. }
  8892. /**
  8893. * Determine if the request contains a non-empty value for an input item.
  8894. *
  8895. * @param string|array $key
  8896. * @return bool
  8897. * @static
  8898. */
  8899. public static function filled($key)
  8900. {
  8901. /** @var \Illuminate\Http\Request $instance */
  8902. return $instance->filled($key);
  8903. }
  8904. /**
  8905. * Get the keys for all of the input and files.
  8906. *
  8907. * @return array
  8908. * @static
  8909. */
  8910. public static function keys()
  8911. {
  8912. /** @var \Illuminate\Http\Request $instance */
  8913. return $instance->keys();
  8914. }
  8915. /**
  8916. * Get all of the input and files for the request.
  8917. *
  8918. * @param array|mixed $keys
  8919. * @return array
  8920. * @static
  8921. */
  8922. public static function all($keys = null)
  8923. {
  8924. /** @var \Illuminate\Http\Request $instance */
  8925. return $instance->all($keys);
  8926. }
  8927. /**
  8928. * Retrieve an input item from the request.
  8929. *
  8930. * @param string $key
  8931. * @param string|array|null $default
  8932. * @return string|array
  8933. * @static
  8934. */
  8935. public static function input($key = null, $default = null)
  8936. {
  8937. /** @var \Illuminate\Http\Request $instance */
  8938. return $instance->input($key, $default);
  8939. }
  8940. /**
  8941. * Get a subset containing the provided keys with values from the input data.
  8942. *
  8943. * @param array|mixed $keys
  8944. * @return array
  8945. * @static
  8946. */
  8947. public static function only($keys)
  8948. {
  8949. /** @var \Illuminate\Http\Request $instance */
  8950. return $instance->only($keys);
  8951. }
  8952. /**
  8953. * Get all of the input except for a specified array of items.
  8954. *
  8955. * @param array|mixed $keys
  8956. * @return array
  8957. * @static
  8958. */
  8959. public static function except($keys)
  8960. {
  8961. /** @var \Illuminate\Http\Request $instance */
  8962. return $instance->except($keys);
  8963. }
  8964. /**
  8965. * Retrieve a query string item from the request.
  8966. *
  8967. * @param string $key
  8968. * @param string|array|null $default
  8969. * @return string|array
  8970. * @static
  8971. */
  8972. public static function query($key = null, $default = null)
  8973. {
  8974. /** @var \Illuminate\Http\Request $instance */
  8975. return $instance->query($key, $default);
  8976. }
  8977. /**
  8978. * Retrieve a request payload item from the request.
  8979. *
  8980. * @param string $key
  8981. * @param string|array|null $default
  8982. * @return string|array
  8983. * @static
  8984. */
  8985. public static function post($key = null, $default = null)
  8986. {
  8987. /** @var \Illuminate\Http\Request $instance */
  8988. return $instance->post($key, $default);
  8989. }
  8990. /**
  8991. * Determine if a cookie is set on the request.
  8992. *
  8993. * @param string $key
  8994. * @return bool
  8995. * @static
  8996. */
  8997. public static function hasCookie($key)
  8998. {
  8999. /** @var \Illuminate\Http\Request $instance */
  9000. return $instance->hasCookie($key);
  9001. }
  9002. /**
  9003. * Retrieve a cookie from the request.
  9004. *
  9005. * @param string $key
  9006. * @param string|array|null $default
  9007. * @return string|array
  9008. * @static
  9009. */
  9010. public static function cookie($key = null, $default = null)
  9011. {
  9012. /** @var \Illuminate\Http\Request $instance */
  9013. return $instance->cookie($key, $default);
  9014. }
  9015. /**
  9016. * Get an array of all of the files on the request.
  9017. *
  9018. * @return array
  9019. * @static
  9020. */
  9021. public static function allFiles()
  9022. {
  9023. /** @var \Illuminate\Http\Request $instance */
  9024. return $instance->allFiles();
  9025. }
  9026. /**
  9027. * Determine if the uploaded data contains a file.
  9028. *
  9029. * @param string $key
  9030. * @return bool
  9031. * @static
  9032. */
  9033. public static function hasFile($key)
  9034. {
  9035. /** @var \Illuminate\Http\Request $instance */
  9036. return $instance->hasFile($key);
  9037. }
  9038. /**
  9039. * Retrieve a file from the request.
  9040. *
  9041. * @param string $key
  9042. * @param mixed $default
  9043. * @return \Illuminate\Http\UploadedFile|array|null
  9044. * @static
  9045. */
  9046. public static function file($key = null, $default = null)
  9047. {
  9048. /** @var \Illuminate\Http\Request $instance */
  9049. return $instance->file($key, $default);
  9050. }
  9051. /**
  9052. * Register a custom macro.
  9053. *
  9054. * @param string $name
  9055. * @param object|callable $macro
  9056. * @return void
  9057. * @static
  9058. */
  9059. public static function macro($name, $macro)
  9060. {
  9061. \Illuminate\Http\Request::macro($name, $macro);
  9062. }
  9063. /**
  9064. * Mix another object into the class.
  9065. *
  9066. * @param object $mixin
  9067. * @return void
  9068. * @static
  9069. */
  9070. public static function mixin($mixin)
  9071. {
  9072. \Illuminate\Http\Request::mixin($mixin);
  9073. }
  9074. /**
  9075. * Checks if macro is registered.
  9076. *
  9077. * @param string $name
  9078. * @return bool
  9079. * @static
  9080. */
  9081. public static function hasMacro($name)
  9082. {
  9083. return \Illuminate\Http\Request::hasMacro($name);
  9084. }
  9085. /**
  9086. *
  9087. *
  9088. * @static
  9089. */
  9090. public static function validate($rules, $params = null)
  9091. {
  9092. return \Illuminate\Http\Request::validate($rules, $params);
  9093. }
  9094. }
  9095. /**
  9096. *
  9097. *
  9098. * @see \Illuminate\Contracts\Routing\ResponseFactory
  9099. */
  9100. class Response {
  9101. /**
  9102. * Return a new response from the application.
  9103. *
  9104. * @param string $content
  9105. * @param int $status
  9106. * @param array $headers
  9107. * @return \Illuminate\Http\Response
  9108. * @static
  9109. */
  9110. public static function make($content = '', $status = 200, $headers = array())
  9111. {
  9112. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9113. return $instance->make($content, $status, $headers);
  9114. }
  9115. /**
  9116. * Return a new view response from the application.
  9117. *
  9118. * @param string $view
  9119. * @param array $data
  9120. * @param int $status
  9121. * @param array $headers
  9122. * @return \Illuminate\Http\Response
  9123. * @static
  9124. */
  9125. public static function view($view, $data = array(), $status = 200, $headers = array())
  9126. {
  9127. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9128. return $instance->view($view, $data, $status, $headers);
  9129. }
  9130. /**
  9131. * Return a new JSON response from the application.
  9132. *
  9133. * @param mixed $data
  9134. * @param int $status
  9135. * @param array $headers
  9136. * @param int $options
  9137. * @return \Illuminate\Http\JsonResponse
  9138. * @static
  9139. */
  9140. public static function json($data = array(), $status = 200, $headers = array(), $options = 0)
  9141. {
  9142. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9143. return $instance->json($data, $status, $headers, $options);
  9144. }
  9145. /**
  9146. * Return a new JSONP response from the application.
  9147. *
  9148. * @param string $callback
  9149. * @param mixed $data
  9150. * @param int $status
  9151. * @param array $headers
  9152. * @param int $options
  9153. * @return \Illuminate\Http\JsonResponse
  9154. * @static
  9155. */
  9156. public static function jsonp($callback, $data = array(), $status = 200, $headers = array(), $options = 0)
  9157. {
  9158. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9159. return $instance->jsonp($callback, $data, $status, $headers, $options);
  9160. }
  9161. /**
  9162. * Return a new streamed response from the application.
  9163. *
  9164. * @param \Closure $callback
  9165. * @param int $status
  9166. * @param array $headers
  9167. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9168. * @static
  9169. */
  9170. public static function stream($callback, $status = 200, $headers = array())
  9171. {
  9172. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9173. return $instance->stream($callback, $status, $headers);
  9174. }
  9175. /**
  9176. * Create a new file download response.
  9177. *
  9178. * @param \SplFileInfo|string $file
  9179. * @param string $name
  9180. * @param array $headers
  9181. * @param string|null $disposition
  9182. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9183. * @static
  9184. */
  9185. public static function download($file, $name = null, $headers = array(), $disposition = 'attachment')
  9186. {
  9187. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9188. return $instance->download($file, $name, $headers, $disposition);
  9189. }
  9190. /**
  9191. * Return the raw contents of a binary file.
  9192. *
  9193. * @param \SplFileInfo|string $file
  9194. * @param array $headers
  9195. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9196. * @static
  9197. */
  9198. public static function file($file, $headers = array())
  9199. {
  9200. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9201. return $instance->file($file, $headers);
  9202. }
  9203. /**
  9204. * Create a new redirect response to the given path.
  9205. *
  9206. * @param string $path
  9207. * @param int $status
  9208. * @param array $headers
  9209. * @param bool|null $secure
  9210. * @return \Illuminate\Http\RedirectResponse
  9211. * @static
  9212. */
  9213. public static function redirectTo($path, $status = 302, $headers = array(), $secure = null)
  9214. {
  9215. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9216. return $instance->redirectTo($path, $status, $headers, $secure);
  9217. }
  9218. /**
  9219. * Create a new redirect response to a named route.
  9220. *
  9221. * @param string $route
  9222. * @param array $parameters
  9223. * @param int $status
  9224. * @param array $headers
  9225. * @return \Illuminate\Http\RedirectResponse
  9226. * @static
  9227. */
  9228. public static function redirectToRoute($route, $parameters = array(), $status = 302, $headers = array())
  9229. {
  9230. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9231. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  9232. }
  9233. /**
  9234. * Create a new redirect response to a controller action.
  9235. *
  9236. * @param string $action
  9237. * @param array $parameters
  9238. * @param int $status
  9239. * @param array $headers
  9240. * @return \Illuminate\Http\RedirectResponse
  9241. * @static
  9242. */
  9243. public static function redirectToAction($action, $parameters = array(), $status = 302, $headers = array())
  9244. {
  9245. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9246. return $instance->redirectToAction($action, $parameters, $status, $headers);
  9247. }
  9248. /**
  9249. * Create a new redirect response, while putting the current URL in the session.
  9250. *
  9251. * @param string $path
  9252. * @param int $status
  9253. * @param array $headers
  9254. * @param bool|null $secure
  9255. * @return \Illuminate\Http\RedirectResponse
  9256. * @static
  9257. */
  9258. public static function redirectGuest($path, $status = 302, $headers = array(), $secure = null)
  9259. {
  9260. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9261. return $instance->redirectGuest($path, $status, $headers, $secure);
  9262. }
  9263. /**
  9264. * Create a new redirect response to the previously intended location.
  9265. *
  9266. * @param string $default
  9267. * @param int $status
  9268. * @param array $headers
  9269. * @param bool|null $secure
  9270. * @return \Illuminate\Http\RedirectResponse
  9271. * @static
  9272. */
  9273. public static function redirectToIntended($default = '/', $status = 302, $headers = array(), $secure = null)
  9274. {
  9275. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9276. return $instance->redirectToIntended($default, $status, $headers, $secure);
  9277. }
  9278. /**
  9279. * Register a custom macro.
  9280. *
  9281. * @param string $name
  9282. * @param object|callable $macro
  9283. * @return void
  9284. * @static
  9285. */
  9286. public static function macro($name, $macro)
  9287. {
  9288. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  9289. }
  9290. /**
  9291. * Mix another object into the class.
  9292. *
  9293. * @param object $mixin
  9294. * @return void
  9295. * @static
  9296. */
  9297. public static function mixin($mixin)
  9298. {
  9299. \Illuminate\Routing\ResponseFactory::mixin($mixin);
  9300. }
  9301. /**
  9302. * Checks if macro is registered.
  9303. *
  9304. * @param string $name
  9305. * @return bool
  9306. * @static
  9307. */
  9308. public static function hasMacro($name)
  9309. {
  9310. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  9311. }
  9312. }
  9313. /**
  9314. *
  9315. *
  9316. * @method static \Illuminate\Support\Facades\Route prefix(string $prefix)
  9317. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  9318. * @method static \Illuminate\Support\Facades\Route as(string $value)
  9319. * @method static \Illuminate\Support\Facades\Route domain(string $value)
  9320. * @method static \Illuminate\Support\Facades\Route name(string $value)
  9321. * @method static \Illuminate\Support\Facades\Route namespace(string $value)
  9322. * @method static \Illuminate\Support\Facades\Route where(array|string $name, string $expression = null)
  9323. * @see \Illuminate\Routing\Router
  9324. */
  9325. class Route {
  9326. /**
  9327. * Register a new GET route with the router.
  9328. *
  9329. * @param string $uri
  9330. * @param \Closure|array|string|null $action
  9331. * @return \Illuminate\Routing\Route
  9332. * @static
  9333. */
  9334. public static function get($uri, $action = null)
  9335. {
  9336. /** @var \Illuminate\Routing\Router $instance */
  9337. return $instance->get($uri, $action);
  9338. }
  9339. /**
  9340. * Register a new POST route with the router.
  9341. *
  9342. * @param string $uri
  9343. * @param \Closure|array|string|null $action
  9344. * @return \Illuminate\Routing\Route
  9345. * @static
  9346. */
  9347. public static function post($uri, $action = null)
  9348. {
  9349. /** @var \Illuminate\Routing\Router $instance */
  9350. return $instance->post($uri, $action);
  9351. }
  9352. /**
  9353. * Register a new PUT route with the router.
  9354. *
  9355. * @param string $uri
  9356. * @param \Closure|array|string|null $action
  9357. * @return \Illuminate\Routing\Route
  9358. * @static
  9359. */
  9360. public static function put($uri, $action = null)
  9361. {
  9362. /** @var \Illuminate\Routing\Router $instance */
  9363. return $instance->put($uri, $action);
  9364. }
  9365. /**
  9366. * Register a new PATCH route with the router.
  9367. *
  9368. * @param string $uri
  9369. * @param \Closure|array|string|null $action
  9370. * @return \Illuminate\Routing\Route
  9371. * @static
  9372. */
  9373. public static function patch($uri, $action = null)
  9374. {
  9375. /** @var \Illuminate\Routing\Router $instance */
  9376. return $instance->patch($uri, $action);
  9377. }
  9378. /**
  9379. * Register a new DELETE route with the router.
  9380. *
  9381. * @param string $uri
  9382. * @param \Closure|array|string|null $action
  9383. * @return \Illuminate\Routing\Route
  9384. * @static
  9385. */
  9386. public static function delete($uri, $action = null)
  9387. {
  9388. /** @var \Illuminate\Routing\Router $instance */
  9389. return $instance->delete($uri, $action);
  9390. }
  9391. /**
  9392. * Register a new OPTIONS route with the router.
  9393. *
  9394. * @param string $uri
  9395. * @param \Closure|array|string|null $action
  9396. * @return \Illuminate\Routing\Route
  9397. * @static
  9398. */
  9399. public static function options($uri, $action = null)
  9400. {
  9401. /** @var \Illuminate\Routing\Router $instance */
  9402. return $instance->options($uri, $action);
  9403. }
  9404. /**
  9405. * Register a new route responding to all verbs.
  9406. *
  9407. * @param string $uri
  9408. * @param \Closure|array|string|null $action
  9409. * @return \Illuminate\Routing\Route
  9410. * @static
  9411. */
  9412. public static function any($uri, $action = null)
  9413. {
  9414. /** @var \Illuminate\Routing\Router $instance */
  9415. return $instance->any($uri, $action);
  9416. }
  9417. /**
  9418. * Register a new Fallback route with the router.
  9419. *
  9420. * @param \Closure|array|string|null $action
  9421. * @return \Illuminate\Routing\Route
  9422. * @static
  9423. */
  9424. public static function fallback($action)
  9425. {
  9426. /** @var \Illuminate\Routing\Router $instance */
  9427. return $instance->fallback($action);
  9428. }
  9429. /**
  9430. * Create a redirect from one URI to another.
  9431. *
  9432. * @param string $uri
  9433. * @param string $destination
  9434. * @param int $status
  9435. * @return \Illuminate\Routing\Route
  9436. * @static
  9437. */
  9438. public static function redirect($uri, $destination, $status = 301)
  9439. {
  9440. /** @var \Illuminate\Routing\Router $instance */
  9441. return $instance->redirect($uri, $destination, $status);
  9442. }
  9443. /**
  9444. * Register a new route that returns a view.
  9445. *
  9446. * @param string $uri
  9447. * @param string $view
  9448. * @param array $data
  9449. * @return \Illuminate\Routing\Route
  9450. * @static
  9451. */
  9452. public static function view($uri, $view, $data = array())
  9453. {
  9454. /** @var \Illuminate\Routing\Router $instance */
  9455. return $instance->view($uri, $view, $data);
  9456. }
  9457. /**
  9458. * Register a new route with the given verbs.
  9459. *
  9460. * @param array|string $methods
  9461. * @param string $uri
  9462. * @param \Closure|array|string|null $action
  9463. * @return \Illuminate\Routing\Route
  9464. * @static
  9465. */
  9466. public static function match($methods, $uri, $action = null)
  9467. {
  9468. /** @var \Illuminate\Routing\Router $instance */
  9469. return $instance->match($methods, $uri, $action);
  9470. }
  9471. /**
  9472. * Register an array of resource controllers.
  9473. *
  9474. * @param array $resources
  9475. * @return void
  9476. * @static
  9477. */
  9478. public static function resources($resources)
  9479. {
  9480. /** @var \Illuminate\Routing\Router $instance */
  9481. $instance->resources($resources);
  9482. }
  9483. /**
  9484. * Route a resource to a controller.
  9485. *
  9486. * @param string $name
  9487. * @param string $controller
  9488. * @param array $options
  9489. * @return \Illuminate\Routing\PendingResourceRegistration
  9490. * @static
  9491. */
  9492. public static function resource($name, $controller, $options = array())
  9493. {
  9494. /** @var \Illuminate\Routing\Router $instance */
  9495. return $instance->resource($name, $controller, $options);
  9496. }
  9497. /**
  9498. * Register an array of API resource controllers.
  9499. *
  9500. * @param array $resources
  9501. * @return void
  9502. * @static
  9503. */
  9504. public static function apiResources($resources)
  9505. {
  9506. /** @var \Illuminate\Routing\Router $instance */
  9507. $instance->apiResources($resources);
  9508. }
  9509. /**
  9510. * Route an API resource to a controller.
  9511. *
  9512. * @param string $name
  9513. * @param string $controller
  9514. * @param array $options
  9515. * @return \Illuminate\Routing\PendingResourceRegistration
  9516. * @static
  9517. */
  9518. public static function apiResource($name, $controller, $options = array())
  9519. {
  9520. /** @var \Illuminate\Routing\Router $instance */
  9521. return $instance->apiResource($name, $controller, $options);
  9522. }
  9523. /**
  9524. * Create a route group with shared attributes.
  9525. *
  9526. * @param array $attributes
  9527. * @param \Closure|string $routes
  9528. * @return void
  9529. * @static
  9530. */
  9531. public static function group($attributes, $routes)
  9532. {
  9533. /** @var \Illuminate\Routing\Router $instance */
  9534. $instance->group($attributes, $routes);
  9535. }
  9536. /**
  9537. * Merge the given array with the last group stack.
  9538. *
  9539. * @param array $new
  9540. * @return array
  9541. * @static
  9542. */
  9543. public static function mergeWithLastGroup($new)
  9544. {
  9545. /** @var \Illuminate\Routing\Router $instance */
  9546. return $instance->mergeWithLastGroup($new);
  9547. }
  9548. /**
  9549. * Get the prefix from the last group on the stack.
  9550. *
  9551. * @return string
  9552. * @static
  9553. */
  9554. public static function getLastGroupPrefix()
  9555. {
  9556. /** @var \Illuminate\Routing\Router $instance */
  9557. return $instance->getLastGroupPrefix();
  9558. }
  9559. /**
  9560. * Return the response returned by the given route.
  9561. *
  9562. * @param string $name
  9563. * @return mixed
  9564. * @static
  9565. */
  9566. public static function respondWithRoute($name)
  9567. {
  9568. /** @var \Illuminate\Routing\Router $instance */
  9569. return $instance->respondWithRoute($name);
  9570. }
  9571. /**
  9572. * Dispatch the request to the application.
  9573. *
  9574. * @param \Illuminate\Http\Request $request
  9575. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9576. * @static
  9577. */
  9578. public static function dispatch($request)
  9579. {
  9580. /** @var \Illuminate\Routing\Router $instance */
  9581. return $instance->dispatch($request);
  9582. }
  9583. /**
  9584. * Dispatch the request to a route and return the response.
  9585. *
  9586. * @param \Illuminate\Http\Request $request
  9587. * @return mixed
  9588. * @static
  9589. */
  9590. public static function dispatchToRoute($request)
  9591. {
  9592. /** @var \Illuminate\Routing\Router $instance */
  9593. return $instance->dispatchToRoute($request);
  9594. }
  9595. /**
  9596. * Gather the middleware for the given route with resolved class names.
  9597. *
  9598. * @param \Illuminate\Routing\Route $route
  9599. * @return array
  9600. * @static
  9601. */
  9602. public static function gatherRouteMiddleware($route)
  9603. {
  9604. /** @var \Illuminate\Routing\Router $instance */
  9605. return $instance->gatherRouteMiddleware($route);
  9606. }
  9607. /**
  9608. * Create a response instance from the given value.
  9609. *
  9610. * @param \Symfony\Component\HttpFoundation\Request $request
  9611. * @param mixed $response
  9612. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9613. * @static
  9614. */
  9615. public static function prepareResponse($request, $response)
  9616. {
  9617. /** @var \Illuminate\Routing\Router $instance */
  9618. return $instance->prepareResponse($request, $response);
  9619. }
  9620. /**
  9621. * Static version of prepareResponse.
  9622. *
  9623. * @param \Symfony\Component\HttpFoundation\Request $request
  9624. * @param mixed $response
  9625. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9626. * @static
  9627. */
  9628. public static function toResponse($request, $response)
  9629. {
  9630. return \Illuminate\Routing\Router::toResponse($request, $response);
  9631. }
  9632. /**
  9633. * Substitute the route bindings onto the route.
  9634. *
  9635. * @param \Illuminate\Routing\Route $route
  9636. * @return \Illuminate\Routing\Route
  9637. * @static
  9638. */
  9639. public static function substituteBindings($route)
  9640. {
  9641. /** @var \Illuminate\Routing\Router $instance */
  9642. return $instance->substituteBindings($route);
  9643. }
  9644. /**
  9645. * Substitute the implicit Eloquent model bindings for the route.
  9646. *
  9647. * @param \Illuminate\Routing\Route $route
  9648. * @return void
  9649. * @static
  9650. */
  9651. public static function substituteImplicitBindings($route)
  9652. {
  9653. /** @var \Illuminate\Routing\Router $instance */
  9654. $instance->substituteImplicitBindings($route);
  9655. }
  9656. /**
  9657. * Register a route matched event listener.
  9658. *
  9659. * @param string|callable $callback
  9660. * @return void
  9661. * @static
  9662. */
  9663. public static function matched($callback)
  9664. {
  9665. /** @var \Illuminate\Routing\Router $instance */
  9666. $instance->matched($callback);
  9667. }
  9668. /**
  9669. * Get all of the defined middleware short-hand names.
  9670. *
  9671. * @return array
  9672. * @static
  9673. */
  9674. public static function getMiddleware()
  9675. {
  9676. /** @var \Illuminate\Routing\Router $instance */
  9677. return $instance->getMiddleware();
  9678. }
  9679. /**
  9680. * Register a short-hand name for a middleware.
  9681. *
  9682. * @param string $name
  9683. * @param string $class
  9684. * @return \Illuminate\Routing\Router
  9685. * @static
  9686. */
  9687. public static function aliasMiddleware($name, $class)
  9688. {
  9689. /** @var \Illuminate\Routing\Router $instance */
  9690. return $instance->aliasMiddleware($name, $class);
  9691. }
  9692. /**
  9693. * Check if a middlewareGroup with the given name exists.
  9694. *
  9695. * @param string $name
  9696. * @return bool
  9697. * @static
  9698. */
  9699. public static function hasMiddlewareGroup($name)
  9700. {
  9701. /** @var \Illuminate\Routing\Router $instance */
  9702. return $instance->hasMiddlewareGroup($name);
  9703. }
  9704. /**
  9705. * Get all of the defined middleware groups.
  9706. *
  9707. * @return array
  9708. * @static
  9709. */
  9710. public static function getMiddlewareGroups()
  9711. {
  9712. /** @var \Illuminate\Routing\Router $instance */
  9713. return $instance->getMiddlewareGroups();
  9714. }
  9715. /**
  9716. * Register a group of middleware.
  9717. *
  9718. * @param string $name
  9719. * @param array $middleware
  9720. * @return \Illuminate\Routing\Router
  9721. * @static
  9722. */
  9723. public static function middlewareGroup($name, $middleware)
  9724. {
  9725. /** @var \Illuminate\Routing\Router $instance */
  9726. return $instance->middlewareGroup($name, $middleware);
  9727. }
  9728. /**
  9729. * Add a middleware to the beginning of a middleware group.
  9730. *
  9731. * If the middleware is already in the group, it will not be added again.
  9732. *
  9733. * @param string $group
  9734. * @param string $middleware
  9735. * @return \Illuminate\Routing\Router
  9736. * @static
  9737. */
  9738. public static function prependMiddlewareToGroup($group, $middleware)
  9739. {
  9740. /** @var \Illuminate\Routing\Router $instance */
  9741. return $instance->prependMiddlewareToGroup($group, $middleware);
  9742. }
  9743. /**
  9744. * Add a middleware to the end of a middleware group.
  9745. *
  9746. * If the middleware is already in the group, it will not be added again.
  9747. *
  9748. * @param string $group
  9749. * @param string $middleware
  9750. * @return \Illuminate\Routing\Router
  9751. * @static
  9752. */
  9753. public static function pushMiddlewareToGroup($group, $middleware)
  9754. {
  9755. /** @var \Illuminate\Routing\Router $instance */
  9756. return $instance->pushMiddlewareToGroup($group, $middleware);
  9757. }
  9758. /**
  9759. * Add a new route parameter binder.
  9760. *
  9761. * @param string $key
  9762. * @param string|callable $binder
  9763. * @return void
  9764. * @static
  9765. */
  9766. public static function bind($key, $binder)
  9767. {
  9768. /** @var \Illuminate\Routing\Router $instance */
  9769. $instance->bind($key, $binder);
  9770. }
  9771. /**
  9772. * Register a model binder for a wildcard.
  9773. *
  9774. * @param string $key
  9775. * @param string $class
  9776. * @param \Closure|null $callback
  9777. * @return void
  9778. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  9779. * @static
  9780. */
  9781. public static function model($key, $class, $callback = null)
  9782. {
  9783. /** @var \Illuminate\Routing\Router $instance */
  9784. $instance->model($key, $class, $callback);
  9785. }
  9786. /**
  9787. * Get the binding callback for a given binding.
  9788. *
  9789. * @param string $key
  9790. * @return \Closure|null
  9791. * @static
  9792. */
  9793. public static function getBindingCallback($key)
  9794. {
  9795. /** @var \Illuminate\Routing\Router $instance */
  9796. return $instance->getBindingCallback($key);
  9797. }
  9798. /**
  9799. * Get the global "where" patterns.
  9800. *
  9801. * @return array
  9802. * @static
  9803. */
  9804. public static function getPatterns()
  9805. {
  9806. /** @var \Illuminate\Routing\Router $instance */
  9807. return $instance->getPatterns();
  9808. }
  9809. /**
  9810. * Set a global where pattern on all routes.
  9811. *
  9812. * @param string $key
  9813. * @param string $pattern
  9814. * @return void
  9815. * @static
  9816. */
  9817. public static function pattern($key, $pattern)
  9818. {
  9819. /** @var \Illuminate\Routing\Router $instance */
  9820. $instance->pattern($key, $pattern);
  9821. }
  9822. /**
  9823. * Set a group of global where patterns on all routes.
  9824. *
  9825. * @param array $patterns
  9826. * @return void
  9827. * @static
  9828. */
  9829. public static function patterns($patterns)
  9830. {
  9831. /** @var \Illuminate\Routing\Router $instance */
  9832. $instance->patterns($patterns);
  9833. }
  9834. /**
  9835. * Determine if the router currently has a group stack.
  9836. *
  9837. * @return bool
  9838. * @static
  9839. */
  9840. public static function hasGroupStack()
  9841. {
  9842. /** @var \Illuminate\Routing\Router $instance */
  9843. return $instance->hasGroupStack();
  9844. }
  9845. /**
  9846. * Get the current group stack for the router.
  9847. *
  9848. * @return array
  9849. * @static
  9850. */
  9851. public static function getGroupStack()
  9852. {
  9853. /** @var \Illuminate\Routing\Router $instance */
  9854. return $instance->getGroupStack();
  9855. }
  9856. /**
  9857. * Get a route parameter for the current route.
  9858. *
  9859. * @param string $key
  9860. * @param string $default
  9861. * @return mixed
  9862. * @static
  9863. */
  9864. public static function input($key, $default = null)
  9865. {
  9866. /** @var \Illuminate\Routing\Router $instance */
  9867. return $instance->input($key, $default);
  9868. }
  9869. /**
  9870. * Get the request currently being dispatched.
  9871. *
  9872. * @return \Illuminate\Http\Request
  9873. * @static
  9874. */
  9875. public static function getCurrentRequest()
  9876. {
  9877. /** @var \Illuminate\Routing\Router $instance */
  9878. return $instance->getCurrentRequest();
  9879. }
  9880. /**
  9881. * Get the currently dispatched route instance.
  9882. *
  9883. * @return \Illuminate\Routing\Route
  9884. * @static
  9885. */
  9886. public static function getCurrentRoute()
  9887. {
  9888. /** @var \Illuminate\Routing\Router $instance */
  9889. return $instance->getCurrentRoute();
  9890. }
  9891. /**
  9892. * Get the currently dispatched route instance.
  9893. *
  9894. * @return \Illuminate\Routing\Route
  9895. * @static
  9896. */
  9897. public static function current()
  9898. {
  9899. /** @var \Illuminate\Routing\Router $instance */
  9900. return $instance->current();
  9901. }
  9902. /**
  9903. * Check if a route with the given name exists.
  9904. *
  9905. * @param string $name
  9906. * @return bool
  9907. * @static
  9908. */
  9909. public static function has($name)
  9910. {
  9911. /** @var \Illuminate\Routing\Router $instance */
  9912. return $instance->has($name);
  9913. }
  9914. /**
  9915. * Get the current route name.
  9916. *
  9917. * @return string|null
  9918. * @static
  9919. */
  9920. public static function currentRouteName()
  9921. {
  9922. /** @var \Illuminate\Routing\Router $instance */
  9923. return $instance->currentRouteName();
  9924. }
  9925. /**
  9926. * Alias for the "currentRouteNamed" method.
  9927. *
  9928. * @param mixed $patterns
  9929. * @return bool
  9930. * @static
  9931. */
  9932. public static function is($patterns = null)
  9933. {
  9934. /** @var \Illuminate\Routing\Router $instance */
  9935. return $instance->is($patterns);
  9936. }
  9937. /**
  9938. * Determine if the current route matches a pattern.
  9939. *
  9940. * @param mixed $patterns
  9941. * @return bool
  9942. * @static
  9943. */
  9944. public static function currentRouteNamed($patterns = null)
  9945. {
  9946. /** @var \Illuminate\Routing\Router $instance */
  9947. return $instance->currentRouteNamed($patterns);
  9948. }
  9949. /**
  9950. * Get the current route action.
  9951. *
  9952. * @return string|null
  9953. * @static
  9954. */
  9955. public static function currentRouteAction()
  9956. {
  9957. /** @var \Illuminate\Routing\Router $instance */
  9958. return $instance->currentRouteAction();
  9959. }
  9960. /**
  9961. * Alias for the "currentRouteUses" method.
  9962. *
  9963. * @param array $patterns
  9964. * @return bool
  9965. * @static
  9966. */
  9967. public static function uses($patterns = null)
  9968. {
  9969. /** @var \Illuminate\Routing\Router $instance */
  9970. return $instance->uses($patterns);
  9971. }
  9972. /**
  9973. * Determine if the current route action matches a given action.
  9974. *
  9975. * @param string $action
  9976. * @return bool
  9977. * @static
  9978. */
  9979. public static function currentRouteUses($action)
  9980. {
  9981. /** @var \Illuminate\Routing\Router $instance */
  9982. return $instance->currentRouteUses($action);
  9983. }
  9984. /**
  9985. * Register the typical authentication routes for an application.
  9986. *
  9987. * @return void
  9988. * @static
  9989. */
  9990. public static function auth()
  9991. {
  9992. /** @var \Illuminate\Routing\Router $instance */
  9993. $instance->auth();
  9994. }
  9995. /**
  9996. * Set the unmapped global resource parameters to singular.
  9997. *
  9998. * @param bool $singular
  9999. * @return void
  10000. * @static
  10001. */
  10002. public static function singularResourceParameters($singular = true)
  10003. {
  10004. /** @var \Illuminate\Routing\Router $instance */
  10005. $instance->singularResourceParameters($singular);
  10006. }
  10007. /**
  10008. * Set the global resource parameter mapping.
  10009. *
  10010. * @param array $parameters
  10011. * @return void
  10012. * @static
  10013. */
  10014. public static function resourceParameters($parameters = array())
  10015. {
  10016. /** @var \Illuminate\Routing\Router $instance */
  10017. $instance->resourceParameters($parameters);
  10018. }
  10019. /**
  10020. * Get or set the verbs used in the resource URIs.
  10021. *
  10022. * @param array $verbs
  10023. * @return array|null
  10024. * @static
  10025. */
  10026. public static function resourceVerbs($verbs = array())
  10027. {
  10028. /** @var \Illuminate\Routing\Router $instance */
  10029. return $instance->resourceVerbs($verbs);
  10030. }
  10031. /**
  10032. * Get the underlying route collection.
  10033. *
  10034. * @return \Illuminate\Routing\RouteCollection
  10035. * @static
  10036. */
  10037. public static function getRoutes()
  10038. {
  10039. /** @var \Illuminate\Routing\Router $instance */
  10040. return $instance->getRoutes();
  10041. }
  10042. /**
  10043. * Set the route collection instance.
  10044. *
  10045. * @param \Illuminate\Routing\RouteCollection $routes
  10046. * @return void
  10047. * @static
  10048. */
  10049. public static function setRoutes($routes)
  10050. {
  10051. /** @var \Illuminate\Routing\Router $instance */
  10052. $instance->setRoutes($routes);
  10053. }
  10054. /**
  10055. * Register a custom macro.
  10056. *
  10057. * @param string $name
  10058. * @param object|callable $macro
  10059. * @return void
  10060. * @static
  10061. */
  10062. public static function macro($name, $macro)
  10063. {
  10064. \Illuminate\Routing\Router::macro($name, $macro);
  10065. }
  10066. /**
  10067. * Mix another object into the class.
  10068. *
  10069. * @param object $mixin
  10070. * @return void
  10071. * @static
  10072. */
  10073. public static function mixin($mixin)
  10074. {
  10075. \Illuminate\Routing\Router::mixin($mixin);
  10076. }
  10077. /**
  10078. * Checks if macro is registered.
  10079. *
  10080. * @param string $name
  10081. * @return bool
  10082. * @static
  10083. */
  10084. public static function hasMacro($name)
  10085. {
  10086. return \Illuminate\Routing\Router::hasMacro($name);
  10087. }
  10088. /**
  10089. * Dynamically handle calls to the class.
  10090. *
  10091. * @param string $method
  10092. * @param array $parameters
  10093. * @return mixed
  10094. * @throws \BadMethodCallException
  10095. * @static
  10096. */
  10097. public static function macroCall($method, $parameters)
  10098. {
  10099. /** @var \Illuminate\Routing\Router $instance */
  10100. return $instance->macroCall($method, $parameters);
  10101. }
  10102. }
  10103. /**
  10104. *
  10105. *
  10106. * @see \Illuminate\Database\Schema\Builder
  10107. */
  10108. class Schema {
  10109. /**
  10110. * Determine if the given table exists.
  10111. *
  10112. * @param string $table
  10113. * @return bool
  10114. * @static
  10115. */
  10116. public static function hasTable($table)
  10117. {
  10118. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10119. return $instance->hasTable($table);
  10120. }
  10121. /**
  10122. * Get the column listing for a given table.
  10123. *
  10124. * @param string $table
  10125. * @return array
  10126. * @static
  10127. */
  10128. public static function getColumnListing($table)
  10129. {
  10130. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10131. return $instance->getColumnListing($table);
  10132. }
  10133. /**
  10134. * Drop all tables from the database.
  10135. *
  10136. * @return void
  10137. * @static
  10138. */
  10139. public static function dropAllTables()
  10140. {
  10141. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10142. $instance->dropAllTables();
  10143. }
  10144. /**
  10145. * Set the default string length for migrations.
  10146. *
  10147. * @param int $length
  10148. * @return void
  10149. * @static
  10150. */
  10151. public static function defaultStringLength($length)
  10152. {
  10153. //Method inherited from \Illuminate\Database\Schema\Builder
  10154. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  10155. }
  10156. /**
  10157. * Determine if the given table has a given column.
  10158. *
  10159. * @param string $table
  10160. * @param string $column
  10161. * @return bool
  10162. * @static
  10163. */
  10164. public static function hasColumn($table, $column)
  10165. {
  10166. //Method inherited from \Illuminate\Database\Schema\Builder
  10167. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10168. return $instance->hasColumn($table, $column);
  10169. }
  10170. /**
  10171. * Determine if the given table has given columns.
  10172. *
  10173. * @param string $table
  10174. * @param array $columns
  10175. * @return bool
  10176. * @static
  10177. */
  10178. public static function hasColumns($table, $columns)
  10179. {
  10180. //Method inherited from \Illuminate\Database\Schema\Builder
  10181. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10182. return $instance->hasColumns($table, $columns);
  10183. }
  10184. /**
  10185. * Get the data type for the given column name.
  10186. *
  10187. * @param string $table
  10188. * @param string $column
  10189. * @return string
  10190. * @static
  10191. */
  10192. public static function getColumnType($table, $column)
  10193. {
  10194. //Method inherited from \Illuminate\Database\Schema\Builder
  10195. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10196. return $instance->getColumnType($table, $column);
  10197. }
  10198. /**
  10199. * Modify a table on the schema.
  10200. *
  10201. * @param string $table
  10202. * @param \Closure $callback
  10203. * @return void
  10204. * @static
  10205. */
  10206. public static function table($table, $callback)
  10207. {
  10208. //Method inherited from \Illuminate\Database\Schema\Builder
  10209. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10210. $instance->table($table, $callback);
  10211. }
  10212. /**
  10213. * Create a new table on the schema.
  10214. *
  10215. * @param string $table
  10216. * @param \Closure $callback
  10217. * @return void
  10218. * @static
  10219. */
  10220. public static function create($table, $callback)
  10221. {
  10222. //Method inherited from \Illuminate\Database\Schema\Builder
  10223. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10224. $instance->create($table, $callback);
  10225. }
  10226. /**
  10227. * Drop a table from the schema.
  10228. *
  10229. * @param string $table
  10230. * @return void
  10231. * @static
  10232. */
  10233. public static function drop($table)
  10234. {
  10235. //Method inherited from \Illuminate\Database\Schema\Builder
  10236. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10237. $instance->drop($table);
  10238. }
  10239. /**
  10240. * Drop a table from the schema if it exists.
  10241. *
  10242. * @param string $table
  10243. * @return void
  10244. * @static
  10245. */
  10246. public static function dropIfExists($table)
  10247. {
  10248. //Method inherited from \Illuminate\Database\Schema\Builder
  10249. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10250. $instance->dropIfExists($table);
  10251. }
  10252. /**
  10253. * Rename a table on the schema.
  10254. *
  10255. * @param string $from
  10256. * @param string $to
  10257. * @return void
  10258. * @static
  10259. */
  10260. public static function rename($from, $to)
  10261. {
  10262. //Method inherited from \Illuminate\Database\Schema\Builder
  10263. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10264. $instance->rename($from, $to);
  10265. }
  10266. /**
  10267. * Enable foreign key constraints.
  10268. *
  10269. * @return bool
  10270. * @static
  10271. */
  10272. public static function enableForeignKeyConstraints()
  10273. {
  10274. //Method inherited from \Illuminate\Database\Schema\Builder
  10275. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10276. return $instance->enableForeignKeyConstraints();
  10277. }
  10278. /**
  10279. * Disable foreign key constraints.
  10280. *
  10281. * @return bool
  10282. * @static
  10283. */
  10284. public static function disableForeignKeyConstraints()
  10285. {
  10286. //Method inherited from \Illuminate\Database\Schema\Builder
  10287. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10288. return $instance->disableForeignKeyConstraints();
  10289. }
  10290. /**
  10291. * Get the database connection instance.
  10292. *
  10293. * @return \Illuminate\Database\Connection
  10294. * @static
  10295. */
  10296. public static function getConnection()
  10297. {
  10298. //Method inherited from \Illuminate\Database\Schema\Builder
  10299. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10300. return $instance->getConnection();
  10301. }
  10302. /**
  10303. * Set the database connection instance.
  10304. *
  10305. * @param \Illuminate\Database\Connection $connection
  10306. * @return \Illuminate\Database\Schema\MySqlBuilder
  10307. * @static
  10308. */
  10309. public static function setConnection($connection)
  10310. {
  10311. //Method inherited from \Illuminate\Database\Schema\Builder
  10312. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10313. return $instance->setConnection($connection);
  10314. }
  10315. /**
  10316. * Set the Schema Blueprint resolver callback.
  10317. *
  10318. * @param \Closure $resolver
  10319. * @return void
  10320. * @static
  10321. */
  10322. public static function blueprintResolver($resolver)
  10323. {
  10324. //Method inherited from \Illuminate\Database\Schema\Builder
  10325. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10326. $instance->blueprintResolver($resolver);
  10327. }
  10328. }
  10329. /**
  10330. *
  10331. *
  10332. * @see \Illuminate\Session\SessionManager
  10333. * @see \Illuminate\Session\Store
  10334. */
  10335. class Session {
  10336. /**
  10337. * Get the session configuration.
  10338. *
  10339. * @return array
  10340. * @static
  10341. */
  10342. public static function getSessionConfig()
  10343. {
  10344. /** @var \Illuminate\Session\SessionManager $instance */
  10345. return $instance->getSessionConfig();
  10346. }
  10347. /**
  10348. * Get the default session driver name.
  10349. *
  10350. * @return string
  10351. * @static
  10352. */
  10353. public static function getDefaultDriver()
  10354. {
  10355. /** @var \Illuminate\Session\SessionManager $instance */
  10356. return $instance->getDefaultDriver();
  10357. }
  10358. /**
  10359. * Set the default session driver name.
  10360. *
  10361. * @param string $name
  10362. * @return void
  10363. * @static
  10364. */
  10365. public static function setDefaultDriver($name)
  10366. {
  10367. /** @var \Illuminate\Session\SessionManager $instance */
  10368. $instance->setDefaultDriver($name);
  10369. }
  10370. /**
  10371. * Get a driver instance.
  10372. *
  10373. * @param string $driver
  10374. * @return mixed
  10375. * @static
  10376. */
  10377. public static function driver($driver = null)
  10378. {
  10379. //Method inherited from \Illuminate\Support\Manager
  10380. /** @var \Illuminate\Session\SessionManager $instance */
  10381. return $instance->driver($driver);
  10382. }
  10383. /**
  10384. * Register a custom driver creator Closure.
  10385. *
  10386. * @param string $driver
  10387. * @param \Closure $callback
  10388. * @return \Illuminate\Session\SessionManager
  10389. * @static
  10390. */
  10391. public static function extend($driver, $callback)
  10392. {
  10393. //Method inherited from \Illuminate\Support\Manager
  10394. /** @var \Illuminate\Session\SessionManager $instance */
  10395. return $instance->extend($driver, $callback);
  10396. }
  10397. /**
  10398. * Get all of the created "drivers".
  10399. *
  10400. * @return array
  10401. * @static
  10402. */
  10403. public static function getDrivers()
  10404. {
  10405. //Method inherited from \Illuminate\Support\Manager
  10406. /** @var \Illuminate\Session\SessionManager $instance */
  10407. return $instance->getDrivers();
  10408. }
  10409. /**
  10410. * Start the session, reading the data from a handler.
  10411. *
  10412. * @return bool
  10413. * @static
  10414. */
  10415. public static function start()
  10416. {
  10417. /** @var \Illuminate\Session\Store $instance */
  10418. return $instance->start();
  10419. }
  10420. /**
  10421. * Save the session data to storage.
  10422. *
  10423. * @return bool
  10424. * @static
  10425. */
  10426. public static function save()
  10427. {
  10428. /** @var \Illuminate\Session\Store $instance */
  10429. return $instance->save();
  10430. }
  10431. /**
  10432. * Age the flash data for the session.
  10433. *
  10434. * @return void
  10435. * @static
  10436. */
  10437. public static function ageFlashData()
  10438. {
  10439. /** @var \Illuminate\Session\Store $instance */
  10440. $instance->ageFlashData();
  10441. }
  10442. /**
  10443. * Get all of the session data.
  10444. *
  10445. * @return array
  10446. * @static
  10447. */
  10448. public static function all()
  10449. {
  10450. /** @var \Illuminate\Session\Store $instance */
  10451. return $instance->all();
  10452. }
  10453. /**
  10454. * Checks if a key exists.
  10455. *
  10456. * @param string|array $key
  10457. * @return bool
  10458. * @static
  10459. */
  10460. public static function exists($key)
  10461. {
  10462. /** @var \Illuminate\Session\Store $instance */
  10463. return $instance->exists($key);
  10464. }
  10465. /**
  10466. * Checks if a key is present and not null.
  10467. *
  10468. * @param string|array $key
  10469. * @return bool
  10470. * @static
  10471. */
  10472. public static function has($key)
  10473. {
  10474. /** @var \Illuminate\Session\Store $instance */
  10475. return $instance->has($key);
  10476. }
  10477. /**
  10478. * Get an item from the session.
  10479. *
  10480. * @param string $key
  10481. * @param mixed $default
  10482. * @return mixed
  10483. * @static
  10484. */
  10485. public static function get($key, $default = null)
  10486. {
  10487. /** @var \Illuminate\Session\Store $instance */
  10488. return $instance->get($key, $default);
  10489. }
  10490. /**
  10491. * Get the value of a given key and then forget it.
  10492. *
  10493. * @param string $key
  10494. * @param string $default
  10495. * @return mixed
  10496. * @static
  10497. */
  10498. public static function pull($key, $default = null)
  10499. {
  10500. /** @var \Illuminate\Session\Store $instance */
  10501. return $instance->pull($key, $default);
  10502. }
  10503. /**
  10504. * Determine if the session contains old input.
  10505. *
  10506. * @param string $key
  10507. * @return bool
  10508. * @static
  10509. */
  10510. public static function hasOldInput($key = null)
  10511. {
  10512. /** @var \Illuminate\Session\Store $instance */
  10513. return $instance->hasOldInput($key);
  10514. }
  10515. /**
  10516. * Get the requested item from the flashed input array.
  10517. *
  10518. * @param string $key
  10519. * @param mixed $default
  10520. * @return mixed
  10521. * @static
  10522. */
  10523. public static function getOldInput($key = null, $default = null)
  10524. {
  10525. /** @var \Illuminate\Session\Store $instance */
  10526. return $instance->getOldInput($key, $default);
  10527. }
  10528. /**
  10529. * Replace the given session attributes entirely.
  10530. *
  10531. * @param array $attributes
  10532. * @return void
  10533. * @static
  10534. */
  10535. public static function replace($attributes)
  10536. {
  10537. /** @var \Illuminate\Session\Store $instance */
  10538. $instance->replace($attributes);
  10539. }
  10540. /**
  10541. * Put a key / value pair or array of key / value pairs in the session.
  10542. *
  10543. * @param string|array $key
  10544. * @param mixed $value
  10545. * @return void
  10546. * @static
  10547. */
  10548. public static function put($key, $value = null)
  10549. {
  10550. /** @var \Illuminate\Session\Store $instance */
  10551. $instance->put($key, $value);
  10552. }
  10553. /**
  10554. * Get an item from the session, or store the default value.
  10555. *
  10556. * @param string $key
  10557. * @param \Closure $callback
  10558. * @return mixed
  10559. * @static
  10560. */
  10561. public static function remember($key, $callback)
  10562. {
  10563. /** @var \Illuminate\Session\Store $instance */
  10564. return $instance->remember($key, $callback);
  10565. }
  10566. /**
  10567. * Push a value onto a session array.
  10568. *
  10569. * @param string $key
  10570. * @param mixed $value
  10571. * @return void
  10572. * @static
  10573. */
  10574. public static function push($key, $value)
  10575. {
  10576. /** @var \Illuminate\Session\Store $instance */
  10577. $instance->push($key, $value);
  10578. }
  10579. /**
  10580. * Increment the value of an item in the session.
  10581. *
  10582. * @param string $key
  10583. * @param int $amount
  10584. * @return mixed
  10585. * @static
  10586. */
  10587. public static function increment($key, $amount = 1)
  10588. {
  10589. /** @var \Illuminate\Session\Store $instance */
  10590. return $instance->increment($key, $amount);
  10591. }
  10592. /**
  10593. * Decrement the value of an item in the session.
  10594. *
  10595. * @param string $key
  10596. * @param int $amount
  10597. * @return int
  10598. * @static
  10599. */
  10600. public static function decrement($key, $amount = 1)
  10601. {
  10602. /** @var \Illuminate\Session\Store $instance */
  10603. return $instance->decrement($key, $amount);
  10604. }
  10605. /**
  10606. * Flash a key / value pair to the session.
  10607. *
  10608. * @param string $key
  10609. * @param mixed $value
  10610. * @return void
  10611. * @static
  10612. */
  10613. public static function flash($key, $value = true)
  10614. {
  10615. /** @var \Illuminate\Session\Store $instance */
  10616. $instance->flash($key, $value);
  10617. }
  10618. /**
  10619. * Flash a key / value pair to the session for immediate use.
  10620. *
  10621. * @param string $key
  10622. * @param mixed $value
  10623. * @return void
  10624. * @static
  10625. */
  10626. public static function now($key, $value)
  10627. {
  10628. /** @var \Illuminate\Session\Store $instance */
  10629. $instance->now($key, $value);
  10630. }
  10631. /**
  10632. * Reflash all of the session flash data.
  10633. *
  10634. * @return void
  10635. * @static
  10636. */
  10637. public static function reflash()
  10638. {
  10639. /** @var \Illuminate\Session\Store $instance */
  10640. $instance->reflash();
  10641. }
  10642. /**
  10643. * Reflash a subset of the current flash data.
  10644. *
  10645. * @param array|mixed $keys
  10646. * @return void
  10647. * @static
  10648. */
  10649. public static function keep($keys = null)
  10650. {
  10651. /** @var \Illuminate\Session\Store $instance */
  10652. $instance->keep($keys);
  10653. }
  10654. /**
  10655. * Flash an input array to the session.
  10656. *
  10657. * @param array $value
  10658. * @return void
  10659. * @static
  10660. */
  10661. public static function flashInput($value)
  10662. {
  10663. /** @var \Illuminate\Session\Store $instance */
  10664. $instance->flashInput($value);
  10665. }
  10666. /**
  10667. * Remove an item from the session, returning its value.
  10668. *
  10669. * @param string $key
  10670. * @return mixed
  10671. * @static
  10672. */
  10673. public static function remove($key)
  10674. {
  10675. /** @var \Illuminate\Session\Store $instance */
  10676. return $instance->remove($key);
  10677. }
  10678. /**
  10679. * Remove one or many items from the session.
  10680. *
  10681. * @param string|array $keys
  10682. * @return void
  10683. * @static
  10684. */
  10685. public static function forget($keys)
  10686. {
  10687. /** @var \Illuminate\Session\Store $instance */
  10688. $instance->forget($keys);
  10689. }
  10690. /**
  10691. * Remove all of the items from the session.
  10692. *
  10693. * @return void
  10694. * @static
  10695. */
  10696. public static function flush()
  10697. {
  10698. /** @var \Illuminate\Session\Store $instance */
  10699. $instance->flush();
  10700. }
  10701. /**
  10702. * Flush the session data and regenerate the ID.
  10703. *
  10704. * @return bool
  10705. * @static
  10706. */
  10707. public static function invalidate()
  10708. {
  10709. /** @var \Illuminate\Session\Store $instance */
  10710. return $instance->invalidate();
  10711. }
  10712. /**
  10713. * Generate a new session identifier.
  10714. *
  10715. * @param bool $destroy
  10716. * @return bool
  10717. * @static
  10718. */
  10719. public static function regenerate($destroy = false)
  10720. {
  10721. /** @var \Illuminate\Session\Store $instance */
  10722. return $instance->regenerate($destroy);
  10723. }
  10724. /**
  10725. * Generate a new session ID for the session.
  10726. *
  10727. * @param bool $destroy
  10728. * @return bool
  10729. * @static
  10730. */
  10731. public static function migrate($destroy = false)
  10732. {
  10733. /** @var \Illuminate\Session\Store $instance */
  10734. return $instance->migrate($destroy);
  10735. }
  10736. /**
  10737. * Determine if the session has been started.
  10738. *
  10739. * @return bool
  10740. * @static
  10741. */
  10742. public static function isStarted()
  10743. {
  10744. /** @var \Illuminate\Session\Store $instance */
  10745. return $instance->isStarted();
  10746. }
  10747. /**
  10748. * Get the name of the session.
  10749. *
  10750. * @return string
  10751. * @static
  10752. */
  10753. public static function getName()
  10754. {
  10755. /** @var \Illuminate\Session\Store $instance */
  10756. return $instance->getName();
  10757. }
  10758. /**
  10759. * Set the name of the session.
  10760. *
  10761. * @param string $name
  10762. * @return void
  10763. * @static
  10764. */
  10765. public static function setName($name)
  10766. {
  10767. /** @var \Illuminate\Session\Store $instance */
  10768. $instance->setName($name);
  10769. }
  10770. /**
  10771. * Get the current session ID.
  10772. *
  10773. * @return string
  10774. * @static
  10775. */
  10776. public static function getId()
  10777. {
  10778. /** @var \Illuminate\Session\Store $instance */
  10779. return $instance->getId();
  10780. }
  10781. /**
  10782. * Set the session ID.
  10783. *
  10784. * @param string $id
  10785. * @return void
  10786. * @static
  10787. */
  10788. public static function setId($id)
  10789. {
  10790. /** @var \Illuminate\Session\Store $instance */
  10791. $instance->setId($id);
  10792. }
  10793. /**
  10794. * Determine if this is a valid session ID.
  10795. *
  10796. * @param string $id
  10797. * @return bool
  10798. * @static
  10799. */
  10800. public static function isValidId($id)
  10801. {
  10802. /** @var \Illuminate\Session\Store $instance */
  10803. return $instance->isValidId($id);
  10804. }
  10805. /**
  10806. * Set the existence of the session on the handler if applicable.
  10807. *
  10808. * @param bool $value
  10809. * @return void
  10810. * @static
  10811. */
  10812. public static function setExists($value)
  10813. {
  10814. /** @var \Illuminate\Session\Store $instance */
  10815. $instance->setExists($value);
  10816. }
  10817. /**
  10818. * Get the CSRF token value.
  10819. *
  10820. * @return string
  10821. * @static
  10822. */
  10823. public static function token()
  10824. {
  10825. /** @var \Illuminate\Session\Store $instance */
  10826. return $instance->token();
  10827. }
  10828. /**
  10829. * Regenerate the CSRF token value.
  10830. *
  10831. * @return void
  10832. * @static
  10833. */
  10834. public static function regenerateToken()
  10835. {
  10836. /** @var \Illuminate\Session\Store $instance */
  10837. $instance->regenerateToken();
  10838. }
  10839. /**
  10840. * Get the previous URL from the session.
  10841. *
  10842. * @return string|null
  10843. * @static
  10844. */
  10845. public static function previousUrl()
  10846. {
  10847. /** @var \Illuminate\Session\Store $instance */
  10848. return $instance->previousUrl();
  10849. }
  10850. /**
  10851. * Set the "previous" URL in the session.
  10852. *
  10853. * @param string $url
  10854. * @return void
  10855. * @static
  10856. */
  10857. public static function setPreviousUrl($url)
  10858. {
  10859. /** @var \Illuminate\Session\Store $instance */
  10860. $instance->setPreviousUrl($url);
  10861. }
  10862. /**
  10863. * Get the underlying session handler implementation.
  10864. *
  10865. * @return \SessionHandlerInterface
  10866. * @static
  10867. */
  10868. public static function getHandler()
  10869. {
  10870. /** @var \Illuminate\Session\Store $instance */
  10871. return $instance->getHandler();
  10872. }
  10873. /**
  10874. * Determine if the session handler needs a request.
  10875. *
  10876. * @return bool
  10877. * @static
  10878. */
  10879. public static function handlerNeedsRequest()
  10880. {
  10881. /** @var \Illuminate\Session\Store $instance */
  10882. return $instance->handlerNeedsRequest();
  10883. }
  10884. /**
  10885. * Set the request on the handler instance.
  10886. *
  10887. * @param \Illuminate\Http\Request $request
  10888. * @return void
  10889. * @static
  10890. */
  10891. public static function setRequestOnHandler($request)
  10892. {
  10893. /** @var \Illuminate\Session\Store $instance */
  10894. $instance->setRequestOnHandler($request);
  10895. }
  10896. }
  10897. /**
  10898. *
  10899. *
  10900. * @see \Illuminate\Filesystem\FilesystemManager
  10901. */
  10902. class Storage {
  10903. /**
  10904. * Get a filesystem instance.
  10905. *
  10906. * @param string $name
  10907. * @return \Illuminate\Filesystem\FilesystemAdapter
  10908. * @static
  10909. */
  10910. public static function drive($name = null)
  10911. {
  10912. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10913. return $instance->drive($name);
  10914. }
  10915. /**
  10916. * Get a filesystem instance.
  10917. *
  10918. * @param string $name
  10919. * @return \Illuminate\Filesystem\FilesystemAdapter
  10920. * @static
  10921. */
  10922. public static function disk($name = null)
  10923. {
  10924. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10925. return $instance->disk($name);
  10926. }
  10927. /**
  10928. * Get a default cloud filesystem instance.
  10929. *
  10930. * @return \Illuminate\Filesystem\FilesystemAdapter
  10931. * @static
  10932. */
  10933. public static function cloud()
  10934. {
  10935. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10936. return $instance->cloud();
  10937. }
  10938. /**
  10939. * Create an instance of the local driver.
  10940. *
  10941. * @param array $config
  10942. * @return \Illuminate\Filesystem\FilesystemAdapter
  10943. * @static
  10944. */
  10945. public static function createLocalDriver($config)
  10946. {
  10947. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10948. return $instance->createLocalDriver($config);
  10949. }
  10950. /**
  10951. * Create an instance of the ftp driver.
  10952. *
  10953. * @param array $config
  10954. * @return \Illuminate\Filesystem\FilesystemAdapter
  10955. * @static
  10956. */
  10957. public static function createFtpDriver($config)
  10958. {
  10959. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10960. return $instance->createFtpDriver($config);
  10961. }
  10962. /**
  10963. * Create an instance of the Amazon S3 driver.
  10964. *
  10965. * @param array $config
  10966. * @return \Illuminate\Contracts\Filesystem\Cloud
  10967. * @static
  10968. */
  10969. public static function createS3Driver($config)
  10970. {
  10971. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10972. return $instance->createS3Driver($config);
  10973. }
  10974. /**
  10975. * Create an instance of the Rackspace driver.
  10976. *
  10977. * @param array $config
  10978. * @return \Illuminate\Contracts\Filesystem\Cloud
  10979. * @static
  10980. */
  10981. public static function createRackspaceDriver($config)
  10982. {
  10983. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10984. return $instance->createRackspaceDriver($config);
  10985. }
  10986. /**
  10987. * Set the given disk instance.
  10988. *
  10989. * @param string $name
  10990. * @param mixed $disk
  10991. * @return void
  10992. * @static
  10993. */
  10994. public static function set($name, $disk)
  10995. {
  10996. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10997. $instance->set($name, $disk);
  10998. }
  10999. /**
  11000. * Get the default driver name.
  11001. *
  11002. * @return string
  11003. * @static
  11004. */
  11005. public static function getDefaultDriver()
  11006. {
  11007. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11008. return $instance->getDefaultDriver();
  11009. }
  11010. /**
  11011. * Get the default cloud driver name.
  11012. *
  11013. * @return string
  11014. * @static
  11015. */
  11016. public static function getDefaultCloudDriver()
  11017. {
  11018. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11019. return $instance->getDefaultCloudDriver();
  11020. }
  11021. /**
  11022. * Register a custom driver creator Closure.
  11023. *
  11024. * @param string $driver
  11025. * @param \Closure $callback
  11026. * @return \Illuminate\Filesystem\FilesystemManager
  11027. * @static
  11028. */
  11029. public static function extend($driver, $callback)
  11030. {
  11031. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11032. return $instance->extend($driver, $callback);
  11033. }
  11034. /**
  11035. * Assert that the given file exists.
  11036. *
  11037. * @param string $path
  11038. * @return void
  11039. * @static
  11040. */
  11041. public static function assertExists($path)
  11042. {
  11043. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11044. $instance->assertExists($path);
  11045. }
  11046. /**
  11047. * Assert that the given file does not exist.
  11048. *
  11049. * @param string $path
  11050. * @return void
  11051. * @static
  11052. */
  11053. public static function assertMissing($path)
  11054. {
  11055. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11056. $instance->assertMissing($path);
  11057. }
  11058. /**
  11059. * Determine if a file exists.
  11060. *
  11061. * @param string $path
  11062. * @return bool
  11063. * @static
  11064. */
  11065. public static function exists($path)
  11066. {
  11067. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11068. return $instance->exists($path);
  11069. }
  11070. /**
  11071. * Get the full path for the file at the given "short" path.
  11072. *
  11073. * @param string $path
  11074. * @return string
  11075. * @static
  11076. */
  11077. public static function path($path)
  11078. {
  11079. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11080. return $instance->path($path);
  11081. }
  11082. /**
  11083. * Get the contents of a file.
  11084. *
  11085. * @param string $path
  11086. * @return string
  11087. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  11088. * @static
  11089. */
  11090. public static function get($path)
  11091. {
  11092. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11093. return $instance->get($path);
  11094. }
  11095. /**
  11096. * Create a streamed response for a given file.
  11097. *
  11098. * @param string $path
  11099. * @param string|null $name
  11100. * @param array|null $headers
  11101. * @param string|null $disposition
  11102. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11103. * @static
  11104. */
  11105. public static function response($path, $name = null, $headers = array(), $disposition = 'inline')
  11106. {
  11107. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11108. return $instance->response($path, $name, $headers, $disposition);
  11109. }
  11110. /**
  11111. * Create a streamed download response for a given file.
  11112. *
  11113. * @param string $path
  11114. * @param string|null $name
  11115. * @param array|null $headers
  11116. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11117. * @static
  11118. */
  11119. public static function download($path, $name = null, $headers = array())
  11120. {
  11121. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11122. return $instance->download($path, $name, $headers);
  11123. }
  11124. /**
  11125. * Write the contents of a file.
  11126. *
  11127. * @param string $path
  11128. * @param string|resource $contents
  11129. * @param mixed $options
  11130. * @return bool
  11131. * @static
  11132. */
  11133. public static function put($path, $contents, $options = array())
  11134. {
  11135. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11136. return $instance->put($path, $contents, $options);
  11137. }
  11138. /**
  11139. * Store the uploaded file on the disk.
  11140. *
  11141. * @param string $path
  11142. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11143. * @param array $options
  11144. * @return string|false
  11145. * @static
  11146. */
  11147. public static function putFile($path, $file, $options = array())
  11148. {
  11149. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11150. return $instance->putFile($path, $file, $options);
  11151. }
  11152. /**
  11153. * Store the uploaded file on the disk with a given name.
  11154. *
  11155. * @param string $path
  11156. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11157. * @param string $name
  11158. * @param array $options
  11159. * @return string|false
  11160. * @static
  11161. */
  11162. public static function putFileAs($path, $file, $name, $options = array())
  11163. {
  11164. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11165. return $instance->putFileAs($path, $file, $name, $options);
  11166. }
  11167. /**
  11168. * Get the visibility for the given path.
  11169. *
  11170. * @param string $path
  11171. * @return string
  11172. * @static
  11173. */
  11174. public static function getVisibility($path)
  11175. {
  11176. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11177. return $instance->getVisibility($path);
  11178. }
  11179. /**
  11180. * Set the visibility for the given path.
  11181. *
  11182. * @param string $path
  11183. * @param string $visibility
  11184. * @return void
  11185. * @static
  11186. */
  11187. public static function setVisibility($path, $visibility)
  11188. {
  11189. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11190. $instance->setVisibility($path, $visibility);
  11191. }
  11192. /**
  11193. * Prepend to a file.
  11194. *
  11195. * @param string $path
  11196. * @param string $data
  11197. * @param string $separator
  11198. * @return int
  11199. * @static
  11200. */
  11201. public static function prepend($path, $data, $separator = '')
  11202. {
  11203. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11204. return $instance->prepend($path, $data, $separator);
  11205. }
  11206. /**
  11207. * Append to a file.
  11208. *
  11209. * @param string $path
  11210. * @param string $data
  11211. * @param string $separator
  11212. * @return int
  11213. * @static
  11214. */
  11215. public static function append($path, $data, $separator = '')
  11216. {
  11217. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11218. return $instance->append($path, $data, $separator);
  11219. }
  11220. /**
  11221. * Delete the file at a given path.
  11222. *
  11223. * @param string|array $paths
  11224. * @return bool
  11225. * @static
  11226. */
  11227. public static function delete($paths)
  11228. {
  11229. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11230. return $instance->delete($paths);
  11231. }
  11232. /**
  11233. * Copy a file to a new location.
  11234. *
  11235. * @param string $from
  11236. * @param string $to
  11237. * @return bool
  11238. * @static
  11239. */
  11240. public static function copy($from, $to)
  11241. {
  11242. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11243. return $instance->copy($from, $to);
  11244. }
  11245. /**
  11246. * Move a file to a new location.
  11247. *
  11248. * @param string $from
  11249. * @param string $to
  11250. * @return bool
  11251. * @static
  11252. */
  11253. public static function move($from, $to)
  11254. {
  11255. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11256. return $instance->move($from, $to);
  11257. }
  11258. /**
  11259. * Get the file size of a given file.
  11260. *
  11261. * @param string $path
  11262. * @return int
  11263. * @static
  11264. */
  11265. public static function size($path)
  11266. {
  11267. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11268. return $instance->size($path);
  11269. }
  11270. /**
  11271. * Get the mime-type of a given file.
  11272. *
  11273. * @param string $path
  11274. * @return string|false
  11275. * @static
  11276. */
  11277. public static function mimeType($path)
  11278. {
  11279. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11280. return $instance->mimeType($path);
  11281. }
  11282. /**
  11283. * Get the file's last modification time.
  11284. *
  11285. * @param string $path
  11286. * @return int
  11287. * @static
  11288. */
  11289. public static function lastModified($path)
  11290. {
  11291. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11292. return $instance->lastModified($path);
  11293. }
  11294. /**
  11295. * Get the URL for the file at the given path.
  11296. *
  11297. * @param string $path
  11298. * @return string
  11299. * @static
  11300. */
  11301. public static function url($path)
  11302. {
  11303. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11304. return $instance->url($path);
  11305. }
  11306. /**
  11307. * Get a temporary URL for the file at the given path.
  11308. *
  11309. * @param string $path
  11310. * @param \DateTimeInterface $expiration
  11311. * @param array $options
  11312. * @return string
  11313. * @static
  11314. */
  11315. public static function temporaryUrl($path, $expiration, $options = array())
  11316. {
  11317. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11318. return $instance->temporaryUrl($path, $expiration, $options);
  11319. }
  11320. /**
  11321. * Get a temporary URL for the file at the given path.
  11322. *
  11323. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  11324. * @param string $path
  11325. * @param \DateTimeInterface $expiration
  11326. * @param array $options
  11327. * @return string
  11328. * @static
  11329. */
  11330. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  11331. {
  11332. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11333. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  11334. }
  11335. /**
  11336. * Get a temporary URL for the file at the given path.
  11337. *
  11338. * @param \League\Flysystem\Rackspace\RackspaceAdapter $adapter
  11339. * @param string $path
  11340. * @param \DateTimeInterface $expiration
  11341. * @param array $options
  11342. * @return string
  11343. * @static
  11344. */
  11345. public static function getRackspaceTemporaryUrl($adapter, $path, $expiration, $options)
  11346. {
  11347. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11348. return $instance->getRackspaceTemporaryUrl($adapter, $path, $expiration, $options);
  11349. }
  11350. /**
  11351. * Get an array of all files in a directory.
  11352. *
  11353. * @param string|null $directory
  11354. * @param bool $recursive
  11355. * @return array
  11356. * @static
  11357. */
  11358. public static function files($directory = null, $recursive = false)
  11359. {
  11360. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11361. return $instance->files($directory, $recursive);
  11362. }
  11363. /**
  11364. * Get all of the files from the given directory (recursive).
  11365. *
  11366. * @param string|null $directory
  11367. * @return array
  11368. * @static
  11369. */
  11370. public static function allFiles($directory = null)
  11371. {
  11372. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11373. return $instance->allFiles($directory);
  11374. }
  11375. /**
  11376. * Get all of the directories within a given directory.
  11377. *
  11378. * @param string|null $directory
  11379. * @param bool $recursive
  11380. * @return array
  11381. * @static
  11382. */
  11383. public static function directories($directory = null, $recursive = false)
  11384. {
  11385. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11386. return $instance->directories($directory, $recursive);
  11387. }
  11388. /**
  11389. * Get all (recursive) of the directories within a given directory.
  11390. *
  11391. * @param string|null $directory
  11392. * @return array
  11393. * @static
  11394. */
  11395. public static function allDirectories($directory = null)
  11396. {
  11397. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11398. return $instance->allDirectories($directory);
  11399. }
  11400. /**
  11401. * Create a directory.
  11402. *
  11403. * @param string $path
  11404. * @return bool
  11405. * @static
  11406. */
  11407. public static function makeDirectory($path)
  11408. {
  11409. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11410. return $instance->makeDirectory($path);
  11411. }
  11412. /**
  11413. * Recursively delete a directory.
  11414. *
  11415. * @param string $directory
  11416. * @return bool
  11417. * @static
  11418. */
  11419. public static function deleteDirectory($directory)
  11420. {
  11421. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11422. return $instance->deleteDirectory($directory);
  11423. }
  11424. /**
  11425. * Flush the Flysystem cache.
  11426. *
  11427. * @return void
  11428. * @static
  11429. */
  11430. public static function flushCache()
  11431. {
  11432. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11433. $instance->flushCache();
  11434. }
  11435. /**
  11436. * Get the Flysystem driver.
  11437. *
  11438. * @return \League\Flysystem\FilesystemInterface
  11439. * @static
  11440. */
  11441. public static function getDriver()
  11442. {
  11443. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11444. return $instance->getDriver();
  11445. }
  11446. }
  11447. /**
  11448. *
  11449. *
  11450. * @see \Illuminate\Routing\UrlGenerator
  11451. */
  11452. class URL {
  11453. /**
  11454. * Get the full URL for the current request.
  11455. *
  11456. * @return string
  11457. * @static
  11458. */
  11459. public static function full()
  11460. {
  11461. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11462. return $instance->full();
  11463. }
  11464. /**
  11465. * Get the current URL for the request.
  11466. *
  11467. * @return string
  11468. * @static
  11469. */
  11470. public static function current()
  11471. {
  11472. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11473. return $instance->current();
  11474. }
  11475. /**
  11476. * Get the URL for the previous request.
  11477. *
  11478. * @param mixed $fallback
  11479. * @return string
  11480. * @static
  11481. */
  11482. public static function previous($fallback = false)
  11483. {
  11484. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11485. return $instance->previous($fallback);
  11486. }
  11487. /**
  11488. * Generate an absolute URL to the given path.
  11489. *
  11490. * @param string $path
  11491. * @param mixed $extra
  11492. * @param bool|null $secure
  11493. * @return string
  11494. * @static
  11495. */
  11496. public static function to($path, $extra = array(), $secure = null)
  11497. {
  11498. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11499. return $instance->to($path, $extra, $secure);
  11500. }
  11501. /**
  11502. * Generate a secure, absolute URL to the given path.
  11503. *
  11504. * @param string $path
  11505. * @param array $parameters
  11506. * @return string
  11507. * @static
  11508. */
  11509. public static function secure($path, $parameters = array())
  11510. {
  11511. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11512. return $instance->secure($path, $parameters);
  11513. }
  11514. /**
  11515. * Generate the URL to an application asset.
  11516. *
  11517. * @param string $path
  11518. * @param bool|null $secure
  11519. * @return string
  11520. * @static
  11521. */
  11522. public static function asset($path, $secure = null)
  11523. {
  11524. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11525. return $instance->asset($path, $secure);
  11526. }
  11527. /**
  11528. * Generate the URL to a secure asset.
  11529. *
  11530. * @param string $path
  11531. * @return string
  11532. * @static
  11533. */
  11534. public static function secureAsset($path)
  11535. {
  11536. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11537. return $instance->secureAsset($path);
  11538. }
  11539. /**
  11540. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  11541. *
  11542. * @param string $root
  11543. * @param string $path
  11544. * @param bool|null $secure
  11545. * @return string
  11546. * @static
  11547. */
  11548. public static function assetFrom($root, $path, $secure = null)
  11549. {
  11550. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11551. return $instance->assetFrom($root, $path, $secure);
  11552. }
  11553. /**
  11554. * Get the default scheme for a raw URL.
  11555. *
  11556. * @param bool|null $secure
  11557. * @return string
  11558. * @static
  11559. */
  11560. public static function formatScheme($secure)
  11561. {
  11562. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11563. return $instance->formatScheme($secure);
  11564. }
  11565. /**
  11566. * Get the URL to a named route.
  11567. *
  11568. * @param string $name
  11569. * @param mixed $parameters
  11570. * @param bool $absolute
  11571. * @return string
  11572. * @throws \InvalidArgumentException
  11573. * @static
  11574. */
  11575. public static function route($name, $parameters = array(), $absolute = true)
  11576. {
  11577. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11578. return $instance->route($name, $parameters, $absolute);
  11579. }
  11580. /**
  11581. * Get the URL to a controller action.
  11582. *
  11583. * @param string $action
  11584. * @param mixed $parameters
  11585. * @param bool $absolute
  11586. * @return string
  11587. * @throws \InvalidArgumentException
  11588. * @static
  11589. */
  11590. public static function action($action, $parameters = array(), $absolute = true)
  11591. {
  11592. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11593. return $instance->action($action, $parameters, $absolute);
  11594. }
  11595. /**
  11596. * Format the array of URL parameters.
  11597. *
  11598. * @param mixed|array $parameters
  11599. * @return array
  11600. * @static
  11601. */
  11602. public static function formatParameters($parameters)
  11603. {
  11604. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11605. return $instance->formatParameters($parameters);
  11606. }
  11607. /**
  11608. * Get the base URL for the request.
  11609. *
  11610. * @param string $scheme
  11611. * @param string $root
  11612. * @return string
  11613. * @static
  11614. */
  11615. public static function formatRoot($scheme, $root = null)
  11616. {
  11617. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11618. return $instance->formatRoot($scheme, $root);
  11619. }
  11620. /**
  11621. * Format the given URL segments into a single URL.
  11622. *
  11623. * @param string $root
  11624. * @param string $path
  11625. * @return string
  11626. * @static
  11627. */
  11628. public static function format($root, $path)
  11629. {
  11630. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11631. return $instance->format($root, $path);
  11632. }
  11633. /**
  11634. * Determine if the given path is a valid URL.
  11635. *
  11636. * @param string $path
  11637. * @return bool
  11638. * @static
  11639. */
  11640. public static function isValidUrl($path)
  11641. {
  11642. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11643. return $instance->isValidUrl($path);
  11644. }
  11645. /**
  11646. * Set the default named parameters used by the URL generator.
  11647. *
  11648. * @param array $defaults
  11649. * @return void
  11650. * @static
  11651. */
  11652. public static function defaults($defaults)
  11653. {
  11654. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11655. $instance->defaults($defaults);
  11656. }
  11657. /**
  11658. * Get the default named parameters used by the URL generator.
  11659. *
  11660. * @return array
  11661. * @static
  11662. */
  11663. public static function getDefaultParameters()
  11664. {
  11665. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11666. return $instance->getDefaultParameters();
  11667. }
  11668. /**
  11669. * Force the scheme for URLs.
  11670. *
  11671. * @param string $schema
  11672. * @return void
  11673. * @static
  11674. */
  11675. public static function forceScheme($schema)
  11676. {
  11677. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11678. $instance->forceScheme($schema);
  11679. }
  11680. /**
  11681. * Set the forced root URL.
  11682. *
  11683. * @param string $root
  11684. * @return void
  11685. * @static
  11686. */
  11687. public static function forceRootUrl($root)
  11688. {
  11689. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11690. $instance->forceRootUrl($root);
  11691. }
  11692. /**
  11693. * Set a callback to be used to format the host of generated URLs.
  11694. *
  11695. * @param \Closure $callback
  11696. * @return \Illuminate\Routing\UrlGenerator
  11697. * @static
  11698. */
  11699. public static function formatHostUsing($callback)
  11700. {
  11701. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11702. return $instance->formatHostUsing($callback);
  11703. }
  11704. /**
  11705. * Set a callback to be used to format the path of generated URLs.
  11706. *
  11707. * @param \Closure $callback
  11708. * @return \Illuminate\Routing\UrlGenerator
  11709. * @static
  11710. */
  11711. public static function formatPathUsing($callback)
  11712. {
  11713. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11714. return $instance->formatPathUsing($callback);
  11715. }
  11716. /**
  11717. * Get the path formatter being used by the URL generator.
  11718. *
  11719. * @return \Closure
  11720. * @static
  11721. */
  11722. public static function pathFormatter()
  11723. {
  11724. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11725. return $instance->pathFormatter();
  11726. }
  11727. /**
  11728. * Get the request instance.
  11729. *
  11730. * @return \Illuminate\Http\Request
  11731. * @static
  11732. */
  11733. public static function getRequest()
  11734. {
  11735. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11736. return $instance->getRequest();
  11737. }
  11738. /**
  11739. * Set the current request instance.
  11740. *
  11741. * @param \Illuminate\Http\Request $request
  11742. * @return void
  11743. * @static
  11744. */
  11745. public static function setRequest($request)
  11746. {
  11747. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11748. $instance->setRequest($request);
  11749. }
  11750. /**
  11751. * Set the route collection.
  11752. *
  11753. * @param \Illuminate\Routing\RouteCollection $routes
  11754. * @return \Illuminate\Routing\UrlGenerator
  11755. * @static
  11756. */
  11757. public static function setRoutes($routes)
  11758. {
  11759. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11760. return $instance->setRoutes($routes);
  11761. }
  11762. /**
  11763. * Set the session resolver for the generator.
  11764. *
  11765. * @param callable $sessionResolver
  11766. * @return \Illuminate\Routing\UrlGenerator
  11767. * @static
  11768. */
  11769. public static function setSessionResolver($sessionResolver)
  11770. {
  11771. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11772. return $instance->setSessionResolver($sessionResolver);
  11773. }
  11774. /**
  11775. * Set the root controller namespace.
  11776. *
  11777. * @param string $rootNamespace
  11778. * @return \Illuminate\Routing\UrlGenerator
  11779. * @static
  11780. */
  11781. public static function setRootControllerNamespace($rootNamespace)
  11782. {
  11783. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11784. return $instance->setRootControllerNamespace($rootNamespace);
  11785. }
  11786. /**
  11787. * Register a custom macro.
  11788. *
  11789. * @param string $name
  11790. * @param object|callable $macro
  11791. * @return void
  11792. * @static
  11793. */
  11794. public static function macro($name, $macro)
  11795. {
  11796. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  11797. }
  11798. /**
  11799. * Mix another object into the class.
  11800. *
  11801. * @param object $mixin
  11802. * @return void
  11803. * @static
  11804. */
  11805. public static function mixin($mixin)
  11806. {
  11807. \Illuminate\Routing\UrlGenerator::mixin($mixin);
  11808. }
  11809. /**
  11810. * Checks if macro is registered.
  11811. *
  11812. * @param string $name
  11813. * @return bool
  11814. * @static
  11815. */
  11816. public static function hasMacro($name)
  11817. {
  11818. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  11819. }
  11820. }
  11821. /**
  11822. *
  11823. *
  11824. * @see \Illuminate\Validation\Factory
  11825. */
  11826. class Validator {
  11827. /**
  11828. * Create a new Validator instance.
  11829. *
  11830. * @param array $data
  11831. * @param array $rules
  11832. * @param array $messages
  11833. * @param array $customAttributes
  11834. * @return \Illuminate\Validation\Validator
  11835. * @static
  11836. */
  11837. public static function make($data, $rules, $messages = array(), $customAttributes = array())
  11838. {
  11839. /** @var \Illuminate\Validation\Factory $instance */
  11840. return $instance->make($data, $rules, $messages, $customAttributes);
  11841. }
  11842. /**
  11843. * Validate the given data against the provided rules.
  11844. *
  11845. * @param array $data
  11846. * @param array $rules
  11847. * @param array $messages
  11848. * @param array $customAttributes
  11849. * @return void
  11850. * @throws \Illuminate\Validation\ValidationException
  11851. * @static
  11852. */
  11853. public static function validate($data, $rules, $messages = array(), $customAttributes = array())
  11854. {
  11855. /** @var \Illuminate\Validation\Factory $instance */
  11856. $instance->validate($data, $rules, $messages, $customAttributes);
  11857. }
  11858. /**
  11859. * Register a custom validator extension.
  11860. *
  11861. * @param string $rule
  11862. * @param \Closure|string $extension
  11863. * @param string $message
  11864. * @return void
  11865. * @static
  11866. */
  11867. public static function extend($rule, $extension, $message = null)
  11868. {
  11869. /** @var \Illuminate\Validation\Factory $instance */
  11870. $instance->extend($rule, $extension, $message);
  11871. }
  11872. /**
  11873. * Register a custom implicit validator extension.
  11874. *
  11875. * @param string $rule
  11876. * @param \Closure|string $extension
  11877. * @param string $message
  11878. * @return void
  11879. * @static
  11880. */
  11881. public static function extendImplicit($rule, $extension, $message = null)
  11882. {
  11883. /** @var \Illuminate\Validation\Factory $instance */
  11884. $instance->extendImplicit($rule, $extension, $message);
  11885. }
  11886. /**
  11887. * Register a custom dependent validator extension.
  11888. *
  11889. * @param string $rule
  11890. * @param \Closure|string $extension
  11891. * @param string $message
  11892. * @return void
  11893. * @static
  11894. */
  11895. public static function extendDependent($rule, $extension, $message = null)
  11896. {
  11897. /** @var \Illuminate\Validation\Factory $instance */
  11898. $instance->extendDependent($rule, $extension, $message);
  11899. }
  11900. /**
  11901. * Register a custom validator message replacer.
  11902. *
  11903. * @param string $rule
  11904. * @param \Closure|string $replacer
  11905. * @return void
  11906. * @static
  11907. */
  11908. public static function replacer($rule, $replacer)
  11909. {
  11910. /** @var \Illuminate\Validation\Factory $instance */
  11911. $instance->replacer($rule, $replacer);
  11912. }
  11913. /**
  11914. * Set the Validator instance resolver.
  11915. *
  11916. * @param \Closure $resolver
  11917. * @return void
  11918. * @static
  11919. */
  11920. public static function resolver($resolver)
  11921. {
  11922. /** @var \Illuminate\Validation\Factory $instance */
  11923. $instance->resolver($resolver);
  11924. }
  11925. /**
  11926. * Get the Translator implementation.
  11927. *
  11928. * @return \Illuminate\Contracts\Translation\Translator
  11929. * @static
  11930. */
  11931. public static function getTranslator()
  11932. {
  11933. /** @var \Illuminate\Validation\Factory $instance */
  11934. return $instance->getTranslator();
  11935. }
  11936. /**
  11937. * Get the Presence Verifier implementation.
  11938. *
  11939. * @return \Illuminate\Validation\PresenceVerifierInterface
  11940. * @static
  11941. */
  11942. public static function getPresenceVerifier()
  11943. {
  11944. /** @var \Illuminate\Validation\Factory $instance */
  11945. return $instance->getPresenceVerifier();
  11946. }
  11947. /**
  11948. * Set the Presence Verifier implementation.
  11949. *
  11950. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  11951. * @return void
  11952. * @static
  11953. */
  11954. public static function setPresenceVerifier($presenceVerifier)
  11955. {
  11956. /** @var \Illuminate\Validation\Factory $instance */
  11957. $instance->setPresenceVerifier($presenceVerifier);
  11958. }
  11959. }
  11960. /**
  11961. *
  11962. *
  11963. * @see \Illuminate\View\Factory
  11964. */
  11965. class View {
  11966. /**
  11967. * Get the evaluated view contents for the given view.
  11968. *
  11969. * @param string $path
  11970. * @param array $data
  11971. * @param array $mergeData
  11972. * @return \Illuminate\Contracts\View\View
  11973. * @static
  11974. */
  11975. public static function file($path, $data = array(), $mergeData = array())
  11976. {
  11977. /** @var \Illuminate\View\Factory $instance */
  11978. return $instance->file($path, $data, $mergeData);
  11979. }
  11980. /**
  11981. * Get the evaluated view contents for the given view.
  11982. *
  11983. * @param string $view
  11984. * @param array $data
  11985. * @param array $mergeData
  11986. * @return \Illuminate\Contracts\View\View
  11987. * @static
  11988. */
  11989. public static function make($view, $data = array(), $mergeData = array())
  11990. {
  11991. /** @var \Illuminate\View\Factory $instance */
  11992. return $instance->make($view, $data, $mergeData);
  11993. }
  11994. /**
  11995. * Get the first view that actually exists from the given list.
  11996. *
  11997. * @param array $views
  11998. * @param array $data
  11999. * @param array $mergeData
  12000. * @return \Illuminate\Contracts\View\View
  12001. * @static
  12002. */
  12003. public static function first($views, $data = array(), $mergeData = array())
  12004. {
  12005. /** @var \Illuminate\View\Factory $instance */
  12006. return $instance->first($views, $data, $mergeData);
  12007. }
  12008. /**
  12009. * Get the rendered content of the view based on a given condition.
  12010. *
  12011. * @param bool $condition
  12012. * @param string $view
  12013. * @param array $data
  12014. * @param array $mergeData
  12015. * @return string
  12016. * @static
  12017. */
  12018. public static function renderWhen($condition, $view, $data = array(), $mergeData = array())
  12019. {
  12020. /** @var \Illuminate\View\Factory $instance */
  12021. return $instance->renderWhen($condition, $view, $data, $mergeData);
  12022. }
  12023. /**
  12024. * Get the rendered contents of a partial from a loop.
  12025. *
  12026. * @param string $view
  12027. * @param array $data
  12028. * @param string $iterator
  12029. * @param string $empty
  12030. * @return string
  12031. * @static
  12032. */
  12033. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  12034. {
  12035. /** @var \Illuminate\View\Factory $instance */
  12036. return $instance->renderEach($view, $data, $iterator, $empty);
  12037. }
  12038. /**
  12039. * Determine if a given view exists.
  12040. *
  12041. * @param string $view
  12042. * @return bool
  12043. * @static
  12044. */
  12045. public static function exists($view)
  12046. {
  12047. /** @var \Illuminate\View\Factory $instance */
  12048. return $instance->exists($view);
  12049. }
  12050. /**
  12051. * Get the appropriate view engine for the given path.
  12052. *
  12053. * @param string $path
  12054. * @return \Illuminate\Contracts\View\Engine
  12055. * @throws \InvalidArgumentException
  12056. * @static
  12057. */
  12058. public static function getEngineFromPath($path)
  12059. {
  12060. /** @var \Illuminate\View\Factory $instance */
  12061. return $instance->getEngineFromPath($path);
  12062. }
  12063. /**
  12064. * Add a piece of shared data to the environment.
  12065. *
  12066. * @param array|string $key
  12067. * @param mixed $value
  12068. * @return mixed
  12069. * @static
  12070. */
  12071. public static function share($key, $value = null)
  12072. {
  12073. /** @var \Illuminate\View\Factory $instance */
  12074. return $instance->share($key, $value);
  12075. }
  12076. /**
  12077. * Increment the rendering counter.
  12078. *
  12079. * @return void
  12080. * @static
  12081. */
  12082. public static function incrementRender()
  12083. {
  12084. /** @var \Illuminate\View\Factory $instance */
  12085. $instance->incrementRender();
  12086. }
  12087. /**
  12088. * Decrement the rendering counter.
  12089. *
  12090. * @return void
  12091. * @static
  12092. */
  12093. public static function decrementRender()
  12094. {
  12095. /** @var \Illuminate\View\Factory $instance */
  12096. $instance->decrementRender();
  12097. }
  12098. /**
  12099. * Check if there are no active render operations.
  12100. *
  12101. * @return bool
  12102. * @static
  12103. */
  12104. public static function doneRendering()
  12105. {
  12106. /** @var \Illuminate\View\Factory $instance */
  12107. return $instance->doneRendering();
  12108. }
  12109. /**
  12110. * Add a location to the array of view locations.
  12111. *
  12112. * @param string $location
  12113. * @return void
  12114. * @static
  12115. */
  12116. public static function addLocation($location)
  12117. {
  12118. /** @var \Illuminate\View\Factory $instance */
  12119. $instance->addLocation($location);
  12120. }
  12121. /**
  12122. * Add a new namespace to the loader.
  12123. *
  12124. * @param string $namespace
  12125. * @param string|array $hints
  12126. * @return \Illuminate\View\Factory
  12127. * @static
  12128. */
  12129. public static function addNamespace($namespace, $hints)
  12130. {
  12131. /** @var \Illuminate\View\Factory $instance */
  12132. return $instance->addNamespace($namespace, $hints);
  12133. }
  12134. /**
  12135. * Prepend a new namespace to the loader.
  12136. *
  12137. * @param string $namespace
  12138. * @param string|array $hints
  12139. * @return \Illuminate\View\Factory
  12140. * @static
  12141. */
  12142. public static function prependNamespace($namespace, $hints)
  12143. {
  12144. /** @var \Illuminate\View\Factory $instance */
  12145. return $instance->prependNamespace($namespace, $hints);
  12146. }
  12147. /**
  12148. * Replace the namespace hints for the given namespace.
  12149. *
  12150. * @param string $namespace
  12151. * @param string|array $hints
  12152. * @return \Illuminate\View\Factory
  12153. * @static
  12154. */
  12155. public static function replaceNamespace($namespace, $hints)
  12156. {
  12157. /** @var \Illuminate\View\Factory $instance */
  12158. return $instance->replaceNamespace($namespace, $hints);
  12159. }
  12160. /**
  12161. * Register a valid view extension and its engine.
  12162. *
  12163. * @param string $extension
  12164. * @param string $engine
  12165. * @param \Closure $resolver
  12166. * @return void
  12167. * @static
  12168. */
  12169. public static function addExtension($extension, $engine, $resolver = null)
  12170. {
  12171. /** @var \Illuminate\View\Factory $instance */
  12172. $instance->addExtension($extension, $engine, $resolver);
  12173. }
  12174. /**
  12175. * Flush all of the factory state like sections and stacks.
  12176. *
  12177. * @return void
  12178. * @static
  12179. */
  12180. public static function flushState()
  12181. {
  12182. /** @var \Illuminate\View\Factory $instance */
  12183. $instance->flushState();
  12184. }
  12185. /**
  12186. * Flush all of the section contents if done rendering.
  12187. *
  12188. * @return void
  12189. * @static
  12190. */
  12191. public static function flushStateIfDoneRendering()
  12192. {
  12193. /** @var \Illuminate\View\Factory $instance */
  12194. $instance->flushStateIfDoneRendering();
  12195. }
  12196. /**
  12197. * Get the extension to engine bindings.
  12198. *
  12199. * @return array
  12200. * @static
  12201. */
  12202. public static function getExtensions()
  12203. {
  12204. /** @var \Illuminate\View\Factory $instance */
  12205. return $instance->getExtensions();
  12206. }
  12207. /**
  12208. * Get the engine resolver instance.
  12209. *
  12210. * @return \Illuminate\View\Engines\EngineResolver
  12211. * @static
  12212. */
  12213. public static function getEngineResolver()
  12214. {
  12215. /** @var \Illuminate\View\Factory $instance */
  12216. return $instance->getEngineResolver();
  12217. }
  12218. /**
  12219. * Get the view finder instance.
  12220. *
  12221. * @return \Illuminate\View\ViewFinderInterface
  12222. * @static
  12223. */
  12224. public static function getFinder()
  12225. {
  12226. /** @var \Illuminate\View\Factory $instance */
  12227. return $instance->getFinder();
  12228. }
  12229. /**
  12230. * Set the view finder instance.
  12231. *
  12232. * @param \Illuminate\View\ViewFinderInterface $finder
  12233. * @return void
  12234. * @static
  12235. */
  12236. public static function setFinder($finder)
  12237. {
  12238. /** @var \Illuminate\View\Factory $instance */
  12239. $instance->setFinder($finder);
  12240. }
  12241. /**
  12242. * Flush the cache of views located by the finder.
  12243. *
  12244. * @return void
  12245. * @static
  12246. */
  12247. public static function flushFinderCache()
  12248. {
  12249. /** @var \Illuminate\View\Factory $instance */
  12250. $instance->flushFinderCache();
  12251. }
  12252. /**
  12253. * Get the event dispatcher instance.
  12254. *
  12255. * @return \Illuminate\Contracts\Events\Dispatcher
  12256. * @static
  12257. */
  12258. public static function getDispatcher()
  12259. {
  12260. /** @var \Illuminate\View\Factory $instance */
  12261. return $instance->getDispatcher();
  12262. }
  12263. /**
  12264. * Set the event dispatcher instance.
  12265. *
  12266. * @param \Illuminate\Contracts\Events\Dispatcher $events
  12267. * @return void
  12268. * @static
  12269. */
  12270. public static function setDispatcher($events)
  12271. {
  12272. /** @var \Illuminate\View\Factory $instance */
  12273. $instance->setDispatcher($events);
  12274. }
  12275. /**
  12276. * Get the IoC container instance.
  12277. *
  12278. * @return \Illuminate\Contracts\Container\Container
  12279. * @static
  12280. */
  12281. public static function getContainer()
  12282. {
  12283. /** @var \Illuminate\View\Factory $instance */
  12284. return $instance->getContainer();
  12285. }
  12286. /**
  12287. * Set the IoC container instance.
  12288. *
  12289. * @param \Illuminate\Contracts\Container\Container $container
  12290. * @return void
  12291. * @static
  12292. */
  12293. public static function setContainer($container)
  12294. {
  12295. /** @var \Illuminate\View\Factory $instance */
  12296. $instance->setContainer($container);
  12297. }
  12298. /**
  12299. * Get an item from the shared data.
  12300. *
  12301. * @param string $key
  12302. * @param mixed $default
  12303. * @return mixed
  12304. * @static
  12305. */
  12306. public static function shared($key, $default = null)
  12307. {
  12308. /** @var \Illuminate\View\Factory $instance */
  12309. return $instance->shared($key, $default);
  12310. }
  12311. /**
  12312. * Get all of the shared data for the environment.
  12313. *
  12314. * @return array
  12315. * @static
  12316. */
  12317. public static function getShared()
  12318. {
  12319. /** @var \Illuminate\View\Factory $instance */
  12320. return $instance->getShared();
  12321. }
  12322. /**
  12323. * Start a component rendering process.
  12324. *
  12325. * @param string $name
  12326. * @param array $data
  12327. * @return void
  12328. * @static
  12329. */
  12330. public static function startComponent($name, $data = array())
  12331. {
  12332. /** @var \Illuminate\View\Factory $instance */
  12333. $instance->startComponent($name, $data);
  12334. }
  12335. /**
  12336. * Render the current component.
  12337. *
  12338. * @return string
  12339. * @static
  12340. */
  12341. public static function renderComponent()
  12342. {
  12343. /** @var \Illuminate\View\Factory $instance */
  12344. return $instance->renderComponent();
  12345. }
  12346. /**
  12347. * Start the slot rendering process.
  12348. *
  12349. * @param string $name
  12350. * @param string|null $content
  12351. * @return void
  12352. * @static
  12353. */
  12354. public static function slot($name, $content = null)
  12355. {
  12356. /** @var \Illuminate\View\Factory $instance */
  12357. $instance->slot($name, $content);
  12358. }
  12359. /**
  12360. * Save the slot content for rendering.
  12361. *
  12362. * @return void
  12363. * @static
  12364. */
  12365. public static function endSlot()
  12366. {
  12367. /** @var \Illuminate\View\Factory $instance */
  12368. $instance->endSlot();
  12369. }
  12370. /**
  12371. * Register a view creator event.
  12372. *
  12373. * @param array|string $views
  12374. * @param \Closure|string $callback
  12375. * @return array
  12376. * @static
  12377. */
  12378. public static function creator($views, $callback)
  12379. {
  12380. /** @var \Illuminate\View\Factory $instance */
  12381. return $instance->creator($views, $callback);
  12382. }
  12383. /**
  12384. * Register multiple view composers via an array.
  12385. *
  12386. * @param array $composers
  12387. * @return array
  12388. * @static
  12389. */
  12390. public static function composers($composers)
  12391. {
  12392. /** @var \Illuminate\View\Factory $instance */
  12393. return $instance->composers($composers);
  12394. }
  12395. /**
  12396. * Register a view composer event.
  12397. *
  12398. * @param array|string $views
  12399. * @param \Closure|string $callback
  12400. * @return array
  12401. * @static
  12402. */
  12403. public static function composer($views, $callback)
  12404. {
  12405. /** @var \Illuminate\View\Factory $instance */
  12406. return $instance->composer($views, $callback);
  12407. }
  12408. /**
  12409. * Call the composer for a given view.
  12410. *
  12411. * @param \Illuminate\Contracts\View\View $view
  12412. * @return void
  12413. * @static
  12414. */
  12415. public static function callComposer($view)
  12416. {
  12417. /** @var \Illuminate\View\Factory $instance */
  12418. $instance->callComposer($view);
  12419. }
  12420. /**
  12421. * Call the creator for a given view.
  12422. *
  12423. * @param \Illuminate\Contracts\View\View $view
  12424. * @return void
  12425. * @static
  12426. */
  12427. public static function callCreator($view)
  12428. {
  12429. /** @var \Illuminate\View\Factory $instance */
  12430. $instance->callCreator($view);
  12431. }
  12432. /**
  12433. * Start injecting content into a section.
  12434. *
  12435. * @param string $section
  12436. * @param string|null $content
  12437. * @return void
  12438. * @static
  12439. */
  12440. public static function startSection($section, $content = null)
  12441. {
  12442. /** @var \Illuminate\View\Factory $instance */
  12443. $instance->startSection($section, $content);
  12444. }
  12445. /**
  12446. * Inject inline content into a section.
  12447. *
  12448. * @param string $section
  12449. * @param string $content
  12450. * @return void
  12451. * @static
  12452. */
  12453. public static function inject($section, $content)
  12454. {
  12455. /** @var \Illuminate\View\Factory $instance */
  12456. $instance->inject($section, $content);
  12457. }
  12458. /**
  12459. * Stop injecting content into a section and return its contents.
  12460. *
  12461. * @return string
  12462. * @static
  12463. */
  12464. public static function yieldSection()
  12465. {
  12466. /** @var \Illuminate\View\Factory $instance */
  12467. return $instance->yieldSection();
  12468. }
  12469. /**
  12470. * Stop injecting content into a section.
  12471. *
  12472. * @param bool $overwrite
  12473. * @return string
  12474. * @throws \InvalidArgumentException
  12475. * @static
  12476. */
  12477. public static function stopSection($overwrite = false)
  12478. {
  12479. /** @var \Illuminate\View\Factory $instance */
  12480. return $instance->stopSection($overwrite);
  12481. }
  12482. /**
  12483. * Stop injecting content into a section and append it.
  12484. *
  12485. * @return string
  12486. * @throws \InvalidArgumentException
  12487. * @static
  12488. */
  12489. public static function appendSection()
  12490. {
  12491. /** @var \Illuminate\View\Factory $instance */
  12492. return $instance->appendSection();
  12493. }
  12494. /**
  12495. * Get the string contents of a section.
  12496. *
  12497. * @param string $section
  12498. * @param string $default
  12499. * @return string
  12500. * @static
  12501. */
  12502. public static function yieldContent($section, $default = '')
  12503. {
  12504. /** @var \Illuminate\View\Factory $instance */
  12505. return $instance->yieldContent($section, $default);
  12506. }
  12507. /**
  12508. * Get the parent placeholder for the current request.
  12509. *
  12510. * @param string $section
  12511. * @return string
  12512. * @static
  12513. */
  12514. public static function parentPlaceholder($section = '')
  12515. {
  12516. return \Illuminate\View\Factory::parentPlaceholder($section);
  12517. }
  12518. /**
  12519. * Check if section exists.
  12520. *
  12521. * @param string $name
  12522. * @return bool
  12523. * @static
  12524. */
  12525. public static function hasSection($name)
  12526. {
  12527. /** @var \Illuminate\View\Factory $instance */
  12528. return $instance->hasSection($name);
  12529. }
  12530. /**
  12531. * Get the contents of a section.
  12532. *
  12533. * @param string $name
  12534. * @param string $default
  12535. * @return mixed
  12536. * @static
  12537. */
  12538. public static function getSection($name, $default = null)
  12539. {
  12540. /** @var \Illuminate\View\Factory $instance */
  12541. return $instance->getSection($name, $default);
  12542. }
  12543. /**
  12544. * Get the entire array of sections.
  12545. *
  12546. * @return array
  12547. * @static
  12548. */
  12549. public static function getSections()
  12550. {
  12551. /** @var \Illuminate\View\Factory $instance */
  12552. return $instance->getSections();
  12553. }
  12554. /**
  12555. * Flush all of the sections.
  12556. *
  12557. * @return void
  12558. * @static
  12559. */
  12560. public static function flushSections()
  12561. {
  12562. /** @var \Illuminate\View\Factory $instance */
  12563. $instance->flushSections();
  12564. }
  12565. /**
  12566. * Add new loop to the stack.
  12567. *
  12568. * @param \Countable|array $data
  12569. * @return void
  12570. * @static
  12571. */
  12572. public static function addLoop($data)
  12573. {
  12574. /** @var \Illuminate\View\Factory $instance */
  12575. $instance->addLoop($data);
  12576. }
  12577. /**
  12578. * Increment the top loop's indices.
  12579. *
  12580. * @return void
  12581. * @static
  12582. */
  12583. public static function incrementLoopIndices()
  12584. {
  12585. /** @var \Illuminate\View\Factory $instance */
  12586. $instance->incrementLoopIndices();
  12587. }
  12588. /**
  12589. * Pop a loop from the top of the loop stack.
  12590. *
  12591. * @return void
  12592. * @static
  12593. */
  12594. public static function popLoop()
  12595. {
  12596. /** @var \Illuminate\View\Factory $instance */
  12597. $instance->popLoop();
  12598. }
  12599. /**
  12600. * Get an instance of the last loop in the stack.
  12601. *
  12602. * @return \stdClass|null
  12603. * @static
  12604. */
  12605. public static function getLastLoop()
  12606. {
  12607. /** @var \Illuminate\View\Factory $instance */
  12608. return $instance->getLastLoop();
  12609. }
  12610. /**
  12611. * Get the entire loop stack.
  12612. *
  12613. * @return array
  12614. * @static
  12615. */
  12616. public static function getLoopStack()
  12617. {
  12618. /** @var \Illuminate\View\Factory $instance */
  12619. return $instance->getLoopStack();
  12620. }
  12621. /**
  12622. * Start injecting content into a push section.
  12623. *
  12624. * @param string $section
  12625. * @param string $content
  12626. * @return void
  12627. * @static
  12628. */
  12629. public static function startPush($section, $content = '')
  12630. {
  12631. /** @var \Illuminate\View\Factory $instance */
  12632. $instance->startPush($section, $content);
  12633. }
  12634. /**
  12635. * Stop injecting content into a push section.
  12636. *
  12637. * @return string
  12638. * @throws \InvalidArgumentException
  12639. * @static
  12640. */
  12641. public static function stopPush()
  12642. {
  12643. /** @var \Illuminate\View\Factory $instance */
  12644. return $instance->stopPush();
  12645. }
  12646. /**
  12647. * Start prepending content into a push section.
  12648. *
  12649. * @param string $section
  12650. * @param string $content
  12651. * @return void
  12652. * @static
  12653. */
  12654. public static function startPrepend($section, $content = '')
  12655. {
  12656. /** @var \Illuminate\View\Factory $instance */
  12657. $instance->startPrepend($section, $content);
  12658. }
  12659. /**
  12660. * Stop prepending content into a push section.
  12661. *
  12662. * @return string
  12663. * @throws \InvalidArgumentException
  12664. * @static
  12665. */
  12666. public static function stopPrepend()
  12667. {
  12668. /** @var \Illuminate\View\Factory $instance */
  12669. return $instance->stopPrepend();
  12670. }
  12671. /**
  12672. * Get the string contents of a push section.
  12673. *
  12674. * @param string $section
  12675. * @param string $default
  12676. * @return string
  12677. * @static
  12678. */
  12679. public static function yieldPushContent($section, $default = '')
  12680. {
  12681. /** @var \Illuminate\View\Factory $instance */
  12682. return $instance->yieldPushContent($section, $default);
  12683. }
  12684. /**
  12685. * Flush all of the stacks.
  12686. *
  12687. * @return void
  12688. * @static
  12689. */
  12690. public static function flushStacks()
  12691. {
  12692. /** @var \Illuminate\View\Factory $instance */
  12693. $instance->flushStacks();
  12694. }
  12695. /**
  12696. * Start a translation block.
  12697. *
  12698. * @param array $replacements
  12699. * @return void
  12700. * @static
  12701. */
  12702. public static function startTranslation($replacements = array())
  12703. {
  12704. /** @var \Illuminate\View\Factory $instance */
  12705. $instance->startTranslation($replacements);
  12706. }
  12707. /**
  12708. * Render the current translation.
  12709. *
  12710. * @return string
  12711. * @static
  12712. */
  12713. public static function renderTranslation()
  12714. {
  12715. /** @var \Illuminate\View\Factory $instance */
  12716. return $instance->renderTranslation();
  12717. }
  12718. }
  12719. }
  12720. namespace Dingo\Api\Facade {
  12721. /**
  12722. *
  12723. *
  12724. */
  12725. class API {
  12726. /**
  12727. * Attach files to be uploaded.
  12728. *
  12729. * @param array $files
  12730. * @return \Dingo\Api\Dispatcher
  12731. * @static
  12732. */
  12733. public static function attach($files)
  12734. {
  12735. /** @var \Dingo\Api\Dispatcher $instance */
  12736. return $instance->attach($files);
  12737. }
  12738. /**
  12739. * Internal request will be authenticated as the given user.
  12740. *
  12741. * @param mixed $user
  12742. * @return \Dingo\Api\Dispatcher
  12743. * @static
  12744. */
  12745. public static function be($user)
  12746. {
  12747. /** @var \Dingo\Api\Dispatcher $instance */
  12748. return $instance->be($user);
  12749. }
  12750. /**
  12751. * Send a JSON payload in the request body.
  12752. *
  12753. * @param string|array $content
  12754. * @return \Dingo\Api\Dispatcher
  12755. * @static
  12756. */
  12757. public static function json($content)
  12758. {
  12759. /** @var \Dingo\Api\Dispatcher $instance */
  12760. return $instance->json($content);
  12761. }
  12762. /**
  12763. * Sets the domain to be used for the request.
  12764. *
  12765. * @param string $domain
  12766. * @return \Dingo\Api\Dispatcher
  12767. * @static
  12768. */
  12769. public static function on($domain)
  12770. {
  12771. /** @var \Dingo\Api\Dispatcher $instance */
  12772. return $instance->on($domain);
  12773. }
  12774. /**
  12775. * Return the raw response object once request is dispatched.
  12776. *
  12777. * @return \Dingo\Api\Dispatcher
  12778. * @static
  12779. */
  12780. public static function raw()
  12781. {
  12782. /** @var \Dingo\Api\Dispatcher $instance */
  12783. return $instance->raw();
  12784. }
  12785. /**
  12786. * Only authenticate with the given user for a single request.
  12787. *
  12788. * @return \Dingo\Api\Dispatcher
  12789. * @static
  12790. */
  12791. public static function once()
  12792. {
  12793. /** @var \Dingo\Api\Dispatcher $instance */
  12794. return $instance->once();
  12795. }
  12796. /**
  12797. * Set the version of the API for the next request.
  12798. *
  12799. * @param string $version
  12800. * @return \Dingo\Api\Dispatcher
  12801. * @static
  12802. */
  12803. public static function version($version)
  12804. {
  12805. /** @var \Dingo\Api\Dispatcher $instance */
  12806. return $instance->version($version);
  12807. }
  12808. /**
  12809. * Set the parameters to be sent on the next API request.
  12810. *
  12811. * @param string|array $parameters
  12812. * @return \Dingo\Api\Dispatcher
  12813. * @static
  12814. */
  12815. public static function with($parameters)
  12816. {
  12817. /** @var \Dingo\Api\Dispatcher $instance */
  12818. return $instance->with($parameters);
  12819. }
  12820. /**
  12821. * Set a header to be sent on the next API request.
  12822. *
  12823. * @param string $key
  12824. * @param string $value
  12825. * @return \Dingo\Api\Dispatcher
  12826. * @static
  12827. */
  12828. public static function header($key, $value)
  12829. {
  12830. /** @var \Dingo\Api\Dispatcher $instance */
  12831. return $instance->header($key, $value);
  12832. }
  12833. /**
  12834. * Set a cookie to be sent on the next API request.
  12835. *
  12836. * @param \Symfony\Component\HttpFoundation\Cookie $cookie
  12837. * @return \Dingo\Api\Dispatcher
  12838. * @static
  12839. */
  12840. public static function cookie($cookie)
  12841. {
  12842. /** @var \Dingo\Api\Dispatcher $instance */
  12843. return $instance->cookie($cookie);
  12844. }
  12845. /**
  12846. * Perform API GET request.
  12847. *
  12848. * @param string $uri
  12849. * @param string|array $parameters
  12850. * @return mixed
  12851. * @static
  12852. */
  12853. public static function get($uri, $parameters = array())
  12854. {
  12855. /** @var \Dingo\Api\Dispatcher $instance */
  12856. return $instance->get($uri, $parameters);
  12857. }
  12858. /**
  12859. * Perform API POST request.
  12860. *
  12861. * @param string $uri
  12862. * @param string|array $parameters
  12863. * @param string $content
  12864. * @return mixed
  12865. * @static
  12866. */
  12867. public static function post($uri, $parameters = array(), $content = '')
  12868. {
  12869. /** @var \Dingo\Api\Dispatcher $instance */
  12870. return $instance->post($uri, $parameters, $content);
  12871. }
  12872. /**
  12873. * Perform API PUT request.
  12874. *
  12875. * @param string $uri
  12876. * @param string|array $parameters
  12877. * @param string $content
  12878. * @return mixed
  12879. * @static
  12880. */
  12881. public static function put($uri, $parameters = array(), $content = '')
  12882. {
  12883. /** @var \Dingo\Api\Dispatcher $instance */
  12884. return $instance->put($uri, $parameters, $content);
  12885. }
  12886. /**
  12887. * Perform API PATCH request.
  12888. *
  12889. * @param string $uri
  12890. * @param string|array $parameters
  12891. * @param string $content
  12892. * @return mixed
  12893. * @static
  12894. */
  12895. public static function patch($uri, $parameters = array(), $content = '')
  12896. {
  12897. /** @var \Dingo\Api\Dispatcher $instance */
  12898. return $instance->patch($uri, $parameters, $content);
  12899. }
  12900. /**
  12901. * Perform API DELETE request.
  12902. *
  12903. * @param string $uri
  12904. * @param string|array $parameters
  12905. * @param string $content
  12906. * @return mixed
  12907. * @static
  12908. */
  12909. public static function delete($uri, $parameters = array(), $content = '')
  12910. {
  12911. /** @var \Dingo\Api\Dispatcher $instance */
  12912. return $instance->delete($uri, $parameters, $content);
  12913. }
  12914. /**
  12915. * Get the domain.
  12916. *
  12917. * @return string
  12918. * @static
  12919. */
  12920. public static function getDomain()
  12921. {
  12922. /** @var \Dingo\Api\Dispatcher $instance */
  12923. return $instance->getDomain();
  12924. }
  12925. /**
  12926. * Get the version.
  12927. *
  12928. * @return string
  12929. * @static
  12930. */
  12931. public static function getVersion()
  12932. {
  12933. /** @var \Dingo\Api\Dispatcher $instance */
  12934. return $instance->getVersion();
  12935. }
  12936. /**
  12937. * Get the format.
  12938. *
  12939. * @return string
  12940. * @static
  12941. */
  12942. public static function getFormat()
  12943. {
  12944. /** @var \Dingo\Api\Dispatcher $instance */
  12945. return $instance->getFormat();
  12946. }
  12947. /**
  12948. * Get the subtype.
  12949. *
  12950. * @return string
  12951. * @static
  12952. */
  12953. public static function getSubtype()
  12954. {
  12955. /** @var \Dingo\Api\Dispatcher $instance */
  12956. return $instance->getSubtype();
  12957. }
  12958. /**
  12959. * Set the subtype.
  12960. *
  12961. * @param string $subtype
  12962. * @return void
  12963. * @static
  12964. */
  12965. public static function setSubtype($subtype)
  12966. {
  12967. /** @var \Dingo\Api\Dispatcher $instance */
  12968. $instance->setSubtype($subtype);
  12969. }
  12970. /**
  12971. * Get the standards tree.
  12972. *
  12973. * @return string
  12974. * @static
  12975. */
  12976. public static function getStandardsTree()
  12977. {
  12978. /** @var \Dingo\Api\Dispatcher $instance */
  12979. return $instance->getStandardsTree();
  12980. }
  12981. /**
  12982. * Set the standards tree.
  12983. *
  12984. * @param string $standardsTree
  12985. * @return void
  12986. * @static
  12987. */
  12988. public static function setStandardsTree($standardsTree)
  12989. {
  12990. /** @var \Dingo\Api\Dispatcher $instance */
  12991. $instance->setStandardsTree($standardsTree);
  12992. }
  12993. /**
  12994. * Set the prefix.
  12995. *
  12996. * @param string $prefix
  12997. * @return void
  12998. * @static
  12999. */
  13000. public static function setPrefix($prefix)
  13001. {
  13002. /** @var \Dingo\Api\Dispatcher $instance */
  13003. $instance->setPrefix($prefix);
  13004. }
  13005. /**
  13006. * Set the default version.
  13007. *
  13008. * @param string $version
  13009. * @return void
  13010. * @static
  13011. */
  13012. public static function setDefaultVersion($version)
  13013. {
  13014. /** @var \Dingo\Api\Dispatcher $instance */
  13015. $instance->setDefaultVersion($version);
  13016. }
  13017. /**
  13018. * Set the default domain.
  13019. *
  13020. * @param string $domain
  13021. * @return void
  13022. * @static
  13023. */
  13024. public static function setDefaultDomain($domain)
  13025. {
  13026. /** @var \Dingo\Api\Dispatcher $instance */
  13027. $instance->setDefaultDomain($domain);
  13028. }
  13029. /**
  13030. * Set the default format.
  13031. *
  13032. * @param string $format
  13033. * @return void
  13034. * @static
  13035. */
  13036. public static function setDefaultFormat($format)
  13037. {
  13038. /** @var \Dingo\Api\Dispatcher $instance */
  13039. $instance->setDefaultFormat($format);
  13040. }
  13041. }
  13042. }
  13043. namespace Tymon\JWTAuth\Facades {
  13044. /**
  13045. *
  13046. *
  13047. */
  13048. class JWTAuth {
  13049. /**
  13050. * Attempt to authenticate the user and return the token.
  13051. *
  13052. * @param array $credentials
  13053. * @return false|string
  13054. * @static
  13055. */
  13056. public static function attempt($credentials)
  13057. {
  13058. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13059. return $instance->attempt($credentials);
  13060. }
  13061. /**
  13062. * Authenticate a user via a token.
  13063. *
  13064. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  13065. * @static
  13066. */
  13067. public static function authenticate()
  13068. {
  13069. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13070. return $instance->authenticate();
  13071. }
  13072. /**
  13073. * Alias for authenticate().
  13074. *
  13075. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  13076. * @static
  13077. */
  13078. public static function toUser()
  13079. {
  13080. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13081. return $instance->toUser();
  13082. }
  13083. /**
  13084. * Get the authenticated user.
  13085. *
  13086. * @return \Tymon\JWTAuth\Contracts\JWTSubject
  13087. * @static
  13088. */
  13089. public static function user()
  13090. {
  13091. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13092. return $instance->user();
  13093. }
  13094. /**
  13095. * Generate a token for a given subject.
  13096. *
  13097. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  13098. * @return string
  13099. * @static
  13100. */
  13101. public static function fromSubject($subject)
  13102. {
  13103. //Method inherited from \Tymon\JWTAuth\JWT
  13104. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13105. return $instance->fromSubject($subject);
  13106. }
  13107. /**
  13108. * Alias to generate a token for a given user.
  13109. *
  13110. * @param \Tymon\JWTAuth\Contracts\JWTSubject $user
  13111. * @return string
  13112. * @static
  13113. */
  13114. public static function fromUser($user)
  13115. {
  13116. //Method inherited from \Tymon\JWTAuth\JWT
  13117. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13118. return $instance->fromUser($user);
  13119. }
  13120. /**
  13121. * Refresh an expired token.
  13122. *
  13123. * @param bool $forceForever
  13124. * @param bool $resetClaims
  13125. * @return string
  13126. * @static
  13127. */
  13128. public static function refresh($forceForever = false, $resetClaims = false)
  13129. {
  13130. //Method inherited from \Tymon\JWTAuth\JWT
  13131. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13132. return $instance->refresh($forceForever, $resetClaims);
  13133. }
  13134. /**
  13135. * Invalidate a token (add it to the blacklist).
  13136. *
  13137. * @param bool $forceForever
  13138. * @return \Tymon\JWTAuth\JWTAuth
  13139. * @static
  13140. */
  13141. public static function invalidate($forceForever = false)
  13142. {
  13143. //Method inherited from \Tymon\JWTAuth\JWT
  13144. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13145. return $instance->invalidate($forceForever);
  13146. }
  13147. /**
  13148. * Alias to get the payload, and as a result checks that
  13149. * the token is valid i.e. not expired or blacklisted.
  13150. *
  13151. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  13152. * @return \Tymon\JWTAuth\Payload
  13153. * @static
  13154. */
  13155. public static function checkOrFail()
  13156. {
  13157. //Method inherited from \Tymon\JWTAuth\JWT
  13158. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13159. return $instance->checkOrFail();
  13160. }
  13161. /**
  13162. * Check that the token is valid.
  13163. *
  13164. * @param bool $getPayload
  13165. * @return \Tymon\JWTAuth\Payload|bool
  13166. * @static
  13167. */
  13168. public static function check($getPayload = false)
  13169. {
  13170. //Method inherited from \Tymon\JWTAuth\JWT
  13171. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13172. return $instance->check($getPayload);
  13173. }
  13174. /**
  13175. * Get the token.
  13176. *
  13177. * @return \Tymon\JWTAuth\Token|null
  13178. * @static
  13179. */
  13180. public static function getToken()
  13181. {
  13182. //Method inherited from \Tymon\JWTAuth\JWT
  13183. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13184. return $instance->getToken();
  13185. }
  13186. /**
  13187. * Parse the token from the request.
  13188. *
  13189. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  13190. * @return \Tymon\JWTAuth\JWTAuth
  13191. * @static
  13192. */
  13193. public static function parseToken()
  13194. {
  13195. //Method inherited from \Tymon\JWTAuth\JWT
  13196. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13197. return $instance->parseToken();
  13198. }
  13199. /**
  13200. * Get the raw Payload instance.
  13201. *
  13202. * @return \Tymon\JWTAuth\Payload
  13203. * @static
  13204. */
  13205. public static function getPayload()
  13206. {
  13207. //Method inherited from \Tymon\JWTAuth\JWT
  13208. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13209. return $instance->getPayload();
  13210. }
  13211. /**
  13212. * Alias for getPayload().
  13213. *
  13214. * @return \Tymon\JWTAuth\Payload
  13215. * @static
  13216. */
  13217. public static function payload()
  13218. {
  13219. //Method inherited from \Tymon\JWTAuth\JWT
  13220. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13221. return $instance->payload();
  13222. }
  13223. /**
  13224. * Convenience method to get a claim value.
  13225. *
  13226. * @param string $claim
  13227. * @return mixed
  13228. * @static
  13229. */
  13230. public static function getClaim($claim)
  13231. {
  13232. //Method inherited from \Tymon\JWTAuth\JWT
  13233. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13234. return $instance->getClaim($claim);
  13235. }
  13236. /**
  13237. * Create a Payload instance.
  13238. *
  13239. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  13240. * @return \Tymon\JWTAuth\Payload
  13241. * @static
  13242. */
  13243. public static function makePayload($subject)
  13244. {
  13245. //Method inherited from \Tymon\JWTAuth\JWT
  13246. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13247. return $instance->makePayload($subject);
  13248. }
  13249. /**
  13250. * Check if the subject model matches the one saved in the token.
  13251. *
  13252. * @param string|object $model
  13253. * @return bool
  13254. * @static
  13255. */
  13256. public static function checkSubjectModel($model)
  13257. {
  13258. //Method inherited from \Tymon\JWTAuth\JWT
  13259. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13260. return $instance->checkSubjectModel($model);
  13261. }
  13262. /**
  13263. * Set the token.
  13264. *
  13265. * @param \Tymon\JWTAuth\Token|string $token
  13266. * @return \Tymon\JWTAuth\JWTAuth
  13267. * @static
  13268. */
  13269. public static function setToken($token)
  13270. {
  13271. //Method inherited from \Tymon\JWTAuth\JWT
  13272. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13273. return $instance->setToken($token);
  13274. }
  13275. /**
  13276. * Unset the current token.
  13277. *
  13278. * @return \Tymon\JWTAuth\JWTAuth
  13279. * @static
  13280. */
  13281. public static function unsetToken()
  13282. {
  13283. //Method inherited from \Tymon\JWTAuth\JWT
  13284. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13285. return $instance->unsetToken();
  13286. }
  13287. /**
  13288. * Set the request instance.
  13289. *
  13290. * @param \Illuminate\Http\Request $request
  13291. * @return \Tymon\JWTAuth\JWTAuth
  13292. * @static
  13293. */
  13294. public static function setRequest($request)
  13295. {
  13296. //Method inherited from \Tymon\JWTAuth\JWT
  13297. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13298. return $instance->setRequest($request);
  13299. }
  13300. /**
  13301. * Set whether the subject should be "locked".
  13302. *
  13303. * @param bool $lock
  13304. * @return \Tymon\JWTAuth\JWTAuth
  13305. * @static
  13306. */
  13307. public static function lockSubject($lock)
  13308. {
  13309. //Method inherited from \Tymon\JWTAuth\JWT
  13310. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13311. return $instance->lockSubject($lock);
  13312. }
  13313. /**
  13314. * Get the Manager instance.
  13315. *
  13316. * @return \Tymon\JWTAuth\Manager
  13317. * @static
  13318. */
  13319. public static function manager()
  13320. {
  13321. //Method inherited from \Tymon\JWTAuth\JWT
  13322. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13323. return $instance->manager();
  13324. }
  13325. /**
  13326. * Get the Parser instance.
  13327. *
  13328. * @return \Tymon\JWTAuth\Http\Parser\Parser
  13329. * @static
  13330. */
  13331. public static function parser()
  13332. {
  13333. //Method inherited from \Tymon\JWTAuth\JWT
  13334. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13335. return $instance->parser();
  13336. }
  13337. /**
  13338. * Get the Payload Factory.
  13339. *
  13340. * @return \Tymon\JWTAuth\Factory
  13341. * @static
  13342. */
  13343. public static function factory()
  13344. {
  13345. //Method inherited from \Tymon\JWTAuth\JWT
  13346. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13347. return $instance->factory();
  13348. }
  13349. /**
  13350. * Get the Blacklist.
  13351. *
  13352. * @return \Tymon\JWTAuth\Blacklist
  13353. * @static
  13354. */
  13355. public static function blacklist()
  13356. {
  13357. //Method inherited from \Tymon\JWTAuth\JWT
  13358. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13359. return $instance->blacklist();
  13360. }
  13361. /**
  13362. * Set the custom claims.
  13363. *
  13364. * @param array $customClaims
  13365. * @return \Tymon\JWTAuth\JWTAuth
  13366. * @static
  13367. */
  13368. public static function customClaims($customClaims)
  13369. {
  13370. //Method inherited from \Tymon\JWTAuth\JWT
  13371. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13372. return $instance->customClaims($customClaims);
  13373. }
  13374. /**
  13375. * Alias to set the custom claims.
  13376. *
  13377. * @param array $customClaims
  13378. * @return \Tymon\JWTAuth\JWTAuth
  13379. * @static
  13380. */
  13381. public static function claims($customClaims)
  13382. {
  13383. //Method inherited from \Tymon\JWTAuth\JWT
  13384. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13385. return $instance->claims($customClaims);
  13386. }
  13387. /**
  13388. * Get the custom claims.
  13389. *
  13390. * @return array
  13391. * @static
  13392. */
  13393. public static function getCustomClaims()
  13394. {
  13395. //Method inherited from \Tymon\JWTAuth\JWT
  13396. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13397. return $instance->getCustomClaims();
  13398. }
  13399. }
  13400. /**
  13401. *
  13402. *
  13403. */
  13404. class JWTFactory {
  13405. /**
  13406. * Create the Payload instance.
  13407. *
  13408. * @param bool $resetClaims
  13409. * @return \Tymon\JWTAuth\Payload
  13410. * @static
  13411. */
  13412. public static function make($resetClaims = false)
  13413. {
  13414. /** @var \Tymon\JWTAuth\Factory $instance */
  13415. return $instance->make($resetClaims);
  13416. }
  13417. /**
  13418. * Empty the claims collection.
  13419. *
  13420. * @return \Tymon\JWTAuth\Factory
  13421. * @static
  13422. */
  13423. public static function emptyClaims()
  13424. {
  13425. /** @var \Tymon\JWTAuth\Factory $instance */
  13426. return $instance->emptyClaims();
  13427. }
  13428. /**
  13429. * Build and get the Claims Collection.
  13430. *
  13431. * @return \Tymon\JWTAuth\Claims\Collection
  13432. * @static
  13433. */
  13434. public static function buildClaimsCollection()
  13435. {
  13436. /** @var \Tymon\JWTAuth\Factory $instance */
  13437. return $instance->buildClaimsCollection();
  13438. }
  13439. /**
  13440. * Get a Payload instance with a claims collection.
  13441. *
  13442. * @param \Tymon\JWTAuth\Claims\Collection $claims
  13443. * @return \Tymon\JWTAuth\Payload
  13444. * @static
  13445. */
  13446. public static function withClaims($claims)
  13447. {
  13448. /** @var \Tymon\JWTAuth\Factory $instance */
  13449. return $instance->withClaims($claims);
  13450. }
  13451. /**
  13452. * Set the default claims to be added to the Payload.
  13453. *
  13454. * @param array $claims
  13455. * @return \Tymon\JWTAuth\Factory
  13456. * @static
  13457. */
  13458. public static function setDefaultClaims($claims)
  13459. {
  13460. /** @var \Tymon\JWTAuth\Factory $instance */
  13461. return $instance->setDefaultClaims($claims);
  13462. }
  13463. /**
  13464. * Helper to set the ttl.
  13465. *
  13466. * @param int $ttl
  13467. * @return \Tymon\JWTAuth\Factory
  13468. * @static
  13469. */
  13470. public static function setTTL($ttl)
  13471. {
  13472. /** @var \Tymon\JWTAuth\Factory $instance */
  13473. return $instance->setTTL($ttl);
  13474. }
  13475. /**
  13476. * Helper to get the ttl.
  13477. *
  13478. * @return int
  13479. * @static
  13480. */
  13481. public static function getTTL()
  13482. {
  13483. /** @var \Tymon\JWTAuth\Factory $instance */
  13484. return $instance->getTTL();
  13485. }
  13486. /**
  13487. * Get the default claims.
  13488. *
  13489. * @return array
  13490. * @static
  13491. */
  13492. public static function getDefaultClaims()
  13493. {
  13494. /** @var \Tymon\JWTAuth\Factory $instance */
  13495. return $instance->getDefaultClaims();
  13496. }
  13497. /**
  13498. * Get the PayloadValidator instance.
  13499. *
  13500. * @return \Tymon\JWTAuth\Validators\PayloadValidator
  13501. * @static
  13502. */
  13503. public static function validator()
  13504. {
  13505. /** @var \Tymon\JWTAuth\Factory $instance */
  13506. return $instance->validator();
  13507. }
  13508. /**
  13509. * Set the custom claims.
  13510. *
  13511. * @param array $customClaims
  13512. * @return \Tymon\JWTAuth\Factory
  13513. * @static
  13514. */
  13515. public static function customClaims($customClaims)
  13516. {
  13517. /** @var \Tymon\JWTAuth\Factory $instance */
  13518. return $instance->customClaims($customClaims);
  13519. }
  13520. /**
  13521. * Alias to set the custom claims.
  13522. *
  13523. * @param array $customClaims
  13524. * @return \Tymon\JWTAuth\Factory
  13525. * @static
  13526. */
  13527. public static function claims($customClaims)
  13528. {
  13529. /** @var \Tymon\JWTAuth\Factory $instance */
  13530. return $instance->claims($customClaims);
  13531. }
  13532. /**
  13533. * Get the custom claims.
  13534. *
  13535. * @return array
  13536. * @static
  13537. */
  13538. public static function getCustomClaims()
  13539. {
  13540. /** @var \Tymon\JWTAuth\Factory $instance */
  13541. return $instance->getCustomClaims();
  13542. }
  13543. /**
  13544. * Set the refresh flow flag.
  13545. *
  13546. * @param bool $refreshFlow
  13547. * @return \Tymon\JWTAuth\Factory
  13548. * @static
  13549. */
  13550. public static function setRefreshFlow($refreshFlow = true)
  13551. {
  13552. /** @var \Tymon\JWTAuth\Factory $instance */
  13553. return $instance->setRefreshFlow($refreshFlow);
  13554. }
  13555. }
  13556. }
  13557. namespace {
  13558. class App extends \Illuminate\Support\Facades\App {}
  13559. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  13560. class Auth extends \Illuminate\Support\Facades\Auth {}
  13561. class Blade extends \Illuminate\Support\Facades\Blade {}
  13562. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  13563. class Bus extends \Illuminate\Support\Facades\Bus {}
  13564. class Cache extends \Illuminate\Support\Facades\Cache {}
  13565. class Config extends \Illuminate\Support\Facades\Config {}
  13566. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  13567. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  13568. class DB extends \Illuminate\Support\Facades\DB {}
  13569. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  13570. /**
  13571. * Create and return an un-saved model instance.
  13572. *
  13573. * @param array $attributes
  13574. * @return \Illuminate\Database\Eloquent\Model
  13575. * @static
  13576. */
  13577. public static function make($attributes = array())
  13578. {
  13579. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13580. return $instance->make($attributes);
  13581. }
  13582. /**
  13583. * Register a new global scope.
  13584. *
  13585. * @param string $identifier
  13586. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  13587. * @return \Illuminate\Database\Eloquent\Builder
  13588. * @static
  13589. */
  13590. public static function withGlobalScope($identifier, $scope)
  13591. {
  13592. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13593. return $instance->withGlobalScope($identifier, $scope);
  13594. }
  13595. /**
  13596. * Remove a registered global scope.
  13597. *
  13598. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  13599. * @return \Illuminate\Database\Eloquent\Builder
  13600. * @static
  13601. */
  13602. public static function withoutGlobalScope($scope)
  13603. {
  13604. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13605. return $instance->withoutGlobalScope($scope);
  13606. }
  13607. /**
  13608. * Remove all or passed registered global scopes.
  13609. *
  13610. * @param array|null $scopes
  13611. * @return \Illuminate\Database\Eloquent\Builder
  13612. * @static
  13613. */
  13614. public static function withoutGlobalScopes($scopes = null)
  13615. {
  13616. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13617. return $instance->withoutGlobalScopes($scopes);
  13618. }
  13619. /**
  13620. * Get an array of global scopes that were removed from the query.
  13621. *
  13622. * @return array
  13623. * @static
  13624. */
  13625. public static function removedScopes()
  13626. {
  13627. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13628. return $instance->removedScopes();
  13629. }
  13630. /**
  13631. * Add a where clause on the primary key to the query.
  13632. *
  13633. * @param mixed $id
  13634. * @return \Illuminate\Database\Eloquent\Builder
  13635. * @static
  13636. */
  13637. public static function whereKey($id)
  13638. {
  13639. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13640. return $instance->whereKey($id);
  13641. }
  13642. /**
  13643. * Add a where clause on the primary key to the query.
  13644. *
  13645. * @param mixed $id
  13646. * @return \Illuminate\Database\Eloquent\Builder
  13647. * @static
  13648. */
  13649. public static function whereKeyNot($id)
  13650. {
  13651. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13652. return $instance->whereKeyNot($id);
  13653. }
  13654. /**
  13655. * Add a basic where clause to the query.
  13656. *
  13657. * @param string|array|\Closure $column
  13658. * @param string $operator
  13659. * @param mixed $value
  13660. * @param string $boolean
  13661. * @return \Illuminate\Database\Eloquent\Builder
  13662. * @static
  13663. */
  13664. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  13665. {
  13666. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13667. return $instance->where($column, $operator, $value, $boolean);
  13668. }
  13669. /**
  13670. * Add an "or where" clause to the query.
  13671. *
  13672. * @param \Closure|array|string $column
  13673. * @param string $operator
  13674. * @param mixed $value
  13675. * @return \Illuminate\Database\Eloquent\Builder|static
  13676. * @static
  13677. */
  13678. public static function orWhere($column, $operator = null, $value = null)
  13679. {
  13680. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13681. return $instance->orWhere($column, $operator, $value);
  13682. }
  13683. /**
  13684. * Create a collection of models from plain arrays.
  13685. *
  13686. * @param array $items
  13687. * @return \Illuminate\Database\Eloquent\Collection
  13688. * @static
  13689. */
  13690. public static function hydrate($items)
  13691. {
  13692. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13693. return $instance->hydrate($items);
  13694. }
  13695. /**
  13696. * Create a collection of models from a raw query.
  13697. *
  13698. * @param string $query
  13699. * @param array $bindings
  13700. * @return \Illuminate\Database\Eloquent\Collection
  13701. * @static
  13702. */
  13703. public static function fromQuery($query, $bindings = array())
  13704. {
  13705. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13706. return $instance->fromQuery($query, $bindings);
  13707. }
  13708. /**
  13709. * Find a model by its primary key.
  13710. *
  13711. * @param mixed $id
  13712. * @param array $columns
  13713. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  13714. * @static
  13715. */
  13716. public static function find($id, $columns = array())
  13717. {
  13718. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13719. return $instance->find($id, $columns);
  13720. }
  13721. /**
  13722. * Find multiple models by their primary keys.
  13723. *
  13724. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  13725. * @param array $columns
  13726. * @return \Illuminate\Database\Eloquent\Collection
  13727. * @static
  13728. */
  13729. public static function findMany($ids, $columns = array())
  13730. {
  13731. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13732. return $instance->findMany($ids, $columns);
  13733. }
  13734. /**
  13735. * Find a model by its primary key or throw an exception.
  13736. *
  13737. * @param mixed $id
  13738. * @param array $columns
  13739. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
  13740. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  13741. * @static
  13742. */
  13743. public static function findOrFail($id, $columns = array())
  13744. {
  13745. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13746. return $instance->findOrFail($id, $columns);
  13747. }
  13748. /**
  13749. * Find a model by its primary key or return fresh model instance.
  13750. *
  13751. * @param mixed $id
  13752. * @param array $columns
  13753. * @return \Illuminate\Database\Eloquent\Model
  13754. * @static
  13755. */
  13756. public static function findOrNew($id, $columns = array())
  13757. {
  13758. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13759. return $instance->findOrNew($id, $columns);
  13760. }
  13761. /**
  13762. * Get the first record matching the attributes or instantiate it.
  13763. *
  13764. * @param array $attributes
  13765. * @param array $values
  13766. * @return \Illuminate\Database\Eloquent\Model
  13767. * @static
  13768. */
  13769. public static function firstOrNew($attributes, $values = array())
  13770. {
  13771. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13772. return $instance->firstOrNew($attributes, $values);
  13773. }
  13774. /**
  13775. * Get the first record matching the attributes or create it.
  13776. *
  13777. * @param array $attributes
  13778. * @param array $values
  13779. * @return \Illuminate\Database\Eloquent\Model
  13780. * @static
  13781. */
  13782. public static function firstOrCreate($attributes, $values = array())
  13783. {
  13784. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13785. return $instance->firstOrCreate($attributes, $values);
  13786. }
  13787. /**
  13788. * Create or update a record matching the attributes, and fill it with values.
  13789. *
  13790. * @param array $attributes
  13791. * @param array $values
  13792. * @return \Illuminate\Database\Eloquent\Model
  13793. * @static
  13794. */
  13795. public static function updateOrCreate($attributes, $values = array())
  13796. {
  13797. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13798. return $instance->updateOrCreate($attributes, $values);
  13799. }
  13800. /**
  13801. * Execute the query and get the first result or throw an exception.
  13802. *
  13803. * @param array $columns
  13804. * @return \Illuminate\Database\Eloquent\Model|static
  13805. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  13806. * @static
  13807. */
  13808. public static function firstOrFail($columns = array())
  13809. {
  13810. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13811. return $instance->firstOrFail($columns);
  13812. }
  13813. /**
  13814. * Execute the query and get the first result or call a callback.
  13815. *
  13816. * @param \Closure|array $columns
  13817. * @param \Closure|null $callback
  13818. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  13819. * @static
  13820. */
  13821. public static function firstOr($columns = array(), $callback = null)
  13822. {
  13823. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13824. return $instance->firstOr($columns, $callback);
  13825. }
  13826. /**
  13827. * Get a single column's value from the first result of a query.
  13828. *
  13829. * @param string $column
  13830. * @return mixed
  13831. * @static
  13832. */
  13833. public static function value($column)
  13834. {
  13835. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13836. return $instance->value($column);
  13837. }
  13838. /**
  13839. * Execute the query as a "select" statement.
  13840. *
  13841. * @param array $columns
  13842. * @return \Illuminate\Database\Eloquent\Collection|static[]
  13843. * @static
  13844. */
  13845. public static function get($columns = array())
  13846. {
  13847. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13848. return $instance->get($columns);
  13849. }
  13850. /**
  13851. * Get the hydrated models without eager loading.
  13852. *
  13853. * @param array $columns
  13854. * @return \Illuminate\Database\Eloquent\Model[]
  13855. * @static
  13856. */
  13857. public static function getModels($columns = array())
  13858. {
  13859. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13860. return $instance->getModels($columns);
  13861. }
  13862. /**
  13863. * Eager load the relationships for the models.
  13864. *
  13865. * @param array $models
  13866. * @return array
  13867. * @static
  13868. */
  13869. public static function eagerLoadRelations($models)
  13870. {
  13871. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13872. return $instance->eagerLoadRelations($models);
  13873. }
  13874. /**
  13875. * Get a generator for the given query.
  13876. *
  13877. * @return \Generator
  13878. * @static
  13879. */
  13880. public static function cursor()
  13881. {
  13882. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13883. return $instance->cursor();
  13884. }
  13885. /**
  13886. * Chunk the results of a query by comparing numeric IDs.
  13887. *
  13888. * @param int $count
  13889. * @param callable $callback
  13890. * @param string $column
  13891. * @param string|null $alias
  13892. * @return bool
  13893. * @static
  13894. */
  13895. public static function chunkById($count, $callback, $column = null, $alias = null)
  13896. {
  13897. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13898. return $instance->chunkById($count, $callback, $column, $alias);
  13899. }
  13900. /**
  13901. * Get an array with the values of a given column.
  13902. *
  13903. * @param string $column
  13904. * @param string|null $key
  13905. * @return \Illuminate\Support\Collection
  13906. * @static
  13907. */
  13908. public static function pluck($column, $key = null)
  13909. {
  13910. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13911. return $instance->pluck($column, $key);
  13912. }
  13913. /**
  13914. * Paginate the given query.
  13915. *
  13916. * @param int $perPage
  13917. * @param array $columns
  13918. * @param string $pageName
  13919. * @param int|null $page
  13920. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  13921. * @throws \InvalidArgumentException
  13922. * @static
  13923. */
  13924. public static function paginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  13925. {
  13926. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13927. return $instance->paginate($perPage, $columns, $pageName, $page);
  13928. }
  13929. /**
  13930. * Paginate the given query into a simple paginator.
  13931. *
  13932. * @param int $perPage
  13933. * @param array $columns
  13934. * @param string $pageName
  13935. * @param int|null $page
  13936. * @return \Illuminate\Contracts\Pagination\Paginator
  13937. * @static
  13938. */
  13939. public static function simplePaginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  13940. {
  13941. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13942. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  13943. }
  13944. /**
  13945. * Save a new model and return the instance.
  13946. *
  13947. * @param array $attributes
  13948. * @return \Illuminate\Database\Eloquent\Model|$this
  13949. * @static
  13950. */
  13951. public static function create($attributes = array())
  13952. {
  13953. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13954. return $instance->create($attributes);
  13955. }
  13956. /**
  13957. * Save a new model and return the instance. Allow mass-assignment.
  13958. *
  13959. * @param array $attributes
  13960. * @return \Illuminate\Database\Eloquent\Model|$this
  13961. * @static
  13962. */
  13963. public static function forceCreate($attributes)
  13964. {
  13965. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13966. return $instance->forceCreate($attributes);
  13967. }
  13968. /**
  13969. * Register a replacement for the default delete function.
  13970. *
  13971. * @param \Closure $callback
  13972. * @return void
  13973. * @static
  13974. */
  13975. public static function onDelete($callback)
  13976. {
  13977. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13978. $instance->onDelete($callback);
  13979. }
  13980. /**
  13981. * Call the given local model scopes.
  13982. *
  13983. * @param array $scopes
  13984. * @return mixed
  13985. * @static
  13986. */
  13987. public static function scopes($scopes)
  13988. {
  13989. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13990. return $instance->scopes($scopes);
  13991. }
  13992. /**
  13993. * Apply the scopes to the Eloquent builder instance and return it.
  13994. *
  13995. * @return \Illuminate\Database\Eloquent\Builder|static
  13996. * @static
  13997. */
  13998. public static function applyScopes()
  13999. {
  14000. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14001. return $instance->applyScopes();
  14002. }
  14003. /**
  14004. * Prevent the specified relations from being eager loaded.
  14005. *
  14006. * @param mixed $relations
  14007. * @return \Illuminate\Database\Eloquent\Builder
  14008. * @static
  14009. */
  14010. public static function without($relations)
  14011. {
  14012. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14013. return $instance->without($relations);
  14014. }
  14015. /**
  14016. * Create a new instance of the model being queried.
  14017. *
  14018. * @param array $attributes
  14019. * @return \Illuminate\Database\Eloquent\Model
  14020. * @static
  14021. */
  14022. public static function newModelInstance($attributes = array())
  14023. {
  14024. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14025. return $instance->newModelInstance($attributes);
  14026. }
  14027. /**
  14028. * Get the underlying query builder instance.
  14029. *
  14030. * @return \Illuminate\Database\Query\Builder
  14031. * @static
  14032. */
  14033. public static function getQuery()
  14034. {
  14035. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14036. return $instance->getQuery();
  14037. }
  14038. /**
  14039. * Set the underlying query builder instance.
  14040. *
  14041. * @param \Illuminate\Database\Query\Builder $query
  14042. * @return \Illuminate\Database\Eloquent\Builder
  14043. * @static
  14044. */
  14045. public static function setQuery($query)
  14046. {
  14047. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14048. return $instance->setQuery($query);
  14049. }
  14050. /**
  14051. * Get a base query builder instance.
  14052. *
  14053. * @return \Illuminate\Database\Query\Builder
  14054. * @static
  14055. */
  14056. public static function toBase()
  14057. {
  14058. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14059. return $instance->toBase();
  14060. }
  14061. /**
  14062. * Get the relationships being eagerly loaded.
  14063. *
  14064. * @return array
  14065. * @static
  14066. */
  14067. public static function getEagerLoads()
  14068. {
  14069. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14070. return $instance->getEagerLoads();
  14071. }
  14072. /**
  14073. * Set the relationships being eagerly loaded.
  14074. *
  14075. * @param array $eagerLoad
  14076. * @return \Illuminate\Database\Eloquent\Builder
  14077. * @static
  14078. */
  14079. public static function setEagerLoads($eagerLoad)
  14080. {
  14081. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14082. return $instance->setEagerLoads($eagerLoad);
  14083. }
  14084. /**
  14085. * Get the model instance being queried.
  14086. *
  14087. * @return \Illuminate\Database\Eloquent\Model
  14088. * @static
  14089. */
  14090. public static function getModel()
  14091. {
  14092. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14093. return $instance->getModel();
  14094. }
  14095. /**
  14096. * Set a model instance for the model being queried.
  14097. *
  14098. * @param \Illuminate\Database\Eloquent\Model $model
  14099. * @return \Illuminate\Database\Eloquent\Builder
  14100. * @static
  14101. */
  14102. public static function setModel($model)
  14103. {
  14104. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14105. return $instance->setModel($model);
  14106. }
  14107. /**
  14108. * Get the given macro by name.
  14109. *
  14110. * @param string $name
  14111. * @return \Closure
  14112. * @static
  14113. */
  14114. public static function getMacro($name)
  14115. {
  14116. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14117. return $instance->getMacro($name);
  14118. }
  14119. /**
  14120. * Chunk the results of the query.
  14121. *
  14122. * @param int $count
  14123. * @param callable $callback
  14124. * @return bool
  14125. * @static
  14126. */
  14127. public static function chunk($count, $callback)
  14128. {
  14129. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14130. return $instance->chunk($count, $callback);
  14131. }
  14132. /**
  14133. * Execute a callback over each item while chunking.
  14134. *
  14135. * @param callable $callback
  14136. * @param int $count
  14137. * @return bool
  14138. * @static
  14139. */
  14140. public static function each($callback, $count = 1000)
  14141. {
  14142. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14143. return $instance->each($callback, $count);
  14144. }
  14145. /**
  14146. * Execute the query and get the first result.
  14147. *
  14148. * @param array $columns
  14149. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  14150. * @static
  14151. */
  14152. public static function first($columns = array())
  14153. {
  14154. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14155. return $instance->first($columns);
  14156. }
  14157. /**
  14158. * Apply the callback's query changes if the given "value" is true.
  14159. *
  14160. * @param mixed $value
  14161. * @param callable $callback
  14162. * @param callable $default
  14163. * @return mixed
  14164. * @static
  14165. */
  14166. public static function when($value, $callback, $default = null)
  14167. {
  14168. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14169. return $instance->when($value, $callback, $default);
  14170. }
  14171. /**
  14172. * Pass the query to a given callback.
  14173. *
  14174. * @param \Closure $callback
  14175. * @return \Illuminate\Database\Query\Builder
  14176. * @static
  14177. */
  14178. public static function tap($callback)
  14179. {
  14180. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14181. return $instance->tap($callback);
  14182. }
  14183. /**
  14184. * Apply the callback's query changes if the given "value" is false.
  14185. *
  14186. * @param mixed $value
  14187. * @param callable $callback
  14188. * @param callable $default
  14189. * @return mixed
  14190. * @static
  14191. */
  14192. public static function unless($value, $callback, $default = null)
  14193. {
  14194. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14195. return $instance->unless($value, $callback, $default);
  14196. }
  14197. /**
  14198. * Add a relationship count / exists condition to the query.
  14199. *
  14200. * @param string $relation
  14201. * @param string $operator
  14202. * @param int $count
  14203. * @param string $boolean
  14204. * @param \Closure|null $callback
  14205. * @return \Illuminate\Database\Eloquent\Builder|static
  14206. * @static
  14207. */
  14208. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  14209. {
  14210. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14211. return $instance->has($relation, $operator, $count, $boolean, $callback);
  14212. }
  14213. /**
  14214. * Add a relationship count / exists condition to the query with an "or".
  14215. *
  14216. * @param string $relation
  14217. * @param string $operator
  14218. * @param int $count
  14219. * @return \Illuminate\Database\Eloquent\Builder|static
  14220. * @static
  14221. */
  14222. public static function orHas($relation, $operator = '>=', $count = 1)
  14223. {
  14224. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14225. return $instance->orHas($relation, $operator, $count);
  14226. }
  14227. /**
  14228. * Add a relationship count / exists condition to the query.
  14229. *
  14230. * @param string $relation
  14231. * @param string $boolean
  14232. * @param \Closure|null $callback
  14233. * @return \Illuminate\Database\Eloquent\Builder|static
  14234. * @static
  14235. */
  14236. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  14237. {
  14238. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14239. return $instance->doesntHave($relation, $boolean, $callback);
  14240. }
  14241. /**
  14242. * Add a relationship count / exists condition to the query with an "or".
  14243. *
  14244. * @param string $relation
  14245. * @return \Illuminate\Database\Eloquent\Builder|static
  14246. * @static
  14247. */
  14248. public static function orDoesntHave($relation)
  14249. {
  14250. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14251. return $instance->orDoesntHave($relation);
  14252. }
  14253. /**
  14254. * Add a relationship count / exists condition to the query with where clauses.
  14255. *
  14256. * @param string $relation
  14257. * @param \Closure|null $callback
  14258. * @param string $operator
  14259. * @param int $count
  14260. * @return \Illuminate\Database\Eloquent\Builder|static
  14261. * @static
  14262. */
  14263. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  14264. {
  14265. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14266. return $instance->whereHas($relation, $callback, $operator, $count);
  14267. }
  14268. /**
  14269. * Add a relationship count / exists condition to the query with where clauses and an "or".
  14270. *
  14271. * @param string $relation
  14272. * @param \Closure $callback
  14273. * @param string $operator
  14274. * @param int $count
  14275. * @return \Illuminate\Database\Eloquent\Builder|static
  14276. * @static
  14277. */
  14278. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  14279. {
  14280. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14281. return $instance->orWhereHas($relation, $callback, $operator, $count);
  14282. }
  14283. /**
  14284. * Add a relationship count / exists condition to the query with where clauses.
  14285. *
  14286. * @param string $relation
  14287. * @param \Closure|null $callback
  14288. * @return \Illuminate\Database\Eloquent\Builder|static
  14289. * @static
  14290. */
  14291. public static function whereDoesntHave($relation, $callback = null)
  14292. {
  14293. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14294. return $instance->whereDoesntHave($relation, $callback);
  14295. }
  14296. /**
  14297. * Add a relationship count / exists condition to the query with where clauses and an "or".
  14298. *
  14299. * @param string $relation
  14300. * @param \Closure $callback
  14301. * @return \Illuminate\Database\Eloquent\Builder|static
  14302. * @static
  14303. */
  14304. public static function orWhereDoesntHave($relation, $callback = null)
  14305. {
  14306. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14307. return $instance->orWhereDoesntHave($relation, $callback);
  14308. }
  14309. /**
  14310. * Add subselect queries to count the relations.
  14311. *
  14312. * @param mixed $relations
  14313. * @return \Illuminate\Database\Eloquent\Builder
  14314. * @static
  14315. */
  14316. public static function withCount($relations)
  14317. {
  14318. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14319. return $instance->withCount($relations);
  14320. }
  14321. /**
  14322. * Merge the where constraints from another query to the current query.
  14323. *
  14324. * @param \Illuminate\Database\Eloquent\Builder $from
  14325. * @return \Illuminate\Database\Eloquent\Builder|static
  14326. * @static
  14327. */
  14328. public static function mergeConstraintsFrom($from)
  14329. {
  14330. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14331. return $instance->mergeConstraintsFrom($from);
  14332. }
  14333. /**
  14334. * Set the columns to be selected.
  14335. *
  14336. * @param array|mixed $columns
  14337. * @return \Illuminate\Database\Query\Builder
  14338. * @static
  14339. */
  14340. public static function select($columns = array())
  14341. {
  14342. /** @var \Illuminate\Database\Query\Builder $instance */
  14343. return $instance->select($columns);
  14344. }
  14345. /**
  14346. * Add a new "raw" select expression to the query.
  14347. *
  14348. * @param string $expression
  14349. * @param array $bindings
  14350. * @return \Illuminate\Database\Query\Builder|static
  14351. * @static
  14352. */
  14353. public static function selectRaw($expression, $bindings = array())
  14354. {
  14355. /** @var \Illuminate\Database\Query\Builder $instance */
  14356. return $instance->selectRaw($expression, $bindings);
  14357. }
  14358. /**
  14359. * Add a subselect expression to the query.
  14360. *
  14361. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  14362. * @param string $as
  14363. * @return \Illuminate\Database\Query\Builder|static
  14364. * @throws \InvalidArgumentException
  14365. * @static
  14366. */
  14367. public static function selectSub($query, $as)
  14368. {
  14369. /** @var \Illuminate\Database\Query\Builder $instance */
  14370. return $instance->selectSub($query, $as);
  14371. }
  14372. /**
  14373. * Add a new select column to the query.
  14374. *
  14375. * @param array|mixed $column
  14376. * @return \Illuminate\Database\Query\Builder
  14377. * @static
  14378. */
  14379. public static function addSelect($column)
  14380. {
  14381. /** @var \Illuminate\Database\Query\Builder $instance */
  14382. return $instance->addSelect($column);
  14383. }
  14384. /**
  14385. * Force the query to only return distinct results.
  14386. *
  14387. * @return \Illuminate\Database\Query\Builder
  14388. * @static
  14389. */
  14390. public static function distinct()
  14391. {
  14392. /** @var \Illuminate\Database\Query\Builder $instance */
  14393. return $instance->distinct();
  14394. }
  14395. /**
  14396. * Set the table which the query is targeting.
  14397. *
  14398. * @param string $table
  14399. * @return \Illuminate\Database\Query\Builder
  14400. * @static
  14401. */
  14402. public static function from($table)
  14403. {
  14404. /** @var \Illuminate\Database\Query\Builder $instance */
  14405. return $instance->from($table);
  14406. }
  14407. /**
  14408. * Add a join clause to the query.
  14409. *
  14410. * @param string $table
  14411. * @param string $first
  14412. * @param string|null $operator
  14413. * @param string|null $second
  14414. * @param string $type
  14415. * @param bool $where
  14416. * @return \Illuminate\Database\Query\Builder
  14417. * @static
  14418. */
  14419. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  14420. {
  14421. /** @var \Illuminate\Database\Query\Builder $instance */
  14422. return $instance->join($table, $first, $operator, $second, $type, $where);
  14423. }
  14424. /**
  14425. * Add a "join where" clause to the query.
  14426. *
  14427. * @param string $table
  14428. * @param string $first
  14429. * @param string $operator
  14430. * @param string $second
  14431. * @param string $type
  14432. * @return \Illuminate\Database\Query\Builder|static
  14433. * @static
  14434. */
  14435. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  14436. {
  14437. /** @var \Illuminate\Database\Query\Builder $instance */
  14438. return $instance->joinWhere($table, $first, $operator, $second, $type);
  14439. }
  14440. /**
  14441. * Add a left join to the query.
  14442. *
  14443. * @param string $table
  14444. * @param string $first
  14445. * @param string|null $operator
  14446. * @param string|null $second
  14447. * @return \Illuminate\Database\Query\Builder|static
  14448. * @static
  14449. */
  14450. public static function leftJoin($table, $first, $operator = null, $second = null)
  14451. {
  14452. /** @var \Illuminate\Database\Query\Builder $instance */
  14453. return $instance->leftJoin($table, $first, $operator, $second);
  14454. }
  14455. /**
  14456. * Add a "join where" clause to the query.
  14457. *
  14458. * @param string $table
  14459. * @param string $first
  14460. * @param string $operator
  14461. * @param string $second
  14462. * @return \Illuminate\Database\Query\Builder|static
  14463. * @static
  14464. */
  14465. public static function leftJoinWhere($table, $first, $operator, $second)
  14466. {
  14467. /** @var \Illuminate\Database\Query\Builder $instance */
  14468. return $instance->leftJoinWhere($table, $first, $operator, $second);
  14469. }
  14470. /**
  14471. * Add a right join to the query.
  14472. *
  14473. * @param string $table
  14474. * @param string $first
  14475. * @param string|null $operator
  14476. * @param string|null $second
  14477. * @return \Illuminate\Database\Query\Builder|static
  14478. * @static
  14479. */
  14480. public static function rightJoin($table, $first, $operator = null, $second = null)
  14481. {
  14482. /** @var \Illuminate\Database\Query\Builder $instance */
  14483. return $instance->rightJoin($table, $first, $operator, $second);
  14484. }
  14485. /**
  14486. * Add a "right join where" clause to the query.
  14487. *
  14488. * @param string $table
  14489. * @param string $first
  14490. * @param string $operator
  14491. * @param string $second
  14492. * @return \Illuminate\Database\Query\Builder|static
  14493. * @static
  14494. */
  14495. public static function rightJoinWhere($table, $first, $operator, $second)
  14496. {
  14497. /** @var \Illuminate\Database\Query\Builder $instance */
  14498. return $instance->rightJoinWhere($table, $first, $operator, $second);
  14499. }
  14500. /**
  14501. * Add a "cross join" clause to the query.
  14502. *
  14503. * @param string $table
  14504. * @param string|null $first
  14505. * @param string|null $operator
  14506. * @param string|null $second
  14507. * @return \Illuminate\Database\Query\Builder|static
  14508. * @static
  14509. */
  14510. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  14511. {
  14512. /** @var \Illuminate\Database\Query\Builder $instance */
  14513. return $instance->crossJoin($table, $first, $operator, $second);
  14514. }
  14515. /**
  14516. * Merge an array of where clauses and bindings.
  14517. *
  14518. * @param array $wheres
  14519. * @param array $bindings
  14520. * @return void
  14521. * @static
  14522. */
  14523. public static function mergeWheres($wheres, $bindings)
  14524. {
  14525. /** @var \Illuminate\Database\Query\Builder $instance */
  14526. $instance->mergeWheres($wheres, $bindings);
  14527. }
  14528. /**
  14529. * Prepare the value and operator for a where clause.
  14530. *
  14531. * @param string $value
  14532. * @param string $operator
  14533. * @param bool $useDefault
  14534. * @return array
  14535. * @throws \InvalidArgumentException
  14536. * @static
  14537. */
  14538. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  14539. {
  14540. /** @var \Illuminate\Database\Query\Builder $instance */
  14541. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  14542. }
  14543. /**
  14544. * Add a "where" clause comparing two columns to the query.
  14545. *
  14546. * @param string|array $first
  14547. * @param string|null $operator
  14548. * @param string|null $second
  14549. * @param string|null $boolean
  14550. * @return \Illuminate\Database\Query\Builder|static
  14551. * @static
  14552. */
  14553. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  14554. {
  14555. /** @var \Illuminate\Database\Query\Builder $instance */
  14556. return $instance->whereColumn($first, $operator, $second, $boolean);
  14557. }
  14558. /**
  14559. * Add an "or where" clause comparing two columns to the query.
  14560. *
  14561. * @param string|array $first
  14562. * @param string|null $operator
  14563. * @param string|null $second
  14564. * @return \Illuminate\Database\Query\Builder|static
  14565. * @static
  14566. */
  14567. public static function orWhereColumn($first, $operator = null, $second = null)
  14568. {
  14569. /** @var \Illuminate\Database\Query\Builder $instance */
  14570. return $instance->orWhereColumn($first, $operator, $second);
  14571. }
  14572. /**
  14573. * Add a raw where clause to the query.
  14574. *
  14575. * @param string $sql
  14576. * @param mixed $bindings
  14577. * @param string $boolean
  14578. * @return \Illuminate\Database\Query\Builder
  14579. * @static
  14580. */
  14581. public static function whereRaw($sql, $bindings = array(), $boolean = 'and')
  14582. {
  14583. /** @var \Illuminate\Database\Query\Builder $instance */
  14584. return $instance->whereRaw($sql, $bindings, $boolean);
  14585. }
  14586. /**
  14587. * Add a raw or where clause to the query.
  14588. *
  14589. * @param string $sql
  14590. * @param mixed $bindings
  14591. * @return \Illuminate\Database\Query\Builder|static
  14592. * @static
  14593. */
  14594. public static function orWhereRaw($sql, $bindings = array())
  14595. {
  14596. /** @var \Illuminate\Database\Query\Builder $instance */
  14597. return $instance->orWhereRaw($sql, $bindings);
  14598. }
  14599. /**
  14600. * Add a "where in" clause to the query.
  14601. *
  14602. * @param string $column
  14603. * @param mixed $values
  14604. * @param string $boolean
  14605. * @param bool $not
  14606. * @return \Illuminate\Database\Query\Builder
  14607. * @static
  14608. */
  14609. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  14610. {
  14611. /** @var \Illuminate\Database\Query\Builder $instance */
  14612. return $instance->whereIn($column, $values, $boolean, $not);
  14613. }
  14614. /**
  14615. * Add an "or where in" clause to the query.
  14616. *
  14617. * @param string $column
  14618. * @param mixed $values
  14619. * @return \Illuminate\Database\Query\Builder|static
  14620. * @static
  14621. */
  14622. public static function orWhereIn($column, $values)
  14623. {
  14624. /** @var \Illuminate\Database\Query\Builder $instance */
  14625. return $instance->orWhereIn($column, $values);
  14626. }
  14627. /**
  14628. * Add a "where not in" clause to the query.
  14629. *
  14630. * @param string $column
  14631. * @param mixed $values
  14632. * @param string $boolean
  14633. * @return \Illuminate\Database\Query\Builder|static
  14634. * @static
  14635. */
  14636. public static function whereNotIn($column, $values, $boolean = 'and')
  14637. {
  14638. /** @var \Illuminate\Database\Query\Builder $instance */
  14639. return $instance->whereNotIn($column, $values, $boolean);
  14640. }
  14641. /**
  14642. * Add an "or where not in" clause to the query.
  14643. *
  14644. * @param string $column
  14645. * @param mixed $values
  14646. * @return \Illuminate\Database\Query\Builder|static
  14647. * @static
  14648. */
  14649. public static function orWhereNotIn($column, $values)
  14650. {
  14651. /** @var \Illuminate\Database\Query\Builder $instance */
  14652. return $instance->orWhereNotIn($column, $values);
  14653. }
  14654. /**
  14655. * Add a "where null" clause to the query.
  14656. *
  14657. * @param string $column
  14658. * @param string $boolean
  14659. * @param bool $not
  14660. * @return \Illuminate\Database\Query\Builder
  14661. * @static
  14662. */
  14663. public static function whereNull($column, $boolean = 'and', $not = false)
  14664. {
  14665. /** @var \Illuminate\Database\Query\Builder $instance */
  14666. return $instance->whereNull($column, $boolean, $not);
  14667. }
  14668. /**
  14669. * Add an "or where null" clause to the query.
  14670. *
  14671. * @param string $column
  14672. * @return \Illuminate\Database\Query\Builder|static
  14673. * @static
  14674. */
  14675. public static function orWhereNull($column)
  14676. {
  14677. /** @var \Illuminate\Database\Query\Builder $instance */
  14678. return $instance->orWhereNull($column);
  14679. }
  14680. /**
  14681. * Add a "where not null" clause to the query.
  14682. *
  14683. * @param string $column
  14684. * @param string $boolean
  14685. * @return \Illuminate\Database\Query\Builder|static
  14686. * @static
  14687. */
  14688. public static function whereNotNull($column, $boolean = 'and')
  14689. {
  14690. /** @var \Illuminate\Database\Query\Builder $instance */
  14691. return $instance->whereNotNull($column, $boolean);
  14692. }
  14693. /**
  14694. * Add a where between statement to the query.
  14695. *
  14696. * @param string $column
  14697. * @param array $values
  14698. * @param string $boolean
  14699. * @param bool $not
  14700. * @return \Illuminate\Database\Query\Builder
  14701. * @static
  14702. */
  14703. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  14704. {
  14705. /** @var \Illuminate\Database\Query\Builder $instance */
  14706. return $instance->whereBetween($column, $values, $boolean, $not);
  14707. }
  14708. /**
  14709. * Add an or where between statement to the query.
  14710. *
  14711. * @param string $column
  14712. * @param array $values
  14713. * @return \Illuminate\Database\Query\Builder|static
  14714. * @static
  14715. */
  14716. public static function orWhereBetween($column, $values)
  14717. {
  14718. /** @var \Illuminate\Database\Query\Builder $instance */
  14719. return $instance->orWhereBetween($column, $values);
  14720. }
  14721. /**
  14722. * Add a where not between statement to the query.
  14723. *
  14724. * @param string $column
  14725. * @param array $values
  14726. * @param string $boolean
  14727. * @return \Illuminate\Database\Query\Builder|static
  14728. * @static
  14729. */
  14730. public static function whereNotBetween($column, $values, $boolean = 'and')
  14731. {
  14732. /** @var \Illuminate\Database\Query\Builder $instance */
  14733. return $instance->whereNotBetween($column, $values, $boolean);
  14734. }
  14735. /**
  14736. * Add an or where not between statement to the query.
  14737. *
  14738. * @param string $column
  14739. * @param array $values
  14740. * @return \Illuminate\Database\Query\Builder|static
  14741. * @static
  14742. */
  14743. public static function orWhereNotBetween($column, $values)
  14744. {
  14745. /** @var \Illuminate\Database\Query\Builder $instance */
  14746. return $instance->orWhereNotBetween($column, $values);
  14747. }
  14748. /**
  14749. * Add an "or where not null" clause to the query.
  14750. *
  14751. * @param string $column
  14752. * @return \Illuminate\Database\Query\Builder|static
  14753. * @static
  14754. */
  14755. public static function orWhereNotNull($column)
  14756. {
  14757. /** @var \Illuminate\Database\Query\Builder $instance */
  14758. return $instance->orWhereNotNull($column);
  14759. }
  14760. /**
  14761. * Add a "where date" statement to the query.
  14762. *
  14763. * @param string $column
  14764. * @param string $operator
  14765. * @param mixed $value
  14766. * @param string $boolean
  14767. * @return \Illuminate\Database\Query\Builder|static
  14768. * @static
  14769. */
  14770. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  14771. {
  14772. /** @var \Illuminate\Database\Query\Builder $instance */
  14773. return $instance->whereDate($column, $operator, $value, $boolean);
  14774. }
  14775. /**
  14776. * Add an "or where date" statement to the query.
  14777. *
  14778. * @param string $column
  14779. * @param string $operator
  14780. * @param string $value
  14781. * @return \Illuminate\Database\Query\Builder|static
  14782. * @static
  14783. */
  14784. public static function orWhereDate($column, $operator, $value)
  14785. {
  14786. /** @var \Illuminate\Database\Query\Builder $instance */
  14787. return $instance->orWhereDate($column, $operator, $value);
  14788. }
  14789. /**
  14790. * Add a "where time" statement to the query.
  14791. *
  14792. * @param string $column
  14793. * @param string $operator
  14794. * @param int $value
  14795. * @param string $boolean
  14796. * @return \Illuminate\Database\Query\Builder|static
  14797. * @static
  14798. */
  14799. public static function whereTime($column, $operator, $value, $boolean = 'and')
  14800. {
  14801. /** @var \Illuminate\Database\Query\Builder $instance */
  14802. return $instance->whereTime($column, $operator, $value, $boolean);
  14803. }
  14804. /**
  14805. * Add an "or where time" statement to the query.
  14806. *
  14807. * @param string $column
  14808. * @param string $operator
  14809. * @param int $value
  14810. * @return \Illuminate\Database\Query\Builder|static
  14811. * @static
  14812. */
  14813. public static function orWhereTime($column, $operator, $value)
  14814. {
  14815. /** @var \Illuminate\Database\Query\Builder $instance */
  14816. return $instance->orWhereTime($column, $operator, $value);
  14817. }
  14818. /**
  14819. * Add a "where day" statement to the query.
  14820. *
  14821. * @param string $column
  14822. * @param string $operator
  14823. * @param mixed $value
  14824. * @param string $boolean
  14825. * @return \Illuminate\Database\Query\Builder|static
  14826. * @static
  14827. */
  14828. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  14829. {
  14830. /** @var \Illuminate\Database\Query\Builder $instance */
  14831. return $instance->whereDay($column, $operator, $value, $boolean);
  14832. }
  14833. /**
  14834. * Add a "where month" statement to the query.
  14835. *
  14836. * @param string $column
  14837. * @param string $operator
  14838. * @param mixed $value
  14839. * @param string $boolean
  14840. * @return \Illuminate\Database\Query\Builder|static
  14841. * @static
  14842. */
  14843. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  14844. {
  14845. /** @var \Illuminate\Database\Query\Builder $instance */
  14846. return $instance->whereMonth($column, $operator, $value, $boolean);
  14847. }
  14848. /**
  14849. * Add a "where year" statement to the query.
  14850. *
  14851. * @param string $column
  14852. * @param string $operator
  14853. * @param mixed $value
  14854. * @param string $boolean
  14855. * @return \Illuminate\Database\Query\Builder|static
  14856. * @static
  14857. */
  14858. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  14859. {
  14860. /** @var \Illuminate\Database\Query\Builder $instance */
  14861. return $instance->whereYear($column, $operator, $value, $boolean);
  14862. }
  14863. /**
  14864. * Add a nested where statement to the query.
  14865. *
  14866. * @param \Closure $callback
  14867. * @param string $boolean
  14868. * @return \Illuminate\Database\Query\Builder|static
  14869. * @static
  14870. */
  14871. public static function whereNested($callback, $boolean = 'and')
  14872. {
  14873. /** @var \Illuminate\Database\Query\Builder $instance */
  14874. return $instance->whereNested($callback, $boolean);
  14875. }
  14876. /**
  14877. * Create a new query instance for nested where condition.
  14878. *
  14879. * @return \Illuminate\Database\Query\Builder
  14880. * @static
  14881. */
  14882. public static function forNestedWhere()
  14883. {
  14884. /** @var \Illuminate\Database\Query\Builder $instance */
  14885. return $instance->forNestedWhere();
  14886. }
  14887. /**
  14888. * Add another query builder as a nested where to the query builder.
  14889. *
  14890. * @param \Illuminate\Database\Query\Builder|static $query
  14891. * @param string $boolean
  14892. * @return \Illuminate\Database\Query\Builder
  14893. * @static
  14894. */
  14895. public static function addNestedWhereQuery($query, $boolean = 'and')
  14896. {
  14897. /** @var \Illuminate\Database\Query\Builder $instance */
  14898. return $instance->addNestedWhereQuery($query, $boolean);
  14899. }
  14900. /**
  14901. * Add an exists clause to the query.
  14902. *
  14903. * @param \Closure $callback
  14904. * @param string $boolean
  14905. * @param bool $not
  14906. * @return \Illuminate\Database\Query\Builder
  14907. * @static
  14908. */
  14909. public static function whereExists($callback, $boolean = 'and', $not = false)
  14910. {
  14911. /** @var \Illuminate\Database\Query\Builder $instance */
  14912. return $instance->whereExists($callback, $boolean, $not);
  14913. }
  14914. /**
  14915. * Add an or exists clause to the query.
  14916. *
  14917. * @param \Closure $callback
  14918. * @param bool $not
  14919. * @return \Illuminate\Database\Query\Builder|static
  14920. * @static
  14921. */
  14922. public static function orWhereExists($callback, $not = false)
  14923. {
  14924. /** @var \Illuminate\Database\Query\Builder $instance */
  14925. return $instance->orWhereExists($callback, $not);
  14926. }
  14927. /**
  14928. * Add a where not exists clause to the query.
  14929. *
  14930. * @param \Closure $callback
  14931. * @param string $boolean
  14932. * @return \Illuminate\Database\Query\Builder|static
  14933. * @static
  14934. */
  14935. public static function whereNotExists($callback, $boolean = 'and')
  14936. {
  14937. /** @var \Illuminate\Database\Query\Builder $instance */
  14938. return $instance->whereNotExists($callback, $boolean);
  14939. }
  14940. /**
  14941. * Add a where not exists clause to the query.
  14942. *
  14943. * @param \Closure $callback
  14944. * @return \Illuminate\Database\Query\Builder|static
  14945. * @static
  14946. */
  14947. public static function orWhereNotExists($callback)
  14948. {
  14949. /** @var \Illuminate\Database\Query\Builder $instance */
  14950. return $instance->orWhereNotExists($callback);
  14951. }
  14952. /**
  14953. * Add an exists clause to the query.
  14954. *
  14955. * @param \Illuminate\Database\Query\Builder $query
  14956. * @param string $boolean
  14957. * @param bool $not
  14958. * @return \Illuminate\Database\Query\Builder
  14959. * @static
  14960. */
  14961. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  14962. {
  14963. /** @var \Illuminate\Database\Query\Builder $instance */
  14964. return $instance->addWhereExistsQuery($query, $boolean, $not);
  14965. }
  14966. /**
  14967. * Handles dynamic "where" clauses to the query.
  14968. *
  14969. * @param string $method
  14970. * @param string $parameters
  14971. * @return \Illuminate\Database\Query\Builder
  14972. * @static
  14973. */
  14974. public static function dynamicWhere($method, $parameters)
  14975. {
  14976. /** @var \Illuminate\Database\Query\Builder $instance */
  14977. return $instance->dynamicWhere($method, $parameters);
  14978. }
  14979. /**
  14980. * Add a "group by" clause to the query.
  14981. *
  14982. * @param array $groups
  14983. * @return \Illuminate\Database\Query\Builder
  14984. * @static
  14985. */
  14986. public static function groupBy($groups = null)
  14987. {
  14988. /** @var \Illuminate\Database\Query\Builder $instance */
  14989. return $instance->groupBy($groups);
  14990. }
  14991. /**
  14992. * Add a "having" clause to the query.
  14993. *
  14994. * @param string $column
  14995. * @param string|null $operator
  14996. * @param string|null $value
  14997. * @param string $boolean
  14998. * @return \Illuminate\Database\Query\Builder
  14999. * @static
  15000. */
  15001. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  15002. {
  15003. /** @var \Illuminate\Database\Query\Builder $instance */
  15004. return $instance->having($column, $operator, $value, $boolean);
  15005. }
  15006. /**
  15007. * Add a "or having" clause to the query.
  15008. *
  15009. * @param string $column
  15010. * @param string|null $operator
  15011. * @param string|null $value
  15012. * @return \Illuminate\Database\Query\Builder|static
  15013. * @static
  15014. */
  15015. public static function orHaving($column, $operator = null, $value = null)
  15016. {
  15017. /** @var \Illuminate\Database\Query\Builder $instance */
  15018. return $instance->orHaving($column, $operator, $value);
  15019. }
  15020. /**
  15021. * Add a raw having clause to the query.
  15022. *
  15023. * @param string $sql
  15024. * @param array $bindings
  15025. * @param string $boolean
  15026. * @return \Illuminate\Database\Query\Builder
  15027. * @static
  15028. */
  15029. public static function havingRaw($sql, $bindings = array(), $boolean = 'and')
  15030. {
  15031. /** @var \Illuminate\Database\Query\Builder $instance */
  15032. return $instance->havingRaw($sql, $bindings, $boolean);
  15033. }
  15034. /**
  15035. * Add a raw or having clause to the query.
  15036. *
  15037. * @param string $sql
  15038. * @param array $bindings
  15039. * @return \Illuminate\Database\Query\Builder|static
  15040. * @static
  15041. */
  15042. public static function orHavingRaw($sql, $bindings = array())
  15043. {
  15044. /** @var \Illuminate\Database\Query\Builder $instance */
  15045. return $instance->orHavingRaw($sql, $bindings);
  15046. }
  15047. /**
  15048. * Add an "order by" clause to the query.
  15049. *
  15050. * @param string $column
  15051. * @param string $direction
  15052. * @return \Illuminate\Database\Query\Builder
  15053. * @static
  15054. */
  15055. public static function orderBy($column, $direction = 'asc')
  15056. {
  15057. /** @var \Illuminate\Database\Query\Builder $instance */
  15058. return $instance->orderBy($column, $direction);
  15059. }
  15060. /**
  15061. * Add a descending "order by" clause to the query.
  15062. *
  15063. * @param string $column
  15064. * @return \Illuminate\Database\Query\Builder
  15065. * @static
  15066. */
  15067. public static function orderByDesc($column)
  15068. {
  15069. /** @var \Illuminate\Database\Query\Builder $instance */
  15070. return $instance->orderByDesc($column);
  15071. }
  15072. /**
  15073. * Add an "order by" clause for a timestamp to the query.
  15074. *
  15075. * @param string $column
  15076. * @return \Illuminate\Database\Query\Builder|static
  15077. * @static
  15078. */
  15079. public static function latest($column = 'created_at')
  15080. {
  15081. /** @var \Illuminate\Database\Query\Builder $instance */
  15082. return $instance->latest($column);
  15083. }
  15084. /**
  15085. * Add an "order by" clause for a timestamp to the query.
  15086. *
  15087. * @param string $column
  15088. * @return \Illuminate\Database\Query\Builder|static
  15089. * @static
  15090. */
  15091. public static function oldest($column = 'created_at')
  15092. {
  15093. /** @var \Illuminate\Database\Query\Builder $instance */
  15094. return $instance->oldest($column);
  15095. }
  15096. /**
  15097. * Put the query's results in random order.
  15098. *
  15099. * @param string $seed
  15100. * @return \Illuminate\Database\Query\Builder
  15101. * @static
  15102. */
  15103. public static function inRandomOrder($seed = '')
  15104. {
  15105. /** @var \Illuminate\Database\Query\Builder $instance */
  15106. return $instance->inRandomOrder($seed);
  15107. }
  15108. /**
  15109. * Add a raw "order by" clause to the query.
  15110. *
  15111. * @param string $sql
  15112. * @param array $bindings
  15113. * @return \Illuminate\Database\Query\Builder
  15114. * @static
  15115. */
  15116. public static function orderByRaw($sql, $bindings = array())
  15117. {
  15118. /** @var \Illuminate\Database\Query\Builder $instance */
  15119. return $instance->orderByRaw($sql, $bindings);
  15120. }
  15121. /**
  15122. * Alias to set the "offset" value of the query.
  15123. *
  15124. * @param int $value
  15125. * @return \Illuminate\Database\Query\Builder|static
  15126. * @static
  15127. */
  15128. public static function skip($value)
  15129. {
  15130. /** @var \Illuminate\Database\Query\Builder $instance */
  15131. return $instance->skip($value);
  15132. }
  15133. /**
  15134. * Set the "offset" value of the query.
  15135. *
  15136. * @param int $value
  15137. * @return \Illuminate\Database\Query\Builder
  15138. * @static
  15139. */
  15140. public static function offset($value)
  15141. {
  15142. /** @var \Illuminate\Database\Query\Builder $instance */
  15143. return $instance->offset($value);
  15144. }
  15145. /**
  15146. * Alias to set the "limit" value of the query.
  15147. *
  15148. * @param int $value
  15149. * @return \Illuminate\Database\Query\Builder|static
  15150. * @static
  15151. */
  15152. public static function take($value)
  15153. {
  15154. /** @var \Illuminate\Database\Query\Builder $instance */
  15155. return $instance->take($value);
  15156. }
  15157. /**
  15158. * Set the "limit" value of the query.
  15159. *
  15160. * @param int $value
  15161. * @return \Illuminate\Database\Query\Builder
  15162. * @static
  15163. */
  15164. public static function limit($value)
  15165. {
  15166. /** @var \Illuminate\Database\Query\Builder $instance */
  15167. return $instance->limit($value);
  15168. }
  15169. /**
  15170. * Set the limit and offset for a given page.
  15171. *
  15172. * @param int $page
  15173. * @param int $perPage
  15174. * @return \Illuminate\Database\Query\Builder|static
  15175. * @static
  15176. */
  15177. public static function forPage($page, $perPage = 15)
  15178. {
  15179. /** @var \Illuminate\Database\Query\Builder $instance */
  15180. return $instance->forPage($page, $perPage);
  15181. }
  15182. /**
  15183. * Constrain the query to the next "page" of results after a given ID.
  15184. *
  15185. * @param int $perPage
  15186. * @param int $lastId
  15187. * @param string $column
  15188. * @return \Illuminate\Database\Query\Builder|static
  15189. * @static
  15190. */
  15191. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  15192. {
  15193. /** @var \Illuminate\Database\Query\Builder $instance */
  15194. return $instance->forPageAfterId($perPage, $lastId, $column);
  15195. }
  15196. /**
  15197. * Add a union statement to the query.
  15198. *
  15199. * @param \Illuminate\Database\Query\Builder|\Closure $query
  15200. * @param bool $all
  15201. * @return \Illuminate\Database\Query\Builder|static
  15202. * @static
  15203. */
  15204. public static function union($query, $all = false)
  15205. {
  15206. /** @var \Illuminate\Database\Query\Builder $instance */
  15207. return $instance->union($query, $all);
  15208. }
  15209. /**
  15210. * Add a union all statement to the query.
  15211. *
  15212. * @param \Illuminate\Database\Query\Builder|\Closure $query
  15213. * @return \Illuminate\Database\Query\Builder|static
  15214. * @static
  15215. */
  15216. public static function unionAll($query)
  15217. {
  15218. /** @var \Illuminate\Database\Query\Builder $instance */
  15219. return $instance->unionAll($query);
  15220. }
  15221. /**
  15222. * Lock the selected rows in the table.
  15223. *
  15224. * @param string|bool $value
  15225. * @return \Illuminate\Database\Query\Builder
  15226. * @static
  15227. */
  15228. public static function lock($value = true)
  15229. {
  15230. /** @var \Illuminate\Database\Query\Builder $instance */
  15231. return $instance->lock($value);
  15232. }
  15233. /**
  15234. * Lock the selected rows in the table for updating.
  15235. *
  15236. * @return \Illuminate\Database\Query\Builder
  15237. * @static
  15238. */
  15239. public static function lockForUpdate()
  15240. {
  15241. /** @var \Illuminate\Database\Query\Builder $instance */
  15242. return $instance->lockForUpdate();
  15243. }
  15244. /**
  15245. * Share lock the selected rows in the table.
  15246. *
  15247. * @return \Illuminate\Database\Query\Builder
  15248. * @static
  15249. */
  15250. public static function sharedLock()
  15251. {
  15252. /** @var \Illuminate\Database\Query\Builder $instance */
  15253. return $instance->sharedLock();
  15254. }
  15255. /**
  15256. * Get the SQL representation of the query.
  15257. *
  15258. * @return string
  15259. * @static
  15260. */
  15261. public static function toSql()
  15262. {
  15263. /** @var \Illuminate\Database\Query\Builder $instance */
  15264. return $instance->toSql();
  15265. }
  15266. /**
  15267. * Get the count of the total records for the paginator.
  15268. *
  15269. * @param array $columns
  15270. * @return int
  15271. * @static
  15272. */
  15273. public static function getCountForPagination($columns = array())
  15274. {
  15275. /** @var \Illuminate\Database\Query\Builder $instance */
  15276. return $instance->getCountForPagination($columns);
  15277. }
  15278. /**
  15279. * Concatenate values of a given column as a string.
  15280. *
  15281. * @param string $column
  15282. * @param string $glue
  15283. * @return string
  15284. * @static
  15285. */
  15286. public static function implode($column, $glue = '')
  15287. {
  15288. /** @var \Illuminate\Database\Query\Builder $instance */
  15289. return $instance->implode($column, $glue);
  15290. }
  15291. /**
  15292. * Determine if any rows exist for the current query.
  15293. *
  15294. * @return bool
  15295. * @static
  15296. */
  15297. public static function exists()
  15298. {
  15299. /** @var \Illuminate\Database\Query\Builder $instance */
  15300. return $instance->exists();
  15301. }
  15302. /**
  15303. * Determine if no rows exist for the current query.
  15304. *
  15305. * @return bool
  15306. * @static
  15307. */
  15308. public static function doesntExist()
  15309. {
  15310. /** @var \Illuminate\Database\Query\Builder $instance */
  15311. return $instance->doesntExist();
  15312. }
  15313. /**
  15314. * Retrieve the "count" result of the query.
  15315. *
  15316. * @param string $columns
  15317. * @return int
  15318. * @static
  15319. */
  15320. public static function count($columns = '*')
  15321. {
  15322. /** @var \Illuminate\Database\Query\Builder $instance */
  15323. return $instance->count($columns);
  15324. }
  15325. /**
  15326. * Retrieve the minimum value of a given column.
  15327. *
  15328. * @param string $column
  15329. * @return mixed
  15330. * @static
  15331. */
  15332. public static function min($column)
  15333. {
  15334. /** @var \Illuminate\Database\Query\Builder $instance */
  15335. return $instance->min($column);
  15336. }
  15337. /**
  15338. * Retrieve the maximum value of a given column.
  15339. *
  15340. * @param string $column
  15341. * @return mixed
  15342. * @static
  15343. */
  15344. public static function max($column)
  15345. {
  15346. /** @var \Illuminate\Database\Query\Builder $instance */
  15347. return $instance->max($column);
  15348. }
  15349. /**
  15350. * Retrieve the sum of the values of a given column.
  15351. *
  15352. * @param string $column
  15353. * @return mixed
  15354. * @static
  15355. */
  15356. public static function sum($column)
  15357. {
  15358. /** @var \Illuminate\Database\Query\Builder $instance */
  15359. return $instance->sum($column);
  15360. }
  15361. /**
  15362. * Retrieve the average of the values of a given column.
  15363. *
  15364. * @param string $column
  15365. * @return mixed
  15366. * @static
  15367. */
  15368. public static function avg($column)
  15369. {
  15370. /** @var \Illuminate\Database\Query\Builder $instance */
  15371. return $instance->avg($column);
  15372. }
  15373. /**
  15374. * Alias for the "avg" method.
  15375. *
  15376. * @param string $column
  15377. * @return mixed
  15378. * @static
  15379. */
  15380. public static function average($column)
  15381. {
  15382. /** @var \Illuminate\Database\Query\Builder $instance */
  15383. return $instance->average($column);
  15384. }
  15385. /**
  15386. * Execute an aggregate function on the database.
  15387. *
  15388. * @param string $function
  15389. * @param array $columns
  15390. * @return mixed
  15391. * @static
  15392. */
  15393. public static function aggregate($function, $columns = array())
  15394. {
  15395. /** @var \Illuminate\Database\Query\Builder $instance */
  15396. return $instance->aggregate($function, $columns);
  15397. }
  15398. /**
  15399. * Execute a numeric aggregate function on the database.
  15400. *
  15401. * @param string $function
  15402. * @param array $columns
  15403. * @return float|int
  15404. * @static
  15405. */
  15406. public static function numericAggregate($function, $columns = array())
  15407. {
  15408. /** @var \Illuminate\Database\Query\Builder $instance */
  15409. return $instance->numericAggregate($function, $columns);
  15410. }
  15411. /**
  15412. * Insert a new record into the database.
  15413. *
  15414. * @param array $values
  15415. * @return bool
  15416. * @static
  15417. */
  15418. public static function insert($values)
  15419. {
  15420. /** @var \Illuminate\Database\Query\Builder $instance */
  15421. return $instance->insert($values);
  15422. }
  15423. /**
  15424. * Insert a new record and get the value of the primary key.
  15425. *
  15426. * @param array $values
  15427. * @param string|null $sequence
  15428. * @return int
  15429. * @static
  15430. */
  15431. public static function insertGetId($values, $sequence = null)
  15432. {
  15433. /** @var \Illuminate\Database\Query\Builder $instance */
  15434. return $instance->insertGetId($values, $sequence);
  15435. }
  15436. /**
  15437. * Insert or update a record matching the attributes, and fill it with values.
  15438. *
  15439. * @param array $attributes
  15440. * @param array $values
  15441. * @return bool
  15442. * @static
  15443. */
  15444. public static function updateOrInsert($attributes, $values = array())
  15445. {
  15446. /** @var \Illuminate\Database\Query\Builder $instance */
  15447. return $instance->updateOrInsert($attributes, $values);
  15448. }
  15449. /**
  15450. * Run a truncate statement on the table.
  15451. *
  15452. * @return void
  15453. * @static
  15454. */
  15455. public static function truncate()
  15456. {
  15457. /** @var \Illuminate\Database\Query\Builder $instance */
  15458. $instance->truncate();
  15459. }
  15460. /**
  15461. * Create a raw database expression.
  15462. *
  15463. * @param mixed $value
  15464. * @return \Illuminate\Database\Query\Expression
  15465. * @static
  15466. */
  15467. public static function raw($value)
  15468. {
  15469. /** @var \Illuminate\Database\Query\Builder $instance */
  15470. return $instance->raw($value);
  15471. }
  15472. /**
  15473. * Get the current query value bindings in a flattened array.
  15474. *
  15475. * @return array
  15476. * @static
  15477. */
  15478. public static function getBindings()
  15479. {
  15480. /** @var \Illuminate\Database\Query\Builder $instance */
  15481. return $instance->getBindings();
  15482. }
  15483. /**
  15484. * Get the raw array of bindings.
  15485. *
  15486. * @return array
  15487. * @static
  15488. */
  15489. public static function getRawBindings()
  15490. {
  15491. /** @var \Illuminate\Database\Query\Builder $instance */
  15492. return $instance->getRawBindings();
  15493. }
  15494. /**
  15495. * Set the bindings on the query builder.
  15496. *
  15497. * @param array $bindings
  15498. * @param string $type
  15499. * @return \Illuminate\Database\Query\Builder
  15500. * @throws \InvalidArgumentException
  15501. * @static
  15502. */
  15503. public static function setBindings($bindings, $type = 'where')
  15504. {
  15505. /** @var \Illuminate\Database\Query\Builder $instance */
  15506. return $instance->setBindings($bindings, $type);
  15507. }
  15508. /**
  15509. * Add a binding to the query.
  15510. *
  15511. * @param mixed $value
  15512. * @param string $type
  15513. * @return \Illuminate\Database\Query\Builder
  15514. * @throws \InvalidArgumentException
  15515. * @static
  15516. */
  15517. public static function addBinding($value, $type = 'where')
  15518. {
  15519. /** @var \Illuminate\Database\Query\Builder $instance */
  15520. return $instance->addBinding($value, $type);
  15521. }
  15522. /**
  15523. * Merge an array of bindings into our bindings.
  15524. *
  15525. * @param \Illuminate\Database\Query\Builder $query
  15526. * @return \Illuminate\Database\Query\Builder
  15527. * @static
  15528. */
  15529. public static function mergeBindings($query)
  15530. {
  15531. /** @var \Illuminate\Database\Query\Builder $instance */
  15532. return $instance->mergeBindings($query);
  15533. }
  15534. /**
  15535. * Get the database query processor instance.
  15536. *
  15537. * @return \Illuminate\Database\Query\Processors\Processor
  15538. * @static
  15539. */
  15540. public static function getProcessor()
  15541. {
  15542. /** @var \Illuminate\Database\Query\Builder $instance */
  15543. return $instance->getProcessor();
  15544. }
  15545. /**
  15546. * Get the query grammar instance.
  15547. *
  15548. * @return \Illuminate\Database\Query\Grammars\Grammar
  15549. * @static
  15550. */
  15551. public static function getGrammar()
  15552. {
  15553. /** @var \Illuminate\Database\Query\Builder $instance */
  15554. return $instance->getGrammar();
  15555. }
  15556. /**
  15557. * Use the write pdo for query.
  15558. *
  15559. * @return \Illuminate\Database\Query\Builder
  15560. * @static
  15561. */
  15562. public static function useWritePdo()
  15563. {
  15564. /** @var \Illuminate\Database\Query\Builder $instance */
  15565. return $instance->useWritePdo();
  15566. }
  15567. /**
  15568. * Clone the query without the given properties.
  15569. *
  15570. * @param array $properties
  15571. * @return static
  15572. * @static
  15573. */
  15574. public static function cloneWithout($properties)
  15575. {
  15576. /** @var \Illuminate\Database\Query\Builder $instance */
  15577. return $instance->cloneWithout($properties);
  15578. }
  15579. /**
  15580. * Clone the query without the given bindings.
  15581. *
  15582. * @param array $except
  15583. * @return static
  15584. * @static
  15585. */
  15586. public static function cloneWithoutBindings($except)
  15587. {
  15588. /** @var \Illuminate\Database\Query\Builder $instance */
  15589. return $instance->cloneWithoutBindings($except);
  15590. }
  15591. /**
  15592. * Register a custom macro.
  15593. *
  15594. * @param string $name
  15595. * @param object|callable $macro
  15596. * @return void
  15597. * @static
  15598. */
  15599. public static function macro($name, $macro)
  15600. {
  15601. \Illuminate\Database\Query\Builder::macro($name, $macro);
  15602. }
  15603. /**
  15604. * Mix another object into the class.
  15605. *
  15606. * @param object $mixin
  15607. * @return void
  15608. * @static
  15609. */
  15610. public static function mixin($mixin)
  15611. {
  15612. \Illuminate\Database\Query\Builder::mixin($mixin);
  15613. }
  15614. /**
  15615. * Checks if macro is registered.
  15616. *
  15617. * @param string $name
  15618. * @return bool
  15619. * @static
  15620. */
  15621. public static function hasMacro($name)
  15622. {
  15623. return \Illuminate\Database\Query\Builder::hasMacro($name);
  15624. }
  15625. /**
  15626. * Dynamically handle calls to the class.
  15627. *
  15628. * @param string $method
  15629. * @param array $parameters
  15630. * @return mixed
  15631. * @throws \BadMethodCallException
  15632. * @static
  15633. */
  15634. public static function macroCall($method, $parameters)
  15635. {
  15636. /** @var \Illuminate\Database\Query\Builder $instance */
  15637. return $instance->macroCall($method, $parameters);
  15638. }
  15639. }
  15640. class Event extends \Illuminate\Support\Facades\Event {}
  15641. class File extends \Illuminate\Support\Facades\File {}
  15642. class Gate extends \Illuminate\Support\Facades\Gate {}
  15643. class Hash extends \Illuminate\Support\Facades\Hash {}
  15644. class Lang extends \Illuminate\Support\Facades\Lang {}
  15645. class Log extends \Illuminate\Support\Facades\Log {}
  15646. class Mail extends \Illuminate\Support\Facades\Mail {}
  15647. class Notification extends \Illuminate\Support\Facades\Notification {}
  15648. class Password extends \Illuminate\Support\Facades\Password {}
  15649. class Queue extends \Illuminate\Support\Facades\Queue {}
  15650. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  15651. class Request extends \Illuminate\Support\Facades\Request {}
  15652. class Response extends \Illuminate\Support\Facades\Response {}
  15653. class Route extends \Illuminate\Support\Facades\Route {}
  15654. class Schema extends \Illuminate\Support\Facades\Schema {}
  15655. class Session extends \Illuminate\Support\Facades\Session {}
  15656. class Storage extends \Illuminate\Support\Facades\Storage {}
  15657. class URL extends \Illuminate\Support\Facades\URL {}
  15658. class Validator extends \Illuminate\Support\Facades\Validator {}
  15659. class View extends \Illuminate\Support\Facades\View {}
  15660. class API extends \Dingo\Api\Facade\API {}
  15661. class JWTAuth extends \Tymon\JWTAuth\Facades\JWTAuth {}
  15662. class JWTFactory extends \Tymon\JWTAuth\Facades\JWTFactory {}
  15663. }