_ide_helper.php 527 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255
  1. <?php
  2. // @formatter:off
  3. /**
  4. * A helper file for Laravel 5, to provide autocomplete information to your IDE
  5. * Generated for Laravel 5.5.45 on 2019-06-19 10:27:56.
  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 \Symfony\Component\HttpFoundation\Response|null
  1721. * @static
  1722. */
  1723. public static function basic($field = 'email', $extraConditions = array())
  1724. {
  1725. /** @var \Illuminate\Auth\SessionGuard $instance */
  1726. return $instance->basic($field, $extraConditions);
  1727. }
  1728. /**
  1729. * Perform a stateless HTTP Basic login attempt.
  1730. *
  1731. * @param string $field
  1732. * @param array $extraConditions
  1733. * @return \Symfony\Component\HttpFoundation\Response|null
  1734. * @static
  1735. */
  1736. public static function onceBasic($field = 'email', $extraConditions = array())
  1737. {
  1738. /** @var \Illuminate\Auth\SessionGuard $instance */
  1739. return $instance->onceBasic($field, $extraConditions);
  1740. }
  1741. /**
  1742. * Attempt to authenticate a user using the given credentials.
  1743. *
  1744. * @param array $credentials
  1745. * @param bool $remember
  1746. * @return bool
  1747. * @static
  1748. */
  1749. public static function attempt($credentials = array(), $remember = false)
  1750. {
  1751. /** @var \Illuminate\Auth\SessionGuard $instance */
  1752. return $instance->attempt($credentials, $remember);
  1753. }
  1754. /**
  1755. * Log the given user ID into the application.
  1756. *
  1757. * @param mixed $id
  1758. * @param bool $remember
  1759. * @return \App\User|false
  1760. * @static
  1761. */
  1762. public static function loginUsingId($id, $remember = false)
  1763. {
  1764. /** @var \Illuminate\Auth\SessionGuard $instance */
  1765. return $instance->loginUsingId($id, $remember);
  1766. }
  1767. /**
  1768. * Log a user into the application.
  1769. *
  1770. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1771. * @param bool $remember
  1772. * @return void
  1773. * @static
  1774. */
  1775. public static function login($user, $remember = false)
  1776. {
  1777. /** @var \Illuminate\Auth\SessionGuard $instance */
  1778. $instance->login($user, $remember);
  1779. }
  1780. /**
  1781. * Log the user out of the application.
  1782. *
  1783. * @return void
  1784. * @static
  1785. */
  1786. public static function logout()
  1787. {
  1788. /** @var \Illuminate\Auth\SessionGuard $instance */
  1789. $instance->logout();
  1790. }
  1791. /**
  1792. * Register an authentication attempt event listener.
  1793. *
  1794. * @param mixed $callback
  1795. * @return void
  1796. * @static
  1797. */
  1798. public static function attempting($callback)
  1799. {
  1800. /** @var \Illuminate\Auth\SessionGuard $instance */
  1801. $instance->attempting($callback);
  1802. }
  1803. /**
  1804. * Get the last user we attempted to authenticate.
  1805. *
  1806. * @return \App\User
  1807. * @static
  1808. */
  1809. public static function getLastAttempted()
  1810. {
  1811. /** @var \Illuminate\Auth\SessionGuard $instance */
  1812. return $instance->getLastAttempted();
  1813. }
  1814. /**
  1815. * Get a unique identifier for the auth session value.
  1816. *
  1817. * @return string
  1818. * @static
  1819. */
  1820. public static function getName()
  1821. {
  1822. /** @var \Illuminate\Auth\SessionGuard $instance */
  1823. return $instance->getName();
  1824. }
  1825. /**
  1826. * Get the name of the cookie used to store the "recaller".
  1827. *
  1828. * @return string
  1829. * @static
  1830. */
  1831. public static function getRecallerName()
  1832. {
  1833. /** @var \Illuminate\Auth\SessionGuard $instance */
  1834. return $instance->getRecallerName();
  1835. }
  1836. /**
  1837. * Determine if the user was authenticated via "remember me" cookie.
  1838. *
  1839. * @return bool
  1840. * @static
  1841. */
  1842. public static function viaRemember()
  1843. {
  1844. /** @var \Illuminate\Auth\SessionGuard $instance */
  1845. return $instance->viaRemember();
  1846. }
  1847. /**
  1848. * Get the cookie creator instance used by the guard.
  1849. *
  1850. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1851. * @throws \RuntimeException
  1852. * @static
  1853. */
  1854. public static function getCookieJar()
  1855. {
  1856. /** @var \Illuminate\Auth\SessionGuard $instance */
  1857. return $instance->getCookieJar();
  1858. }
  1859. /**
  1860. * Set the cookie creator instance used by the guard.
  1861. *
  1862. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1863. * @return void
  1864. * @static
  1865. */
  1866. public static function setCookieJar($cookie)
  1867. {
  1868. /** @var \Illuminate\Auth\SessionGuard $instance */
  1869. $instance->setCookieJar($cookie);
  1870. }
  1871. /**
  1872. * Get the event dispatcher instance.
  1873. *
  1874. * @return \Illuminate\Contracts\Events\Dispatcher
  1875. * @static
  1876. */
  1877. public static function getDispatcher()
  1878. {
  1879. /** @var \Illuminate\Auth\SessionGuard $instance */
  1880. return $instance->getDispatcher();
  1881. }
  1882. /**
  1883. * Set the event dispatcher instance.
  1884. *
  1885. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1886. * @return void
  1887. * @static
  1888. */
  1889. public static function setDispatcher($events)
  1890. {
  1891. /** @var \Illuminate\Auth\SessionGuard $instance */
  1892. $instance->setDispatcher($events);
  1893. }
  1894. /**
  1895. * Get the session store used by the guard.
  1896. *
  1897. * @return \Illuminate\Contracts\Session\Session
  1898. * @static
  1899. */
  1900. public static function getSession()
  1901. {
  1902. /** @var \Illuminate\Auth\SessionGuard $instance */
  1903. return $instance->getSession();
  1904. }
  1905. /**
  1906. * Return the currently cached user.
  1907. *
  1908. * @return \App\User|null
  1909. * @static
  1910. */
  1911. public static function getUser()
  1912. {
  1913. /** @var \Illuminate\Auth\SessionGuard $instance */
  1914. return $instance->getUser();
  1915. }
  1916. /**
  1917. * Set the current user.
  1918. *
  1919. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1920. * @return \Illuminate\Auth\SessionGuard
  1921. * @static
  1922. */
  1923. public static function setUser($user)
  1924. {
  1925. /** @var \Illuminate\Auth\SessionGuard $instance */
  1926. return $instance->setUser($user);
  1927. }
  1928. /**
  1929. * Get the current request instance.
  1930. *
  1931. * @return \Symfony\Component\HttpFoundation\Request
  1932. * @static
  1933. */
  1934. public static function getRequest()
  1935. {
  1936. /** @var \Illuminate\Auth\SessionGuard $instance */
  1937. return $instance->getRequest();
  1938. }
  1939. /**
  1940. * Set the current request instance.
  1941. *
  1942. * @param \Symfony\Component\HttpFoundation\Request $request
  1943. * @return \Illuminate\Auth\SessionGuard
  1944. * @static
  1945. */
  1946. public static function setRequest($request)
  1947. {
  1948. /** @var \Illuminate\Auth\SessionGuard $instance */
  1949. return $instance->setRequest($request);
  1950. }
  1951. /**
  1952. * Determine if the current user is authenticated.
  1953. *
  1954. * @return \App\User
  1955. * @throws \Illuminate\Auth\AuthenticationException
  1956. * @static
  1957. */
  1958. public static function authenticate()
  1959. {
  1960. /** @var \Illuminate\Auth\SessionGuard $instance */
  1961. return $instance->authenticate();
  1962. }
  1963. /**
  1964. * Determine if the current user is authenticated.
  1965. *
  1966. * @return bool
  1967. * @static
  1968. */
  1969. public static function check()
  1970. {
  1971. /** @var \Illuminate\Auth\SessionGuard $instance */
  1972. return $instance->check();
  1973. }
  1974. /**
  1975. * Determine if the current user is a guest.
  1976. *
  1977. * @return bool
  1978. * @static
  1979. */
  1980. public static function guest()
  1981. {
  1982. /** @var \Illuminate\Auth\SessionGuard $instance */
  1983. return $instance->guest();
  1984. }
  1985. /**
  1986. * Get the user provider used by the guard.
  1987. *
  1988. * @return \Illuminate\Contracts\Auth\UserProvider
  1989. * @static
  1990. */
  1991. public static function getProvider()
  1992. {
  1993. /** @var \Illuminate\Auth\SessionGuard $instance */
  1994. return $instance->getProvider();
  1995. }
  1996. /**
  1997. * Set the user provider used by the guard.
  1998. *
  1999. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2000. * @return void
  2001. * @static
  2002. */
  2003. public static function setProvider($provider)
  2004. {
  2005. /** @var \Illuminate\Auth\SessionGuard $instance */
  2006. $instance->setProvider($provider);
  2007. }
  2008. /**
  2009. * Register a custom macro.
  2010. *
  2011. * @param string $name
  2012. * @param object|callable $macro
  2013. * @return void
  2014. * @static
  2015. */
  2016. public static function macro($name, $macro)
  2017. {
  2018. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2019. }
  2020. /**
  2021. * Mix another object into the class.
  2022. *
  2023. * @param object $mixin
  2024. * @return void
  2025. * @static
  2026. */
  2027. public static function mixin($mixin)
  2028. {
  2029. \Illuminate\Auth\SessionGuard::mixin($mixin);
  2030. }
  2031. /**
  2032. * Checks if macro is registered.
  2033. *
  2034. * @param string $name
  2035. * @return bool
  2036. * @static
  2037. */
  2038. public static function hasMacro($name)
  2039. {
  2040. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2041. }
  2042. }
  2043. /**
  2044. *
  2045. *
  2046. * @see \Illuminate\View\Compilers\BladeCompiler
  2047. */
  2048. class Blade {
  2049. /**
  2050. * Compile the view at the given path.
  2051. *
  2052. * @param string $path
  2053. * @return void
  2054. * @static
  2055. */
  2056. public static function compile($path = null)
  2057. {
  2058. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2059. $instance->compile($path);
  2060. }
  2061. /**
  2062. * Get the path currently being compiled.
  2063. *
  2064. * @return string
  2065. * @static
  2066. */
  2067. public static function getPath()
  2068. {
  2069. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2070. return $instance->getPath();
  2071. }
  2072. /**
  2073. * Set the path currently being compiled.
  2074. *
  2075. * @param string $path
  2076. * @return void
  2077. * @static
  2078. */
  2079. public static function setPath($path)
  2080. {
  2081. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2082. $instance->setPath($path);
  2083. }
  2084. /**
  2085. * Compile the given Blade template contents.
  2086. *
  2087. * @param string $value
  2088. * @return string
  2089. * @static
  2090. */
  2091. public static function compileString($value)
  2092. {
  2093. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2094. return $instance->compileString($value);
  2095. }
  2096. /**
  2097. * Strip the parentheses from the given expression.
  2098. *
  2099. * @param string $expression
  2100. * @return string
  2101. * @static
  2102. */
  2103. public static function stripParentheses($expression)
  2104. {
  2105. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2106. return $instance->stripParentheses($expression);
  2107. }
  2108. /**
  2109. * Register a custom Blade compiler.
  2110. *
  2111. * @param callable $compiler
  2112. * @return void
  2113. * @static
  2114. */
  2115. public static function extend($compiler)
  2116. {
  2117. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2118. $instance->extend($compiler);
  2119. }
  2120. /**
  2121. * Get the extensions used by the compiler.
  2122. *
  2123. * @return array
  2124. * @static
  2125. */
  2126. public static function getExtensions()
  2127. {
  2128. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2129. return $instance->getExtensions();
  2130. }
  2131. /**
  2132. * Register an "if" statement directive.
  2133. *
  2134. * @param string $name
  2135. * @param callable $callback
  2136. * @return void
  2137. * @static
  2138. */
  2139. public static function if($name, $callback)
  2140. {
  2141. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2142. $instance->if($name, $callback);
  2143. }
  2144. /**
  2145. * Check the result of a condition.
  2146. *
  2147. * @param string $name
  2148. * @param array $parameters
  2149. * @return bool
  2150. * @static
  2151. */
  2152. public static function check($name, $parameters = null)
  2153. {
  2154. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2155. return $instance->check($name, $parameters);
  2156. }
  2157. /**
  2158. * Register a handler for custom directives.
  2159. *
  2160. * @param string $name
  2161. * @param callable $handler
  2162. * @return void
  2163. * @static
  2164. */
  2165. public static function directive($name, $handler)
  2166. {
  2167. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2168. $instance->directive($name, $handler);
  2169. }
  2170. /**
  2171. * Get the list of custom directives.
  2172. *
  2173. * @return array
  2174. * @static
  2175. */
  2176. public static function getCustomDirectives()
  2177. {
  2178. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2179. return $instance->getCustomDirectives();
  2180. }
  2181. /**
  2182. * Set the echo format to be used by the compiler.
  2183. *
  2184. * @param string $format
  2185. * @return void
  2186. * @static
  2187. */
  2188. public static function setEchoFormat($format)
  2189. {
  2190. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2191. $instance->setEchoFormat($format);
  2192. }
  2193. /**
  2194. * Set the echo format to double encode entities.
  2195. *
  2196. * @return void
  2197. * @static
  2198. */
  2199. public static function doubleEncode()
  2200. {
  2201. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2202. $instance->doubleEncode();
  2203. }
  2204. /**
  2205. * Get the path to the compiled version of a view.
  2206. *
  2207. * @param string $path
  2208. * @return string
  2209. * @static
  2210. */
  2211. public static function getCompiledPath($path)
  2212. {
  2213. //Method inherited from \Illuminate\View\Compilers\Compiler
  2214. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2215. return $instance->getCompiledPath($path);
  2216. }
  2217. /**
  2218. * Determine if the view at the given path is expired.
  2219. *
  2220. * @param string $path
  2221. * @return bool
  2222. * @static
  2223. */
  2224. public static function isExpired($path)
  2225. {
  2226. //Method inherited from \Illuminate\View\Compilers\Compiler
  2227. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2228. return $instance->isExpired($path);
  2229. }
  2230. /**
  2231. * Compile the default values for the echo statement.
  2232. *
  2233. * @param string $value
  2234. * @return string
  2235. * @static
  2236. */
  2237. public static function compileEchoDefaults($value)
  2238. {
  2239. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2240. return $instance->compileEchoDefaults($value);
  2241. }
  2242. }
  2243. /**
  2244. *
  2245. *
  2246. * @see \Illuminate\Contracts\Broadcasting\Factory
  2247. */
  2248. class Broadcast {
  2249. /**
  2250. * Register the routes for handling broadcast authentication and sockets.
  2251. *
  2252. * @param array|null $attributes
  2253. * @return void
  2254. * @static
  2255. */
  2256. public static function routes($attributes = null)
  2257. {
  2258. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2259. $instance->routes($attributes);
  2260. }
  2261. /**
  2262. * Get the socket ID for the given request.
  2263. *
  2264. * @param \Illuminate\Http\Request|null $request
  2265. * @return string|null
  2266. * @static
  2267. */
  2268. public static function socket($request = null)
  2269. {
  2270. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2271. return $instance->socket($request);
  2272. }
  2273. /**
  2274. * Begin broadcasting an event.
  2275. *
  2276. * @param mixed|null $event
  2277. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  2278. * @static
  2279. */
  2280. public static function event($event = null)
  2281. {
  2282. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2283. return $instance->event($event);
  2284. }
  2285. /**
  2286. * Queue the given event for broadcast.
  2287. *
  2288. * @param mixed $event
  2289. * @return void
  2290. * @static
  2291. */
  2292. public static function queue($event)
  2293. {
  2294. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2295. $instance->queue($event);
  2296. }
  2297. /**
  2298. * Get a driver instance.
  2299. *
  2300. * @param string $driver
  2301. * @return mixed
  2302. * @static
  2303. */
  2304. public static function connection($driver = null)
  2305. {
  2306. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2307. return $instance->connection($driver);
  2308. }
  2309. /**
  2310. * Get a driver instance.
  2311. *
  2312. * @param string $name
  2313. * @return mixed
  2314. * @static
  2315. */
  2316. public static function driver($name = null)
  2317. {
  2318. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2319. return $instance->driver($name);
  2320. }
  2321. /**
  2322. * Get the default driver name.
  2323. *
  2324. * @return string
  2325. * @static
  2326. */
  2327. public static function getDefaultDriver()
  2328. {
  2329. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2330. return $instance->getDefaultDriver();
  2331. }
  2332. /**
  2333. * Set the default driver name.
  2334. *
  2335. * @param string $name
  2336. * @return void
  2337. * @static
  2338. */
  2339. public static function setDefaultDriver($name)
  2340. {
  2341. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2342. $instance->setDefaultDriver($name);
  2343. }
  2344. /**
  2345. * Register a custom driver creator Closure.
  2346. *
  2347. * @param string $driver
  2348. * @param \Closure $callback
  2349. * @return \Illuminate\Broadcasting\BroadcastManager
  2350. * @static
  2351. */
  2352. public static function extend($driver, $callback)
  2353. {
  2354. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2355. return $instance->extend($driver, $callback);
  2356. }
  2357. }
  2358. /**
  2359. *
  2360. *
  2361. * @see \Illuminate\Contracts\Bus\Dispatcher
  2362. */
  2363. class Bus {
  2364. /**
  2365. * Dispatch a command to its appropriate handler.
  2366. *
  2367. * @param mixed $command
  2368. * @return mixed
  2369. * @static
  2370. */
  2371. public static function dispatch($command)
  2372. {
  2373. /** @var \Illuminate\Bus\Dispatcher $instance */
  2374. return $instance->dispatch($command);
  2375. }
  2376. /**
  2377. * Dispatch a command to its appropriate handler in the current process.
  2378. *
  2379. * @param mixed $command
  2380. * @param mixed $handler
  2381. * @return mixed
  2382. * @static
  2383. */
  2384. public static function dispatchNow($command, $handler = null)
  2385. {
  2386. /** @var \Illuminate\Bus\Dispatcher $instance */
  2387. return $instance->dispatchNow($command, $handler);
  2388. }
  2389. /**
  2390. * Determine if the given command has a handler.
  2391. *
  2392. * @param mixed $command
  2393. * @return bool
  2394. * @static
  2395. */
  2396. public static function hasCommandHandler($command)
  2397. {
  2398. /** @var \Illuminate\Bus\Dispatcher $instance */
  2399. return $instance->hasCommandHandler($command);
  2400. }
  2401. /**
  2402. * Retrieve the handler for a command.
  2403. *
  2404. * @param mixed $command
  2405. * @return bool|mixed
  2406. * @static
  2407. */
  2408. public static function getCommandHandler($command)
  2409. {
  2410. /** @var \Illuminate\Bus\Dispatcher $instance */
  2411. return $instance->getCommandHandler($command);
  2412. }
  2413. /**
  2414. * Dispatch a command to its appropriate handler behind a queue.
  2415. *
  2416. * @param mixed $command
  2417. * @return mixed
  2418. * @throws \RuntimeException
  2419. * @static
  2420. */
  2421. public static function dispatchToQueue($command)
  2422. {
  2423. /** @var \Illuminate\Bus\Dispatcher $instance */
  2424. return $instance->dispatchToQueue($command);
  2425. }
  2426. /**
  2427. * Set the pipes through which commands should be piped before dispatching.
  2428. *
  2429. * @param array $pipes
  2430. * @return \Illuminate\Bus\Dispatcher
  2431. * @static
  2432. */
  2433. public static function pipeThrough($pipes)
  2434. {
  2435. /** @var \Illuminate\Bus\Dispatcher $instance */
  2436. return $instance->pipeThrough($pipes);
  2437. }
  2438. /**
  2439. * Map a command to a handler.
  2440. *
  2441. * @param array $map
  2442. * @return \Illuminate\Bus\Dispatcher
  2443. * @static
  2444. */
  2445. public static function map($map)
  2446. {
  2447. /** @var \Illuminate\Bus\Dispatcher $instance */
  2448. return $instance->map($map);
  2449. }
  2450. /**
  2451. * Assert if a job was dispatched based on a truth-test callback.
  2452. *
  2453. * @param string $command
  2454. * @param callable|int|null $callback
  2455. * @return void
  2456. * @static
  2457. */
  2458. public static function assertDispatched($command, $callback = null)
  2459. {
  2460. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2461. $instance->assertDispatched($command, $callback);
  2462. }
  2463. /**
  2464. * Determine if a job was dispatched based on a truth-test callback.
  2465. *
  2466. * @param string $command
  2467. * @param callable|null $callback
  2468. * @return void
  2469. * @static
  2470. */
  2471. public static function assertNotDispatched($command, $callback = null)
  2472. {
  2473. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2474. $instance->assertNotDispatched($command, $callback);
  2475. }
  2476. /**
  2477. * Get all of the jobs matching a truth-test callback.
  2478. *
  2479. * @param string $command
  2480. * @param callable|null $callback
  2481. * @return \Illuminate\Support\Collection
  2482. * @static
  2483. */
  2484. public static function dispatched($command, $callback = null)
  2485. {
  2486. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2487. return $instance->dispatched($command, $callback);
  2488. }
  2489. /**
  2490. * Determine if there are any stored commands for a given class.
  2491. *
  2492. * @param string $command
  2493. * @return bool
  2494. * @static
  2495. */
  2496. public static function hasDispatched($command)
  2497. {
  2498. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2499. return $instance->hasDispatched($command);
  2500. }
  2501. }
  2502. /**
  2503. *
  2504. *
  2505. * @see \Illuminate\Cache\CacheManager
  2506. * @see \Illuminate\Cache\Repository
  2507. */
  2508. class Cache {
  2509. /**
  2510. * Get a cache store instance by name.
  2511. *
  2512. * @param string|null $name
  2513. * @return \Illuminate\Contracts\Cache\Repository
  2514. * @static
  2515. */
  2516. public static function store($name = null)
  2517. {
  2518. /** @var \Illuminate\Cache\CacheManager $instance */
  2519. return $instance->store($name);
  2520. }
  2521. /**
  2522. * Get a cache driver instance.
  2523. *
  2524. * @param string $driver
  2525. * @return mixed
  2526. * @static
  2527. */
  2528. public static function driver($driver = null)
  2529. {
  2530. /** @var \Illuminate\Cache\CacheManager $instance */
  2531. return $instance->driver($driver);
  2532. }
  2533. /**
  2534. * Create a new cache repository with the given implementation.
  2535. *
  2536. * @param \Illuminate\Contracts\Cache\Store $store
  2537. * @return \Illuminate\Cache\Repository
  2538. * @static
  2539. */
  2540. public static function repository($store)
  2541. {
  2542. /** @var \Illuminate\Cache\CacheManager $instance */
  2543. return $instance->repository($store);
  2544. }
  2545. /**
  2546. * Get the default cache driver name.
  2547. *
  2548. * @return string
  2549. * @static
  2550. */
  2551. public static function getDefaultDriver()
  2552. {
  2553. /** @var \Illuminate\Cache\CacheManager $instance */
  2554. return $instance->getDefaultDriver();
  2555. }
  2556. /**
  2557. * Set the default cache driver name.
  2558. *
  2559. * @param string $name
  2560. * @return void
  2561. * @static
  2562. */
  2563. public static function setDefaultDriver($name)
  2564. {
  2565. /** @var \Illuminate\Cache\CacheManager $instance */
  2566. $instance->setDefaultDriver($name);
  2567. }
  2568. /**
  2569. * Register a custom driver creator Closure.
  2570. *
  2571. * @param string $driver
  2572. * @param \Closure $callback
  2573. * @return \Illuminate\Cache\CacheManager
  2574. * @static
  2575. */
  2576. public static function extend($driver, $callback)
  2577. {
  2578. /** @var \Illuminate\Cache\CacheManager $instance */
  2579. return $instance->extend($driver, $callback);
  2580. }
  2581. /**
  2582. * Determine if an item exists in the cache.
  2583. *
  2584. * @param string $key
  2585. * @return bool
  2586. * @static
  2587. */
  2588. public static function has($key)
  2589. {
  2590. /** @var \Illuminate\Cache\Repository $instance */
  2591. return $instance->has($key);
  2592. }
  2593. /**
  2594. * Retrieve an item from the cache by key.
  2595. *
  2596. * @param string $key
  2597. * @param mixed $default
  2598. * @return mixed
  2599. * @static
  2600. */
  2601. public static function get($key, $default = null)
  2602. {
  2603. /** @var \Illuminate\Cache\Repository $instance */
  2604. return $instance->get($key, $default);
  2605. }
  2606. /**
  2607. * Retrieve multiple items from the cache by key.
  2608. *
  2609. * Items not found in the cache will have a null value.
  2610. *
  2611. * @param array $keys
  2612. * @return array
  2613. * @static
  2614. */
  2615. public static function many($keys)
  2616. {
  2617. /** @var \Illuminate\Cache\Repository $instance */
  2618. return $instance->many($keys);
  2619. }
  2620. /**
  2621. * Obtains multiple cache items by their unique keys.
  2622. *
  2623. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  2624. * @param mixed $default Default value to return for keys that do not exist.
  2625. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  2626. * @throws \Psr\SimpleCache\InvalidArgumentException
  2627. * MUST be thrown if $keys is neither an array nor a Traversable,
  2628. * or if any of the $keys are not a legal value.
  2629. * @static
  2630. */
  2631. public static function getMultiple($keys, $default = null)
  2632. {
  2633. /** @var \Illuminate\Cache\Repository $instance */
  2634. return $instance->getMultiple($keys, $default);
  2635. }
  2636. /**
  2637. * Retrieve an item from the cache and delete it.
  2638. *
  2639. * @param string $key
  2640. * @param mixed $default
  2641. * @return mixed
  2642. * @static
  2643. */
  2644. public static function pull($key, $default = null)
  2645. {
  2646. /** @var \Illuminate\Cache\Repository $instance */
  2647. return $instance->pull($key, $default);
  2648. }
  2649. /**
  2650. * Store an item in the cache.
  2651. *
  2652. * @param string $key
  2653. * @param mixed $value
  2654. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2655. * @return void
  2656. * @static
  2657. */
  2658. public static function put($key, $value, $minutes = null)
  2659. {
  2660. /** @var \Illuminate\Cache\Repository $instance */
  2661. $instance->put($key, $value, $minutes);
  2662. }
  2663. /**
  2664. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  2665. *
  2666. * @param string $key The key of the item to store.
  2667. * @param mixed $value The value of the item to store, must be serializable.
  2668. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2669. * the driver supports TTL then the library may set a default value
  2670. * for it or let the driver take care of that.
  2671. * @return bool True on success and false on failure.
  2672. * @throws \Psr\SimpleCache\InvalidArgumentException
  2673. * MUST be thrown if the $key string is not a legal value.
  2674. * @static
  2675. */
  2676. public static function set($key, $value, $ttl = null)
  2677. {
  2678. /** @var \Illuminate\Cache\Repository $instance */
  2679. return $instance->set($key, $value, $ttl);
  2680. }
  2681. /**
  2682. * Store multiple items in the cache for a given number of minutes.
  2683. *
  2684. * @param array $values
  2685. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2686. * @return void
  2687. * @static
  2688. */
  2689. public static function putMany($values, $minutes)
  2690. {
  2691. /** @var \Illuminate\Cache\Repository $instance */
  2692. $instance->putMany($values, $minutes);
  2693. }
  2694. /**
  2695. * Persists a set of key => value pairs in the cache, with an optional TTL.
  2696. *
  2697. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  2698. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2699. * the driver supports TTL then the library may set a default value
  2700. * for it or let the driver take care of that.
  2701. * @return bool True on success and false on failure.
  2702. * @throws \Psr\SimpleCache\InvalidArgumentException
  2703. * MUST be thrown if $values is neither an array nor a Traversable,
  2704. * or if any of the $values are not a legal value.
  2705. * @static
  2706. */
  2707. public static function setMultiple($values, $ttl = null)
  2708. {
  2709. /** @var \Illuminate\Cache\Repository $instance */
  2710. return $instance->setMultiple($values, $ttl);
  2711. }
  2712. /**
  2713. * Store an item in the cache if the key does not exist.
  2714. *
  2715. * @param string $key
  2716. * @param mixed $value
  2717. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2718. * @return bool
  2719. * @static
  2720. */
  2721. public static function add($key, $value, $minutes)
  2722. {
  2723. /** @var \Illuminate\Cache\Repository $instance */
  2724. return $instance->add($key, $value, $minutes);
  2725. }
  2726. /**
  2727. * Increment the value of an item in the cache.
  2728. *
  2729. * @param string $key
  2730. * @param mixed $value
  2731. * @return int|bool
  2732. * @static
  2733. */
  2734. public static function increment($key, $value = 1)
  2735. {
  2736. /** @var \Illuminate\Cache\Repository $instance */
  2737. return $instance->increment($key, $value);
  2738. }
  2739. /**
  2740. * Decrement the value of an item in the cache.
  2741. *
  2742. * @param string $key
  2743. * @param mixed $value
  2744. * @return int|bool
  2745. * @static
  2746. */
  2747. public static function decrement($key, $value = 1)
  2748. {
  2749. /** @var \Illuminate\Cache\Repository $instance */
  2750. return $instance->decrement($key, $value);
  2751. }
  2752. /**
  2753. * Store an item in the cache indefinitely.
  2754. *
  2755. * @param string $key
  2756. * @param mixed $value
  2757. * @return void
  2758. * @static
  2759. */
  2760. public static function forever($key, $value)
  2761. {
  2762. /** @var \Illuminate\Cache\Repository $instance */
  2763. $instance->forever($key, $value);
  2764. }
  2765. /**
  2766. * Get an item from the cache, or store the default value.
  2767. *
  2768. * @param string $key
  2769. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2770. * @param \Closure $callback
  2771. * @return mixed
  2772. * @static
  2773. */
  2774. public static function remember($key, $minutes, $callback)
  2775. {
  2776. /** @var \Illuminate\Cache\Repository $instance */
  2777. return $instance->remember($key, $minutes, $callback);
  2778. }
  2779. /**
  2780. * Get an item from the cache, or store the default value forever.
  2781. *
  2782. * @param string $key
  2783. * @param \Closure $callback
  2784. * @return mixed
  2785. * @static
  2786. */
  2787. public static function sear($key, $callback)
  2788. {
  2789. /** @var \Illuminate\Cache\Repository $instance */
  2790. return $instance->sear($key, $callback);
  2791. }
  2792. /**
  2793. * Get an item from the cache, or store the default value forever.
  2794. *
  2795. * @param string $key
  2796. * @param \Closure $callback
  2797. * @return mixed
  2798. * @static
  2799. */
  2800. public static function rememberForever($key, $callback)
  2801. {
  2802. /** @var \Illuminate\Cache\Repository $instance */
  2803. return $instance->rememberForever($key, $callback);
  2804. }
  2805. /**
  2806. * Remove an item from the cache.
  2807. *
  2808. * @param string $key
  2809. * @return bool
  2810. * @static
  2811. */
  2812. public static function forget($key)
  2813. {
  2814. /** @var \Illuminate\Cache\Repository $instance */
  2815. return $instance->forget($key);
  2816. }
  2817. /**
  2818. * Delete an item from the cache by its unique key.
  2819. *
  2820. * @param string $key The unique cache key of the item to delete.
  2821. * @return bool True if the item was successfully removed. False if there was an error.
  2822. * @throws \Psr\SimpleCache\InvalidArgumentException
  2823. * MUST be thrown if the $key string is not a legal value.
  2824. * @static
  2825. */
  2826. public static function delete($key)
  2827. {
  2828. /** @var \Illuminate\Cache\Repository $instance */
  2829. return $instance->delete($key);
  2830. }
  2831. /**
  2832. * Deletes multiple cache items in a single operation.
  2833. *
  2834. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  2835. * @return bool True if the items were successfully removed. False if there was an error.
  2836. * @throws \Psr\SimpleCache\InvalidArgumentException
  2837. * MUST be thrown if $keys is neither an array nor a Traversable,
  2838. * or if any of the $keys are not a legal value.
  2839. * @static
  2840. */
  2841. public static function deleteMultiple($keys)
  2842. {
  2843. /** @var \Illuminate\Cache\Repository $instance */
  2844. return $instance->deleteMultiple($keys);
  2845. }
  2846. /**
  2847. * Wipes clean the entire cache's keys.
  2848. *
  2849. * @return bool True on success and false on failure.
  2850. * @static
  2851. */
  2852. public static function clear()
  2853. {
  2854. /** @var \Illuminate\Cache\Repository $instance */
  2855. return $instance->clear();
  2856. }
  2857. /**
  2858. * Begin executing a new tags operation if the store supports it.
  2859. *
  2860. * @param array|mixed $names
  2861. * @return \Illuminate\Cache\TaggedCache
  2862. * @throws \BadMethodCallException
  2863. * @static
  2864. */
  2865. public static function tags($names)
  2866. {
  2867. /** @var \Illuminate\Cache\Repository $instance */
  2868. return $instance->tags($names);
  2869. }
  2870. /**
  2871. * Get the default cache time.
  2872. *
  2873. * @return float|int
  2874. * @static
  2875. */
  2876. public static function getDefaultCacheTime()
  2877. {
  2878. /** @var \Illuminate\Cache\Repository $instance */
  2879. return $instance->getDefaultCacheTime();
  2880. }
  2881. /**
  2882. * Set the default cache time in minutes.
  2883. *
  2884. * @param float|int $minutes
  2885. * @return \Illuminate\Cache\Repository
  2886. * @static
  2887. */
  2888. public static function setDefaultCacheTime($minutes)
  2889. {
  2890. /** @var \Illuminate\Cache\Repository $instance */
  2891. return $instance->setDefaultCacheTime($minutes);
  2892. }
  2893. /**
  2894. * Get the cache store implementation.
  2895. *
  2896. * @return \Illuminate\Contracts\Cache\Store
  2897. * @static
  2898. */
  2899. public static function getStore()
  2900. {
  2901. /** @var \Illuminate\Cache\Repository $instance */
  2902. return $instance->getStore();
  2903. }
  2904. /**
  2905. * Set the event dispatcher instance.
  2906. *
  2907. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2908. * @return void
  2909. * @static
  2910. */
  2911. public static function setEventDispatcher($events)
  2912. {
  2913. /** @var \Illuminate\Cache\Repository $instance */
  2914. $instance->setEventDispatcher($events);
  2915. }
  2916. /**
  2917. * Determine if a cached value exists.
  2918. *
  2919. * @param string $key
  2920. * @return bool
  2921. * @static
  2922. */
  2923. public static function offsetExists($key)
  2924. {
  2925. /** @var \Illuminate\Cache\Repository $instance */
  2926. return $instance->offsetExists($key);
  2927. }
  2928. /**
  2929. * Retrieve an item from the cache by key.
  2930. *
  2931. * @param string $key
  2932. * @return mixed
  2933. * @static
  2934. */
  2935. public static function offsetGet($key)
  2936. {
  2937. /** @var \Illuminate\Cache\Repository $instance */
  2938. return $instance->offsetGet($key);
  2939. }
  2940. /**
  2941. * Store an item in the cache for the default time.
  2942. *
  2943. * @param string $key
  2944. * @param mixed $value
  2945. * @return void
  2946. * @static
  2947. */
  2948. public static function offsetSet($key, $value)
  2949. {
  2950. /** @var \Illuminate\Cache\Repository $instance */
  2951. $instance->offsetSet($key, $value);
  2952. }
  2953. /**
  2954. * Remove an item from the cache.
  2955. *
  2956. * @param string $key
  2957. * @return void
  2958. * @static
  2959. */
  2960. public static function offsetUnset($key)
  2961. {
  2962. /** @var \Illuminate\Cache\Repository $instance */
  2963. $instance->offsetUnset($key);
  2964. }
  2965. /**
  2966. * Register a custom macro.
  2967. *
  2968. * @param string $name
  2969. * @param object|callable $macro
  2970. * @return void
  2971. * @static
  2972. */
  2973. public static function macro($name, $macro)
  2974. {
  2975. \Illuminate\Cache\Repository::macro($name, $macro);
  2976. }
  2977. /**
  2978. * Mix another object into the class.
  2979. *
  2980. * @param object $mixin
  2981. * @return void
  2982. * @static
  2983. */
  2984. public static function mixin($mixin)
  2985. {
  2986. \Illuminate\Cache\Repository::mixin($mixin);
  2987. }
  2988. /**
  2989. * Checks if macro is registered.
  2990. *
  2991. * @param string $name
  2992. * @return bool
  2993. * @static
  2994. */
  2995. public static function hasMacro($name)
  2996. {
  2997. return \Illuminate\Cache\Repository::hasMacro($name);
  2998. }
  2999. /**
  3000. * Dynamically handle calls to the class.
  3001. *
  3002. * @param string $method
  3003. * @param array $parameters
  3004. * @return mixed
  3005. * @throws \BadMethodCallException
  3006. * @static
  3007. */
  3008. public static function macroCall($method, $parameters)
  3009. {
  3010. /** @var \Illuminate\Cache\Repository $instance */
  3011. return $instance->macroCall($method, $parameters);
  3012. }
  3013. /**
  3014. * Remove all items from the cache.
  3015. *
  3016. * @return bool
  3017. * @static
  3018. */
  3019. public static function flush()
  3020. {
  3021. /** @var \Illuminate\Cache\FileStore $instance */
  3022. return $instance->flush();
  3023. }
  3024. /**
  3025. * Get the Filesystem instance.
  3026. *
  3027. * @return \Illuminate\Filesystem\Filesystem
  3028. * @static
  3029. */
  3030. public static function getFilesystem()
  3031. {
  3032. /** @var \Illuminate\Cache\FileStore $instance */
  3033. return $instance->getFilesystem();
  3034. }
  3035. /**
  3036. * Get the working directory of the cache.
  3037. *
  3038. * @return string
  3039. * @static
  3040. */
  3041. public static function getDirectory()
  3042. {
  3043. /** @var \Illuminate\Cache\FileStore $instance */
  3044. return $instance->getDirectory();
  3045. }
  3046. /**
  3047. * Get the cache key prefix.
  3048. *
  3049. * @return string
  3050. * @static
  3051. */
  3052. public static function getPrefix()
  3053. {
  3054. /** @var \Illuminate\Cache\FileStore $instance */
  3055. return $instance->getPrefix();
  3056. }
  3057. }
  3058. /**
  3059. *
  3060. *
  3061. * @see \Illuminate\Config\Repository
  3062. */
  3063. class Config {
  3064. /**
  3065. * Determine if the given configuration value exists.
  3066. *
  3067. * @param string $key
  3068. * @return bool
  3069. * @static
  3070. */
  3071. public static function has($key)
  3072. {
  3073. /** @var \Illuminate\Config\Repository $instance */
  3074. return $instance->has($key);
  3075. }
  3076. /**
  3077. * Get the specified configuration value.
  3078. *
  3079. * @param array|string $key
  3080. * @param mixed $default
  3081. * @return mixed
  3082. * @static
  3083. */
  3084. public static function get($key, $default = null)
  3085. {
  3086. /** @var \Illuminate\Config\Repository $instance */
  3087. return $instance->get($key, $default);
  3088. }
  3089. /**
  3090. * Get many configuration values.
  3091. *
  3092. * @param array $keys
  3093. * @return array
  3094. * @static
  3095. */
  3096. public static function getMany($keys)
  3097. {
  3098. /** @var \Illuminate\Config\Repository $instance */
  3099. return $instance->getMany($keys);
  3100. }
  3101. /**
  3102. * Set a given configuration value.
  3103. *
  3104. * @param array|string $key
  3105. * @param mixed $value
  3106. * @return void
  3107. * @static
  3108. */
  3109. public static function set($key, $value = null)
  3110. {
  3111. /** @var \Illuminate\Config\Repository $instance */
  3112. $instance->set($key, $value);
  3113. }
  3114. /**
  3115. * Prepend a value onto an array configuration value.
  3116. *
  3117. * @param string $key
  3118. * @param mixed $value
  3119. * @return void
  3120. * @static
  3121. */
  3122. public static function prepend($key, $value)
  3123. {
  3124. /** @var \Illuminate\Config\Repository $instance */
  3125. $instance->prepend($key, $value);
  3126. }
  3127. /**
  3128. * Push a value onto an array configuration value.
  3129. *
  3130. * @param string $key
  3131. * @param mixed $value
  3132. * @return void
  3133. * @static
  3134. */
  3135. public static function push($key, $value)
  3136. {
  3137. /** @var \Illuminate\Config\Repository $instance */
  3138. $instance->push($key, $value);
  3139. }
  3140. /**
  3141. * Get all of the configuration items for the application.
  3142. *
  3143. * @return array
  3144. * @static
  3145. */
  3146. public static function all()
  3147. {
  3148. /** @var \Illuminate\Config\Repository $instance */
  3149. return $instance->all();
  3150. }
  3151. /**
  3152. * Determine if the given configuration option exists.
  3153. *
  3154. * @param string $key
  3155. * @return bool
  3156. * @static
  3157. */
  3158. public static function offsetExists($key)
  3159. {
  3160. /** @var \Illuminate\Config\Repository $instance */
  3161. return $instance->offsetExists($key);
  3162. }
  3163. /**
  3164. * Get a configuration option.
  3165. *
  3166. * @param string $key
  3167. * @return mixed
  3168. * @static
  3169. */
  3170. public static function offsetGet($key)
  3171. {
  3172. /** @var \Illuminate\Config\Repository $instance */
  3173. return $instance->offsetGet($key);
  3174. }
  3175. /**
  3176. * Set a configuration option.
  3177. *
  3178. * @param string $key
  3179. * @param mixed $value
  3180. * @return void
  3181. * @static
  3182. */
  3183. public static function offsetSet($key, $value)
  3184. {
  3185. /** @var \Illuminate\Config\Repository $instance */
  3186. $instance->offsetSet($key, $value);
  3187. }
  3188. /**
  3189. * Unset a configuration option.
  3190. *
  3191. * @param string $key
  3192. * @return void
  3193. * @static
  3194. */
  3195. public static function offsetUnset($key)
  3196. {
  3197. /** @var \Illuminate\Config\Repository $instance */
  3198. $instance->offsetUnset($key);
  3199. }
  3200. }
  3201. /**
  3202. *
  3203. *
  3204. * @see \Illuminate\Cookie\CookieJar
  3205. */
  3206. class Cookie {
  3207. /**
  3208. * Create a new cookie instance.
  3209. *
  3210. * @param string $name
  3211. * @param string $value
  3212. * @param int $minutes
  3213. * @param string $path
  3214. * @param string $domain
  3215. * @param bool $secure
  3216. * @param bool $httpOnly
  3217. * @param bool $raw
  3218. * @param string|null $sameSite
  3219. * @return \Symfony\Component\HttpFoundation\Cookie
  3220. * @static
  3221. */
  3222. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null)
  3223. {
  3224. /** @var \Illuminate\Cookie\CookieJar $instance */
  3225. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3226. }
  3227. /**
  3228. * Create a cookie that lasts "forever" (five years).
  3229. *
  3230. * @param string $name
  3231. * @param string $value
  3232. * @param string $path
  3233. * @param string $domain
  3234. * @param bool $secure
  3235. * @param bool $httpOnly
  3236. * @param bool $raw
  3237. * @param string|null $sameSite
  3238. * @return \Symfony\Component\HttpFoundation\Cookie
  3239. * @static
  3240. */
  3241. public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null)
  3242. {
  3243. /** @var \Illuminate\Cookie\CookieJar $instance */
  3244. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3245. }
  3246. /**
  3247. * Expire the given cookie.
  3248. *
  3249. * @param string $name
  3250. * @param string $path
  3251. * @param string $domain
  3252. * @return \Symfony\Component\HttpFoundation\Cookie
  3253. * @static
  3254. */
  3255. public static function forget($name, $path = null, $domain = null)
  3256. {
  3257. /** @var \Illuminate\Cookie\CookieJar $instance */
  3258. return $instance->forget($name, $path, $domain);
  3259. }
  3260. /**
  3261. * Determine if a cookie has been queued.
  3262. *
  3263. * @param string $key
  3264. * @return bool
  3265. * @static
  3266. */
  3267. public static function hasQueued($key)
  3268. {
  3269. /** @var \Illuminate\Cookie\CookieJar $instance */
  3270. return $instance->hasQueued($key);
  3271. }
  3272. /**
  3273. * Get a queued cookie instance.
  3274. *
  3275. * @param string $key
  3276. * @param mixed $default
  3277. * @return \Symfony\Component\HttpFoundation\Cookie
  3278. * @static
  3279. */
  3280. public static function queued($key, $default = null)
  3281. {
  3282. /** @var \Illuminate\Cookie\CookieJar $instance */
  3283. return $instance->queued($key, $default);
  3284. }
  3285. /**
  3286. * Queue a cookie to send with the next response.
  3287. *
  3288. * @param array $parameters
  3289. * @return void
  3290. * @static
  3291. */
  3292. public static function queue($parameters = null)
  3293. {
  3294. /** @var \Illuminate\Cookie\CookieJar $instance */
  3295. $instance->queue($parameters);
  3296. }
  3297. /**
  3298. * Remove a cookie from the queue.
  3299. *
  3300. * @param string $name
  3301. * @return void
  3302. * @static
  3303. */
  3304. public static function unqueue($name)
  3305. {
  3306. /** @var \Illuminate\Cookie\CookieJar $instance */
  3307. $instance->unqueue($name);
  3308. }
  3309. /**
  3310. * Set the default path and domain for the jar.
  3311. *
  3312. * @param string $path
  3313. * @param string $domain
  3314. * @param bool $secure
  3315. * @param string $sameSite
  3316. * @return \Illuminate\Cookie\CookieJar
  3317. * @static
  3318. */
  3319. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3320. {
  3321. /** @var \Illuminate\Cookie\CookieJar $instance */
  3322. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3323. }
  3324. /**
  3325. * Get the cookies which have been queued for the next request.
  3326. *
  3327. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3328. * @static
  3329. */
  3330. public static function getQueuedCookies()
  3331. {
  3332. /** @var \Illuminate\Cookie\CookieJar $instance */
  3333. return $instance->getQueuedCookies();
  3334. }
  3335. }
  3336. /**
  3337. *
  3338. *
  3339. * @see \Illuminate\Encryption\Encrypter
  3340. */
  3341. class Crypt {
  3342. /**
  3343. * Determine if the given key and cipher combination is valid.
  3344. *
  3345. * @param string $key
  3346. * @param string $cipher
  3347. * @return bool
  3348. * @static
  3349. */
  3350. public static function supported($key, $cipher)
  3351. {
  3352. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3353. }
  3354. /**
  3355. * Create a new encryption key for the given cipher.
  3356. *
  3357. * @param string $cipher
  3358. * @return string
  3359. * @static
  3360. */
  3361. public static function generateKey($cipher)
  3362. {
  3363. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3364. }
  3365. /**
  3366. * Encrypt the given value.
  3367. *
  3368. * @param mixed $value
  3369. * @param bool $serialize
  3370. * @return string
  3371. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3372. * @static
  3373. */
  3374. public static function encrypt($value, $serialize = true)
  3375. {
  3376. /** @var \Illuminate\Encryption\Encrypter $instance */
  3377. return $instance->encrypt($value, $serialize);
  3378. }
  3379. /**
  3380. * Encrypt a string without serialization.
  3381. *
  3382. * @param string $value
  3383. * @return string
  3384. * @static
  3385. */
  3386. public static function encryptString($value)
  3387. {
  3388. /** @var \Illuminate\Encryption\Encrypter $instance */
  3389. return $instance->encryptString($value);
  3390. }
  3391. /**
  3392. * Decrypt the given value.
  3393. *
  3394. * @param mixed $payload
  3395. * @param bool $unserialize
  3396. * @return string
  3397. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3398. * @static
  3399. */
  3400. public static function decrypt($payload, $unserialize = true)
  3401. {
  3402. /** @var \Illuminate\Encryption\Encrypter $instance */
  3403. return $instance->decrypt($payload, $unserialize);
  3404. }
  3405. /**
  3406. * Decrypt the given string without unserialization.
  3407. *
  3408. * @param string $payload
  3409. * @return string
  3410. * @static
  3411. */
  3412. public static function decryptString($payload)
  3413. {
  3414. /** @var \Illuminate\Encryption\Encrypter $instance */
  3415. return $instance->decryptString($payload);
  3416. }
  3417. /**
  3418. * Get the encryption key.
  3419. *
  3420. * @return string
  3421. * @static
  3422. */
  3423. public static function getKey()
  3424. {
  3425. /** @var \Illuminate\Encryption\Encrypter $instance */
  3426. return $instance->getKey();
  3427. }
  3428. }
  3429. /**
  3430. *
  3431. *
  3432. * @see \Illuminate\Database\DatabaseManager
  3433. * @see \Illuminate\Database\Connection
  3434. */
  3435. class DB {
  3436. /**
  3437. * Get a database connection instance.
  3438. *
  3439. * @param string $name
  3440. * @return \Illuminate\Database\Connection
  3441. * @static
  3442. */
  3443. public static function connection($name = null)
  3444. {
  3445. /** @var \Illuminate\Database\DatabaseManager $instance */
  3446. return $instance->connection($name);
  3447. }
  3448. /**
  3449. * Disconnect from the given database and remove from local cache.
  3450. *
  3451. * @param string $name
  3452. * @return void
  3453. * @static
  3454. */
  3455. public static function purge($name = null)
  3456. {
  3457. /** @var \Illuminate\Database\DatabaseManager $instance */
  3458. $instance->purge($name);
  3459. }
  3460. /**
  3461. * Disconnect from the given database.
  3462. *
  3463. * @param string $name
  3464. * @return void
  3465. * @static
  3466. */
  3467. public static function disconnect($name = null)
  3468. {
  3469. /** @var \Illuminate\Database\DatabaseManager $instance */
  3470. $instance->disconnect($name);
  3471. }
  3472. /**
  3473. * Reconnect to the given database.
  3474. *
  3475. * @param string $name
  3476. * @return \Illuminate\Database\Connection
  3477. * @static
  3478. */
  3479. public static function reconnect($name = null)
  3480. {
  3481. /** @var \Illuminate\Database\DatabaseManager $instance */
  3482. return $instance->reconnect($name);
  3483. }
  3484. /**
  3485. * Get the default connection name.
  3486. *
  3487. * @return string
  3488. * @static
  3489. */
  3490. public static function getDefaultConnection()
  3491. {
  3492. /** @var \Illuminate\Database\DatabaseManager $instance */
  3493. return $instance->getDefaultConnection();
  3494. }
  3495. /**
  3496. * Set the default connection name.
  3497. *
  3498. * @param string $name
  3499. * @return void
  3500. * @static
  3501. */
  3502. public static function setDefaultConnection($name)
  3503. {
  3504. /** @var \Illuminate\Database\DatabaseManager $instance */
  3505. $instance->setDefaultConnection($name);
  3506. }
  3507. /**
  3508. * Get all of the support drivers.
  3509. *
  3510. * @return array
  3511. * @static
  3512. */
  3513. public static function supportedDrivers()
  3514. {
  3515. /** @var \Illuminate\Database\DatabaseManager $instance */
  3516. return $instance->supportedDrivers();
  3517. }
  3518. /**
  3519. * Get all of the drivers that are actually available.
  3520. *
  3521. * @return array
  3522. * @static
  3523. */
  3524. public static function availableDrivers()
  3525. {
  3526. /** @var \Illuminate\Database\DatabaseManager $instance */
  3527. return $instance->availableDrivers();
  3528. }
  3529. /**
  3530. * Register an extension connection resolver.
  3531. *
  3532. * @param string $name
  3533. * @param callable $resolver
  3534. * @return void
  3535. * @static
  3536. */
  3537. public static function extend($name, $resolver)
  3538. {
  3539. /** @var \Illuminate\Database\DatabaseManager $instance */
  3540. $instance->extend($name, $resolver);
  3541. }
  3542. /**
  3543. * Return all of the created connections.
  3544. *
  3545. * @return array
  3546. * @static
  3547. */
  3548. public static function getConnections()
  3549. {
  3550. /** @var \Illuminate\Database\DatabaseManager $instance */
  3551. return $instance->getConnections();
  3552. }
  3553. /**
  3554. * Get a schema builder instance for the connection.
  3555. *
  3556. * @return \Illuminate\Database\Schema\MySqlBuilder
  3557. * @static
  3558. */
  3559. public static function getSchemaBuilder()
  3560. {
  3561. /** @var \Illuminate\Database\MySqlConnection $instance */
  3562. return $instance->getSchemaBuilder();
  3563. }
  3564. /**
  3565. * Bind values to their parameters in the given statement.
  3566. *
  3567. * @param \PDOStatement $statement
  3568. * @param array $bindings
  3569. * @return void
  3570. * @static
  3571. */
  3572. public static function bindValues($statement, $bindings)
  3573. {
  3574. /** @var \Illuminate\Database\MySqlConnection $instance */
  3575. $instance->bindValues($statement, $bindings);
  3576. }
  3577. /**
  3578. * Set the query grammar to the default implementation.
  3579. *
  3580. * @return void
  3581. * @static
  3582. */
  3583. public static function useDefaultQueryGrammar()
  3584. {
  3585. //Method inherited from \Illuminate\Database\Connection
  3586. /** @var \Illuminate\Database\MySqlConnection $instance */
  3587. $instance->useDefaultQueryGrammar();
  3588. }
  3589. /**
  3590. * Set the schema grammar to the default implementation.
  3591. *
  3592. * @return void
  3593. * @static
  3594. */
  3595. public static function useDefaultSchemaGrammar()
  3596. {
  3597. //Method inherited from \Illuminate\Database\Connection
  3598. /** @var \Illuminate\Database\MySqlConnection $instance */
  3599. $instance->useDefaultSchemaGrammar();
  3600. }
  3601. /**
  3602. * Set the query post processor to the default implementation.
  3603. *
  3604. * @return void
  3605. * @static
  3606. */
  3607. public static function useDefaultPostProcessor()
  3608. {
  3609. //Method inherited from \Illuminate\Database\Connection
  3610. /** @var \Illuminate\Database\MySqlConnection $instance */
  3611. $instance->useDefaultPostProcessor();
  3612. }
  3613. /**
  3614. * Begin a fluent query against a database table.
  3615. *
  3616. * @param string $table
  3617. * @return \Illuminate\Database\Query\Builder
  3618. * @static
  3619. */
  3620. public static function table($table)
  3621. {
  3622. //Method inherited from \Illuminate\Database\Connection
  3623. /** @var \Illuminate\Database\MySqlConnection $instance */
  3624. return $instance->table($table);
  3625. }
  3626. /**
  3627. * Get a new query builder instance.
  3628. *
  3629. * @return \Illuminate\Database\Query\Builder
  3630. * @static
  3631. */
  3632. public static function query()
  3633. {
  3634. //Method inherited from \Illuminate\Database\Connection
  3635. /** @var \Illuminate\Database\MySqlConnection $instance */
  3636. return $instance->query();
  3637. }
  3638. /**
  3639. * Run a select statement and return a single result.
  3640. *
  3641. * @param string $query
  3642. * @param array $bindings
  3643. * @param bool $useReadPdo
  3644. * @return mixed
  3645. * @static
  3646. */
  3647. public static function selectOne($query, $bindings = array(), $useReadPdo = true)
  3648. {
  3649. //Method inherited from \Illuminate\Database\Connection
  3650. /** @var \Illuminate\Database\MySqlConnection $instance */
  3651. return $instance->selectOne($query, $bindings, $useReadPdo);
  3652. }
  3653. /**
  3654. * Run a select statement against the database.
  3655. *
  3656. * @param string $query
  3657. * @param array $bindings
  3658. * @return array
  3659. * @static
  3660. */
  3661. public static function selectFromWriteConnection($query, $bindings = array())
  3662. {
  3663. //Method inherited from \Illuminate\Database\Connection
  3664. /** @var \Illuminate\Database\MySqlConnection $instance */
  3665. return $instance->selectFromWriteConnection($query, $bindings);
  3666. }
  3667. /**
  3668. * Run a select statement against the database.
  3669. *
  3670. * @param string $query
  3671. * @param array $bindings
  3672. * @param bool $useReadPdo
  3673. * @return array
  3674. * @static
  3675. */
  3676. public static function select($query, $bindings = array(), $useReadPdo = true)
  3677. {
  3678. //Method inherited from \Illuminate\Database\Connection
  3679. /** @var \Illuminate\Database\MySqlConnection $instance */
  3680. return $instance->select($query, $bindings, $useReadPdo);
  3681. }
  3682. /**
  3683. * Run a select statement against the database and returns a generator.
  3684. *
  3685. * @param string $query
  3686. * @param array $bindings
  3687. * @param bool $useReadPdo
  3688. * @return \Generator
  3689. * @static
  3690. */
  3691. public static function cursor($query, $bindings = array(), $useReadPdo = true)
  3692. {
  3693. //Method inherited from \Illuminate\Database\Connection
  3694. /** @var \Illuminate\Database\MySqlConnection $instance */
  3695. return $instance->cursor($query, $bindings, $useReadPdo);
  3696. }
  3697. /**
  3698. * Run an insert statement against the database.
  3699. *
  3700. * @param string $query
  3701. * @param array $bindings
  3702. * @return bool
  3703. * @static
  3704. */
  3705. public static function insert($query, $bindings = array())
  3706. {
  3707. //Method inherited from \Illuminate\Database\Connection
  3708. /** @var \Illuminate\Database\MySqlConnection $instance */
  3709. return $instance->insert($query, $bindings);
  3710. }
  3711. /**
  3712. * Run an update statement against the database.
  3713. *
  3714. * @param string $query
  3715. * @param array $bindings
  3716. * @return int
  3717. * @static
  3718. */
  3719. public static function update($query, $bindings = array())
  3720. {
  3721. //Method inherited from \Illuminate\Database\Connection
  3722. /** @var \Illuminate\Database\MySqlConnection $instance */
  3723. return $instance->update($query, $bindings);
  3724. }
  3725. /**
  3726. * Run a delete statement against the database.
  3727. *
  3728. * @param string $query
  3729. * @param array $bindings
  3730. * @return int
  3731. * @static
  3732. */
  3733. public static function delete($query, $bindings = array())
  3734. {
  3735. //Method inherited from \Illuminate\Database\Connection
  3736. /** @var \Illuminate\Database\MySqlConnection $instance */
  3737. return $instance->delete($query, $bindings);
  3738. }
  3739. /**
  3740. * Execute an SQL statement and return the boolean result.
  3741. *
  3742. * @param string $query
  3743. * @param array $bindings
  3744. * @return bool
  3745. * @static
  3746. */
  3747. public static function statement($query, $bindings = array())
  3748. {
  3749. //Method inherited from \Illuminate\Database\Connection
  3750. /** @var \Illuminate\Database\MySqlConnection $instance */
  3751. return $instance->statement($query, $bindings);
  3752. }
  3753. /**
  3754. * Run an SQL statement and get the number of rows affected.
  3755. *
  3756. * @param string $query
  3757. * @param array $bindings
  3758. * @return int
  3759. * @static
  3760. */
  3761. public static function affectingStatement($query, $bindings = array())
  3762. {
  3763. //Method inherited from \Illuminate\Database\Connection
  3764. /** @var \Illuminate\Database\MySqlConnection $instance */
  3765. return $instance->affectingStatement($query, $bindings);
  3766. }
  3767. /**
  3768. * Run a raw, unprepared query against the PDO connection.
  3769. *
  3770. * @param string $query
  3771. * @return bool
  3772. * @static
  3773. */
  3774. public static function unprepared($query)
  3775. {
  3776. //Method inherited from \Illuminate\Database\Connection
  3777. /** @var \Illuminate\Database\MySqlConnection $instance */
  3778. return $instance->unprepared($query);
  3779. }
  3780. /**
  3781. * Execute the given callback in "dry run" mode.
  3782. *
  3783. * @param \Closure $callback
  3784. * @return array
  3785. * @static
  3786. */
  3787. public static function pretend($callback)
  3788. {
  3789. //Method inherited from \Illuminate\Database\Connection
  3790. /** @var \Illuminate\Database\MySqlConnection $instance */
  3791. return $instance->pretend($callback);
  3792. }
  3793. /**
  3794. * Prepare the query bindings for execution.
  3795. *
  3796. * @param array $bindings
  3797. * @return array
  3798. * @static
  3799. */
  3800. public static function prepareBindings($bindings)
  3801. {
  3802. //Method inherited from \Illuminate\Database\Connection
  3803. /** @var \Illuminate\Database\MySqlConnection $instance */
  3804. return $instance->prepareBindings($bindings);
  3805. }
  3806. /**
  3807. * Log a query in the connection's query log.
  3808. *
  3809. * @param string $query
  3810. * @param array $bindings
  3811. * @param float|null $time
  3812. * @return void
  3813. * @static
  3814. */
  3815. public static function logQuery($query, $bindings, $time = null)
  3816. {
  3817. //Method inherited from \Illuminate\Database\Connection
  3818. /** @var \Illuminate\Database\MySqlConnection $instance */
  3819. $instance->logQuery($query, $bindings, $time);
  3820. }
  3821. /**
  3822. * Register a database query listener with the connection.
  3823. *
  3824. * @param \Closure $callback
  3825. * @return void
  3826. * @static
  3827. */
  3828. public static function listen($callback)
  3829. {
  3830. //Method inherited from \Illuminate\Database\Connection
  3831. /** @var \Illuminate\Database\MySqlConnection $instance */
  3832. $instance->listen($callback);
  3833. }
  3834. /**
  3835. * Get a new raw query expression.
  3836. *
  3837. * @param mixed $value
  3838. * @return \Illuminate\Database\Query\Expression
  3839. * @static
  3840. */
  3841. public static function raw($value)
  3842. {
  3843. //Method inherited from \Illuminate\Database\Connection
  3844. /** @var \Illuminate\Database\MySqlConnection $instance */
  3845. return $instance->raw($value);
  3846. }
  3847. /**
  3848. * Indicate if any records have been modified.
  3849. *
  3850. * @param bool $value
  3851. * @return void
  3852. * @static
  3853. */
  3854. public static function recordsHaveBeenModified($value = true)
  3855. {
  3856. //Method inherited from \Illuminate\Database\Connection
  3857. /** @var \Illuminate\Database\MySqlConnection $instance */
  3858. $instance->recordsHaveBeenModified($value);
  3859. }
  3860. /**
  3861. * Is Doctrine available?
  3862. *
  3863. * @return bool
  3864. * @static
  3865. */
  3866. public static function isDoctrineAvailable()
  3867. {
  3868. //Method inherited from \Illuminate\Database\Connection
  3869. /** @var \Illuminate\Database\MySqlConnection $instance */
  3870. return $instance->isDoctrineAvailable();
  3871. }
  3872. /**
  3873. * Get a Doctrine Schema Column instance.
  3874. *
  3875. * @param string $table
  3876. * @param string $column
  3877. * @return \Doctrine\DBAL\Schema\Column
  3878. * @static
  3879. */
  3880. public static function getDoctrineColumn($table, $column)
  3881. {
  3882. //Method inherited from \Illuminate\Database\Connection
  3883. /** @var \Illuminate\Database\MySqlConnection $instance */
  3884. return $instance->getDoctrineColumn($table, $column);
  3885. }
  3886. /**
  3887. * Get the Doctrine DBAL schema manager for the connection.
  3888. *
  3889. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3890. * @static
  3891. */
  3892. public static function getDoctrineSchemaManager()
  3893. {
  3894. //Method inherited from \Illuminate\Database\Connection
  3895. /** @var \Illuminate\Database\MySqlConnection $instance */
  3896. return $instance->getDoctrineSchemaManager();
  3897. }
  3898. /**
  3899. * Get the Doctrine DBAL database connection instance.
  3900. *
  3901. * @return \Doctrine\DBAL\Connection
  3902. * @static
  3903. */
  3904. public static function getDoctrineConnection()
  3905. {
  3906. //Method inherited from \Illuminate\Database\Connection
  3907. /** @var \Illuminate\Database\MySqlConnection $instance */
  3908. return $instance->getDoctrineConnection();
  3909. }
  3910. /**
  3911. * Get the current PDO connection.
  3912. *
  3913. * @return \PDO
  3914. * @static
  3915. */
  3916. public static function getPdo()
  3917. {
  3918. //Method inherited from \Illuminate\Database\Connection
  3919. /** @var \Illuminate\Database\MySqlConnection $instance */
  3920. return $instance->getPdo();
  3921. }
  3922. /**
  3923. * Get the current PDO connection used for reading.
  3924. *
  3925. * @return \PDO
  3926. * @static
  3927. */
  3928. public static function getReadPdo()
  3929. {
  3930. //Method inherited from \Illuminate\Database\Connection
  3931. /** @var \Illuminate\Database\MySqlConnection $instance */
  3932. return $instance->getReadPdo();
  3933. }
  3934. /**
  3935. * Set the PDO connection.
  3936. *
  3937. * @param \PDO|\Closure|null $pdo
  3938. * @return \Illuminate\Database\MySqlConnection
  3939. * @static
  3940. */
  3941. public static function setPdo($pdo)
  3942. {
  3943. //Method inherited from \Illuminate\Database\Connection
  3944. /** @var \Illuminate\Database\MySqlConnection $instance */
  3945. return $instance->setPdo($pdo);
  3946. }
  3947. /**
  3948. * Set the PDO connection used for reading.
  3949. *
  3950. * @param \PDO|\Closure|null $pdo
  3951. * @return \Illuminate\Database\MySqlConnection
  3952. * @static
  3953. */
  3954. public static function setReadPdo($pdo)
  3955. {
  3956. //Method inherited from \Illuminate\Database\Connection
  3957. /** @var \Illuminate\Database\MySqlConnection $instance */
  3958. return $instance->setReadPdo($pdo);
  3959. }
  3960. /**
  3961. * Set the reconnect instance on the connection.
  3962. *
  3963. * @param callable $reconnector
  3964. * @return \Illuminate\Database\MySqlConnection
  3965. * @static
  3966. */
  3967. public static function setReconnector($reconnector)
  3968. {
  3969. //Method inherited from \Illuminate\Database\Connection
  3970. /** @var \Illuminate\Database\MySqlConnection $instance */
  3971. return $instance->setReconnector($reconnector);
  3972. }
  3973. /**
  3974. * Get the database connection name.
  3975. *
  3976. * @return string|null
  3977. * @static
  3978. */
  3979. public static function getName()
  3980. {
  3981. //Method inherited from \Illuminate\Database\Connection
  3982. /** @var \Illuminate\Database\MySqlConnection $instance */
  3983. return $instance->getName();
  3984. }
  3985. /**
  3986. * Get an option from the configuration options.
  3987. *
  3988. * @param string|null $option
  3989. * @return mixed
  3990. * @static
  3991. */
  3992. public static function getConfig($option = null)
  3993. {
  3994. //Method inherited from \Illuminate\Database\Connection
  3995. /** @var \Illuminate\Database\MySqlConnection $instance */
  3996. return $instance->getConfig($option);
  3997. }
  3998. /**
  3999. * Get the PDO driver name.
  4000. *
  4001. * @return string
  4002. * @static
  4003. */
  4004. public static function getDriverName()
  4005. {
  4006. //Method inherited from \Illuminate\Database\Connection
  4007. /** @var \Illuminate\Database\MySqlConnection $instance */
  4008. return $instance->getDriverName();
  4009. }
  4010. /**
  4011. * Get the query grammar used by the connection.
  4012. *
  4013. * @return \Illuminate\Database\Query\Grammars\Grammar
  4014. * @static
  4015. */
  4016. public static function getQueryGrammar()
  4017. {
  4018. //Method inherited from \Illuminate\Database\Connection
  4019. /** @var \Illuminate\Database\MySqlConnection $instance */
  4020. return $instance->getQueryGrammar();
  4021. }
  4022. /**
  4023. * Set the query grammar used by the connection.
  4024. *
  4025. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  4026. * @return void
  4027. * @static
  4028. */
  4029. public static function setQueryGrammar($grammar)
  4030. {
  4031. //Method inherited from \Illuminate\Database\Connection
  4032. /** @var \Illuminate\Database\MySqlConnection $instance */
  4033. $instance->setQueryGrammar($grammar);
  4034. }
  4035. /**
  4036. * Get the schema grammar used by the connection.
  4037. *
  4038. * @return \Illuminate\Database\Schema\Grammars\Grammar
  4039. * @static
  4040. */
  4041. public static function getSchemaGrammar()
  4042. {
  4043. //Method inherited from \Illuminate\Database\Connection
  4044. /** @var \Illuminate\Database\MySqlConnection $instance */
  4045. return $instance->getSchemaGrammar();
  4046. }
  4047. /**
  4048. * Set the schema grammar used by the connection.
  4049. *
  4050. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  4051. * @return void
  4052. * @static
  4053. */
  4054. public static function setSchemaGrammar($grammar)
  4055. {
  4056. //Method inherited from \Illuminate\Database\Connection
  4057. /** @var \Illuminate\Database\MySqlConnection $instance */
  4058. $instance->setSchemaGrammar($grammar);
  4059. }
  4060. /**
  4061. * Get the query post processor used by the connection.
  4062. *
  4063. * @return \Illuminate\Database\Query\Processors\Processor
  4064. * @static
  4065. */
  4066. public static function getPostProcessor()
  4067. {
  4068. //Method inherited from \Illuminate\Database\Connection
  4069. /** @var \Illuminate\Database\MySqlConnection $instance */
  4070. return $instance->getPostProcessor();
  4071. }
  4072. /**
  4073. * Set the query post processor used by the connection.
  4074. *
  4075. * @param \Illuminate\Database\Query\Processors\Processor $processor
  4076. * @return void
  4077. * @static
  4078. */
  4079. public static function setPostProcessor($processor)
  4080. {
  4081. //Method inherited from \Illuminate\Database\Connection
  4082. /** @var \Illuminate\Database\MySqlConnection $instance */
  4083. $instance->setPostProcessor($processor);
  4084. }
  4085. /**
  4086. * Get the event dispatcher used by the connection.
  4087. *
  4088. * @return \Illuminate\Contracts\Events\Dispatcher
  4089. * @static
  4090. */
  4091. public static function getEventDispatcher()
  4092. {
  4093. //Method inherited from \Illuminate\Database\Connection
  4094. /** @var \Illuminate\Database\MySqlConnection $instance */
  4095. return $instance->getEventDispatcher();
  4096. }
  4097. /**
  4098. * Set the event dispatcher instance on the connection.
  4099. *
  4100. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4101. * @return void
  4102. * @static
  4103. */
  4104. public static function setEventDispatcher($events)
  4105. {
  4106. //Method inherited from \Illuminate\Database\Connection
  4107. /** @var \Illuminate\Database\MySqlConnection $instance */
  4108. $instance->setEventDispatcher($events);
  4109. }
  4110. /**
  4111. * Determine if the connection in a "dry run".
  4112. *
  4113. * @return bool
  4114. * @static
  4115. */
  4116. public static function pretending()
  4117. {
  4118. //Method inherited from \Illuminate\Database\Connection
  4119. /** @var \Illuminate\Database\MySqlConnection $instance */
  4120. return $instance->pretending();
  4121. }
  4122. /**
  4123. * Get the connection query log.
  4124. *
  4125. * @return array
  4126. * @static
  4127. */
  4128. public static function getQueryLog()
  4129. {
  4130. //Method inherited from \Illuminate\Database\Connection
  4131. /** @var \Illuminate\Database\MySqlConnection $instance */
  4132. return $instance->getQueryLog();
  4133. }
  4134. /**
  4135. * Clear the query log.
  4136. *
  4137. * @return void
  4138. * @static
  4139. */
  4140. public static function flushQueryLog()
  4141. {
  4142. //Method inherited from \Illuminate\Database\Connection
  4143. /** @var \Illuminate\Database\MySqlConnection $instance */
  4144. $instance->flushQueryLog();
  4145. }
  4146. /**
  4147. * Enable the query log on the connection.
  4148. *
  4149. * @return void
  4150. * @static
  4151. */
  4152. public static function enableQueryLog()
  4153. {
  4154. //Method inherited from \Illuminate\Database\Connection
  4155. /** @var \Illuminate\Database\MySqlConnection $instance */
  4156. $instance->enableQueryLog();
  4157. }
  4158. /**
  4159. * Disable the query log on the connection.
  4160. *
  4161. * @return void
  4162. * @static
  4163. */
  4164. public static function disableQueryLog()
  4165. {
  4166. //Method inherited from \Illuminate\Database\Connection
  4167. /** @var \Illuminate\Database\MySqlConnection $instance */
  4168. $instance->disableQueryLog();
  4169. }
  4170. /**
  4171. * Determine whether we're logging queries.
  4172. *
  4173. * @return bool
  4174. * @static
  4175. */
  4176. public static function logging()
  4177. {
  4178. //Method inherited from \Illuminate\Database\Connection
  4179. /** @var \Illuminate\Database\MySqlConnection $instance */
  4180. return $instance->logging();
  4181. }
  4182. /**
  4183. * Get the name of the connected database.
  4184. *
  4185. * @return string
  4186. * @static
  4187. */
  4188. public static function getDatabaseName()
  4189. {
  4190. //Method inherited from \Illuminate\Database\Connection
  4191. /** @var \Illuminate\Database\MySqlConnection $instance */
  4192. return $instance->getDatabaseName();
  4193. }
  4194. /**
  4195. * Set the name of the connected database.
  4196. *
  4197. * @param string $database
  4198. * @return string
  4199. * @static
  4200. */
  4201. public static function setDatabaseName($database)
  4202. {
  4203. //Method inherited from \Illuminate\Database\Connection
  4204. /** @var \Illuminate\Database\MySqlConnection $instance */
  4205. return $instance->setDatabaseName($database);
  4206. }
  4207. /**
  4208. * Get the table prefix for the connection.
  4209. *
  4210. * @return string
  4211. * @static
  4212. */
  4213. public static function getTablePrefix()
  4214. {
  4215. //Method inherited from \Illuminate\Database\Connection
  4216. /** @var \Illuminate\Database\MySqlConnection $instance */
  4217. return $instance->getTablePrefix();
  4218. }
  4219. /**
  4220. * Set the table prefix in use by the connection.
  4221. *
  4222. * @param string $prefix
  4223. * @return void
  4224. * @static
  4225. */
  4226. public static function setTablePrefix($prefix)
  4227. {
  4228. //Method inherited from \Illuminate\Database\Connection
  4229. /** @var \Illuminate\Database\MySqlConnection $instance */
  4230. $instance->setTablePrefix($prefix);
  4231. }
  4232. /**
  4233. * Set the table prefix and return the grammar.
  4234. *
  4235. * @param \Illuminate\Database\Grammar $grammar
  4236. * @return \Illuminate\Database\Grammar
  4237. * @static
  4238. */
  4239. public static function withTablePrefix($grammar)
  4240. {
  4241. //Method inherited from \Illuminate\Database\Connection
  4242. /** @var \Illuminate\Database\MySqlConnection $instance */
  4243. return $instance->withTablePrefix($grammar);
  4244. }
  4245. /**
  4246. * Register a connection resolver.
  4247. *
  4248. * @param string $driver
  4249. * @param \Closure $callback
  4250. * @return void
  4251. * @static
  4252. */
  4253. public static function resolverFor($driver, $callback)
  4254. {
  4255. //Method inherited from \Illuminate\Database\Connection
  4256. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  4257. }
  4258. /**
  4259. * Get the connection resolver for the given driver.
  4260. *
  4261. * @param string $driver
  4262. * @return mixed
  4263. * @static
  4264. */
  4265. public static function getResolver($driver)
  4266. {
  4267. //Method inherited from \Illuminate\Database\Connection
  4268. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  4269. }
  4270. /**
  4271. * Execute a Closure within a transaction.
  4272. *
  4273. * @param \Closure $callback
  4274. * @param int $attempts
  4275. * @return mixed
  4276. * @throws \Exception|\Throwable
  4277. * @static
  4278. */
  4279. public static function transaction($callback, $attempts = 1)
  4280. {
  4281. //Method inherited from \Illuminate\Database\Connection
  4282. /** @var \Illuminate\Database\MySqlConnection $instance */
  4283. return $instance->transaction($callback, $attempts);
  4284. }
  4285. /**
  4286. * Start a new database transaction.
  4287. *
  4288. * @return void
  4289. * @throws \Exception
  4290. * @static
  4291. */
  4292. public static function beginTransaction()
  4293. {
  4294. //Method inherited from \Illuminate\Database\Connection
  4295. /** @var \Illuminate\Database\MySqlConnection $instance */
  4296. $instance->beginTransaction();
  4297. }
  4298. /**
  4299. * Commit the active database transaction.
  4300. *
  4301. * @return void
  4302. * @static
  4303. */
  4304. public static function commit()
  4305. {
  4306. //Method inherited from \Illuminate\Database\Connection
  4307. /** @var \Illuminate\Database\MySqlConnection $instance */
  4308. $instance->commit();
  4309. }
  4310. /**
  4311. * Rollback the active database transaction.
  4312. *
  4313. * @param int|null $toLevel
  4314. * @return void
  4315. * @static
  4316. */
  4317. public static function rollBack($toLevel = null)
  4318. {
  4319. //Method inherited from \Illuminate\Database\Connection
  4320. /** @var \Illuminate\Database\MySqlConnection $instance */
  4321. $instance->rollBack($toLevel);
  4322. }
  4323. /**
  4324. * Get the number of active transactions.
  4325. *
  4326. * @return int
  4327. * @static
  4328. */
  4329. public static function transactionLevel()
  4330. {
  4331. //Method inherited from \Illuminate\Database\Connection
  4332. /** @var \Illuminate\Database\MySqlConnection $instance */
  4333. return $instance->transactionLevel();
  4334. }
  4335. }
  4336. /**
  4337. *
  4338. *
  4339. * @see \Illuminate\Events\Dispatcher
  4340. */
  4341. class Event {
  4342. /**
  4343. * Register an event listener with the dispatcher.
  4344. *
  4345. * @param string|array $events
  4346. * @param mixed $listener
  4347. * @return void
  4348. * @static
  4349. */
  4350. public static function listen($events, $listener)
  4351. {
  4352. /** @var \Illuminate\Events\Dispatcher $instance */
  4353. $instance->listen($events, $listener);
  4354. }
  4355. /**
  4356. * Determine if a given event has listeners.
  4357. *
  4358. * @param string $eventName
  4359. * @return bool
  4360. * @static
  4361. */
  4362. public static function hasListeners($eventName)
  4363. {
  4364. /** @var \Illuminate\Events\Dispatcher $instance */
  4365. return $instance->hasListeners($eventName);
  4366. }
  4367. /**
  4368. * Register an event and payload to be fired later.
  4369. *
  4370. * @param string $event
  4371. * @param array $payload
  4372. * @return void
  4373. * @static
  4374. */
  4375. public static function push($event, $payload = array())
  4376. {
  4377. /** @var \Illuminate\Events\Dispatcher $instance */
  4378. $instance->push($event, $payload);
  4379. }
  4380. /**
  4381. * Flush a set of pushed events.
  4382. *
  4383. * @param string $event
  4384. * @return void
  4385. * @static
  4386. */
  4387. public static function flush($event)
  4388. {
  4389. /** @var \Illuminate\Events\Dispatcher $instance */
  4390. $instance->flush($event);
  4391. }
  4392. /**
  4393. * Register an event subscriber with the dispatcher.
  4394. *
  4395. * @param object|string $subscriber
  4396. * @return void
  4397. * @static
  4398. */
  4399. public static function subscribe($subscriber)
  4400. {
  4401. /** @var \Illuminate\Events\Dispatcher $instance */
  4402. $instance->subscribe($subscriber);
  4403. }
  4404. /**
  4405. * Fire an event until the first non-null response is returned.
  4406. *
  4407. * @param string|object $event
  4408. * @param mixed $payload
  4409. * @return array|null
  4410. * @static
  4411. */
  4412. public static function until($event, $payload = array())
  4413. {
  4414. /** @var \Illuminate\Events\Dispatcher $instance */
  4415. return $instance->until($event, $payload);
  4416. }
  4417. /**
  4418. * Fire an event and call the listeners.
  4419. *
  4420. * @param string|object $event
  4421. * @param mixed $payload
  4422. * @param bool $halt
  4423. * @return array|null
  4424. * @static
  4425. */
  4426. public static function fire($event, $payload = array(), $halt = false)
  4427. {
  4428. /** @var \Illuminate\Events\Dispatcher $instance */
  4429. return $instance->fire($event, $payload, $halt);
  4430. }
  4431. /**
  4432. * Fire an event and call the listeners.
  4433. *
  4434. * @param string|object $event
  4435. * @param mixed $payload
  4436. * @param bool $halt
  4437. * @return array|null
  4438. * @static
  4439. */
  4440. public static function dispatch($event, $payload = array(), $halt = false)
  4441. {
  4442. /** @var \Illuminate\Events\Dispatcher $instance */
  4443. return $instance->dispatch($event, $payload, $halt);
  4444. }
  4445. /**
  4446. * Get all of the listeners for a given event name.
  4447. *
  4448. * @param string $eventName
  4449. * @return array
  4450. * @static
  4451. */
  4452. public static function getListeners($eventName)
  4453. {
  4454. /** @var \Illuminate\Events\Dispatcher $instance */
  4455. return $instance->getListeners($eventName);
  4456. }
  4457. /**
  4458. * Register an event listener with the dispatcher.
  4459. *
  4460. * @param \Closure|string $listener
  4461. * @param bool $wildcard
  4462. * @return \Closure
  4463. * @static
  4464. */
  4465. public static function makeListener($listener, $wildcard = false)
  4466. {
  4467. /** @var \Illuminate\Events\Dispatcher $instance */
  4468. return $instance->makeListener($listener, $wildcard);
  4469. }
  4470. /**
  4471. * Create a class based listener using the IoC container.
  4472. *
  4473. * @param string $listener
  4474. * @param bool $wildcard
  4475. * @return \Closure
  4476. * @static
  4477. */
  4478. public static function createClassListener($listener, $wildcard = false)
  4479. {
  4480. /** @var \Illuminate\Events\Dispatcher $instance */
  4481. return $instance->createClassListener($listener, $wildcard);
  4482. }
  4483. /**
  4484. * Remove a set of listeners from the dispatcher.
  4485. *
  4486. * @param string $event
  4487. * @return void
  4488. * @static
  4489. */
  4490. public static function forget($event)
  4491. {
  4492. /** @var \Illuminate\Events\Dispatcher $instance */
  4493. $instance->forget($event);
  4494. }
  4495. /**
  4496. * Forget all of the pushed listeners.
  4497. *
  4498. * @return void
  4499. * @static
  4500. */
  4501. public static function forgetPushed()
  4502. {
  4503. /** @var \Illuminate\Events\Dispatcher $instance */
  4504. $instance->forgetPushed();
  4505. }
  4506. /**
  4507. * Set the queue resolver implementation.
  4508. *
  4509. * @param callable $resolver
  4510. * @return \Illuminate\Events\Dispatcher
  4511. * @static
  4512. */
  4513. public static function setQueueResolver($resolver)
  4514. {
  4515. /** @var \Illuminate\Events\Dispatcher $instance */
  4516. return $instance->setQueueResolver($resolver);
  4517. }
  4518. /**
  4519. * Assert if an event was dispatched based on a truth-test callback.
  4520. *
  4521. * @param string $event
  4522. * @param callable|int|null $callback
  4523. * @return void
  4524. * @static
  4525. */
  4526. public static function assertDispatched($event, $callback = null)
  4527. {
  4528. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4529. $instance->assertDispatched($event, $callback);
  4530. }
  4531. /**
  4532. * Assert if a event was dispatched a number of times.
  4533. *
  4534. * @param string $event
  4535. * @param int $times
  4536. * @return void
  4537. * @static
  4538. */
  4539. public static function assertDispatchedTimes($event, $times = 1)
  4540. {
  4541. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4542. $instance->assertDispatchedTimes($event, $times);
  4543. }
  4544. /**
  4545. * Determine if an event was dispatched based on a truth-test callback.
  4546. *
  4547. * @param string $event
  4548. * @param callable|null $callback
  4549. * @return void
  4550. * @static
  4551. */
  4552. public static function assertNotDispatched($event, $callback = null)
  4553. {
  4554. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4555. $instance->assertNotDispatched($event, $callback);
  4556. }
  4557. /**
  4558. * Get all of the events matching a truth-test callback.
  4559. *
  4560. * @param string $event
  4561. * @param callable|null $callback
  4562. * @return \Illuminate\Support\Collection
  4563. * @static
  4564. */
  4565. public static function dispatched($event, $callback = null)
  4566. {
  4567. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4568. return $instance->dispatched($event, $callback);
  4569. }
  4570. /**
  4571. * Determine if the given event has been dispatched.
  4572. *
  4573. * @param string $event
  4574. * @return bool
  4575. * @static
  4576. */
  4577. public static function hasDispatched($event)
  4578. {
  4579. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4580. return $instance->hasDispatched($event);
  4581. }
  4582. }
  4583. /**
  4584. *
  4585. *
  4586. * @see \Illuminate\Filesystem\Filesystem
  4587. */
  4588. class File {
  4589. /**
  4590. * Determine if a file or directory exists.
  4591. *
  4592. * @param string $path
  4593. * @return bool
  4594. * @static
  4595. */
  4596. public static function exists($path)
  4597. {
  4598. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4599. return $instance->exists($path);
  4600. }
  4601. /**
  4602. * Get the contents of a file.
  4603. *
  4604. * @param string $path
  4605. * @param bool $lock
  4606. * @return string
  4607. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4608. * @static
  4609. */
  4610. public static function get($path, $lock = false)
  4611. {
  4612. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4613. return $instance->get($path, $lock);
  4614. }
  4615. /**
  4616. * Get contents of a file with shared access.
  4617. *
  4618. * @param string $path
  4619. * @return string
  4620. * @static
  4621. */
  4622. public static function sharedGet($path)
  4623. {
  4624. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4625. return $instance->sharedGet($path);
  4626. }
  4627. /**
  4628. * Get the returned value of a file.
  4629. *
  4630. * @param string $path
  4631. * @return mixed
  4632. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4633. * @static
  4634. */
  4635. public static function getRequire($path)
  4636. {
  4637. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4638. return $instance->getRequire($path);
  4639. }
  4640. /**
  4641. * Require the given file once.
  4642. *
  4643. * @param string $file
  4644. * @return mixed
  4645. * @static
  4646. */
  4647. public static function requireOnce($file)
  4648. {
  4649. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4650. return $instance->requireOnce($file);
  4651. }
  4652. /**
  4653. * Get the MD5 hash of the file at the given path.
  4654. *
  4655. * @param string $path
  4656. * @return string
  4657. * @static
  4658. */
  4659. public static function hash($path)
  4660. {
  4661. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4662. return $instance->hash($path);
  4663. }
  4664. /**
  4665. * Write the contents of a file.
  4666. *
  4667. * @param string $path
  4668. * @param string $contents
  4669. * @param bool $lock
  4670. * @return int
  4671. * @static
  4672. */
  4673. public static function put($path, $contents, $lock = false)
  4674. {
  4675. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4676. return $instance->put($path, $contents, $lock);
  4677. }
  4678. /**
  4679. * Prepend to a file.
  4680. *
  4681. * @param string $path
  4682. * @param string $data
  4683. * @return int
  4684. * @static
  4685. */
  4686. public static function prepend($path, $data)
  4687. {
  4688. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4689. return $instance->prepend($path, $data);
  4690. }
  4691. /**
  4692. * Append to a file.
  4693. *
  4694. * @param string $path
  4695. * @param string $data
  4696. * @return int
  4697. * @static
  4698. */
  4699. public static function append($path, $data)
  4700. {
  4701. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4702. return $instance->append($path, $data);
  4703. }
  4704. /**
  4705. * Get or set UNIX mode of a file or directory.
  4706. *
  4707. * @param string $path
  4708. * @param int $mode
  4709. * @return mixed
  4710. * @static
  4711. */
  4712. public static function chmod($path, $mode = null)
  4713. {
  4714. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4715. return $instance->chmod($path, $mode);
  4716. }
  4717. /**
  4718. * Delete the file at a given path.
  4719. *
  4720. * @param string|array $paths
  4721. * @return bool
  4722. * @static
  4723. */
  4724. public static function delete($paths)
  4725. {
  4726. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4727. return $instance->delete($paths);
  4728. }
  4729. /**
  4730. * Move a file to a new location.
  4731. *
  4732. * @param string $path
  4733. * @param string $target
  4734. * @return bool
  4735. * @static
  4736. */
  4737. public static function move($path, $target)
  4738. {
  4739. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4740. return $instance->move($path, $target);
  4741. }
  4742. /**
  4743. * Copy a file to a new location.
  4744. *
  4745. * @param string $path
  4746. * @param string $target
  4747. * @return bool
  4748. * @static
  4749. */
  4750. public static function copy($path, $target)
  4751. {
  4752. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4753. return $instance->copy($path, $target);
  4754. }
  4755. /**
  4756. * Create a hard link to the target file or directory.
  4757. *
  4758. * @param string $target
  4759. * @param string $link
  4760. * @return void
  4761. * @static
  4762. */
  4763. public static function link($target, $link)
  4764. {
  4765. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4766. $instance->link($target, $link);
  4767. }
  4768. /**
  4769. * Extract the file name from a file path.
  4770. *
  4771. * @param string $path
  4772. * @return string
  4773. * @static
  4774. */
  4775. public static function name($path)
  4776. {
  4777. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4778. return $instance->name($path);
  4779. }
  4780. /**
  4781. * Extract the trailing name component from a file path.
  4782. *
  4783. * @param string $path
  4784. * @return string
  4785. * @static
  4786. */
  4787. public static function basename($path)
  4788. {
  4789. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4790. return $instance->basename($path);
  4791. }
  4792. /**
  4793. * Extract the parent directory from a file path.
  4794. *
  4795. * @param string $path
  4796. * @return string
  4797. * @static
  4798. */
  4799. public static function dirname($path)
  4800. {
  4801. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4802. return $instance->dirname($path);
  4803. }
  4804. /**
  4805. * Extract the file extension from a file path.
  4806. *
  4807. * @param string $path
  4808. * @return string
  4809. * @static
  4810. */
  4811. public static function extension($path)
  4812. {
  4813. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4814. return $instance->extension($path);
  4815. }
  4816. /**
  4817. * Get the file type of a given file.
  4818. *
  4819. * @param string $path
  4820. * @return string
  4821. * @static
  4822. */
  4823. public static function type($path)
  4824. {
  4825. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4826. return $instance->type($path);
  4827. }
  4828. /**
  4829. * Get the mime-type of a given file.
  4830. *
  4831. * @param string $path
  4832. * @return string|false
  4833. * @static
  4834. */
  4835. public static function mimeType($path)
  4836. {
  4837. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4838. return $instance->mimeType($path);
  4839. }
  4840. /**
  4841. * Get the file size of a given file.
  4842. *
  4843. * @param string $path
  4844. * @return int
  4845. * @static
  4846. */
  4847. public static function size($path)
  4848. {
  4849. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4850. return $instance->size($path);
  4851. }
  4852. /**
  4853. * Get the file's last modification time.
  4854. *
  4855. * @param string $path
  4856. * @return int
  4857. * @static
  4858. */
  4859. public static function lastModified($path)
  4860. {
  4861. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4862. return $instance->lastModified($path);
  4863. }
  4864. /**
  4865. * Determine if the given path is a directory.
  4866. *
  4867. * @param string $directory
  4868. * @return bool
  4869. * @static
  4870. */
  4871. public static function isDirectory($directory)
  4872. {
  4873. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4874. return $instance->isDirectory($directory);
  4875. }
  4876. /**
  4877. * Determine if the given path is readable.
  4878. *
  4879. * @param string $path
  4880. * @return bool
  4881. * @static
  4882. */
  4883. public static function isReadable($path)
  4884. {
  4885. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4886. return $instance->isReadable($path);
  4887. }
  4888. /**
  4889. * Determine if the given path is writable.
  4890. *
  4891. * @param string $path
  4892. * @return bool
  4893. * @static
  4894. */
  4895. public static function isWritable($path)
  4896. {
  4897. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4898. return $instance->isWritable($path);
  4899. }
  4900. /**
  4901. * Determine if the given path is a file.
  4902. *
  4903. * @param string $file
  4904. * @return bool
  4905. * @static
  4906. */
  4907. public static function isFile($file)
  4908. {
  4909. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4910. return $instance->isFile($file);
  4911. }
  4912. /**
  4913. * Find path names matching a given pattern.
  4914. *
  4915. * @param string $pattern
  4916. * @param int $flags
  4917. * @return array
  4918. * @static
  4919. */
  4920. public static function glob($pattern, $flags = 0)
  4921. {
  4922. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4923. return $instance->glob($pattern, $flags);
  4924. }
  4925. /**
  4926. * Get an array of all files in a directory.
  4927. *
  4928. * @param string $directory
  4929. * @param bool $hidden
  4930. * @return \Symfony\Component\Finder\SplFileInfo[]
  4931. * @static
  4932. */
  4933. public static function files($directory, $hidden = false)
  4934. {
  4935. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4936. return $instance->files($directory, $hidden);
  4937. }
  4938. /**
  4939. * Get all of the files from the given directory (recursive).
  4940. *
  4941. * @param string $directory
  4942. * @param bool $hidden
  4943. * @return \Symfony\Component\Finder\SplFileInfo[]
  4944. * @static
  4945. */
  4946. public static function allFiles($directory, $hidden = false)
  4947. {
  4948. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4949. return $instance->allFiles($directory, $hidden);
  4950. }
  4951. /**
  4952. * Get all of the directories within a given directory.
  4953. *
  4954. * @param string $directory
  4955. * @return array
  4956. * @static
  4957. */
  4958. public static function directories($directory)
  4959. {
  4960. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4961. return $instance->directories($directory);
  4962. }
  4963. /**
  4964. * Create a directory.
  4965. *
  4966. * @param string $path
  4967. * @param int $mode
  4968. * @param bool $recursive
  4969. * @param bool $force
  4970. * @return bool
  4971. * @static
  4972. */
  4973. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  4974. {
  4975. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4976. return $instance->makeDirectory($path, $mode, $recursive, $force);
  4977. }
  4978. /**
  4979. * Move a directory.
  4980. *
  4981. * @param string $from
  4982. * @param string $to
  4983. * @param bool $overwrite
  4984. * @return bool
  4985. * @static
  4986. */
  4987. public static function moveDirectory($from, $to, $overwrite = false)
  4988. {
  4989. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4990. return $instance->moveDirectory($from, $to, $overwrite);
  4991. }
  4992. /**
  4993. * Copy a directory from one location to another.
  4994. *
  4995. * @param string $directory
  4996. * @param string $destination
  4997. * @param int $options
  4998. * @return bool
  4999. * @static
  5000. */
  5001. public static function copyDirectory($directory, $destination, $options = null)
  5002. {
  5003. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5004. return $instance->copyDirectory($directory, $destination, $options);
  5005. }
  5006. /**
  5007. * Recursively delete a directory.
  5008. *
  5009. * The directory itself may be optionally preserved.
  5010. *
  5011. * @param string $directory
  5012. * @param bool $preserve
  5013. * @return bool
  5014. * @static
  5015. */
  5016. public static function deleteDirectory($directory, $preserve = false)
  5017. {
  5018. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5019. return $instance->deleteDirectory($directory, $preserve);
  5020. }
  5021. /**
  5022. * Empty the specified directory of all files and folders.
  5023. *
  5024. * @param string $directory
  5025. * @return bool
  5026. * @static
  5027. */
  5028. public static function cleanDirectory($directory)
  5029. {
  5030. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5031. return $instance->cleanDirectory($directory);
  5032. }
  5033. /**
  5034. * Register a custom macro.
  5035. *
  5036. * @param string $name
  5037. * @param object|callable $macro
  5038. * @return void
  5039. * @static
  5040. */
  5041. public static function macro($name, $macro)
  5042. {
  5043. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  5044. }
  5045. /**
  5046. * Mix another object into the class.
  5047. *
  5048. * @param object $mixin
  5049. * @return void
  5050. * @static
  5051. */
  5052. public static function mixin($mixin)
  5053. {
  5054. \Illuminate\Filesystem\Filesystem::mixin($mixin);
  5055. }
  5056. /**
  5057. * Checks if macro is registered.
  5058. *
  5059. * @param string $name
  5060. * @return bool
  5061. * @static
  5062. */
  5063. public static function hasMacro($name)
  5064. {
  5065. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  5066. }
  5067. }
  5068. /**
  5069. *
  5070. *
  5071. * @see \Illuminate\Contracts\Auth\Access\Gate
  5072. */
  5073. class Gate {
  5074. /**
  5075. * Determine if a given ability has been defined.
  5076. *
  5077. * @param string|array $ability
  5078. * @return bool
  5079. * @static
  5080. */
  5081. public static function has($ability)
  5082. {
  5083. /** @var \Illuminate\Auth\Access\Gate $instance */
  5084. return $instance->has($ability);
  5085. }
  5086. /**
  5087. * Define a new ability.
  5088. *
  5089. * @param string $ability
  5090. * @param callable|string $callback
  5091. * @return \Illuminate\Auth\Access\Gate
  5092. * @throws \InvalidArgumentException
  5093. * @static
  5094. */
  5095. public static function define($ability, $callback)
  5096. {
  5097. /** @var \Illuminate\Auth\Access\Gate $instance */
  5098. return $instance->define($ability, $callback);
  5099. }
  5100. /**
  5101. * Define abilities for a resource.
  5102. *
  5103. * @param string $name
  5104. * @param string $class
  5105. * @param array $abilities
  5106. * @return \Illuminate\Auth\Access\Gate
  5107. * @static
  5108. */
  5109. public static function resource($name, $class, $abilities = null)
  5110. {
  5111. /** @var \Illuminate\Auth\Access\Gate $instance */
  5112. return $instance->resource($name, $class, $abilities);
  5113. }
  5114. /**
  5115. * Define a policy class for a given class type.
  5116. *
  5117. * @param string $class
  5118. * @param string $policy
  5119. * @return \Illuminate\Auth\Access\Gate
  5120. * @static
  5121. */
  5122. public static function policy($class, $policy)
  5123. {
  5124. /** @var \Illuminate\Auth\Access\Gate $instance */
  5125. return $instance->policy($class, $policy);
  5126. }
  5127. /**
  5128. * Register a callback to run before all Gate checks.
  5129. *
  5130. * @param callable $callback
  5131. * @return \Illuminate\Auth\Access\Gate
  5132. * @static
  5133. */
  5134. public static function before($callback)
  5135. {
  5136. /** @var \Illuminate\Auth\Access\Gate $instance */
  5137. return $instance->before($callback);
  5138. }
  5139. /**
  5140. * Register a callback to run after all Gate checks.
  5141. *
  5142. * @param callable $callback
  5143. * @return \Illuminate\Auth\Access\Gate
  5144. * @static
  5145. */
  5146. public static function after($callback)
  5147. {
  5148. /** @var \Illuminate\Auth\Access\Gate $instance */
  5149. return $instance->after($callback);
  5150. }
  5151. /**
  5152. * Determine if the given ability should be granted for the current user.
  5153. *
  5154. * @param string $ability
  5155. * @param array|mixed $arguments
  5156. * @return bool
  5157. * @static
  5158. */
  5159. public static function allows($ability, $arguments = array())
  5160. {
  5161. /** @var \Illuminate\Auth\Access\Gate $instance */
  5162. return $instance->allows($ability, $arguments);
  5163. }
  5164. /**
  5165. * Determine if the given ability should be denied for the current user.
  5166. *
  5167. * @param string $ability
  5168. * @param array|mixed $arguments
  5169. * @return bool
  5170. * @static
  5171. */
  5172. public static function denies($ability, $arguments = array())
  5173. {
  5174. /** @var \Illuminate\Auth\Access\Gate $instance */
  5175. return $instance->denies($ability, $arguments);
  5176. }
  5177. /**
  5178. * Determine if all of the given abilities should be granted for the current user.
  5179. *
  5180. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5181. * @param array|mixed $arguments
  5182. * @return bool
  5183. * @static
  5184. */
  5185. public static function check($abilities, $arguments = array())
  5186. {
  5187. /** @var \Illuminate\Auth\Access\Gate $instance */
  5188. return $instance->check($abilities, $arguments);
  5189. }
  5190. /**
  5191. * Determine if any one of the given abilities should be granted for the current user.
  5192. *
  5193. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5194. * @param array|mixed $arguments
  5195. * @return bool
  5196. * @static
  5197. */
  5198. public static function any($abilities, $arguments = array())
  5199. {
  5200. /** @var \Illuminate\Auth\Access\Gate $instance */
  5201. return $instance->any($abilities, $arguments);
  5202. }
  5203. /**
  5204. * Determine if the given ability should be granted for the current user.
  5205. *
  5206. * @param string $ability
  5207. * @param array|mixed $arguments
  5208. * @return \Illuminate\Auth\Access\Response
  5209. * @throws \Illuminate\Auth\Access\AuthorizationException
  5210. * @static
  5211. */
  5212. public static function authorize($ability, $arguments = array())
  5213. {
  5214. /** @var \Illuminate\Auth\Access\Gate $instance */
  5215. return $instance->authorize($ability, $arguments);
  5216. }
  5217. /**
  5218. * Get a policy instance for a given class.
  5219. *
  5220. * @param object|string $class
  5221. * @return mixed
  5222. * @static
  5223. */
  5224. public static function getPolicyFor($class)
  5225. {
  5226. /** @var \Illuminate\Auth\Access\Gate $instance */
  5227. return $instance->getPolicyFor($class);
  5228. }
  5229. /**
  5230. * Build a policy class instance of the given type.
  5231. *
  5232. * @param object|string $class
  5233. * @return mixed
  5234. * @static
  5235. */
  5236. public static function resolvePolicy($class)
  5237. {
  5238. /** @var \Illuminate\Auth\Access\Gate $instance */
  5239. return $instance->resolvePolicy($class);
  5240. }
  5241. /**
  5242. * Get a gate instance for the given user.
  5243. *
  5244. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  5245. * @return static
  5246. * @static
  5247. */
  5248. public static function forUser($user)
  5249. {
  5250. /** @var \Illuminate\Auth\Access\Gate $instance */
  5251. return $instance->forUser($user);
  5252. }
  5253. /**
  5254. * Get all of the defined abilities.
  5255. *
  5256. * @return array
  5257. * @static
  5258. */
  5259. public static function abilities()
  5260. {
  5261. /** @var \Illuminate\Auth\Access\Gate $instance */
  5262. return $instance->abilities();
  5263. }
  5264. /**
  5265. * Get all of the defined policies.
  5266. *
  5267. * @return array
  5268. * @static
  5269. */
  5270. public static function policies()
  5271. {
  5272. /** @var \Illuminate\Auth\Access\Gate $instance */
  5273. return $instance->policies();
  5274. }
  5275. }
  5276. /**
  5277. *
  5278. *
  5279. * @see \Illuminate\Hashing\BcryptHasher
  5280. */
  5281. class Hash {
  5282. /**
  5283. * Hash the given value.
  5284. *
  5285. * @param string $value
  5286. * @param array $options
  5287. * @return string
  5288. * @throws \RuntimeException
  5289. * @static
  5290. */
  5291. public static function make($value, $options = array())
  5292. {
  5293. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5294. return $instance->make($value, $options);
  5295. }
  5296. /**
  5297. * Check the given plain value against a hash.
  5298. *
  5299. * @param string $value
  5300. * @param string $hashedValue
  5301. * @param array $options
  5302. * @return bool
  5303. * @static
  5304. */
  5305. public static function check($value, $hashedValue, $options = array())
  5306. {
  5307. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5308. return $instance->check($value, $hashedValue, $options);
  5309. }
  5310. /**
  5311. * Check if the given hash has been hashed using the given options.
  5312. *
  5313. * @param string $hashedValue
  5314. * @param array $options
  5315. * @return bool
  5316. * @static
  5317. */
  5318. public static function needsRehash($hashedValue, $options = array())
  5319. {
  5320. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5321. return $instance->needsRehash($hashedValue, $options);
  5322. }
  5323. /**
  5324. * Set the default password work factor.
  5325. *
  5326. * @param int $rounds
  5327. * @return \Illuminate\Hashing\BcryptHasher
  5328. * @static
  5329. */
  5330. public static function setRounds($rounds)
  5331. {
  5332. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5333. return $instance->setRounds($rounds);
  5334. }
  5335. }
  5336. /**
  5337. *
  5338. *
  5339. * @see \Illuminate\Translation\Translator
  5340. */
  5341. class Lang {
  5342. /**
  5343. * Determine if a translation exists for a given locale.
  5344. *
  5345. * @param string $key
  5346. * @param string|null $locale
  5347. * @return bool
  5348. * @static
  5349. */
  5350. public static function hasForLocale($key, $locale = null)
  5351. {
  5352. /** @var \Illuminate\Translation\Translator $instance */
  5353. return $instance->hasForLocale($key, $locale);
  5354. }
  5355. /**
  5356. * Determine if a translation exists.
  5357. *
  5358. * @param string $key
  5359. * @param string|null $locale
  5360. * @param bool $fallback
  5361. * @return bool
  5362. * @static
  5363. */
  5364. public static function has($key, $locale = null, $fallback = true)
  5365. {
  5366. /** @var \Illuminate\Translation\Translator $instance */
  5367. return $instance->has($key, $locale, $fallback);
  5368. }
  5369. /**
  5370. * Get the translation for a given key.
  5371. *
  5372. * @param string $key
  5373. * @param array $replace
  5374. * @param string $locale
  5375. * @return string|array|null
  5376. * @static
  5377. */
  5378. public static function trans($key, $replace = array(), $locale = null)
  5379. {
  5380. /** @var \Illuminate\Translation\Translator $instance */
  5381. return $instance->trans($key, $replace, $locale);
  5382. }
  5383. /**
  5384. * Get the translation for the given key.
  5385. *
  5386. * @param string $key
  5387. * @param array $replace
  5388. * @param string|null $locale
  5389. * @param bool $fallback
  5390. * @return string|array|null
  5391. * @static
  5392. */
  5393. public static function get($key, $replace = array(), $locale = null, $fallback = true)
  5394. {
  5395. /** @var \Illuminate\Translation\Translator $instance */
  5396. return $instance->get($key, $replace, $locale, $fallback);
  5397. }
  5398. /**
  5399. * Get the translation for a given key from the JSON translation files.
  5400. *
  5401. * @param string $key
  5402. * @param array $replace
  5403. * @param string $locale
  5404. * @return string|array|null
  5405. * @static
  5406. */
  5407. public static function getFromJson($key, $replace = array(), $locale = null)
  5408. {
  5409. /** @var \Illuminate\Translation\Translator $instance */
  5410. return $instance->getFromJson($key, $replace, $locale);
  5411. }
  5412. /**
  5413. * Get a translation according to an integer value.
  5414. *
  5415. * @param string $key
  5416. * @param int|array|\Countable $number
  5417. * @param array $replace
  5418. * @param string $locale
  5419. * @return string
  5420. * @static
  5421. */
  5422. public static function transChoice($key, $number, $replace = array(), $locale = null)
  5423. {
  5424. /** @var \Illuminate\Translation\Translator $instance */
  5425. return $instance->transChoice($key, $number, $replace, $locale);
  5426. }
  5427. /**
  5428. * Get a translation according to an integer value.
  5429. *
  5430. * @param string $key
  5431. * @param int|array|\Countable $number
  5432. * @param array $replace
  5433. * @param string $locale
  5434. * @return string
  5435. * @static
  5436. */
  5437. public static function choice($key, $number, $replace = array(), $locale = null)
  5438. {
  5439. /** @var \Illuminate\Translation\Translator $instance */
  5440. return $instance->choice($key, $number, $replace, $locale);
  5441. }
  5442. /**
  5443. * Add translation lines to the given locale.
  5444. *
  5445. * @param array $lines
  5446. * @param string $locale
  5447. * @param string $namespace
  5448. * @return void
  5449. * @static
  5450. */
  5451. public static function addLines($lines, $locale, $namespace = '*')
  5452. {
  5453. /** @var \Illuminate\Translation\Translator $instance */
  5454. $instance->addLines($lines, $locale, $namespace);
  5455. }
  5456. /**
  5457. * Load the specified language group.
  5458. *
  5459. * @param string $namespace
  5460. * @param string $group
  5461. * @param string $locale
  5462. * @return void
  5463. * @static
  5464. */
  5465. public static function load($namespace, $group, $locale)
  5466. {
  5467. /** @var \Illuminate\Translation\Translator $instance */
  5468. $instance->load($namespace, $group, $locale);
  5469. }
  5470. /**
  5471. * Add a new namespace to the loader.
  5472. *
  5473. * @param string $namespace
  5474. * @param string $hint
  5475. * @return void
  5476. * @static
  5477. */
  5478. public static function addNamespace($namespace, $hint)
  5479. {
  5480. /** @var \Illuminate\Translation\Translator $instance */
  5481. $instance->addNamespace($namespace, $hint);
  5482. }
  5483. /**
  5484. * Add a new JSON path to the loader.
  5485. *
  5486. * @param string $path
  5487. * @return void
  5488. * @static
  5489. */
  5490. public static function addJsonPath($path)
  5491. {
  5492. /** @var \Illuminate\Translation\Translator $instance */
  5493. $instance->addJsonPath($path);
  5494. }
  5495. /**
  5496. * Parse a key into namespace, group, and item.
  5497. *
  5498. * @param string $key
  5499. * @return array
  5500. * @static
  5501. */
  5502. public static function parseKey($key)
  5503. {
  5504. /** @var \Illuminate\Translation\Translator $instance */
  5505. return $instance->parseKey($key);
  5506. }
  5507. /**
  5508. * Get the message selector instance.
  5509. *
  5510. * @return \Illuminate\Translation\MessageSelector
  5511. * @static
  5512. */
  5513. public static function getSelector()
  5514. {
  5515. /** @var \Illuminate\Translation\Translator $instance */
  5516. return $instance->getSelector();
  5517. }
  5518. /**
  5519. * Set the message selector instance.
  5520. *
  5521. * @param \Illuminate\Translation\MessageSelector $selector
  5522. * @return void
  5523. * @static
  5524. */
  5525. public static function setSelector($selector)
  5526. {
  5527. /** @var \Illuminate\Translation\Translator $instance */
  5528. $instance->setSelector($selector);
  5529. }
  5530. /**
  5531. * Get the language line loader implementation.
  5532. *
  5533. * @return \Illuminate\Contracts\Translation\Loader
  5534. * @static
  5535. */
  5536. public static function getLoader()
  5537. {
  5538. /** @var \Illuminate\Translation\Translator $instance */
  5539. return $instance->getLoader();
  5540. }
  5541. /**
  5542. * Get the default locale being used.
  5543. *
  5544. * @return string
  5545. * @static
  5546. */
  5547. public static function locale()
  5548. {
  5549. /** @var \Illuminate\Translation\Translator $instance */
  5550. return $instance->locale();
  5551. }
  5552. /**
  5553. * Get the default locale being used.
  5554. *
  5555. * @return string
  5556. * @static
  5557. */
  5558. public static function getLocale()
  5559. {
  5560. /** @var \Illuminate\Translation\Translator $instance */
  5561. return $instance->getLocale();
  5562. }
  5563. /**
  5564. * Set the default locale.
  5565. *
  5566. * @param string $locale
  5567. * @return void
  5568. * @static
  5569. */
  5570. public static function setLocale($locale)
  5571. {
  5572. /** @var \Illuminate\Translation\Translator $instance */
  5573. $instance->setLocale($locale);
  5574. }
  5575. /**
  5576. * Get the fallback locale being used.
  5577. *
  5578. * @return string
  5579. * @static
  5580. */
  5581. public static function getFallback()
  5582. {
  5583. /** @var \Illuminate\Translation\Translator $instance */
  5584. return $instance->getFallback();
  5585. }
  5586. /**
  5587. * Set the fallback locale being used.
  5588. *
  5589. * @param string $fallback
  5590. * @return void
  5591. * @static
  5592. */
  5593. public static function setFallback($fallback)
  5594. {
  5595. /** @var \Illuminate\Translation\Translator $instance */
  5596. $instance->setFallback($fallback);
  5597. }
  5598. /**
  5599. * Set the parsed value of a key.
  5600. *
  5601. * @param string $key
  5602. * @param array $parsed
  5603. * @return void
  5604. * @static
  5605. */
  5606. public static function setParsedKey($key, $parsed)
  5607. {
  5608. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  5609. /** @var \Illuminate\Translation\Translator $instance */
  5610. $instance->setParsedKey($key, $parsed);
  5611. }
  5612. /**
  5613. * Register a custom macro.
  5614. *
  5615. * @param string $name
  5616. * @param object|callable $macro
  5617. * @return void
  5618. * @static
  5619. */
  5620. public static function macro($name, $macro)
  5621. {
  5622. \Illuminate\Translation\Translator::macro($name, $macro);
  5623. }
  5624. /**
  5625. * Mix another object into the class.
  5626. *
  5627. * @param object $mixin
  5628. * @return void
  5629. * @static
  5630. */
  5631. public static function mixin($mixin)
  5632. {
  5633. \Illuminate\Translation\Translator::mixin($mixin);
  5634. }
  5635. /**
  5636. * Checks if macro is registered.
  5637. *
  5638. * @param string $name
  5639. * @return bool
  5640. * @static
  5641. */
  5642. public static function hasMacro($name)
  5643. {
  5644. return \Illuminate\Translation\Translator::hasMacro($name);
  5645. }
  5646. }
  5647. /**
  5648. *
  5649. *
  5650. * @see \Illuminate\Log\Writer
  5651. */
  5652. class Log {
  5653. /**
  5654. * Adds a log record at the DEBUG level.
  5655. *
  5656. * @param string $message The log message
  5657. * @param array $context The log context
  5658. * @return bool Whether the record has been processed
  5659. * @static
  5660. */
  5661. public static function debug($message, $context = array())
  5662. {
  5663. /** @var \Monolog\Logger $instance */
  5664. return $instance->addDebug($message, $context);
  5665. }
  5666. /**
  5667. * Adds a log record at the INFO level.
  5668. *
  5669. * @param string $message The log message
  5670. * @param array $context The log context
  5671. * @return bool Whether the record has been processed
  5672. * @static
  5673. */
  5674. public static function info($message, $context = array())
  5675. {
  5676. /** @var \Monolog\Logger $instance */
  5677. return $instance->addInfo($message, $context);
  5678. }
  5679. /**
  5680. * Adds a log record at the NOTICE level.
  5681. *
  5682. * @param string $message The log message
  5683. * @param array $context The log context
  5684. * @return bool Whether the record has been processed
  5685. * @static
  5686. */
  5687. public static function notice($message, $context = array())
  5688. {
  5689. /** @var \Monolog\Logger $instance */
  5690. return $instance->addNotice($message, $context);
  5691. }
  5692. /**
  5693. * Adds a log record at the WARNING level.
  5694. *
  5695. * @param string $message The log message
  5696. * @param array $context The log context
  5697. * @return bool Whether the record has been processed
  5698. * @static
  5699. */
  5700. public static function warning($message, $context = array())
  5701. {
  5702. /** @var \Monolog\Logger $instance */
  5703. return $instance->addWarning($message, $context);
  5704. }
  5705. /**
  5706. * Adds a log record at the ERROR level.
  5707. *
  5708. * @param string $message The log message
  5709. * @param array $context The log context
  5710. * @return bool Whether the record has been processed
  5711. * @static
  5712. */
  5713. public static function error($message, $context = array())
  5714. {
  5715. /** @var \Monolog\Logger $instance */
  5716. return $instance->addError($message, $context);
  5717. }
  5718. /**
  5719. * Adds a log record at the CRITICAL level.
  5720. *
  5721. * @param string $message The log message
  5722. * @param array $context The log context
  5723. * @return bool Whether the record has been processed
  5724. * @static
  5725. */
  5726. public static function critical($message, $context = array())
  5727. {
  5728. /** @var \Monolog\Logger $instance */
  5729. return $instance->addCritical($message, $context);
  5730. }
  5731. /**
  5732. * Adds a log record at the ALERT level.
  5733. *
  5734. * @param string $message The log message
  5735. * @param array $context The log context
  5736. * @return bool Whether the record has been processed
  5737. * @static
  5738. */
  5739. public static function alert($message, $context = array())
  5740. {
  5741. /** @var \Monolog\Logger $instance */
  5742. return $instance->addAlert($message, $context);
  5743. }
  5744. /**
  5745. * Adds a log record at the EMERGENCY level.
  5746. *
  5747. * @param string $message The log message
  5748. * @param array $context The log context
  5749. * @return bool Whether the record has been processed
  5750. * @static
  5751. */
  5752. public static function emergency($message, $context = array())
  5753. {
  5754. /** @var \Monolog\Logger $instance */
  5755. return $instance->addEmergency($message, $context);
  5756. }
  5757. /**
  5758. * Log a message to the logs.
  5759. *
  5760. * @param string $level
  5761. * @param string $message
  5762. * @param array $context
  5763. * @return void
  5764. * @static
  5765. */
  5766. public static function log($level, $message, $context = array())
  5767. {
  5768. /** @var \Illuminate\Log\Writer $instance */
  5769. $instance->log($level, $message, $context);
  5770. }
  5771. /**
  5772. * Dynamically pass log calls into the writer.
  5773. *
  5774. * @param string $level
  5775. * @param string $message
  5776. * @param array $context
  5777. * @return void
  5778. * @static
  5779. */
  5780. public static function write($level, $message, $context = array())
  5781. {
  5782. /** @var \Illuminate\Log\Writer $instance */
  5783. $instance->write($level, $message, $context);
  5784. }
  5785. /**
  5786. * Register a file log handler.
  5787. *
  5788. * @param string $path
  5789. * @param string $level
  5790. * @return void
  5791. * @static
  5792. */
  5793. public static function useFiles($path, $level = 'debug')
  5794. {
  5795. /** @var \Illuminate\Log\Writer $instance */
  5796. $instance->useFiles($path, $level);
  5797. }
  5798. /**
  5799. * Register a daily file log handler.
  5800. *
  5801. * @param string $path
  5802. * @param int $days
  5803. * @param string $level
  5804. * @return void
  5805. * @static
  5806. */
  5807. public static function useDailyFiles($path, $days = 0, $level = 'debug')
  5808. {
  5809. /** @var \Illuminate\Log\Writer $instance */
  5810. $instance->useDailyFiles($path, $days, $level);
  5811. }
  5812. /**
  5813. * Register a Syslog handler.
  5814. *
  5815. * @param string $name
  5816. * @param string $level
  5817. * @param mixed $facility
  5818. * @return \Psr\Log\LoggerInterface
  5819. * @static
  5820. */
  5821. public static function useSyslog($name = 'laravel', $level = 'debug', $facility = 8)
  5822. {
  5823. /** @var \Illuminate\Log\Writer $instance */
  5824. return $instance->useSyslog($name, $level, $facility);
  5825. }
  5826. /**
  5827. * Register an error_log handler.
  5828. *
  5829. * @param string $level
  5830. * @param int $messageType
  5831. * @return void
  5832. * @static
  5833. */
  5834. public static function useErrorLog($level = 'debug', $messageType = 0)
  5835. {
  5836. /** @var \Illuminate\Log\Writer $instance */
  5837. $instance->useErrorLog($level, $messageType);
  5838. }
  5839. /**
  5840. * Register a new callback handler for when a log event is triggered.
  5841. *
  5842. * @param \Closure $callback
  5843. * @return void
  5844. * @throws \RuntimeException
  5845. * @static
  5846. */
  5847. public static function listen($callback)
  5848. {
  5849. /** @var \Illuminate\Log\Writer $instance */
  5850. $instance->listen($callback);
  5851. }
  5852. /**
  5853. * Get the underlying Monolog instance.
  5854. *
  5855. * @return \Monolog\Logger
  5856. * @static
  5857. */
  5858. public static function getMonolog()
  5859. {
  5860. /** @var \Illuminate\Log\Writer $instance */
  5861. return $instance->getMonolog();
  5862. }
  5863. /**
  5864. * Get the event dispatcher instance.
  5865. *
  5866. * @return \Illuminate\Contracts\Events\Dispatcher
  5867. * @static
  5868. */
  5869. public static function getEventDispatcher()
  5870. {
  5871. /** @var \Illuminate\Log\Writer $instance */
  5872. return $instance->getEventDispatcher();
  5873. }
  5874. /**
  5875. * Set the event dispatcher instance.
  5876. *
  5877. * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher
  5878. * @return void
  5879. * @static
  5880. */
  5881. public static function setEventDispatcher($dispatcher)
  5882. {
  5883. /** @var \Illuminate\Log\Writer $instance */
  5884. $instance->setEventDispatcher($dispatcher);
  5885. }
  5886. }
  5887. /**
  5888. *
  5889. *
  5890. * @see \Illuminate\Mail\Mailer
  5891. */
  5892. class Mail {
  5893. /**
  5894. * Set the global from address and name.
  5895. *
  5896. * @param string $address
  5897. * @param string|null $name
  5898. * @return void
  5899. * @static
  5900. */
  5901. public static function alwaysFrom($address, $name = null)
  5902. {
  5903. /** @var \Illuminate\Mail\Mailer $instance */
  5904. $instance->alwaysFrom($address, $name);
  5905. }
  5906. /**
  5907. * Set the global reply-to address and name.
  5908. *
  5909. * @param string $address
  5910. * @param string|null $name
  5911. * @return void
  5912. * @static
  5913. */
  5914. public static function alwaysReplyTo($address, $name = null)
  5915. {
  5916. /** @var \Illuminate\Mail\Mailer $instance */
  5917. $instance->alwaysReplyTo($address, $name);
  5918. }
  5919. /**
  5920. * Set the global to address and name.
  5921. *
  5922. * @param string $address
  5923. * @param string|null $name
  5924. * @return void
  5925. * @static
  5926. */
  5927. public static function alwaysTo($address, $name = null)
  5928. {
  5929. /** @var \Illuminate\Mail\Mailer $instance */
  5930. $instance->alwaysTo($address, $name);
  5931. }
  5932. /**
  5933. * Begin the process of mailing a mailable class instance.
  5934. *
  5935. * @param mixed $users
  5936. * @return \Illuminate\Mail\PendingMail
  5937. * @static
  5938. */
  5939. public static function to($users)
  5940. {
  5941. /** @var \Illuminate\Mail\Mailer $instance */
  5942. return $instance->to($users);
  5943. }
  5944. /**
  5945. * Begin the process of mailing a mailable class instance.
  5946. *
  5947. * @param mixed $users
  5948. * @return \Illuminate\Mail\PendingMail
  5949. * @static
  5950. */
  5951. public static function bcc($users)
  5952. {
  5953. /** @var \Illuminate\Mail\Mailer $instance */
  5954. return $instance->bcc($users);
  5955. }
  5956. /**
  5957. * Send a new message when only a raw text part.
  5958. *
  5959. * @param string $text
  5960. * @param mixed $callback
  5961. * @return void
  5962. * @static
  5963. */
  5964. public static function raw($text, $callback)
  5965. {
  5966. /** @var \Illuminate\Mail\Mailer $instance */
  5967. $instance->raw($text, $callback);
  5968. }
  5969. /**
  5970. * Send a new message when only a plain part.
  5971. *
  5972. * @param string $view
  5973. * @param array $data
  5974. * @param mixed $callback
  5975. * @return void
  5976. * @static
  5977. */
  5978. public static function plain($view, $data, $callback)
  5979. {
  5980. /** @var \Illuminate\Mail\Mailer $instance */
  5981. $instance->plain($view, $data, $callback);
  5982. }
  5983. /**
  5984. * Render the given message as a view.
  5985. *
  5986. * @param string|array $view
  5987. * @param array $data
  5988. * @return string
  5989. * @static
  5990. */
  5991. public static function render($view, $data = array())
  5992. {
  5993. /** @var \Illuminate\Mail\Mailer $instance */
  5994. return $instance->render($view, $data);
  5995. }
  5996. /**
  5997. * Send a new message using a view.
  5998. *
  5999. * @param string|array|\Illuminate\Mail\MailableContract $view
  6000. * @param array $data
  6001. * @param \Closure|string $callback
  6002. * @return void
  6003. * @static
  6004. */
  6005. public static function send($view, $data = array(), $callback = null)
  6006. {
  6007. /** @var \Illuminate\Mail\Mailer $instance */
  6008. $instance->send($view, $data, $callback);
  6009. }
  6010. /**
  6011. * Queue a new e-mail message for sending.
  6012. *
  6013. * @param string|array|\Illuminate\Mail\MailableContract $view
  6014. * @param string|null $queue
  6015. * @return mixed
  6016. * @static
  6017. */
  6018. public static function queue($view, $queue = null)
  6019. {
  6020. /** @var \Illuminate\Mail\Mailer $instance */
  6021. return $instance->queue($view, $queue);
  6022. }
  6023. /**
  6024. * Queue a new e-mail message for sending on the given queue.
  6025. *
  6026. * @param string $queue
  6027. * @param string|array $view
  6028. * @return mixed
  6029. * @static
  6030. */
  6031. public static function onQueue($queue, $view)
  6032. {
  6033. /** @var \Illuminate\Mail\Mailer $instance */
  6034. return $instance->onQueue($queue, $view);
  6035. }
  6036. /**
  6037. * Queue a new e-mail message for sending on the given queue.
  6038. *
  6039. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  6040. *
  6041. * @param string $queue
  6042. * @param string|array $view
  6043. * @return mixed
  6044. * @static
  6045. */
  6046. public static function queueOn($queue, $view)
  6047. {
  6048. /** @var \Illuminate\Mail\Mailer $instance */
  6049. return $instance->queueOn($queue, $view);
  6050. }
  6051. /**
  6052. * Queue a new e-mail message for sending after (n) seconds.
  6053. *
  6054. * @param \DateTimeInterface|\DateInterval|int $delay
  6055. * @param string|array|\Illuminate\Mail\MailableContract $view
  6056. * @param string|null $queue
  6057. * @return mixed
  6058. * @static
  6059. */
  6060. public static function later($delay, $view, $queue = null)
  6061. {
  6062. /** @var \Illuminate\Mail\Mailer $instance */
  6063. return $instance->later($delay, $view, $queue);
  6064. }
  6065. /**
  6066. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  6067. *
  6068. * @param string $queue
  6069. * @param \DateTimeInterface|\DateInterval|int $delay
  6070. * @param string|array $view
  6071. * @return mixed
  6072. * @static
  6073. */
  6074. public static function laterOn($queue, $delay, $view)
  6075. {
  6076. /** @var \Illuminate\Mail\Mailer $instance */
  6077. return $instance->laterOn($queue, $delay, $view);
  6078. }
  6079. /**
  6080. * Get the view factory instance.
  6081. *
  6082. * @return \Illuminate\Contracts\View\Factory
  6083. * @static
  6084. */
  6085. public static function getViewFactory()
  6086. {
  6087. /** @var \Illuminate\Mail\Mailer $instance */
  6088. return $instance->getViewFactory();
  6089. }
  6090. /**
  6091. * Get the Swift Mailer instance.
  6092. *
  6093. * @return \Swift_Mailer
  6094. * @static
  6095. */
  6096. public static function getSwiftMailer()
  6097. {
  6098. /** @var \Illuminate\Mail\Mailer $instance */
  6099. return $instance->getSwiftMailer();
  6100. }
  6101. /**
  6102. * Get the array of failed recipients.
  6103. *
  6104. * @return array
  6105. * @static
  6106. */
  6107. public static function failures()
  6108. {
  6109. /** @var \Illuminate\Mail\Mailer $instance */
  6110. return $instance->failures();
  6111. }
  6112. /**
  6113. * Set the Swift Mailer instance.
  6114. *
  6115. * @param \Swift_Mailer $swift
  6116. * @return void
  6117. * @static
  6118. */
  6119. public static function setSwiftMailer($swift)
  6120. {
  6121. /** @var \Illuminate\Mail\Mailer $instance */
  6122. $instance->setSwiftMailer($swift);
  6123. }
  6124. /**
  6125. * Set the queue manager instance.
  6126. *
  6127. * @param \Illuminate\Contracts\Queue\Factory $queue
  6128. * @return \Illuminate\Mail\Mailer
  6129. * @static
  6130. */
  6131. public static function setQueue($queue)
  6132. {
  6133. /** @var \Illuminate\Mail\Mailer $instance */
  6134. return $instance->setQueue($queue);
  6135. }
  6136. /**
  6137. * Register a custom macro.
  6138. *
  6139. * @param string $name
  6140. * @param object|callable $macro
  6141. * @return void
  6142. * @static
  6143. */
  6144. public static function macro($name, $macro)
  6145. {
  6146. \Illuminate\Mail\Mailer::macro($name, $macro);
  6147. }
  6148. /**
  6149. * Mix another object into the class.
  6150. *
  6151. * @param object $mixin
  6152. * @return void
  6153. * @static
  6154. */
  6155. public static function mixin($mixin)
  6156. {
  6157. \Illuminate\Mail\Mailer::mixin($mixin);
  6158. }
  6159. /**
  6160. * Checks if macro is registered.
  6161. *
  6162. * @param string $name
  6163. * @return bool
  6164. * @static
  6165. */
  6166. public static function hasMacro($name)
  6167. {
  6168. return \Illuminate\Mail\Mailer::hasMacro($name);
  6169. }
  6170. /**
  6171. * Assert if a mailable was sent based on a truth-test callback.
  6172. *
  6173. * @param string $mailable
  6174. * @param callable|int|null $callback
  6175. * @return void
  6176. * @static
  6177. */
  6178. public static function assertSent($mailable, $callback = null)
  6179. {
  6180. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6181. $instance->assertSent($mailable, $callback);
  6182. }
  6183. /**
  6184. * Determine if a mailable was not sent based on a truth-test callback.
  6185. *
  6186. * @param string $mailable
  6187. * @param callable|null $callback
  6188. * @return void
  6189. * @static
  6190. */
  6191. public static function assertNotSent($mailable, $callback = null)
  6192. {
  6193. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6194. $instance->assertNotSent($mailable, $callback);
  6195. }
  6196. /**
  6197. * Assert that no mailables were sent.
  6198. *
  6199. * @return void
  6200. * @static
  6201. */
  6202. public static function assertNothingSent()
  6203. {
  6204. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6205. $instance->assertNothingSent();
  6206. }
  6207. /**
  6208. * Assert if a mailable was queued based on a truth-test callback.
  6209. *
  6210. * @param string $mailable
  6211. * @param callable|int|null $callback
  6212. * @return void
  6213. * @static
  6214. */
  6215. public static function assertQueued($mailable, $callback = null)
  6216. {
  6217. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6218. $instance->assertQueued($mailable, $callback);
  6219. }
  6220. /**
  6221. * Determine if a mailable was not queued based on a truth-test callback.
  6222. *
  6223. * @param string $mailable
  6224. * @param callable|null $callback
  6225. * @return void
  6226. * @static
  6227. */
  6228. public static function assertNotQueued($mailable, $callback = null)
  6229. {
  6230. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6231. $instance->assertNotQueued($mailable, $callback);
  6232. }
  6233. /**
  6234. * Assert that no mailables were queued.
  6235. *
  6236. * @return void
  6237. * @static
  6238. */
  6239. public static function assertNothingQueued()
  6240. {
  6241. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6242. $instance->assertNothingQueued();
  6243. }
  6244. /**
  6245. * Get all of the mailables matching a truth-test callback.
  6246. *
  6247. * @param string $mailable
  6248. * @param callable|null $callback
  6249. * @return \Illuminate\Support\Collection
  6250. * @static
  6251. */
  6252. public static function sent($mailable, $callback = null)
  6253. {
  6254. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6255. return $instance->sent($mailable, $callback);
  6256. }
  6257. /**
  6258. * Determine if the given mailable has been sent.
  6259. *
  6260. * @param string $mailable
  6261. * @return bool
  6262. * @static
  6263. */
  6264. public static function hasSent($mailable)
  6265. {
  6266. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6267. return $instance->hasSent($mailable);
  6268. }
  6269. /**
  6270. * Get all of the queued mailables matching a truth-test callback.
  6271. *
  6272. * @param string $mailable
  6273. * @param callable|null $callback
  6274. * @return \Illuminate\Support\Collection
  6275. * @static
  6276. */
  6277. public static function queued($mailable, $callback = null)
  6278. {
  6279. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6280. return $instance->queued($mailable, $callback);
  6281. }
  6282. /**
  6283. * Determine if the given mailable has been queued.
  6284. *
  6285. * @param string $mailable
  6286. * @return bool
  6287. * @static
  6288. */
  6289. public static function hasQueued($mailable)
  6290. {
  6291. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6292. return $instance->hasQueued($mailable);
  6293. }
  6294. }
  6295. /**
  6296. *
  6297. *
  6298. * @see \Illuminate\Notifications\ChannelManager
  6299. */
  6300. class Notification {
  6301. /**
  6302. * Send the given notification to the given notifiable entities.
  6303. *
  6304. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6305. * @param mixed $notification
  6306. * @return void
  6307. * @static
  6308. */
  6309. public static function send($notifiables, $notification)
  6310. {
  6311. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6312. $instance->send($notifiables, $notification);
  6313. }
  6314. /**
  6315. * Send the given notification immediately.
  6316. *
  6317. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6318. * @param mixed $notification
  6319. * @param array|null $channels
  6320. * @return void
  6321. * @static
  6322. */
  6323. public static function sendNow($notifiables, $notification, $channels = null)
  6324. {
  6325. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6326. $instance->sendNow($notifiables, $notification, $channels);
  6327. }
  6328. /**
  6329. * Get a channel instance.
  6330. *
  6331. * @param string|null $name
  6332. * @return mixed
  6333. * @static
  6334. */
  6335. public static function channel($name = null)
  6336. {
  6337. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6338. return $instance->channel($name);
  6339. }
  6340. /**
  6341. * Get the default channel driver name.
  6342. *
  6343. * @return string
  6344. * @static
  6345. */
  6346. public static function getDefaultDriver()
  6347. {
  6348. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6349. return $instance->getDefaultDriver();
  6350. }
  6351. /**
  6352. * Get the default channel driver name.
  6353. *
  6354. * @return string
  6355. * @static
  6356. */
  6357. public static function deliversVia()
  6358. {
  6359. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6360. return $instance->deliversVia();
  6361. }
  6362. /**
  6363. * Set the default channel driver name.
  6364. *
  6365. * @param string $channel
  6366. * @return void
  6367. * @static
  6368. */
  6369. public static function deliverVia($channel)
  6370. {
  6371. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6372. $instance->deliverVia($channel);
  6373. }
  6374. /**
  6375. * Get a driver instance.
  6376. *
  6377. * @param string $driver
  6378. * @return mixed
  6379. * @static
  6380. */
  6381. public static function driver($driver = null)
  6382. {
  6383. //Method inherited from \Illuminate\Support\Manager
  6384. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6385. return $instance->driver($driver);
  6386. }
  6387. /**
  6388. * Register a custom driver creator Closure.
  6389. *
  6390. * @param string $driver
  6391. * @param \Closure $callback
  6392. * @return \Illuminate\Notifications\ChannelManager
  6393. * @static
  6394. */
  6395. public static function extend($driver, $callback)
  6396. {
  6397. //Method inherited from \Illuminate\Support\Manager
  6398. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6399. return $instance->extend($driver, $callback);
  6400. }
  6401. /**
  6402. * Get all of the created "drivers".
  6403. *
  6404. * @return array
  6405. * @static
  6406. */
  6407. public static function getDrivers()
  6408. {
  6409. //Method inherited from \Illuminate\Support\Manager
  6410. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6411. return $instance->getDrivers();
  6412. }
  6413. /**
  6414. * Assert if a notification was sent based on a truth-test callback.
  6415. *
  6416. * @param mixed $notifiable
  6417. * @param string $notification
  6418. * @param callable|null $callback
  6419. * @return void
  6420. * @static
  6421. */
  6422. public static function assertSentTo($notifiable, $notification, $callback = null)
  6423. {
  6424. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6425. $instance->assertSentTo($notifiable, $notification, $callback);
  6426. }
  6427. /**
  6428. * Assert if a notification was sent a number of times.
  6429. *
  6430. * @param mixed $notifiable
  6431. * @param string $notification
  6432. * @param int $times
  6433. * @return void
  6434. * @static
  6435. */
  6436. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  6437. {
  6438. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6439. $instance->assertSentToTimes($notifiable, $notification, $times);
  6440. }
  6441. /**
  6442. * Determine if a notification was sent based on a truth-test callback.
  6443. *
  6444. * @param mixed $notifiable
  6445. * @param string $notification
  6446. * @param callable|null $callback
  6447. * @return void
  6448. * @static
  6449. */
  6450. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  6451. {
  6452. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6453. $instance->assertNotSentTo($notifiable, $notification, $callback);
  6454. }
  6455. /**
  6456. * Assert that no notifications were sent.
  6457. *
  6458. * @return void
  6459. * @static
  6460. */
  6461. public static function assertNothingSent()
  6462. {
  6463. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6464. $instance->assertNothingSent();
  6465. }
  6466. /**
  6467. * Get all of the notifications matching a truth-test callback.
  6468. *
  6469. * @param mixed $notifiable
  6470. * @param string $notification
  6471. * @param callable|null $callback
  6472. * @return \Illuminate\Support\Collection
  6473. * @static
  6474. */
  6475. public static function sent($notifiable, $notification, $callback = null)
  6476. {
  6477. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6478. return $instance->sent($notifiable, $notification, $callback);
  6479. }
  6480. /**
  6481. * Determine if there are more notifications left to inspect.
  6482. *
  6483. * @param mixed $notifiable
  6484. * @param string $notification
  6485. * @return bool
  6486. * @static
  6487. */
  6488. public static function hasSent($notifiable, $notification)
  6489. {
  6490. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6491. return $instance->hasSent($notifiable, $notification);
  6492. }
  6493. }
  6494. /**
  6495. *
  6496. *
  6497. * @see \Illuminate\Auth\Passwords\PasswordBroker
  6498. */
  6499. class Password {
  6500. /**
  6501. * Attempt to get the broker from the local cache.
  6502. *
  6503. * @param string $name
  6504. * @return \Illuminate\Contracts\Auth\PasswordBroker
  6505. * @static
  6506. */
  6507. public static function broker($name = null)
  6508. {
  6509. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6510. return $instance->broker($name);
  6511. }
  6512. /**
  6513. * Get the default password broker name.
  6514. *
  6515. * @return string
  6516. * @static
  6517. */
  6518. public static function getDefaultDriver()
  6519. {
  6520. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6521. return $instance->getDefaultDriver();
  6522. }
  6523. /**
  6524. * Set the default password broker name.
  6525. *
  6526. * @param string $name
  6527. * @return void
  6528. * @static
  6529. */
  6530. public static function setDefaultDriver($name)
  6531. {
  6532. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6533. $instance->setDefaultDriver($name);
  6534. }
  6535. }
  6536. /**
  6537. *
  6538. *
  6539. * @see \Illuminate\Queue\QueueManager
  6540. * @see \Illuminate\Queue\Queue
  6541. */
  6542. class Queue {
  6543. /**
  6544. * Register an event listener for the before job event.
  6545. *
  6546. * @param mixed $callback
  6547. * @return void
  6548. * @static
  6549. */
  6550. public static function before($callback)
  6551. {
  6552. /** @var \Illuminate\Queue\QueueManager $instance */
  6553. $instance->before($callback);
  6554. }
  6555. /**
  6556. * Register an event listener for the after job event.
  6557. *
  6558. * @param mixed $callback
  6559. * @return void
  6560. * @static
  6561. */
  6562. public static function after($callback)
  6563. {
  6564. /** @var \Illuminate\Queue\QueueManager $instance */
  6565. $instance->after($callback);
  6566. }
  6567. /**
  6568. * Register an event listener for the exception occurred job event.
  6569. *
  6570. * @param mixed $callback
  6571. * @return void
  6572. * @static
  6573. */
  6574. public static function exceptionOccurred($callback)
  6575. {
  6576. /** @var \Illuminate\Queue\QueueManager $instance */
  6577. $instance->exceptionOccurred($callback);
  6578. }
  6579. /**
  6580. * Register an event listener for the daemon queue loop.
  6581. *
  6582. * @param mixed $callback
  6583. * @return void
  6584. * @static
  6585. */
  6586. public static function looping($callback)
  6587. {
  6588. /** @var \Illuminate\Queue\QueueManager $instance */
  6589. $instance->looping($callback);
  6590. }
  6591. /**
  6592. * Register an event listener for the failed job event.
  6593. *
  6594. * @param mixed $callback
  6595. * @return void
  6596. * @static
  6597. */
  6598. public static function failing($callback)
  6599. {
  6600. /** @var \Illuminate\Queue\QueueManager $instance */
  6601. $instance->failing($callback);
  6602. }
  6603. /**
  6604. * Register an event listener for the daemon queue stopping.
  6605. *
  6606. * @param mixed $callback
  6607. * @return void
  6608. * @static
  6609. */
  6610. public static function stopping($callback)
  6611. {
  6612. /** @var \Illuminate\Queue\QueueManager $instance */
  6613. $instance->stopping($callback);
  6614. }
  6615. /**
  6616. * Determine if the driver is connected.
  6617. *
  6618. * @param string $name
  6619. * @return bool
  6620. * @static
  6621. */
  6622. public static function connected($name = null)
  6623. {
  6624. /** @var \Illuminate\Queue\QueueManager $instance */
  6625. return $instance->connected($name);
  6626. }
  6627. /**
  6628. * Resolve a queue connection instance.
  6629. *
  6630. * @param string $name
  6631. * @return \Illuminate\Contracts\Queue\Queue
  6632. * @static
  6633. */
  6634. public static function connection($name = null)
  6635. {
  6636. /** @var \Illuminate\Queue\QueueManager $instance */
  6637. return $instance->connection($name);
  6638. }
  6639. /**
  6640. * Add a queue connection resolver.
  6641. *
  6642. * @param string $driver
  6643. * @param \Closure $resolver
  6644. * @return void
  6645. * @static
  6646. */
  6647. public static function extend($driver, $resolver)
  6648. {
  6649. /** @var \Illuminate\Queue\QueueManager $instance */
  6650. $instance->extend($driver, $resolver);
  6651. }
  6652. /**
  6653. * Add a queue connection resolver.
  6654. *
  6655. * @param string $driver
  6656. * @param \Closure $resolver
  6657. * @return void
  6658. * @static
  6659. */
  6660. public static function addConnector($driver, $resolver)
  6661. {
  6662. /** @var \Illuminate\Queue\QueueManager $instance */
  6663. $instance->addConnector($driver, $resolver);
  6664. }
  6665. /**
  6666. * Get the name of the default queue connection.
  6667. *
  6668. * @return string
  6669. * @static
  6670. */
  6671. public static function getDefaultDriver()
  6672. {
  6673. /** @var \Illuminate\Queue\QueueManager $instance */
  6674. return $instance->getDefaultDriver();
  6675. }
  6676. /**
  6677. * Set the name of the default queue connection.
  6678. *
  6679. * @param string $name
  6680. * @return void
  6681. * @static
  6682. */
  6683. public static function setDefaultDriver($name)
  6684. {
  6685. /** @var \Illuminate\Queue\QueueManager $instance */
  6686. $instance->setDefaultDriver($name);
  6687. }
  6688. /**
  6689. * Get the full name for the given connection.
  6690. *
  6691. * @param string $connection
  6692. * @return string
  6693. * @static
  6694. */
  6695. public static function getName($connection = null)
  6696. {
  6697. /** @var \Illuminate\Queue\QueueManager $instance */
  6698. return $instance->getName($connection);
  6699. }
  6700. /**
  6701. * Determine if the application is in maintenance mode.
  6702. *
  6703. * @return bool
  6704. * @static
  6705. */
  6706. public static function isDownForMaintenance()
  6707. {
  6708. /** @var \Illuminate\Queue\QueueManager $instance */
  6709. return $instance->isDownForMaintenance();
  6710. }
  6711. /**
  6712. * Assert if a job was pushed based on a truth-test callback.
  6713. *
  6714. * @param string $job
  6715. * @param callable|int|null $callback
  6716. * @return void
  6717. * @static
  6718. */
  6719. public static function assertPushed($job, $callback = null)
  6720. {
  6721. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6722. $instance->assertPushed($job, $callback);
  6723. }
  6724. /**
  6725. * Assert if a job was pushed based on a truth-test callback.
  6726. *
  6727. * @param string $queue
  6728. * @param string $job
  6729. * @param callable|null $callback
  6730. * @return void
  6731. * @static
  6732. */
  6733. public static function assertPushedOn($queue, $job, $callback = null)
  6734. {
  6735. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6736. $instance->assertPushedOn($queue, $job, $callback);
  6737. }
  6738. /**
  6739. * Determine if a job was pushed based on a truth-test callback.
  6740. *
  6741. * @param string $job
  6742. * @param callable|null $callback
  6743. * @return void
  6744. * @static
  6745. */
  6746. public static function assertNotPushed($job, $callback = null)
  6747. {
  6748. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6749. $instance->assertNotPushed($job, $callback);
  6750. }
  6751. /**
  6752. * Assert that no jobs were pushed.
  6753. *
  6754. * @return void
  6755. * @static
  6756. */
  6757. public static function assertNothingPushed()
  6758. {
  6759. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6760. $instance->assertNothingPushed();
  6761. }
  6762. /**
  6763. * Get all of the jobs matching a truth-test callback.
  6764. *
  6765. * @param string $job
  6766. * @param callable|null $callback
  6767. * @return \Illuminate\Support\Collection
  6768. * @static
  6769. */
  6770. public static function pushed($job, $callback = null)
  6771. {
  6772. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6773. return $instance->pushed($job, $callback);
  6774. }
  6775. /**
  6776. * Determine if there are any stored jobs for a given class.
  6777. *
  6778. * @param string $job
  6779. * @return bool
  6780. * @static
  6781. */
  6782. public static function hasPushed($job)
  6783. {
  6784. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6785. return $instance->hasPushed($job);
  6786. }
  6787. /**
  6788. * Get the size of the queue.
  6789. *
  6790. * @param string $queue
  6791. * @return int
  6792. * @static
  6793. */
  6794. public static function size($queue = null)
  6795. {
  6796. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6797. return $instance->size($queue);
  6798. }
  6799. /**
  6800. * Push a new job onto the queue.
  6801. *
  6802. * @param string $job
  6803. * @param mixed $data
  6804. * @param string $queue
  6805. * @return mixed
  6806. * @static
  6807. */
  6808. public static function push($job, $data = '', $queue = null)
  6809. {
  6810. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6811. return $instance->push($job, $data, $queue);
  6812. }
  6813. /**
  6814. * Push a raw payload onto the queue.
  6815. *
  6816. * @param string $payload
  6817. * @param string $queue
  6818. * @param array $options
  6819. * @return mixed
  6820. * @static
  6821. */
  6822. public static function pushRaw($payload, $queue = null, $options = array())
  6823. {
  6824. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6825. return $instance->pushRaw($payload, $queue, $options);
  6826. }
  6827. /**
  6828. * Push a new job onto the queue after a delay.
  6829. *
  6830. * @param \DateTime|int $delay
  6831. * @param string $job
  6832. * @param mixed $data
  6833. * @param string $queue
  6834. * @return mixed
  6835. * @static
  6836. */
  6837. public static function later($delay, $job, $data = '', $queue = null)
  6838. {
  6839. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6840. return $instance->later($delay, $job, $data, $queue);
  6841. }
  6842. /**
  6843. * Push a new job onto the queue.
  6844. *
  6845. * @param string $queue
  6846. * @param string $job
  6847. * @param mixed $data
  6848. * @return mixed
  6849. * @static
  6850. */
  6851. public static function pushOn($queue, $job, $data = '')
  6852. {
  6853. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6854. return $instance->pushOn($queue, $job, $data);
  6855. }
  6856. /**
  6857. * Push a new job onto the queue after a delay.
  6858. *
  6859. * @param string $queue
  6860. * @param \DateTime|int $delay
  6861. * @param string $job
  6862. * @param mixed $data
  6863. * @return mixed
  6864. * @static
  6865. */
  6866. public static function laterOn($queue, $delay, $job, $data = '')
  6867. {
  6868. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6869. return $instance->laterOn($queue, $delay, $job, $data);
  6870. }
  6871. /**
  6872. * Pop the next job off of the queue.
  6873. *
  6874. * @param string $queue
  6875. * @return \Illuminate\Contracts\Queue\Job|null
  6876. * @static
  6877. */
  6878. public static function pop($queue = null)
  6879. {
  6880. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6881. return $instance->pop($queue);
  6882. }
  6883. /**
  6884. * Push an array of jobs onto the queue.
  6885. *
  6886. * @param array $jobs
  6887. * @param mixed $data
  6888. * @param string $queue
  6889. * @return mixed
  6890. * @static
  6891. */
  6892. public static function bulk($jobs, $data = '', $queue = null)
  6893. {
  6894. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6895. return $instance->bulk($jobs, $data, $queue);
  6896. }
  6897. /**
  6898. * Get the connection name for the queue.
  6899. *
  6900. * @return string
  6901. * @static
  6902. */
  6903. public static function getConnectionName()
  6904. {
  6905. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6906. return $instance->getConnectionName();
  6907. }
  6908. /**
  6909. * Set the connection name for the queue.
  6910. *
  6911. * @param string $name
  6912. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  6913. * @static
  6914. */
  6915. public static function setConnectionName($name)
  6916. {
  6917. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6918. return $instance->setConnectionName($name);
  6919. }
  6920. /**
  6921. * Get the expiration timestamp for an object-based queue handler.
  6922. *
  6923. * @param mixed $job
  6924. * @return mixed
  6925. * @static
  6926. */
  6927. public static function getJobExpiration($job)
  6928. {
  6929. //Method inherited from \Illuminate\Queue\Queue
  6930. /** @var \Illuminate\Queue\SyncQueue $instance */
  6931. return $instance->getJobExpiration($job);
  6932. }
  6933. /**
  6934. * Set the IoC container instance.
  6935. *
  6936. * @param \Illuminate\Container\Container $container
  6937. * @return void
  6938. * @static
  6939. */
  6940. public static function setContainer($container)
  6941. {
  6942. //Method inherited from \Illuminate\Queue\Queue
  6943. /** @var \Illuminate\Queue\SyncQueue $instance */
  6944. $instance->setContainer($container);
  6945. }
  6946. }
  6947. /**
  6948. *
  6949. *
  6950. * @see \Illuminate\Routing\Redirector
  6951. */
  6952. class Redirect {
  6953. /**
  6954. * Create a new redirect response to the "home" route.
  6955. *
  6956. * @param int $status
  6957. * @return \Illuminate\Http\RedirectResponse
  6958. * @static
  6959. */
  6960. public static function home($status = 302)
  6961. {
  6962. /** @var \Illuminate\Routing\Redirector $instance */
  6963. return $instance->home($status);
  6964. }
  6965. /**
  6966. * Create a new redirect response to the previous location.
  6967. *
  6968. * @param int $status
  6969. * @param array $headers
  6970. * @param mixed $fallback
  6971. * @return \Illuminate\Http\RedirectResponse
  6972. * @static
  6973. */
  6974. public static function back($status = 302, $headers = array(), $fallback = false)
  6975. {
  6976. /** @var \Illuminate\Routing\Redirector $instance */
  6977. return $instance->back($status, $headers, $fallback);
  6978. }
  6979. /**
  6980. * Create a new redirect response to the current URI.
  6981. *
  6982. * @param int $status
  6983. * @param array $headers
  6984. * @return \Illuminate\Http\RedirectResponse
  6985. * @static
  6986. */
  6987. public static function refresh($status = 302, $headers = array())
  6988. {
  6989. /** @var \Illuminate\Routing\Redirector $instance */
  6990. return $instance->refresh($status, $headers);
  6991. }
  6992. /**
  6993. * Create a new redirect response, while putting the current URL in the session.
  6994. *
  6995. * @param string $path
  6996. * @param int $status
  6997. * @param array $headers
  6998. * @param bool $secure
  6999. * @return \Illuminate\Http\RedirectResponse
  7000. * @static
  7001. */
  7002. public static function guest($path, $status = 302, $headers = array(), $secure = null)
  7003. {
  7004. /** @var \Illuminate\Routing\Redirector $instance */
  7005. return $instance->guest($path, $status, $headers, $secure);
  7006. }
  7007. /**
  7008. * Create a new redirect response to the previously intended location.
  7009. *
  7010. * @param string $default
  7011. * @param int $status
  7012. * @param array $headers
  7013. * @param bool $secure
  7014. * @return \Illuminate\Http\RedirectResponse
  7015. * @static
  7016. */
  7017. public static function intended($default = '/', $status = 302, $headers = array(), $secure = null)
  7018. {
  7019. /** @var \Illuminate\Routing\Redirector $instance */
  7020. return $instance->intended($default, $status, $headers, $secure);
  7021. }
  7022. /**
  7023. * Create a new redirect response to the given path.
  7024. *
  7025. * @param string $path
  7026. * @param int $status
  7027. * @param array $headers
  7028. * @param bool $secure
  7029. * @return \Illuminate\Http\RedirectResponse
  7030. * @static
  7031. */
  7032. public static function to($path, $status = 302, $headers = array(), $secure = null)
  7033. {
  7034. /** @var \Illuminate\Routing\Redirector $instance */
  7035. return $instance->to($path, $status, $headers, $secure);
  7036. }
  7037. /**
  7038. * Create a new redirect response to an external URL (no validation).
  7039. *
  7040. * @param string $path
  7041. * @param int $status
  7042. * @param array $headers
  7043. * @return \Illuminate\Http\RedirectResponse
  7044. * @static
  7045. */
  7046. public static function away($path, $status = 302, $headers = array())
  7047. {
  7048. /** @var \Illuminate\Routing\Redirector $instance */
  7049. return $instance->away($path, $status, $headers);
  7050. }
  7051. /**
  7052. * Create a new redirect response to the given HTTPS path.
  7053. *
  7054. * @param string $path
  7055. * @param int $status
  7056. * @param array $headers
  7057. * @return \Illuminate\Http\RedirectResponse
  7058. * @static
  7059. */
  7060. public static function secure($path, $status = 302, $headers = array())
  7061. {
  7062. /** @var \Illuminate\Routing\Redirector $instance */
  7063. return $instance->secure($path, $status, $headers);
  7064. }
  7065. /**
  7066. * Create a new redirect response to a named route.
  7067. *
  7068. * @param string $route
  7069. * @param array $parameters
  7070. * @param int $status
  7071. * @param array $headers
  7072. * @return \Illuminate\Http\RedirectResponse
  7073. * @static
  7074. */
  7075. public static function route($route, $parameters = array(), $status = 302, $headers = array())
  7076. {
  7077. /** @var \Illuminate\Routing\Redirector $instance */
  7078. return $instance->route($route, $parameters, $status, $headers);
  7079. }
  7080. /**
  7081. * Create a new redirect response to a controller action.
  7082. *
  7083. * @param string $action
  7084. * @param array $parameters
  7085. * @param int $status
  7086. * @param array $headers
  7087. * @return \Illuminate\Http\RedirectResponse
  7088. * @static
  7089. */
  7090. public static function action($action, $parameters = array(), $status = 302, $headers = array())
  7091. {
  7092. /** @var \Illuminate\Routing\Redirector $instance */
  7093. return $instance->action($action, $parameters, $status, $headers);
  7094. }
  7095. /**
  7096. * Get the URL generator instance.
  7097. *
  7098. * @return \Illuminate\Routing\UrlGenerator
  7099. * @static
  7100. */
  7101. public static function getUrlGenerator()
  7102. {
  7103. /** @var \Illuminate\Routing\Redirector $instance */
  7104. return $instance->getUrlGenerator();
  7105. }
  7106. /**
  7107. * Set the active session store.
  7108. *
  7109. * @param \Illuminate\Session\Store $session
  7110. * @return void
  7111. * @static
  7112. */
  7113. public static function setSession($session)
  7114. {
  7115. /** @var \Illuminate\Routing\Redirector $instance */
  7116. $instance->setSession($session);
  7117. }
  7118. /**
  7119. * Register a custom macro.
  7120. *
  7121. * @param string $name
  7122. * @param object|callable $macro
  7123. * @return void
  7124. * @static
  7125. */
  7126. public static function macro($name, $macro)
  7127. {
  7128. \Illuminate\Routing\Redirector::macro($name, $macro);
  7129. }
  7130. /**
  7131. * Mix another object into the class.
  7132. *
  7133. * @param object $mixin
  7134. * @return void
  7135. * @static
  7136. */
  7137. public static function mixin($mixin)
  7138. {
  7139. \Illuminate\Routing\Redirector::mixin($mixin);
  7140. }
  7141. /**
  7142. * Checks if macro is registered.
  7143. *
  7144. * @param string $name
  7145. * @return bool
  7146. * @static
  7147. */
  7148. public static function hasMacro($name)
  7149. {
  7150. return \Illuminate\Routing\Redirector::hasMacro($name);
  7151. }
  7152. }
  7153. /**
  7154. *
  7155. *
  7156. * @see \Illuminate\Http\Request
  7157. */
  7158. class Request {
  7159. /**
  7160. * Create a new Illuminate HTTP request from server variables.
  7161. *
  7162. * @return static
  7163. * @static
  7164. */
  7165. public static function capture()
  7166. {
  7167. return \Illuminate\Http\Request::capture();
  7168. }
  7169. /**
  7170. * Return the Request instance.
  7171. *
  7172. * @return \Illuminate\Http\Request
  7173. * @static
  7174. */
  7175. public static function instance()
  7176. {
  7177. /** @var \Illuminate\Http\Request $instance */
  7178. return $instance->instance();
  7179. }
  7180. /**
  7181. * Get the request method.
  7182. *
  7183. * @return string
  7184. * @static
  7185. */
  7186. public static function method()
  7187. {
  7188. /** @var \Illuminate\Http\Request $instance */
  7189. return $instance->method();
  7190. }
  7191. /**
  7192. * Get the root URL for the application.
  7193. *
  7194. * @return string
  7195. * @static
  7196. */
  7197. public static function root()
  7198. {
  7199. /** @var \Illuminate\Http\Request $instance */
  7200. return $instance->root();
  7201. }
  7202. /**
  7203. * Get the URL (no query string) for the request.
  7204. *
  7205. * @return string
  7206. * @static
  7207. */
  7208. public static function url()
  7209. {
  7210. /** @var \Illuminate\Http\Request $instance */
  7211. return $instance->url();
  7212. }
  7213. /**
  7214. * Get the full URL for the request.
  7215. *
  7216. * @return string
  7217. * @static
  7218. */
  7219. public static function fullUrl()
  7220. {
  7221. /** @var \Illuminate\Http\Request $instance */
  7222. return $instance->fullUrl();
  7223. }
  7224. /**
  7225. * Get the full URL for the request with the added query string parameters.
  7226. *
  7227. * @param array $query
  7228. * @return string
  7229. * @static
  7230. */
  7231. public static function fullUrlWithQuery($query)
  7232. {
  7233. /** @var \Illuminate\Http\Request $instance */
  7234. return $instance->fullUrlWithQuery($query);
  7235. }
  7236. /**
  7237. * Get the current path info for the request.
  7238. *
  7239. * @return string
  7240. * @static
  7241. */
  7242. public static function path()
  7243. {
  7244. /** @var \Illuminate\Http\Request $instance */
  7245. return $instance->path();
  7246. }
  7247. /**
  7248. * Get the current decoded path info for the request.
  7249. *
  7250. * @return string
  7251. * @static
  7252. */
  7253. public static function decodedPath()
  7254. {
  7255. /** @var \Illuminate\Http\Request $instance */
  7256. return $instance->decodedPath();
  7257. }
  7258. /**
  7259. * Get a segment from the URI (1 based index).
  7260. *
  7261. * @param int $index
  7262. * @param string|null $default
  7263. * @return string|null
  7264. * @static
  7265. */
  7266. public static function segment($index, $default = null)
  7267. {
  7268. /** @var \Illuminate\Http\Request $instance */
  7269. return $instance->segment($index, $default);
  7270. }
  7271. /**
  7272. * Get all of the segments for the request path.
  7273. *
  7274. * @return array
  7275. * @static
  7276. */
  7277. public static function segments()
  7278. {
  7279. /** @var \Illuminate\Http\Request $instance */
  7280. return $instance->segments();
  7281. }
  7282. /**
  7283. * Determine if the current request URI matches a pattern.
  7284. *
  7285. * @param mixed $patterns
  7286. * @return bool
  7287. * @static
  7288. */
  7289. public static function is($patterns = null)
  7290. {
  7291. /** @var \Illuminate\Http\Request $instance */
  7292. return $instance->is($patterns);
  7293. }
  7294. /**
  7295. * Determine if the route name matches a given pattern.
  7296. *
  7297. * @param mixed $patterns
  7298. * @return bool
  7299. * @static
  7300. */
  7301. public static function routeIs($patterns = null)
  7302. {
  7303. /** @var \Illuminate\Http\Request $instance */
  7304. return $instance->routeIs($patterns);
  7305. }
  7306. /**
  7307. * Determine if the current request URL and query string matches a pattern.
  7308. *
  7309. * @param mixed $patterns
  7310. * @return bool
  7311. * @static
  7312. */
  7313. public static function fullUrlIs($patterns = null)
  7314. {
  7315. /** @var \Illuminate\Http\Request $instance */
  7316. return $instance->fullUrlIs($patterns);
  7317. }
  7318. /**
  7319. * Determine if the request is the result of an AJAX call.
  7320. *
  7321. * @return bool
  7322. * @static
  7323. */
  7324. public static function ajax()
  7325. {
  7326. /** @var \Illuminate\Http\Request $instance */
  7327. return $instance->ajax();
  7328. }
  7329. /**
  7330. * Determine if the request is the result of an PJAX call.
  7331. *
  7332. * @return bool
  7333. * @static
  7334. */
  7335. public static function pjax()
  7336. {
  7337. /** @var \Illuminate\Http\Request $instance */
  7338. return $instance->pjax();
  7339. }
  7340. /**
  7341. * Determine if the request is over HTTPS.
  7342. *
  7343. * @return bool
  7344. * @static
  7345. */
  7346. public static function secure()
  7347. {
  7348. /** @var \Illuminate\Http\Request $instance */
  7349. return $instance->secure();
  7350. }
  7351. /**
  7352. * Get the client IP address.
  7353. *
  7354. * @return string
  7355. * @static
  7356. */
  7357. public static function ip()
  7358. {
  7359. /** @var \Illuminate\Http\Request $instance */
  7360. return $instance->ip();
  7361. }
  7362. /**
  7363. * Get the client IP addresses.
  7364. *
  7365. * @return array
  7366. * @static
  7367. */
  7368. public static function ips()
  7369. {
  7370. /** @var \Illuminate\Http\Request $instance */
  7371. return $instance->ips();
  7372. }
  7373. /**
  7374. * Get the client user agent.
  7375. *
  7376. * @return string
  7377. * @static
  7378. */
  7379. public static function userAgent()
  7380. {
  7381. /** @var \Illuminate\Http\Request $instance */
  7382. return $instance->userAgent();
  7383. }
  7384. /**
  7385. * Merge new input into the current request's input array.
  7386. *
  7387. * @param array $input
  7388. * @return \Illuminate\Http\Request
  7389. * @static
  7390. */
  7391. public static function merge($input)
  7392. {
  7393. /** @var \Illuminate\Http\Request $instance */
  7394. return $instance->merge($input);
  7395. }
  7396. /**
  7397. * Replace the input for the current request.
  7398. *
  7399. * @param array $input
  7400. * @return \Illuminate\Http\Request
  7401. * @static
  7402. */
  7403. public static function replace($input)
  7404. {
  7405. /** @var \Illuminate\Http\Request $instance */
  7406. return $instance->replace($input);
  7407. }
  7408. /**
  7409. * Get the JSON payload for the request.
  7410. *
  7411. * @param string $key
  7412. * @param mixed $default
  7413. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  7414. * @static
  7415. */
  7416. public static function json($key = null, $default = null)
  7417. {
  7418. /** @var \Illuminate\Http\Request $instance */
  7419. return $instance->json($key, $default);
  7420. }
  7421. /**
  7422. * Create an Illuminate request from a Symfony instance.
  7423. *
  7424. * @param \Symfony\Component\HttpFoundation\Request $request
  7425. * @return \Illuminate\Http\Request
  7426. * @static
  7427. */
  7428. public static function createFromBase($request)
  7429. {
  7430. return \Illuminate\Http\Request::createFromBase($request);
  7431. }
  7432. /**
  7433. * Clones a request and overrides some of its parameters.
  7434. *
  7435. * @param array $query The GET parameters
  7436. * @param array $request The POST parameters
  7437. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7438. * @param array $cookies The COOKIE parameters
  7439. * @param array $files The FILES parameters
  7440. * @param array $server The SERVER parameters
  7441. * @return static
  7442. * @static
  7443. */
  7444. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  7445. {
  7446. /** @var \Illuminate\Http\Request $instance */
  7447. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  7448. }
  7449. /**
  7450. * Get the session associated with the request.
  7451. *
  7452. * @return \Illuminate\Session\Store
  7453. * @throws \RuntimeException
  7454. * @static
  7455. */
  7456. public static function session()
  7457. {
  7458. /** @var \Illuminate\Http\Request $instance */
  7459. return $instance->session();
  7460. }
  7461. /**
  7462. * Set the session instance on the request.
  7463. *
  7464. * @param \Illuminate\Contracts\Session\Session $session
  7465. * @return void
  7466. * @static
  7467. */
  7468. public static function setLaravelSession($session)
  7469. {
  7470. /** @var \Illuminate\Http\Request $instance */
  7471. $instance->setLaravelSession($session);
  7472. }
  7473. /**
  7474. * Get the user making the request.
  7475. *
  7476. * @param string|null $guard
  7477. * @return mixed
  7478. * @static
  7479. */
  7480. public static function user($guard = null)
  7481. {
  7482. /** @var \Illuminate\Http\Request $instance */
  7483. return $instance->user($guard);
  7484. }
  7485. /**
  7486. * Get the route handling the request.
  7487. *
  7488. * @param string|null $param
  7489. * @return \Illuminate\Routing\Route|object|string
  7490. * @static
  7491. */
  7492. public static function route($param = null)
  7493. {
  7494. /** @var \Illuminate\Http\Request $instance */
  7495. return $instance->route($param);
  7496. }
  7497. /**
  7498. * Get a unique fingerprint for the request / route / IP address.
  7499. *
  7500. * @return string
  7501. * @throws \RuntimeException
  7502. * @static
  7503. */
  7504. public static function fingerprint()
  7505. {
  7506. /** @var \Illuminate\Http\Request $instance */
  7507. return $instance->fingerprint();
  7508. }
  7509. /**
  7510. * Set the JSON payload for the request.
  7511. *
  7512. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  7513. * @return \Illuminate\Http\Request
  7514. * @static
  7515. */
  7516. public static function setJson($json)
  7517. {
  7518. /** @var \Illuminate\Http\Request $instance */
  7519. return $instance->setJson($json);
  7520. }
  7521. /**
  7522. * Get the user resolver callback.
  7523. *
  7524. * @return \Closure
  7525. * @static
  7526. */
  7527. public static function getUserResolver()
  7528. {
  7529. /** @var \Illuminate\Http\Request $instance */
  7530. return $instance->getUserResolver();
  7531. }
  7532. /**
  7533. * Set the user resolver callback.
  7534. *
  7535. * @param \Closure $callback
  7536. * @return \Illuminate\Http\Request
  7537. * @static
  7538. */
  7539. public static function setUserResolver($callback)
  7540. {
  7541. /** @var \Illuminate\Http\Request $instance */
  7542. return $instance->setUserResolver($callback);
  7543. }
  7544. /**
  7545. * Get the route resolver callback.
  7546. *
  7547. * @return \Closure
  7548. * @static
  7549. */
  7550. public static function getRouteResolver()
  7551. {
  7552. /** @var \Illuminate\Http\Request $instance */
  7553. return $instance->getRouteResolver();
  7554. }
  7555. /**
  7556. * Set the route resolver callback.
  7557. *
  7558. * @param \Closure $callback
  7559. * @return \Illuminate\Http\Request
  7560. * @static
  7561. */
  7562. public static function setRouteResolver($callback)
  7563. {
  7564. /** @var \Illuminate\Http\Request $instance */
  7565. return $instance->setRouteResolver($callback);
  7566. }
  7567. /**
  7568. * Get all of the input and files for the request.
  7569. *
  7570. * @return array
  7571. * @static
  7572. */
  7573. public static function toArray()
  7574. {
  7575. /** @var \Illuminate\Http\Request $instance */
  7576. return $instance->toArray();
  7577. }
  7578. /**
  7579. * Determine if the given offset exists.
  7580. *
  7581. * @param string $offset
  7582. * @return bool
  7583. * @static
  7584. */
  7585. public static function offsetExists($offset)
  7586. {
  7587. /** @var \Illuminate\Http\Request $instance */
  7588. return $instance->offsetExists($offset);
  7589. }
  7590. /**
  7591. * Get the value at the given offset.
  7592. *
  7593. * @param string $offset
  7594. * @return mixed
  7595. * @static
  7596. */
  7597. public static function offsetGet($offset)
  7598. {
  7599. /** @var \Illuminate\Http\Request $instance */
  7600. return $instance->offsetGet($offset);
  7601. }
  7602. /**
  7603. * Set the value at the given offset.
  7604. *
  7605. * @param string $offset
  7606. * @param mixed $value
  7607. * @return void
  7608. * @static
  7609. */
  7610. public static function offsetSet($offset, $value)
  7611. {
  7612. /** @var \Illuminate\Http\Request $instance */
  7613. $instance->offsetSet($offset, $value);
  7614. }
  7615. /**
  7616. * Remove the value at the given offset.
  7617. *
  7618. * @param string $offset
  7619. * @return void
  7620. * @static
  7621. */
  7622. public static function offsetUnset($offset)
  7623. {
  7624. /** @var \Illuminate\Http\Request $instance */
  7625. $instance->offsetUnset($offset);
  7626. }
  7627. /**
  7628. * Sets the parameters for this request.
  7629. *
  7630. * This method also re-initializes all properties.
  7631. *
  7632. * @param array $query The GET parameters
  7633. * @param array $request The POST parameters
  7634. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7635. * @param array $cookies The COOKIE parameters
  7636. * @param array $files The FILES parameters
  7637. * @param array $server The SERVER parameters
  7638. * @param string|resource|null $content The raw body data
  7639. * @static
  7640. */
  7641. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  7642. {
  7643. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7644. /** @var \Illuminate\Http\Request $instance */
  7645. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  7646. }
  7647. /**
  7648. * Creates a new request with values from PHP's super globals.
  7649. *
  7650. * @return static
  7651. * @static
  7652. */
  7653. public static function createFromGlobals()
  7654. {
  7655. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7656. return \Illuminate\Http\Request::createFromGlobals();
  7657. }
  7658. /**
  7659. * Creates a Request based on a given URI and configuration.
  7660. *
  7661. * The information contained in the URI always take precedence
  7662. * over the other information (server and parameters).
  7663. *
  7664. * @param string $uri The URI
  7665. * @param string $method The HTTP method
  7666. * @param array $parameters The query (GET) or request (POST) parameters
  7667. * @param array $cookies The request cookies ($_COOKIE)
  7668. * @param array $files The request files ($_FILES)
  7669. * @param array $server The server parameters ($_SERVER)
  7670. * @param string|resource|null $content The raw body data
  7671. * @return static
  7672. * @static
  7673. */
  7674. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  7675. {
  7676. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7677. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  7678. }
  7679. /**
  7680. * Sets a callable able to create a Request instance.
  7681. *
  7682. * This is mainly useful when you need to override the Request class
  7683. * to keep BC with an existing system. It should not be used for any
  7684. * other purpose.
  7685. *
  7686. * @param callable|null $callable A PHP callable
  7687. * @static
  7688. */
  7689. public static function setFactory($callable)
  7690. {
  7691. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7692. return \Illuminate\Http\Request::setFactory($callable);
  7693. }
  7694. /**
  7695. * Overrides the PHP global variables according to this request instance.
  7696. *
  7697. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  7698. * $_FILES is never overridden, see rfc1867
  7699. *
  7700. * @static
  7701. */
  7702. public static function overrideGlobals()
  7703. {
  7704. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7705. /** @var \Illuminate\Http\Request $instance */
  7706. return $instance->overrideGlobals();
  7707. }
  7708. /**
  7709. * Sets a list of trusted proxies.
  7710. *
  7711. * You should only list the reverse proxies that you manage directly.
  7712. *
  7713. * @param array $proxies A list of trusted proxies
  7714. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  7715. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  7716. * @static
  7717. */
  7718. public static function setTrustedProxies($proxies)
  7719. {
  7720. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7721. return \Illuminate\Http\Request::setTrustedProxies($proxies);
  7722. }
  7723. /**
  7724. * Gets the list of trusted proxies.
  7725. *
  7726. * @return array An array of trusted proxies
  7727. * @static
  7728. */
  7729. public static function getTrustedProxies()
  7730. {
  7731. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7732. return \Illuminate\Http\Request::getTrustedProxies();
  7733. }
  7734. /**
  7735. * Gets the set of trusted headers from trusted proxies.
  7736. *
  7737. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  7738. * @static
  7739. */
  7740. public static function getTrustedHeaderSet()
  7741. {
  7742. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7743. return \Illuminate\Http\Request::getTrustedHeaderSet();
  7744. }
  7745. /**
  7746. * Sets a list of trusted host patterns.
  7747. *
  7748. * You should only list the hosts you manage using regexs.
  7749. *
  7750. * @param array $hostPatterns A list of trusted host patterns
  7751. * @static
  7752. */
  7753. public static function setTrustedHosts($hostPatterns)
  7754. {
  7755. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7756. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  7757. }
  7758. /**
  7759. * Gets the list of trusted host patterns.
  7760. *
  7761. * @return array An array of trusted host patterns
  7762. * @static
  7763. */
  7764. public static function getTrustedHosts()
  7765. {
  7766. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7767. return \Illuminate\Http\Request::getTrustedHosts();
  7768. }
  7769. /**
  7770. * Sets the name for trusted headers.
  7771. *
  7772. * The following header keys are supported:
  7773. *
  7774. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  7775. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getHost())
  7776. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getPort())
  7777. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  7778. * * Request::HEADER_FORWARDED: defaults to Forwarded (see RFC 7239)
  7779. *
  7780. * Setting an empty value allows to disable the trusted header for the given key.
  7781. *
  7782. * @param string $key The header key
  7783. * @param string $value The header name
  7784. * @throws \InvalidArgumentException
  7785. * @deprecated since version 3.3, to be removed in 4.0. Use the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.
  7786. * @static
  7787. */
  7788. public static function setTrustedHeaderName($key, $value)
  7789. {
  7790. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7791. return \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  7792. }
  7793. /**
  7794. * Gets the trusted proxy header name.
  7795. *
  7796. * @param string $key The header key
  7797. * @return string The header name
  7798. * @throws \InvalidArgumentException
  7799. * @deprecated since version 3.3, to be removed in 4.0. Use the Request::getTrustedHeaderSet() method instead.
  7800. * @static
  7801. */
  7802. public static function getTrustedHeaderName($key)
  7803. {
  7804. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7805. return \Illuminate\Http\Request::getTrustedHeaderName($key);
  7806. }
  7807. /**
  7808. * Normalizes a query string.
  7809. *
  7810. * It builds a normalized query string, where keys/value pairs are alphabetized,
  7811. * have consistent escaping and unneeded delimiters are removed.
  7812. *
  7813. * @param string $qs Query string
  7814. * @return string A normalized query string for the Request
  7815. * @static
  7816. */
  7817. public static function normalizeQueryString($qs)
  7818. {
  7819. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7820. return \Illuminate\Http\Request::normalizeQueryString($qs);
  7821. }
  7822. /**
  7823. * Enables support for the _method request parameter to determine the intended HTTP method.
  7824. *
  7825. * Be warned that enabling this feature might lead to CSRF issues in your code.
  7826. * Check that you are using CSRF tokens when required.
  7827. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  7828. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  7829. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  7830. *
  7831. * The HTTP method can only be overridden when the real HTTP method is POST.
  7832. *
  7833. * @static
  7834. */
  7835. public static function enableHttpMethodParameterOverride()
  7836. {
  7837. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7838. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  7839. }
  7840. /**
  7841. * Checks whether support for the _method request parameter is enabled.
  7842. *
  7843. * @return bool True when the _method request parameter is enabled, false otherwise
  7844. * @static
  7845. */
  7846. public static function getHttpMethodParameterOverride()
  7847. {
  7848. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7849. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  7850. }
  7851. /**
  7852. * Gets a "parameter" value from any bag.
  7853. *
  7854. * This method is mainly useful for libraries that want to provide some flexibility. If you don't need the
  7855. * flexibility in controllers, it is better to explicitly get request parameters from the appropriate
  7856. * public property instead (attributes, query, request).
  7857. *
  7858. * Order of precedence: PATH (routing placeholders or custom attributes), GET, BODY
  7859. *
  7860. * @param string $key The key
  7861. * @param mixed $default The default value if the parameter key does not exist
  7862. * @return mixed
  7863. * @static
  7864. */
  7865. public static function get($key, $default = null)
  7866. {
  7867. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7868. /** @var \Illuminate\Http\Request $instance */
  7869. return $instance->get($key, $default);
  7870. }
  7871. /**
  7872. * Gets the Session.
  7873. *
  7874. * @return \Symfony\Component\HttpFoundation\SessionInterface|null The session
  7875. * @static
  7876. */
  7877. public static function getSession()
  7878. {
  7879. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7880. /** @var \Illuminate\Http\Request $instance */
  7881. return $instance->getSession();
  7882. }
  7883. /**
  7884. * Whether the request contains a Session which was started in one of the
  7885. * previous requests.
  7886. *
  7887. * @return bool
  7888. * @static
  7889. */
  7890. public static function hasPreviousSession()
  7891. {
  7892. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7893. /** @var \Illuminate\Http\Request $instance */
  7894. return $instance->hasPreviousSession();
  7895. }
  7896. /**
  7897. * Whether the request contains a Session object.
  7898. *
  7899. * This method does not give any information about the state of the session object,
  7900. * like whether the session is started or not. It is just a way to check if this Request
  7901. * is associated with a Session instance.
  7902. *
  7903. * @return bool true when the Request contains a Session object, false otherwise
  7904. * @static
  7905. */
  7906. public static function hasSession()
  7907. {
  7908. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7909. /** @var \Illuminate\Http\Request $instance */
  7910. return $instance->hasSession();
  7911. }
  7912. /**
  7913. * Sets the Session.
  7914. *
  7915. * @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
  7916. * @static
  7917. */
  7918. public static function setSession($session)
  7919. {
  7920. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7921. /** @var \Illuminate\Http\Request $instance */
  7922. return $instance->setSession($session);
  7923. }
  7924. /**
  7925. * Returns the client IP addresses.
  7926. *
  7927. * In the returned array the most trusted IP address is first, and the
  7928. * least trusted one last. The "real" client IP address is the last one,
  7929. * but this is also the least trusted one. Trusted proxies are stripped.
  7930. *
  7931. * Use this method carefully; you should use getClientIp() instead.
  7932. *
  7933. * @return array The client IP addresses
  7934. * @see getClientIp()
  7935. * @static
  7936. */
  7937. public static function getClientIps()
  7938. {
  7939. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7940. /** @var \Illuminate\Http\Request $instance */
  7941. return $instance->getClientIps();
  7942. }
  7943. /**
  7944. * Returns the client IP address.
  7945. *
  7946. * This method can read the client IP address from the "X-Forwarded-For" header
  7947. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  7948. * header value is a comma+space separated list of IP addresses, the left-most
  7949. * being the original client, and each successive proxy that passed the request
  7950. * adding the IP address where it received the request from.
  7951. *
  7952. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  7953. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  7954. * argument of the Request::setTrustedProxies() method instead.
  7955. *
  7956. * @return string|null The client IP address
  7957. * @see getClientIps()
  7958. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  7959. * @static
  7960. */
  7961. public static function getClientIp()
  7962. {
  7963. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7964. /** @var \Illuminate\Http\Request $instance */
  7965. return $instance->getClientIp();
  7966. }
  7967. /**
  7968. * Returns current script name.
  7969. *
  7970. * @return string
  7971. * @static
  7972. */
  7973. public static function getScriptName()
  7974. {
  7975. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7976. /** @var \Illuminate\Http\Request $instance */
  7977. return $instance->getScriptName();
  7978. }
  7979. /**
  7980. * Returns the path being requested relative to the executed script.
  7981. *
  7982. * The path info always starts with a /.
  7983. *
  7984. * Suppose this request is instantiated from /mysite on localhost:
  7985. *
  7986. * * http://localhost/mysite returns an empty string
  7987. * * http://localhost/mysite/about returns '/about'
  7988. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  7989. * * http://localhost/mysite/about?var=1 returns '/about'
  7990. *
  7991. * @return string The raw path (i.e. not urldecoded)
  7992. * @static
  7993. */
  7994. public static function getPathInfo()
  7995. {
  7996. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7997. /** @var \Illuminate\Http\Request $instance */
  7998. return $instance->getPathInfo();
  7999. }
  8000. /**
  8001. * Returns the root path from which this request is executed.
  8002. *
  8003. * Suppose that an index.php file instantiates this request object:
  8004. *
  8005. * * http://localhost/index.php returns an empty string
  8006. * * http://localhost/index.php/page returns an empty string
  8007. * * http://localhost/web/index.php returns '/web'
  8008. * * http://localhost/we%20b/index.php returns '/we%20b'
  8009. *
  8010. * @return string The raw path (i.e. not urldecoded)
  8011. * @static
  8012. */
  8013. public static function getBasePath()
  8014. {
  8015. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8016. /** @var \Illuminate\Http\Request $instance */
  8017. return $instance->getBasePath();
  8018. }
  8019. /**
  8020. * Returns the root URL from which this request is executed.
  8021. *
  8022. * The base URL never ends with a /.
  8023. *
  8024. * This is similar to getBasePath(), except that it also includes the
  8025. * script filename (e.g. index.php) if one exists.
  8026. *
  8027. * @return string The raw URL (i.e. not urldecoded)
  8028. * @static
  8029. */
  8030. public static function getBaseUrl()
  8031. {
  8032. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8033. /** @var \Illuminate\Http\Request $instance */
  8034. return $instance->getBaseUrl();
  8035. }
  8036. /**
  8037. * Gets the request's scheme.
  8038. *
  8039. * @return string
  8040. * @static
  8041. */
  8042. public static function getScheme()
  8043. {
  8044. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8045. /** @var \Illuminate\Http\Request $instance */
  8046. return $instance->getScheme();
  8047. }
  8048. /**
  8049. * Returns the port on which the request is made.
  8050. *
  8051. * This method can read the client port from the "X-Forwarded-Port" header
  8052. * when trusted proxies were set via "setTrustedProxies()".
  8053. *
  8054. * The "X-Forwarded-Port" header must contain the client port.
  8055. *
  8056. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  8057. * configure it via via the $trustedHeaderSet argument of the
  8058. * Request::setTrustedProxies() method instead.
  8059. *
  8060. * @return int|string can be a string if fetched from the server bag
  8061. * @static
  8062. */
  8063. public static function getPort()
  8064. {
  8065. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8066. /** @var \Illuminate\Http\Request $instance */
  8067. return $instance->getPort();
  8068. }
  8069. /**
  8070. * Returns the user.
  8071. *
  8072. * @return string|null
  8073. * @static
  8074. */
  8075. public static function getUser()
  8076. {
  8077. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8078. /** @var \Illuminate\Http\Request $instance */
  8079. return $instance->getUser();
  8080. }
  8081. /**
  8082. * Returns the password.
  8083. *
  8084. * @return string|null
  8085. * @static
  8086. */
  8087. public static function getPassword()
  8088. {
  8089. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8090. /** @var \Illuminate\Http\Request $instance */
  8091. return $instance->getPassword();
  8092. }
  8093. /**
  8094. * Gets the user info.
  8095. *
  8096. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  8097. * @static
  8098. */
  8099. public static function getUserInfo()
  8100. {
  8101. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8102. /** @var \Illuminate\Http\Request $instance */
  8103. return $instance->getUserInfo();
  8104. }
  8105. /**
  8106. * Returns the HTTP host being requested.
  8107. *
  8108. * The port name will be appended to the host if it's non-standard.
  8109. *
  8110. * @return string
  8111. * @static
  8112. */
  8113. public static function getHttpHost()
  8114. {
  8115. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8116. /** @var \Illuminate\Http\Request $instance */
  8117. return $instance->getHttpHost();
  8118. }
  8119. /**
  8120. * Returns the requested URI (path and query string).
  8121. *
  8122. * @return string The raw URI (i.e. not URI decoded)
  8123. * @static
  8124. */
  8125. public static function getRequestUri()
  8126. {
  8127. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8128. /** @var \Illuminate\Http\Request $instance */
  8129. return $instance->getRequestUri();
  8130. }
  8131. /**
  8132. * Gets the scheme and HTTP host.
  8133. *
  8134. * If the URL was called with basic authentication, the user
  8135. * and the password are not added to the generated string.
  8136. *
  8137. * @return string The scheme and HTTP host
  8138. * @static
  8139. */
  8140. public static function getSchemeAndHttpHost()
  8141. {
  8142. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8143. /** @var \Illuminate\Http\Request $instance */
  8144. return $instance->getSchemeAndHttpHost();
  8145. }
  8146. /**
  8147. * Generates a normalized URI (URL) for the Request.
  8148. *
  8149. * @return string A normalized URI (URL) for the Request
  8150. * @see getQueryString()
  8151. * @static
  8152. */
  8153. public static function getUri()
  8154. {
  8155. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8156. /** @var \Illuminate\Http\Request $instance */
  8157. return $instance->getUri();
  8158. }
  8159. /**
  8160. * Generates a normalized URI for the given path.
  8161. *
  8162. * @param string $path A path to use instead of the current one
  8163. * @return string The normalized URI for the path
  8164. * @static
  8165. */
  8166. public static function getUriForPath($path)
  8167. {
  8168. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8169. /** @var \Illuminate\Http\Request $instance */
  8170. return $instance->getUriForPath($path);
  8171. }
  8172. /**
  8173. * Returns the path as relative reference from the current Request path.
  8174. *
  8175. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  8176. * Both paths must be absolute and not contain relative parts.
  8177. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  8178. * Furthermore, they can be used to reduce the link size in documents.
  8179. *
  8180. * Example target paths, given a base path of "/a/b/c/d":
  8181. * - "/a/b/c/d" -> ""
  8182. * - "/a/b/c/" -> "./"
  8183. * - "/a/b/" -> "../"
  8184. * - "/a/b/c/other" -> "other"
  8185. * - "/a/x/y" -> "../../x/y"
  8186. *
  8187. * @param string $path The target path
  8188. * @return string The relative target path
  8189. * @static
  8190. */
  8191. public static function getRelativeUriForPath($path)
  8192. {
  8193. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8194. /** @var \Illuminate\Http\Request $instance */
  8195. return $instance->getRelativeUriForPath($path);
  8196. }
  8197. /**
  8198. * Generates the normalized query string for the Request.
  8199. *
  8200. * It builds a normalized query string, where keys/value pairs are alphabetized
  8201. * and have consistent escaping.
  8202. *
  8203. * @return string|null A normalized query string for the Request
  8204. * @static
  8205. */
  8206. public static function getQueryString()
  8207. {
  8208. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8209. /** @var \Illuminate\Http\Request $instance */
  8210. return $instance->getQueryString();
  8211. }
  8212. /**
  8213. * Checks whether the request is secure or not.
  8214. *
  8215. * This method can read the client protocol from the "X-Forwarded-Proto" header
  8216. * when trusted proxies were set via "setTrustedProxies()".
  8217. *
  8218. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  8219. *
  8220. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  8221. * ("SSL_HTTPS" for instance), configure it via the $trustedHeaderSet
  8222. * argument of the Request::setTrustedProxies() method instead.
  8223. *
  8224. * @return bool
  8225. * @static
  8226. */
  8227. public static function isSecure()
  8228. {
  8229. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8230. /** @var \Illuminate\Http\Request $instance */
  8231. return $instance->isSecure();
  8232. }
  8233. /**
  8234. * Returns the host name.
  8235. *
  8236. * This method can read the client host name from the "X-Forwarded-Host" header
  8237. * when trusted proxies were set via "setTrustedProxies()".
  8238. *
  8239. * The "X-Forwarded-Host" header must contain the client host name.
  8240. *
  8241. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  8242. * configure it via the $trustedHeaderSet argument of the
  8243. * Request::setTrustedProxies() method instead.
  8244. *
  8245. * @return string
  8246. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  8247. * @static
  8248. */
  8249. public static function getHost()
  8250. {
  8251. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8252. /** @var \Illuminate\Http\Request $instance */
  8253. return $instance->getHost();
  8254. }
  8255. /**
  8256. * Sets the request method.
  8257. *
  8258. * @param string $method
  8259. * @static
  8260. */
  8261. public static function setMethod($method)
  8262. {
  8263. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8264. /** @var \Illuminate\Http\Request $instance */
  8265. return $instance->setMethod($method);
  8266. }
  8267. /**
  8268. * Gets the request "intended" method.
  8269. *
  8270. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  8271. * then it is used to determine the "real" intended HTTP method.
  8272. *
  8273. * The _method request parameter can also be used to determine the HTTP method,
  8274. * but only if enableHttpMethodParameterOverride() has been called.
  8275. *
  8276. * The method is always an uppercased string.
  8277. *
  8278. * @return string The request method
  8279. * @see getRealMethod()
  8280. * @static
  8281. */
  8282. public static function getMethod()
  8283. {
  8284. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8285. /** @var \Illuminate\Http\Request $instance */
  8286. return $instance->getMethod();
  8287. }
  8288. /**
  8289. * Gets the "real" request method.
  8290. *
  8291. * @return string The request method
  8292. * @see getMethod()
  8293. * @static
  8294. */
  8295. public static function getRealMethod()
  8296. {
  8297. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8298. /** @var \Illuminate\Http\Request $instance */
  8299. return $instance->getRealMethod();
  8300. }
  8301. /**
  8302. * Gets the mime type associated with the format.
  8303. *
  8304. * @param string $format The format
  8305. * @return string|null The associated mime type (null if not found)
  8306. * @static
  8307. */
  8308. public static function getMimeType($format)
  8309. {
  8310. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8311. /** @var \Illuminate\Http\Request $instance */
  8312. return $instance->getMimeType($format);
  8313. }
  8314. /**
  8315. * Gets the mime types associated with the format.
  8316. *
  8317. * @param string $format The format
  8318. * @return array The associated mime types
  8319. * @static
  8320. */
  8321. public static function getMimeTypes($format)
  8322. {
  8323. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8324. return \Illuminate\Http\Request::getMimeTypes($format);
  8325. }
  8326. /**
  8327. * Gets the format associated with the mime type.
  8328. *
  8329. * @param string $mimeType The associated mime type
  8330. * @return string|null The format (null if not found)
  8331. * @static
  8332. */
  8333. public static function getFormat($mimeType)
  8334. {
  8335. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8336. /** @var \Illuminate\Http\Request $instance */
  8337. return $instance->getFormat($mimeType);
  8338. }
  8339. /**
  8340. * Associates a format with mime types.
  8341. *
  8342. * @param string $format The format
  8343. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  8344. * @static
  8345. */
  8346. public static function setFormat($format, $mimeTypes)
  8347. {
  8348. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8349. /** @var \Illuminate\Http\Request $instance */
  8350. return $instance->setFormat($format, $mimeTypes);
  8351. }
  8352. /**
  8353. * Gets the request format.
  8354. *
  8355. * Here is the process to determine the format:
  8356. *
  8357. * * format defined by the user (with setRequestFormat())
  8358. * * _format request attribute
  8359. * * $default
  8360. *
  8361. * @param string|null $default The default format
  8362. * @return string|null The request format
  8363. * @static
  8364. */
  8365. public static function getRequestFormat($default = 'html')
  8366. {
  8367. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8368. /** @var \Illuminate\Http\Request $instance */
  8369. return $instance->getRequestFormat($default);
  8370. }
  8371. /**
  8372. * Sets the request format.
  8373. *
  8374. * @param string $format The request format
  8375. * @static
  8376. */
  8377. public static function setRequestFormat($format)
  8378. {
  8379. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8380. /** @var \Illuminate\Http\Request $instance */
  8381. return $instance->setRequestFormat($format);
  8382. }
  8383. /**
  8384. * Gets the format associated with the request.
  8385. *
  8386. * @return string|null The format (null if no content type is present)
  8387. * @static
  8388. */
  8389. public static function getContentType()
  8390. {
  8391. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8392. /** @var \Illuminate\Http\Request $instance */
  8393. return $instance->getContentType();
  8394. }
  8395. /**
  8396. * Sets the default locale.
  8397. *
  8398. * @param string $locale
  8399. * @static
  8400. */
  8401. public static function setDefaultLocale($locale)
  8402. {
  8403. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8404. /** @var \Illuminate\Http\Request $instance */
  8405. return $instance->setDefaultLocale($locale);
  8406. }
  8407. /**
  8408. * Get the default locale.
  8409. *
  8410. * @return string
  8411. * @static
  8412. */
  8413. public static function getDefaultLocale()
  8414. {
  8415. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8416. /** @var \Illuminate\Http\Request $instance */
  8417. return $instance->getDefaultLocale();
  8418. }
  8419. /**
  8420. * Sets the locale.
  8421. *
  8422. * @param string $locale
  8423. * @static
  8424. */
  8425. public static function setLocale($locale)
  8426. {
  8427. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8428. /** @var \Illuminate\Http\Request $instance */
  8429. return $instance->setLocale($locale);
  8430. }
  8431. /**
  8432. * Get the locale.
  8433. *
  8434. * @return string
  8435. * @static
  8436. */
  8437. public static function getLocale()
  8438. {
  8439. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8440. /** @var \Illuminate\Http\Request $instance */
  8441. return $instance->getLocale();
  8442. }
  8443. /**
  8444. * Checks if the request method is of specified type.
  8445. *
  8446. * @param string $method Uppercase request method (GET, POST etc)
  8447. * @return bool
  8448. * @static
  8449. */
  8450. public static function isMethod($method)
  8451. {
  8452. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8453. /** @var \Illuminate\Http\Request $instance */
  8454. return $instance->isMethod($method);
  8455. }
  8456. /**
  8457. * Checks whether or not the method is safe.
  8458. *
  8459. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  8460. * @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default.
  8461. * @return bool
  8462. * @static
  8463. */
  8464. public static function isMethodSafe()
  8465. {
  8466. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8467. /** @var \Illuminate\Http\Request $instance */
  8468. return $instance->isMethodSafe();
  8469. }
  8470. /**
  8471. * Checks whether or not the method is idempotent.
  8472. *
  8473. * @return bool
  8474. * @static
  8475. */
  8476. public static function isMethodIdempotent()
  8477. {
  8478. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8479. /** @var \Illuminate\Http\Request $instance */
  8480. return $instance->isMethodIdempotent();
  8481. }
  8482. /**
  8483. * Checks whether the method is cacheable or not.
  8484. *
  8485. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  8486. * @return bool True for GET and HEAD, false otherwise
  8487. * @static
  8488. */
  8489. public static function isMethodCacheable()
  8490. {
  8491. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8492. /** @var \Illuminate\Http\Request $instance */
  8493. return $instance->isMethodCacheable();
  8494. }
  8495. /**
  8496. * Returns the protocol version.
  8497. *
  8498. * If the application is behind a proxy, the protocol version used in the
  8499. * requests between the client and the proxy and between the proxy and the
  8500. * server might be different. This returns the former (from the "Via" header)
  8501. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  8502. * the latter (from the "SERVER_PROTOCOL" server parameter).
  8503. *
  8504. * @return string
  8505. * @static
  8506. */
  8507. public static function getProtocolVersion()
  8508. {
  8509. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8510. /** @var \Illuminate\Http\Request $instance */
  8511. return $instance->getProtocolVersion();
  8512. }
  8513. /**
  8514. * Returns the request body content.
  8515. *
  8516. * @param bool $asResource If true, a resource will be returned
  8517. * @return string|resource The request body content or a resource to read the body stream
  8518. * @throws \LogicException
  8519. * @static
  8520. */
  8521. public static function getContent($asResource = false)
  8522. {
  8523. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8524. /** @var \Illuminate\Http\Request $instance */
  8525. return $instance->getContent($asResource);
  8526. }
  8527. /**
  8528. * Gets the Etags.
  8529. *
  8530. * @return array The entity tags
  8531. * @static
  8532. */
  8533. public static function getETags()
  8534. {
  8535. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8536. /** @var \Illuminate\Http\Request $instance */
  8537. return $instance->getETags();
  8538. }
  8539. /**
  8540. *
  8541. *
  8542. * @return bool
  8543. * @static
  8544. */
  8545. public static function isNoCache()
  8546. {
  8547. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8548. /** @var \Illuminate\Http\Request $instance */
  8549. return $instance->isNoCache();
  8550. }
  8551. /**
  8552. * Returns the preferred language.
  8553. *
  8554. * @param array $locales An array of ordered available locales
  8555. * @return string|null The preferred locale
  8556. * @static
  8557. */
  8558. public static function getPreferredLanguage($locales = null)
  8559. {
  8560. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8561. /** @var \Illuminate\Http\Request $instance */
  8562. return $instance->getPreferredLanguage($locales);
  8563. }
  8564. /**
  8565. * Gets a list of languages acceptable by the client browser.
  8566. *
  8567. * @return array Languages ordered in the user browser preferences
  8568. * @static
  8569. */
  8570. public static function getLanguages()
  8571. {
  8572. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8573. /** @var \Illuminate\Http\Request $instance */
  8574. return $instance->getLanguages();
  8575. }
  8576. /**
  8577. * Gets a list of charsets acceptable by the client browser.
  8578. *
  8579. * @return array List of charsets in preferable order
  8580. * @static
  8581. */
  8582. public static function getCharsets()
  8583. {
  8584. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8585. /** @var \Illuminate\Http\Request $instance */
  8586. return $instance->getCharsets();
  8587. }
  8588. /**
  8589. * Gets a list of encodings acceptable by the client browser.
  8590. *
  8591. * @return array List of encodings in preferable order
  8592. * @static
  8593. */
  8594. public static function getEncodings()
  8595. {
  8596. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8597. /** @var \Illuminate\Http\Request $instance */
  8598. return $instance->getEncodings();
  8599. }
  8600. /**
  8601. * Gets a list of content types acceptable by the client browser.
  8602. *
  8603. * @return array List of content types in preferable order
  8604. * @static
  8605. */
  8606. public static function getAcceptableContentTypes()
  8607. {
  8608. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8609. /** @var \Illuminate\Http\Request $instance */
  8610. return $instance->getAcceptableContentTypes();
  8611. }
  8612. /**
  8613. * Returns true if the request is a XMLHttpRequest.
  8614. *
  8615. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  8616. * It is known to work with common JavaScript frameworks:
  8617. *
  8618. * @see http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  8619. * @return bool true if the request is an XMLHttpRequest, false otherwise
  8620. * @static
  8621. */
  8622. public static function isXmlHttpRequest()
  8623. {
  8624. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8625. /** @var \Illuminate\Http\Request $instance */
  8626. return $instance->isXmlHttpRequest();
  8627. }
  8628. /**
  8629. * Indicates whether this request originated from a trusted proxy.
  8630. *
  8631. * This can be useful to determine whether or not to trust the
  8632. * contents of a proxy-specific header.
  8633. *
  8634. * @return bool true if the request came from a trusted proxy, false otherwise
  8635. * @static
  8636. */
  8637. public static function isFromTrustedProxy()
  8638. {
  8639. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8640. /** @var \Illuminate\Http\Request $instance */
  8641. return $instance->isFromTrustedProxy();
  8642. }
  8643. /**
  8644. * Determine if the given content types match.
  8645. *
  8646. * @param string $actual
  8647. * @param string $type
  8648. * @return bool
  8649. * @static
  8650. */
  8651. public static function matchesType($actual, $type)
  8652. {
  8653. return \Illuminate\Http\Request::matchesType($actual, $type);
  8654. }
  8655. /**
  8656. * Determine if the request is sending JSON.
  8657. *
  8658. * @return bool
  8659. * @static
  8660. */
  8661. public static function isJson()
  8662. {
  8663. /** @var \Illuminate\Http\Request $instance */
  8664. return $instance->isJson();
  8665. }
  8666. /**
  8667. * Determine if the current request probably expects a JSON response.
  8668. *
  8669. * @return bool
  8670. * @static
  8671. */
  8672. public static function expectsJson()
  8673. {
  8674. /** @var \Illuminate\Http\Request $instance */
  8675. return $instance->expectsJson();
  8676. }
  8677. /**
  8678. * Determine if the current request is asking for JSON in return.
  8679. *
  8680. * @return bool
  8681. * @static
  8682. */
  8683. public static function wantsJson()
  8684. {
  8685. /** @var \Illuminate\Http\Request $instance */
  8686. return $instance->wantsJson();
  8687. }
  8688. /**
  8689. * Determines whether the current requests accepts a given content type.
  8690. *
  8691. * @param string|array $contentTypes
  8692. * @return bool
  8693. * @static
  8694. */
  8695. public static function accepts($contentTypes)
  8696. {
  8697. /** @var \Illuminate\Http\Request $instance */
  8698. return $instance->accepts($contentTypes);
  8699. }
  8700. /**
  8701. * Return the most suitable content type from the given array based on content negotiation.
  8702. *
  8703. * @param string|array $contentTypes
  8704. * @return string|null
  8705. * @static
  8706. */
  8707. public static function prefers($contentTypes)
  8708. {
  8709. /** @var \Illuminate\Http\Request $instance */
  8710. return $instance->prefers($contentTypes);
  8711. }
  8712. /**
  8713. * Determines whether a request accepts JSON.
  8714. *
  8715. * @return bool
  8716. * @static
  8717. */
  8718. public static function acceptsJson()
  8719. {
  8720. /** @var \Illuminate\Http\Request $instance */
  8721. return $instance->acceptsJson();
  8722. }
  8723. /**
  8724. * Determines whether a request accepts HTML.
  8725. *
  8726. * @return bool
  8727. * @static
  8728. */
  8729. public static function acceptsHtml()
  8730. {
  8731. /** @var \Illuminate\Http\Request $instance */
  8732. return $instance->acceptsHtml();
  8733. }
  8734. /**
  8735. * Get the data format expected in the response.
  8736. *
  8737. * @param string $default
  8738. * @return string
  8739. * @static
  8740. */
  8741. public static function format($default = 'html')
  8742. {
  8743. /** @var \Illuminate\Http\Request $instance */
  8744. return $instance->format($default);
  8745. }
  8746. /**
  8747. * Retrieve an old input item.
  8748. *
  8749. * @param string $key
  8750. * @param string|array|null $default
  8751. * @return string|array
  8752. * @static
  8753. */
  8754. public static function old($key = null, $default = null)
  8755. {
  8756. /** @var \Illuminate\Http\Request $instance */
  8757. return $instance->old($key, $default);
  8758. }
  8759. /**
  8760. * Flash the input for the current request to the session.
  8761. *
  8762. * @return void
  8763. * @static
  8764. */
  8765. public static function flash()
  8766. {
  8767. /** @var \Illuminate\Http\Request $instance */
  8768. $instance->flash();
  8769. }
  8770. /**
  8771. * Flash only some of the input to the session.
  8772. *
  8773. * @param array|mixed $keys
  8774. * @return void
  8775. * @static
  8776. */
  8777. public static function flashOnly($keys)
  8778. {
  8779. /** @var \Illuminate\Http\Request $instance */
  8780. $instance->flashOnly($keys);
  8781. }
  8782. /**
  8783. * Flash only some of the input to the session.
  8784. *
  8785. * @param array|mixed $keys
  8786. * @return void
  8787. * @static
  8788. */
  8789. public static function flashExcept($keys)
  8790. {
  8791. /** @var \Illuminate\Http\Request $instance */
  8792. $instance->flashExcept($keys);
  8793. }
  8794. /**
  8795. * Flush all of the old input from the session.
  8796. *
  8797. * @return void
  8798. * @static
  8799. */
  8800. public static function flush()
  8801. {
  8802. /** @var \Illuminate\Http\Request $instance */
  8803. $instance->flush();
  8804. }
  8805. /**
  8806. * Retrieve a server variable from the request.
  8807. *
  8808. * @param string $key
  8809. * @param string|array|null $default
  8810. * @return string|array
  8811. * @static
  8812. */
  8813. public static function server($key = null, $default = null)
  8814. {
  8815. /** @var \Illuminate\Http\Request $instance */
  8816. return $instance->server($key, $default);
  8817. }
  8818. /**
  8819. * Determine if a header is set on the request.
  8820. *
  8821. * @param string $key
  8822. * @return bool
  8823. * @static
  8824. */
  8825. public static function hasHeader($key)
  8826. {
  8827. /** @var \Illuminate\Http\Request $instance */
  8828. return $instance->hasHeader($key);
  8829. }
  8830. /**
  8831. * Retrieve a header from the request.
  8832. *
  8833. * @param string $key
  8834. * @param string|array|null $default
  8835. * @return string|array
  8836. * @static
  8837. */
  8838. public static function header($key = null, $default = null)
  8839. {
  8840. /** @var \Illuminate\Http\Request $instance */
  8841. return $instance->header($key, $default);
  8842. }
  8843. /**
  8844. * Get the bearer token from the request headers.
  8845. *
  8846. * @return string|null
  8847. * @static
  8848. */
  8849. public static function bearerToken()
  8850. {
  8851. /** @var \Illuminate\Http\Request $instance */
  8852. return $instance->bearerToken();
  8853. }
  8854. /**
  8855. * Determine if the request contains a given input item key.
  8856. *
  8857. * @param string|array $key
  8858. * @return bool
  8859. * @static
  8860. */
  8861. public static function exists($key)
  8862. {
  8863. /** @var \Illuminate\Http\Request $instance */
  8864. return $instance->exists($key);
  8865. }
  8866. /**
  8867. * Determine if the request contains a given input item key.
  8868. *
  8869. * @param string|array $key
  8870. * @return bool
  8871. * @static
  8872. */
  8873. public static function has($key)
  8874. {
  8875. /** @var \Illuminate\Http\Request $instance */
  8876. return $instance->has($key);
  8877. }
  8878. /**
  8879. * Determine if the request contains any of the given inputs.
  8880. *
  8881. * @param mixed $key
  8882. * @return bool
  8883. * @static
  8884. */
  8885. public static function hasAny($keys = null)
  8886. {
  8887. /** @var \Illuminate\Http\Request $instance */
  8888. return $instance->hasAny($keys);
  8889. }
  8890. /**
  8891. * Determine if the request contains a non-empty value for an input item.
  8892. *
  8893. * @param string|array $key
  8894. * @return bool
  8895. * @static
  8896. */
  8897. public static function filled($key)
  8898. {
  8899. /** @var \Illuminate\Http\Request $instance */
  8900. return $instance->filled($key);
  8901. }
  8902. /**
  8903. * Get the keys for all of the input and files.
  8904. *
  8905. * @return array
  8906. * @static
  8907. */
  8908. public static function keys()
  8909. {
  8910. /** @var \Illuminate\Http\Request $instance */
  8911. return $instance->keys();
  8912. }
  8913. /**
  8914. * Get all of the input and files for the request.
  8915. *
  8916. * @param array|mixed $keys
  8917. * @return array
  8918. * @static
  8919. */
  8920. public static function all($keys = null)
  8921. {
  8922. /** @var \Illuminate\Http\Request $instance */
  8923. return $instance->all($keys);
  8924. }
  8925. /**
  8926. * Retrieve an input item from the request.
  8927. *
  8928. * @param string $key
  8929. * @param string|array|null $default
  8930. * @return string|array
  8931. * @static
  8932. */
  8933. public static function input($key = null, $default = null)
  8934. {
  8935. /** @var \Illuminate\Http\Request $instance */
  8936. return $instance->input($key, $default);
  8937. }
  8938. /**
  8939. * Get a subset containing the provided keys with values from the input data.
  8940. *
  8941. * @param array|mixed $keys
  8942. * @return array
  8943. * @static
  8944. */
  8945. public static function only($keys)
  8946. {
  8947. /** @var \Illuminate\Http\Request $instance */
  8948. return $instance->only($keys);
  8949. }
  8950. /**
  8951. * Get all of the input except for a specified array of items.
  8952. *
  8953. * @param array|mixed $keys
  8954. * @return array
  8955. * @static
  8956. */
  8957. public static function except($keys)
  8958. {
  8959. /** @var \Illuminate\Http\Request $instance */
  8960. return $instance->except($keys);
  8961. }
  8962. /**
  8963. * Retrieve a query string item from the request.
  8964. *
  8965. * @param string $key
  8966. * @param string|array|null $default
  8967. * @return string|array
  8968. * @static
  8969. */
  8970. public static function query($key = null, $default = null)
  8971. {
  8972. /** @var \Illuminate\Http\Request $instance */
  8973. return $instance->query($key, $default);
  8974. }
  8975. /**
  8976. * Retrieve a request payload item from the request.
  8977. *
  8978. * @param string $key
  8979. * @param string|array|null $default
  8980. * @return string|array
  8981. * @static
  8982. */
  8983. public static function post($key = null, $default = null)
  8984. {
  8985. /** @var \Illuminate\Http\Request $instance */
  8986. return $instance->post($key, $default);
  8987. }
  8988. /**
  8989. * Determine if a cookie is set on the request.
  8990. *
  8991. * @param string $key
  8992. * @return bool
  8993. * @static
  8994. */
  8995. public static function hasCookie($key)
  8996. {
  8997. /** @var \Illuminate\Http\Request $instance */
  8998. return $instance->hasCookie($key);
  8999. }
  9000. /**
  9001. * Retrieve a cookie from the request.
  9002. *
  9003. * @param string $key
  9004. * @param string|array|null $default
  9005. * @return string|array
  9006. * @static
  9007. */
  9008. public static function cookie($key = null, $default = null)
  9009. {
  9010. /** @var \Illuminate\Http\Request $instance */
  9011. return $instance->cookie($key, $default);
  9012. }
  9013. /**
  9014. * Get an array of all of the files on the request.
  9015. *
  9016. * @return array
  9017. * @static
  9018. */
  9019. public static function allFiles()
  9020. {
  9021. /** @var \Illuminate\Http\Request $instance */
  9022. return $instance->allFiles();
  9023. }
  9024. /**
  9025. * Determine if the uploaded data contains a file.
  9026. *
  9027. * @param string $key
  9028. * @return bool
  9029. * @static
  9030. */
  9031. public static function hasFile($key)
  9032. {
  9033. /** @var \Illuminate\Http\Request $instance */
  9034. return $instance->hasFile($key);
  9035. }
  9036. /**
  9037. * Retrieve a file from the request.
  9038. *
  9039. * @param string $key
  9040. * @param mixed $default
  9041. * @return \Illuminate\Http\UploadedFile|array|null
  9042. * @static
  9043. */
  9044. public static function file($key = null, $default = null)
  9045. {
  9046. /** @var \Illuminate\Http\Request $instance */
  9047. return $instance->file($key, $default);
  9048. }
  9049. /**
  9050. * Register a custom macro.
  9051. *
  9052. * @param string $name
  9053. * @param object|callable $macro
  9054. * @return void
  9055. * @static
  9056. */
  9057. public static function macro($name, $macro)
  9058. {
  9059. \Illuminate\Http\Request::macro($name, $macro);
  9060. }
  9061. /**
  9062. * Mix another object into the class.
  9063. *
  9064. * @param object $mixin
  9065. * @return void
  9066. * @static
  9067. */
  9068. public static function mixin($mixin)
  9069. {
  9070. \Illuminate\Http\Request::mixin($mixin);
  9071. }
  9072. /**
  9073. * Checks if macro is registered.
  9074. *
  9075. * @param string $name
  9076. * @return bool
  9077. * @static
  9078. */
  9079. public static function hasMacro($name)
  9080. {
  9081. return \Illuminate\Http\Request::hasMacro($name);
  9082. }
  9083. /**
  9084. *
  9085. *
  9086. * @static
  9087. */
  9088. public static function validate($rules, $params = null)
  9089. {
  9090. return \Illuminate\Http\Request::validate($rules, $params);
  9091. }
  9092. }
  9093. /**
  9094. *
  9095. *
  9096. * @see \Illuminate\Contracts\Routing\ResponseFactory
  9097. */
  9098. class Response {
  9099. /**
  9100. * Return a new response from the application.
  9101. *
  9102. * @param string $content
  9103. * @param int $status
  9104. * @param array $headers
  9105. * @return \Illuminate\Http\Response
  9106. * @static
  9107. */
  9108. public static function make($content = '', $status = 200, $headers = array())
  9109. {
  9110. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9111. return $instance->make($content, $status, $headers);
  9112. }
  9113. /**
  9114. * Return a new view response from the application.
  9115. *
  9116. * @param string $view
  9117. * @param array $data
  9118. * @param int $status
  9119. * @param array $headers
  9120. * @return \Illuminate\Http\Response
  9121. * @static
  9122. */
  9123. public static function view($view, $data = array(), $status = 200, $headers = array())
  9124. {
  9125. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9126. return $instance->view($view, $data, $status, $headers);
  9127. }
  9128. /**
  9129. * Return a new JSON response from the application.
  9130. *
  9131. * @param mixed $data
  9132. * @param int $status
  9133. * @param array $headers
  9134. * @param int $options
  9135. * @return \Illuminate\Http\JsonResponse
  9136. * @static
  9137. */
  9138. public static function json($data = array(), $status = 200, $headers = array(), $options = 0)
  9139. {
  9140. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9141. return $instance->json($data, $status, $headers, $options);
  9142. }
  9143. /**
  9144. * Return a new JSONP response from the application.
  9145. *
  9146. * @param string $callback
  9147. * @param mixed $data
  9148. * @param int $status
  9149. * @param array $headers
  9150. * @param int $options
  9151. * @return \Illuminate\Http\JsonResponse
  9152. * @static
  9153. */
  9154. public static function jsonp($callback, $data = array(), $status = 200, $headers = array(), $options = 0)
  9155. {
  9156. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9157. return $instance->jsonp($callback, $data, $status, $headers, $options);
  9158. }
  9159. /**
  9160. * Return a new streamed response from the application.
  9161. *
  9162. * @param \Closure $callback
  9163. * @param int $status
  9164. * @param array $headers
  9165. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9166. * @static
  9167. */
  9168. public static function stream($callback, $status = 200, $headers = array())
  9169. {
  9170. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9171. return $instance->stream($callback, $status, $headers);
  9172. }
  9173. /**
  9174. * Create a new file download response.
  9175. *
  9176. * @param \SplFileInfo|string $file
  9177. * @param string $name
  9178. * @param array $headers
  9179. * @param string|null $disposition
  9180. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9181. * @static
  9182. */
  9183. public static function download($file, $name = null, $headers = array(), $disposition = 'attachment')
  9184. {
  9185. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9186. return $instance->download($file, $name, $headers, $disposition);
  9187. }
  9188. /**
  9189. * Return the raw contents of a binary file.
  9190. *
  9191. * @param \SplFileInfo|string $file
  9192. * @param array $headers
  9193. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9194. * @static
  9195. */
  9196. public static function file($file, $headers = array())
  9197. {
  9198. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9199. return $instance->file($file, $headers);
  9200. }
  9201. /**
  9202. * Create a new redirect response to the given path.
  9203. *
  9204. * @param string $path
  9205. * @param int $status
  9206. * @param array $headers
  9207. * @param bool|null $secure
  9208. * @return \Illuminate\Http\RedirectResponse
  9209. * @static
  9210. */
  9211. public static function redirectTo($path, $status = 302, $headers = array(), $secure = null)
  9212. {
  9213. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9214. return $instance->redirectTo($path, $status, $headers, $secure);
  9215. }
  9216. /**
  9217. * Create a new redirect response to a named route.
  9218. *
  9219. * @param string $route
  9220. * @param array $parameters
  9221. * @param int $status
  9222. * @param array $headers
  9223. * @return \Illuminate\Http\RedirectResponse
  9224. * @static
  9225. */
  9226. public static function redirectToRoute($route, $parameters = array(), $status = 302, $headers = array())
  9227. {
  9228. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9229. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  9230. }
  9231. /**
  9232. * Create a new redirect response to a controller action.
  9233. *
  9234. * @param string $action
  9235. * @param array $parameters
  9236. * @param int $status
  9237. * @param array $headers
  9238. * @return \Illuminate\Http\RedirectResponse
  9239. * @static
  9240. */
  9241. public static function redirectToAction($action, $parameters = array(), $status = 302, $headers = array())
  9242. {
  9243. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9244. return $instance->redirectToAction($action, $parameters, $status, $headers);
  9245. }
  9246. /**
  9247. * Create a new redirect response, while putting the current URL in the session.
  9248. *
  9249. * @param string $path
  9250. * @param int $status
  9251. * @param array $headers
  9252. * @param bool|null $secure
  9253. * @return \Illuminate\Http\RedirectResponse
  9254. * @static
  9255. */
  9256. public static function redirectGuest($path, $status = 302, $headers = array(), $secure = null)
  9257. {
  9258. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9259. return $instance->redirectGuest($path, $status, $headers, $secure);
  9260. }
  9261. /**
  9262. * Create a new redirect response to the previously intended location.
  9263. *
  9264. * @param string $default
  9265. * @param int $status
  9266. * @param array $headers
  9267. * @param bool|null $secure
  9268. * @return \Illuminate\Http\RedirectResponse
  9269. * @static
  9270. */
  9271. public static function redirectToIntended($default = '/', $status = 302, $headers = array(), $secure = null)
  9272. {
  9273. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9274. return $instance->redirectToIntended($default, $status, $headers, $secure);
  9275. }
  9276. /**
  9277. * Register a custom macro.
  9278. *
  9279. * @param string $name
  9280. * @param object|callable $macro
  9281. * @return void
  9282. * @static
  9283. */
  9284. public static function macro($name, $macro)
  9285. {
  9286. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  9287. }
  9288. /**
  9289. * Mix another object into the class.
  9290. *
  9291. * @param object $mixin
  9292. * @return void
  9293. * @static
  9294. */
  9295. public static function mixin($mixin)
  9296. {
  9297. \Illuminate\Routing\ResponseFactory::mixin($mixin);
  9298. }
  9299. /**
  9300. * Checks if macro is registered.
  9301. *
  9302. * @param string $name
  9303. * @return bool
  9304. * @static
  9305. */
  9306. public static function hasMacro($name)
  9307. {
  9308. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  9309. }
  9310. }
  9311. /**
  9312. *
  9313. *
  9314. * @method static \Illuminate\Support\Facades\Route prefix(string $prefix)
  9315. * @method static \Illuminate\Support\Facades\Route middleware(array|string|null $middleware)
  9316. * @method static \Illuminate\Support\Facades\Route as(string $value)
  9317. * @method static \Illuminate\Support\Facades\Route domain(string $value)
  9318. * @method static \Illuminate\Support\Facades\Route name(string $value)
  9319. * @method static \Illuminate\Support\Facades\Route namespace(string $value)
  9320. * @method static \Illuminate\Support\Facades\Route where(array|string $name, string $expression = null)
  9321. * @see \Illuminate\Routing\Router
  9322. */
  9323. class Route {
  9324. /**
  9325. * Register a new GET route with the router.
  9326. *
  9327. * @param string $uri
  9328. * @param \Closure|array|string|null $action
  9329. * @return \Illuminate\Routing\Route
  9330. * @static
  9331. */
  9332. public static function get($uri, $action = null)
  9333. {
  9334. /** @var \Illuminate\Routing\Router $instance */
  9335. return $instance->get($uri, $action);
  9336. }
  9337. /**
  9338. * Register a new POST route with the router.
  9339. *
  9340. * @param string $uri
  9341. * @param \Closure|array|string|null $action
  9342. * @return \Illuminate\Routing\Route
  9343. * @static
  9344. */
  9345. public static function post($uri, $action = null)
  9346. {
  9347. /** @var \Illuminate\Routing\Router $instance */
  9348. return $instance->post($uri, $action);
  9349. }
  9350. /**
  9351. * Register a new PUT route with the router.
  9352. *
  9353. * @param string $uri
  9354. * @param \Closure|array|string|null $action
  9355. * @return \Illuminate\Routing\Route
  9356. * @static
  9357. */
  9358. public static function put($uri, $action = null)
  9359. {
  9360. /** @var \Illuminate\Routing\Router $instance */
  9361. return $instance->put($uri, $action);
  9362. }
  9363. /**
  9364. * Register a new PATCH route with the router.
  9365. *
  9366. * @param string $uri
  9367. * @param \Closure|array|string|null $action
  9368. * @return \Illuminate\Routing\Route
  9369. * @static
  9370. */
  9371. public static function patch($uri, $action = null)
  9372. {
  9373. /** @var \Illuminate\Routing\Router $instance */
  9374. return $instance->patch($uri, $action);
  9375. }
  9376. /**
  9377. * Register a new DELETE route with the router.
  9378. *
  9379. * @param string $uri
  9380. * @param \Closure|array|string|null $action
  9381. * @return \Illuminate\Routing\Route
  9382. * @static
  9383. */
  9384. public static function delete($uri, $action = null)
  9385. {
  9386. /** @var \Illuminate\Routing\Router $instance */
  9387. return $instance->delete($uri, $action);
  9388. }
  9389. /**
  9390. * Register a new OPTIONS route with the router.
  9391. *
  9392. * @param string $uri
  9393. * @param \Closure|array|string|null $action
  9394. * @return \Illuminate\Routing\Route
  9395. * @static
  9396. */
  9397. public static function options($uri, $action = null)
  9398. {
  9399. /** @var \Illuminate\Routing\Router $instance */
  9400. return $instance->options($uri, $action);
  9401. }
  9402. /**
  9403. * Register a new route responding to all verbs.
  9404. *
  9405. * @param string $uri
  9406. * @param \Closure|array|string|null $action
  9407. * @return \Illuminate\Routing\Route
  9408. * @static
  9409. */
  9410. public static function any($uri, $action = null)
  9411. {
  9412. /** @var \Illuminate\Routing\Router $instance */
  9413. return $instance->any($uri, $action);
  9414. }
  9415. /**
  9416. * Register a new Fallback route with the router.
  9417. *
  9418. * @param \Closure|array|string|null $action
  9419. * @return \Illuminate\Routing\Route
  9420. * @static
  9421. */
  9422. public static function fallback($action)
  9423. {
  9424. /** @var \Illuminate\Routing\Router $instance */
  9425. return $instance->fallback($action);
  9426. }
  9427. /**
  9428. * Create a redirect from one URI to another.
  9429. *
  9430. * @param string $uri
  9431. * @param string $destination
  9432. * @param int $status
  9433. * @return \Illuminate\Routing\Route
  9434. * @static
  9435. */
  9436. public static function redirect($uri, $destination, $status = 301)
  9437. {
  9438. /** @var \Illuminate\Routing\Router $instance */
  9439. return $instance->redirect($uri, $destination, $status);
  9440. }
  9441. /**
  9442. * Register a new route that returns a view.
  9443. *
  9444. * @param string $uri
  9445. * @param string $view
  9446. * @param array $data
  9447. * @return \Illuminate\Routing\Route
  9448. * @static
  9449. */
  9450. public static function view($uri, $view, $data = array())
  9451. {
  9452. /** @var \Illuminate\Routing\Router $instance */
  9453. return $instance->view($uri, $view, $data);
  9454. }
  9455. /**
  9456. * Register a new route with the given verbs.
  9457. *
  9458. * @param array|string $methods
  9459. * @param string $uri
  9460. * @param \Closure|array|string|null $action
  9461. * @return \Illuminate\Routing\Route
  9462. * @static
  9463. */
  9464. public static function match($methods, $uri, $action = null)
  9465. {
  9466. /** @var \Illuminate\Routing\Router $instance */
  9467. return $instance->match($methods, $uri, $action);
  9468. }
  9469. /**
  9470. * Register an array of resource controllers.
  9471. *
  9472. * @param array $resources
  9473. * @return void
  9474. * @static
  9475. */
  9476. public static function resources($resources)
  9477. {
  9478. /** @var \Illuminate\Routing\Router $instance */
  9479. $instance->resources($resources);
  9480. }
  9481. /**
  9482. * Route a resource to a controller.
  9483. *
  9484. * @param string $name
  9485. * @param string $controller
  9486. * @param array $options
  9487. * @return \Illuminate\Routing\PendingResourceRegistration
  9488. * @static
  9489. */
  9490. public static function resource($name, $controller, $options = array())
  9491. {
  9492. /** @var \Illuminate\Routing\Router $instance */
  9493. return $instance->resource($name, $controller, $options);
  9494. }
  9495. /**
  9496. * Register an array of API resource controllers.
  9497. *
  9498. * @param array $resources
  9499. * @return void
  9500. * @static
  9501. */
  9502. public static function apiResources($resources)
  9503. {
  9504. /** @var \Illuminate\Routing\Router $instance */
  9505. $instance->apiResources($resources);
  9506. }
  9507. /**
  9508. * Route an API resource to a controller.
  9509. *
  9510. * @param string $name
  9511. * @param string $controller
  9512. * @param array $options
  9513. * @return \Illuminate\Routing\PendingResourceRegistration
  9514. * @static
  9515. */
  9516. public static function apiResource($name, $controller, $options = array())
  9517. {
  9518. /** @var \Illuminate\Routing\Router $instance */
  9519. return $instance->apiResource($name, $controller, $options);
  9520. }
  9521. /**
  9522. * Create a route group with shared attributes.
  9523. *
  9524. * @param array $attributes
  9525. * @param \Closure|string $routes
  9526. * @return void
  9527. * @static
  9528. */
  9529. public static function group($attributes, $routes)
  9530. {
  9531. /** @var \Illuminate\Routing\Router $instance */
  9532. $instance->group($attributes, $routes);
  9533. }
  9534. /**
  9535. * Merge the given array with the last group stack.
  9536. *
  9537. * @param array $new
  9538. * @return array
  9539. * @static
  9540. */
  9541. public static function mergeWithLastGroup($new)
  9542. {
  9543. /** @var \Illuminate\Routing\Router $instance */
  9544. return $instance->mergeWithLastGroup($new);
  9545. }
  9546. /**
  9547. * Get the prefix from the last group on the stack.
  9548. *
  9549. * @return string
  9550. * @static
  9551. */
  9552. public static function getLastGroupPrefix()
  9553. {
  9554. /** @var \Illuminate\Routing\Router $instance */
  9555. return $instance->getLastGroupPrefix();
  9556. }
  9557. /**
  9558. * Return the response returned by the given route.
  9559. *
  9560. * @param string $name
  9561. * @return mixed
  9562. * @static
  9563. */
  9564. public static function respondWithRoute($name)
  9565. {
  9566. /** @var \Illuminate\Routing\Router $instance */
  9567. return $instance->respondWithRoute($name);
  9568. }
  9569. /**
  9570. * Dispatch the request to the application.
  9571. *
  9572. * @param \Illuminate\Http\Request $request
  9573. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9574. * @static
  9575. */
  9576. public static function dispatch($request)
  9577. {
  9578. /** @var \Illuminate\Routing\Router $instance */
  9579. return $instance->dispatch($request);
  9580. }
  9581. /**
  9582. * Dispatch the request to a route and return the response.
  9583. *
  9584. * @param \Illuminate\Http\Request $request
  9585. * @return mixed
  9586. * @static
  9587. */
  9588. public static function dispatchToRoute($request)
  9589. {
  9590. /** @var \Illuminate\Routing\Router $instance */
  9591. return $instance->dispatchToRoute($request);
  9592. }
  9593. /**
  9594. * Gather the middleware for the given route with resolved class names.
  9595. *
  9596. * @param \Illuminate\Routing\Route $route
  9597. * @return array
  9598. * @static
  9599. */
  9600. public static function gatherRouteMiddleware($route)
  9601. {
  9602. /** @var \Illuminate\Routing\Router $instance */
  9603. return $instance->gatherRouteMiddleware($route);
  9604. }
  9605. /**
  9606. * Create a response instance from the given value.
  9607. *
  9608. * @param \Symfony\Component\HttpFoundation\Request $request
  9609. * @param mixed $response
  9610. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9611. * @static
  9612. */
  9613. public static function prepareResponse($request, $response)
  9614. {
  9615. /** @var \Illuminate\Routing\Router $instance */
  9616. return $instance->prepareResponse($request, $response);
  9617. }
  9618. /**
  9619. * Static version of prepareResponse.
  9620. *
  9621. * @param \Symfony\Component\HttpFoundation\Request $request
  9622. * @param mixed $response
  9623. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9624. * @static
  9625. */
  9626. public static function toResponse($request, $response)
  9627. {
  9628. return \Illuminate\Routing\Router::toResponse($request, $response);
  9629. }
  9630. /**
  9631. * Substitute the route bindings onto the route.
  9632. *
  9633. * @param \Illuminate\Routing\Route $route
  9634. * @return \Illuminate\Routing\Route
  9635. * @static
  9636. */
  9637. public static function substituteBindings($route)
  9638. {
  9639. /** @var \Illuminate\Routing\Router $instance */
  9640. return $instance->substituteBindings($route);
  9641. }
  9642. /**
  9643. * Substitute the implicit Eloquent model bindings for the route.
  9644. *
  9645. * @param \Illuminate\Routing\Route $route
  9646. * @return void
  9647. * @static
  9648. */
  9649. public static function substituteImplicitBindings($route)
  9650. {
  9651. /** @var \Illuminate\Routing\Router $instance */
  9652. $instance->substituteImplicitBindings($route);
  9653. }
  9654. /**
  9655. * Register a route matched event listener.
  9656. *
  9657. * @param string|callable $callback
  9658. * @return void
  9659. * @static
  9660. */
  9661. public static function matched($callback)
  9662. {
  9663. /** @var \Illuminate\Routing\Router $instance */
  9664. $instance->matched($callback);
  9665. }
  9666. /**
  9667. * Get all of the defined middleware short-hand names.
  9668. *
  9669. * @return array
  9670. * @static
  9671. */
  9672. public static function getMiddleware()
  9673. {
  9674. /** @var \Illuminate\Routing\Router $instance */
  9675. return $instance->getMiddleware();
  9676. }
  9677. /**
  9678. * Register a short-hand name for a middleware.
  9679. *
  9680. * @param string $name
  9681. * @param string $class
  9682. * @return \Illuminate\Routing\Router
  9683. * @static
  9684. */
  9685. public static function aliasMiddleware($name, $class)
  9686. {
  9687. /** @var \Illuminate\Routing\Router $instance */
  9688. return $instance->aliasMiddleware($name, $class);
  9689. }
  9690. /**
  9691. * Check if a middlewareGroup with the given name exists.
  9692. *
  9693. * @param string $name
  9694. * @return bool
  9695. * @static
  9696. */
  9697. public static function hasMiddlewareGroup($name)
  9698. {
  9699. /** @var \Illuminate\Routing\Router $instance */
  9700. return $instance->hasMiddlewareGroup($name);
  9701. }
  9702. /**
  9703. * Get all of the defined middleware groups.
  9704. *
  9705. * @return array
  9706. * @static
  9707. */
  9708. public static function getMiddlewareGroups()
  9709. {
  9710. /** @var \Illuminate\Routing\Router $instance */
  9711. return $instance->getMiddlewareGroups();
  9712. }
  9713. /**
  9714. * Register a group of middleware.
  9715. *
  9716. * @param string $name
  9717. * @param array $middleware
  9718. * @return \Illuminate\Routing\Router
  9719. * @static
  9720. */
  9721. public static function middlewareGroup($name, $middleware)
  9722. {
  9723. /** @var \Illuminate\Routing\Router $instance */
  9724. return $instance->middlewareGroup($name, $middleware);
  9725. }
  9726. /**
  9727. * Add a middleware to the beginning of a middleware group.
  9728. *
  9729. * If the middleware is already in the group, it will not be added again.
  9730. *
  9731. * @param string $group
  9732. * @param string $middleware
  9733. * @return \Illuminate\Routing\Router
  9734. * @static
  9735. */
  9736. public static function prependMiddlewareToGroup($group, $middleware)
  9737. {
  9738. /** @var \Illuminate\Routing\Router $instance */
  9739. return $instance->prependMiddlewareToGroup($group, $middleware);
  9740. }
  9741. /**
  9742. * Add a middleware to the end of a middleware group.
  9743. *
  9744. * If the middleware is already in the group, it will not be added again.
  9745. *
  9746. * @param string $group
  9747. * @param string $middleware
  9748. * @return \Illuminate\Routing\Router
  9749. * @static
  9750. */
  9751. public static function pushMiddlewareToGroup($group, $middleware)
  9752. {
  9753. /** @var \Illuminate\Routing\Router $instance */
  9754. return $instance->pushMiddlewareToGroup($group, $middleware);
  9755. }
  9756. /**
  9757. * Add a new route parameter binder.
  9758. *
  9759. * @param string $key
  9760. * @param string|callable $binder
  9761. * @return void
  9762. * @static
  9763. */
  9764. public static function bind($key, $binder)
  9765. {
  9766. /** @var \Illuminate\Routing\Router $instance */
  9767. $instance->bind($key, $binder);
  9768. }
  9769. /**
  9770. * Register a model binder for a wildcard.
  9771. *
  9772. * @param string $key
  9773. * @param string $class
  9774. * @param \Closure|null $callback
  9775. * @return void
  9776. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  9777. * @static
  9778. */
  9779. public static function model($key, $class, $callback = null)
  9780. {
  9781. /** @var \Illuminate\Routing\Router $instance */
  9782. $instance->model($key, $class, $callback);
  9783. }
  9784. /**
  9785. * Get the binding callback for a given binding.
  9786. *
  9787. * @param string $key
  9788. * @return \Closure|null
  9789. * @static
  9790. */
  9791. public static function getBindingCallback($key)
  9792. {
  9793. /** @var \Illuminate\Routing\Router $instance */
  9794. return $instance->getBindingCallback($key);
  9795. }
  9796. /**
  9797. * Get the global "where" patterns.
  9798. *
  9799. * @return array
  9800. * @static
  9801. */
  9802. public static function getPatterns()
  9803. {
  9804. /** @var \Illuminate\Routing\Router $instance */
  9805. return $instance->getPatterns();
  9806. }
  9807. /**
  9808. * Set a global where pattern on all routes.
  9809. *
  9810. * @param string $key
  9811. * @param string $pattern
  9812. * @return void
  9813. * @static
  9814. */
  9815. public static function pattern($key, $pattern)
  9816. {
  9817. /** @var \Illuminate\Routing\Router $instance */
  9818. $instance->pattern($key, $pattern);
  9819. }
  9820. /**
  9821. * Set a group of global where patterns on all routes.
  9822. *
  9823. * @param array $patterns
  9824. * @return void
  9825. * @static
  9826. */
  9827. public static function patterns($patterns)
  9828. {
  9829. /** @var \Illuminate\Routing\Router $instance */
  9830. $instance->patterns($patterns);
  9831. }
  9832. /**
  9833. * Determine if the router currently has a group stack.
  9834. *
  9835. * @return bool
  9836. * @static
  9837. */
  9838. public static function hasGroupStack()
  9839. {
  9840. /** @var \Illuminate\Routing\Router $instance */
  9841. return $instance->hasGroupStack();
  9842. }
  9843. /**
  9844. * Get the current group stack for the router.
  9845. *
  9846. * @return array
  9847. * @static
  9848. */
  9849. public static function getGroupStack()
  9850. {
  9851. /** @var \Illuminate\Routing\Router $instance */
  9852. return $instance->getGroupStack();
  9853. }
  9854. /**
  9855. * Get a route parameter for the current route.
  9856. *
  9857. * @param string $key
  9858. * @param string $default
  9859. * @return mixed
  9860. * @static
  9861. */
  9862. public static function input($key, $default = null)
  9863. {
  9864. /** @var \Illuminate\Routing\Router $instance */
  9865. return $instance->input($key, $default);
  9866. }
  9867. /**
  9868. * Get the request currently being dispatched.
  9869. *
  9870. * @return \Illuminate\Http\Request
  9871. * @static
  9872. */
  9873. public static function getCurrentRequest()
  9874. {
  9875. /** @var \Illuminate\Routing\Router $instance */
  9876. return $instance->getCurrentRequest();
  9877. }
  9878. /**
  9879. * Get the currently dispatched route instance.
  9880. *
  9881. * @return \Illuminate\Routing\Route
  9882. * @static
  9883. */
  9884. public static function getCurrentRoute()
  9885. {
  9886. /** @var \Illuminate\Routing\Router $instance */
  9887. return $instance->getCurrentRoute();
  9888. }
  9889. /**
  9890. * Get the currently dispatched route instance.
  9891. *
  9892. * @return \Illuminate\Routing\Route
  9893. * @static
  9894. */
  9895. public static function current()
  9896. {
  9897. /** @var \Illuminate\Routing\Router $instance */
  9898. return $instance->current();
  9899. }
  9900. /**
  9901. * Check if a route with the given name exists.
  9902. *
  9903. * @param string $name
  9904. * @return bool
  9905. * @static
  9906. */
  9907. public static function has($name)
  9908. {
  9909. /** @var \Illuminate\Routing\Router $instance */
  9910. return $instance->has($name);
  9911. }
  9912. /**
  9913. * Get the current route name.
  9914. *
  9915. * @return string|null
  9916. * @static
  9917. */
  9918. public static function currentRouteName()
  9919. {
  9920. /** @var \Illuminate\Routing\Router $instance */
  9921. return $instance->currentRouteName();
  9922. }
  9923. /**
  9924. * Alias for the "currentRouteNamed" method.
  9925. *
  9926. * @param mixed $patterns
  9927. * @return bool
  9928. * @static
  9929. */
  9930. public static function is($patterns = null)
  9931. {
  9932. /** @var \Illuminate\Routing\Router $instance */
  9933. return $instance->is($patterns);
  9934. }
  9935. /**
  9936. * Determine if the current route matches a pattern.
  9937. *
  9938. * @param mixed $patterns
  9939. * @return bool
  9940. * @static
  9941. */
  9942. public static function currentRouteNamed($patterns = null)
  9943. {
  9944. /** @var \Illuminate\Routing\Router $instance */
  9945. return $instance->currentRouteNamed($patterns);
  9946. }
  9947. /**
  9948. * Get the current route action.
  9949. *
  9950. * @return string|null
  9951. * @static
  9952. */
  9953. public static function currentRouteAction()
  9954. {
  9955. /** @var \Illuminate\Routing\Router $instance */
  9956. return $instance->currentRouteAction();
  9957. }
  9958. /**
  9959. * Alias for the "currentRouteUses" method.
  9960. *
  9961. * @param array $patterns
  9962. * @return bool
  9963. * @static
  9964. */
  9965. public static function uses($patterns = null)
  9966. {
  9967. /** @var \Illuminate\Routing\Router $instance */
  9968. return $instance->uses($patterns);
  9969. }
  9970. /**
  9971. * Determine if the current route action matches a given action.
  9972. *
  9973. * @param string $action
  9974. * @return bool
  9975. * @static
  9976. */
  9977. public static function currentRouteUses($action)
  9978. {
  9979. /** @var \Illuminate\Routing\Router $instance */
  9980. return $instance->currentRouteUses($action);
  9981. }
  9982. /**
  9983. * Register the typical authentication routes for an application.
  9984. *
  9985. * @return void
  9986. * @static
  9987. */
  9988. public static function auth()
  9989. {
  9990. /** @var \Illuminate\Routing\Router $instance */
  9991. $instance->auth();
  9992. }
  9993. /**
  9994. * Set the unmapped global resource parameters to singular.
  9995. *
  9996. * @param bool $singular
  9997. * @return void
  9998. * @static
  9999. */
  10000. public static function singularResourceParameters($singular = true)
  10001. {
  10002. /** @var \Illuminate\Routing\Router $instance */
  10003. $instance->singularResourceParameters($singular);
  10004. }
  10005. /**
  10006. * Set the global resource parameter mapping.
  10007. *
  10008. * @param array $parameters
  10009. * @return void
  10010. * @static
  10011. */
  10012. public static function resourceParameters($parameters = array())
  10013. {
  10014. /** @var \Illuminate\Routing\Router $instance */
  10015. $instance->resourceParameters($parameters);
  10016. }
  10017. /**
  10018. * Get or set the verbs used in the resource URIs.
  10019. *
  10020. * @param array $verbs
  10021. * @return array|null
  10022. * @static
  10023. */
  10024. public static function resourceVerbs($verbs = array())
  10025. {
  10026. /** @var \Illuminate\Routing\Router $instance */
  10027. return $instance->resourceVerbs($verbs);
  10028. }
  10029. /**
  10030. * Get the underlying route collection.
  10031. *
  10032. * @return \Illuminate\Routing\RouteCollection
  10033. * @static
  10034. */
  10035. public static function getRoutes()
  10036. {
  10037. /** @var \Illuminate\Routing\Router $instance */
  10038. return $instance->getRoutes();
  10039. }
  10040. /**
  10041. * Set the route collection instance.
  10042. *
  10043. * @param \Illuminate\Routing\RouteCollection $routes
  10044. * @return void
  10045. * @static
  10046. */
  10047. public static function setRoutes($routes)
  10048. {
  10049. /** @var \Illuminate\Routing\Router $instance */
  10050. $instance->setRoutes($routes);
  10051. }
  10052. /**
  10053. * Register a custom macro.
  10054. *
  10055. * @param string $name
  10056. * @param object|callable $macro
  10057. * @return void
  10058. * @static
  10059. */
  10060. public static function macro($name, $macro)
  10061. {
  10062. \Illuminate\Routing\Router::macro($name, $macro);
  10063. }
  10064. /**
  10065. * Mix another object into the class.
  10066. *
  10067. * @param object $mixin
  10068. * @return void
  10069. * @static
  10070. */
  10071. public static function mixin($mixin)
  10072. {
  10073. \Illuminate\Routing\Router::mixin($mixin);
  10074. }
  10075. /**
  10076. * Checks if macro is registered.
  10077. *
  10078. * @param string $name
  10079. * @return bool
  10080. * @static
  10081. */
  10082. public static function hasMacro($name)
  10083. {
  10084. return \Illuminate\Routing\Router::hasMacro($name);
  10085. }
  10086. /**
  10087. * Dynamically handle calls to the class.
  10088. *
  10089. * @param string $method
  10090. * @param array $parameters
  10091. * @return mixed
  10092. * @throws \BadMethodCallException
  10093. * @static
  10094. */
  10095. public static function macroCall($method, $parameters)
  10096. {
  10097. /** @var \Illuminate\Routing\Router $instance */
  10098. return $instance->macroCall($method, $parameters);
  10099. }
  10100. }
  10101. /**
  10102. *
  10103. *
  10104. * @see \Illuminate\Database\Schema\Builder
  10105. */
  10106. class Schema {
  10107. /**
  10108. * Determine if the given table exists.
  10109. *
  10110. * @param string $table
  10111. * @return bool
  10112. * @static
  10113. */
  10114. public static function hasTable($table)
  10115. {
  10116. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10117. return $instance->hasTable($table);
  10118. }
  10119. /**
  10120. * Get the column listing for a given table.
  10121. *
  10122. * @param string $table
  10123. * @return array
  10124. * @static
  10125. */
  10126. public static function getColumnListing($table)
  10127. {
  10128. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10129. return $instance->getColumnListing($table);
  10130. }
  10131. /**
  10132. * Drop all tables from the database.
  10133. *
  10134. * @return void
  10135. * @static
  10136. */
  10137. public static function dropAllTables()
  10138. {
  10139. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10140. $instance->dropAllTables();
  10141. }
  10142. /**
  10143. * Set the default string length for migrations.
  10144. *
  10145. * @param int $length
  10146. * @return void
  10147. * @static
  10148. */
  10149. public static function defaultStringLength($length)
  10150. {
  10151. //Method inherited from \Illuminate\Database\Schema\Builder
  10152. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  10153. }
  10154. /**
  10155. * Determine if the given table has a given column.
  10156. *
  10157. * @param string $table
  10158. * @param string $column
  10159. * @return bool
  10160. * @static
  10161. */
  10162. public static function hasColumn($table, $column)
  10163. {
  10164. //Method inherited from \Illuminate\Database\Schema\Builder
  10165. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10166. return $instance->hasColumn($table, $column);
  10167. }
  10168. /**
  10169. * Determine if the given table has given columns.
  10170. *
  10171. * @param string $table
  10172. * @param array $columns
  10173. * @return bool
  10174. * @static
  10175. */
  10176. public static function hasColumns($table, $columns)
  10177. {
  10178. //Method inherited from \Illuminate\Database\Schema\Builder
  10179. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10180. return $instance->hasColumns($table, $columns);
  10181. }
  10182. /**
  10183. * Get the data type for the given column name.
  10184. *
  10185. * @param string $table
  10186. * @param string $column
  10187. * @return string
  10188. * @static
  10189. */
  10190. public static function getColumnType($table, $column)
  10191. {
  10192. //Method inherited from \Illuminate\Database\Schema\Builder
  10193. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10194. return $instance->getColumnType($table, $column);
  10195. }
  10196. /**
  10197. * Modify a table on the schema.
  10198. *
  10199. * @param string $table
  10200. * @param \Closure $callback
  10201. * @return void
  10202. * @static
  10203. */
  10204. public static function table($table, $callback)
  10205. {
  10206. //Method inherited from \Illuminate\Database\Schema\Builder
  10207. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10208. $instance->table($table, $callback);
  10209. }
  10210. /**
  10211. * Create a new table on the schema.
  10212. *
  10213. * @param string $table
  10214. * @param \Closure $callback
  10215. * @return void
  10216. * @static
  10217. */
  10218. public static function create($table, $callback)
  10219. {
  10220. //Method inherited from \Illuminate\Database\Schema\Builder
  10221. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10222. $instance->create($table, $callback);
  10223. }
  10224. /**
  10225. * Drop a table from the schema.
  10226. *
  10227. * @param string $table
  10228. * @return void
  10229. * @static
  10230. */
  10231. public static function drop($table)
  10232. {
  10233. //Method inherited from \Illuminate\Database\Schema\Builder
  10234. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10235. $instance->drop($table);
  10236. }
  10237. /**
  10238. * Drop a table from the schema if it exists.
  10239. *
  10240. * @param string $table
  10241. * @return void
  10242. * @static
  10243. */
  10244. public static function dropIfExists($table)
  10245. {
  10246. //Method inherited from \Illuminate\Database\Schema\Builder
  10247. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10248. $instance->dropIfExists($table);
  10249. }
  10250. /**
  10251. * Rename a table on the schema.
  10252. *
  10253. * @param string $from
  10254. * @param string $to
  10255. * @return void
  10256. * @static
  10257. */
  10258. public static function rename($from, $to)
  10259. {
  10260. //Method inherited from \Illuminate\Database\Schema\Builder
  10261. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10262. $instance->rename($from, $to);
  10263. }
  10264. /**
  10265. * Enable foreign key constraints.
  10266. *
  10267. * @return bool
  10268. * @static
  10269. */
  10270. public static function enableForeignKeyConstraints()
  10271. {
  10272. //Method inherited from \Illuminate\Database\Schema\Builder
  10273. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10274. return $instance->enableForeignKeyConstraints();
  10275. }
  10276. /**
  10277. * Disable foreign key constraints.
  10278. *
  10279. * @return bool
  10280. * @static
  10281. */
  10282. public static function disableForeignKeyConstraints()
  10283. {
  10284. //Method inherited from \Illuminate\Database\Schema\Builder
  10285. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10286. return $instance->disableForeignKeyConstraints();
  10287. }
  10288. /**
  10289. * Get the database connection instance.
  10290. *
  10291. * @return \Illuminate\Database\Connection
  10292. * @static
  10293. */
  10294. public static function getConnection()
  10295. {
  10296. //Method inherited from \Illuminate\Database\Schema\Builder
  10297. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10298. return $instance->getConnection();
  10299. }
  10300. /**
  10301. * Set the database connection instance.
  10302. *
  10303. * @param \Illuminate\Database\Connection $connection
  10304. * @return \Illuminate\Database\Schema\MySqlBuilder
  10305. * @static
  10306. */
  10307. public static function setConnection($connection)
  10308. {
  10309. //Method inherited from \Illuminate\Database\Schema\Builder
  10310. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10311. return $instance->setConnection($connection);
  10312. }
  10313. /**
  10314. * Set the Schema Blueprint resolver callback.
  10315. *
  10316. * @param \Closure $resolver
  10317. * @return void
  10318. * @static
  10319. */
  10320. public static function blueprintResolver($resolver)
  10321. {
  10322. //Method inherited from \Illuminate\Database\Schema\Builder
  10323. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10324. $instance->blueprintResolver($resolver);
  10325. }
  10326. }
  10327. /**
  10328. *
  10329. *
  10330. * @see \Illuminate\Session\SessionManager
  10331. * @see \Illuminate\Session\Store
  10332. */
  10333. class Session {
  10334. /**
  10335. * Get the session configuration.
  10336. *
  10337. * @return array
  10338. * @static
  10339. */
  10340. public static function getSessionConfig()
  10341. {
  10342. /** @var \Illuminate\Session\SessionManager $instance */
  10343. return $instance->getSessionConfig();
  10344. }
  10345. /**
  10346. * Get the default session driver name.
  10347. *
  10348. * @return string
  10349. * @static
  10350. */
  10351. public static function getDefaultDriver()
  10352. {
  10353. /** @var \Illuminate\Session\SessionManager $instance */
  10354. return $instance->getDefaultDriver();
  10355. }
  10356. /**
  10357. * Set the default session driver name.
  10358. *
  10359. * @param string $name
  10360. * @return void
  10361. * @static
  10362. */
  10363. public static function setDefaultDriver($name)
  10364. {
  10365. /** @var \Illuminate\Session\SessionManager $instance */
  10366. $instance->setDefaultDriver($name);
  10367. }
  10368. /**
  10369. * Get a driver instance.
  10370. *
  10371. * @param string $driver
  10372. * @return mixed
  10373. * @static
  10374. */
  10375. public static function driver($driver = null)
  10376. {
  10377. //Method inherited from \Illuminate\Support\Manager
  10378. /** @var \Illuminate\Session\SessionManager $instance */
  10379. return $instance->driver($driver);
  10380. }
  10381. /**
  10382. * Register a custom driver creator Closure.
  10383. *
  10384. * @param string $driver
  10385. * @param \Closure $callback
  10386. * @return \Illuminate\Session\SessionManager
  10387. * @static
  10388. */
  10389. public static function extend($driver, $callback)
  10390. {
  10391. //Method inherited from \Illuminate\Support\Manager
  10392. /** @var \Illuminate\Session\SessionManager $instance */
  10393. return $instance->extend($driver, $callback);
  10394. }
  10395. /**
  10396. * Get all of the created "drivers".
  10397. *
  10398. * @return array
  10399. * @static
  10400. */
  10401. public static function getDrivers()
  10402. {
  10403. //Method inherited from \Illuminate\Support\Manager
  10404. /** @var \Illuminate\Session\SessionManager $instance */
  10405. return $instance->getDrivers();
  10406. }
  10407. /**
  10408. * Start the session, reading the data from a handler.
  10409. *
  10410. * @return bool
  10411. * @static
  10412. */
  10413. public static function start()
  10414. {
  10415. /** @var \Illuminate\Session\Store $instance */
  10416. return $instance->start();
  10417. }
  10418. /**
  10419. * Save the session data to storage.
  10420. *
  10421. * @return bool
  10422. * @static
  10423. */
  10424. public static function save()
  10425. {
  10426. /** @var \Illuminate\Session\Store $instance */
  10427. return $instance->save();
  10428. }
  10429. /**
  10430. * Age the flash data for the session.
  10431. *
  10432. * @return void
  10433. * @static
  10434. */
  10435. public static function ageFlashData()
  10436. {
  10437. /** @var \Illuminate\Session\Store $instance */
  10438. $instance->ageFlashData();
  10439. }
  10440. /**
  10441. * Get all of the session data.
  10442. *
  10443. * @return array
  10444. * @static
  10445. */
  10446. public static function all()
  10447. {
  10448. /** @var \Illuminate\Session\Store $instance */
  10449. return $instance->all();
  10450. }
  10451. /**
  10452. * Checks if a key exists.
  10453. *
  10454. * @param string|array $key
  10455. * @return bool
  10456. * @static
  10457. */
  10458. public static function exists($key)
  10459. {
  10460. /** @var \Illuminate\Session\Store $instance */
  10461. return $instance->exists($key);
  10462. }
  10463. /**
  10464. * Checks if a key is present and not null.
  10465. *
  10466. * @param string|array $key
  10467. * @return bool
  10468. * @static
  10469. */
  10470. public static function has($key)
  10471. {
  10472. /** @var \Illuminate\Session\Store $instance */
  10473. return $instance->has($key);
  10474. }
  10475. /**
  10476. * Get an item from the session.
  10477. *
  10478. * @param string $key
  10479. * @param mixed $default
  10480. * @return mixed
  10481. * @static
  10482. */
  10483. public static function get($key, $default = null)
  10484. {
  10485. /** @var \Illuminate\Session\Store $instance */
  10486. return $instance->get($key, $default);
  10487. }
  10488. /**
  10489. * Get the value of a given key and then forget it.
  10490. *
  10491. * @param string $key
  10492. * @param string $default
  10493. * @return mixed
  10494. * @static
  10495. */
  10496. public static function pull($key, $default = null)
  10497. {
  10498. /** @var \Illuminate\Session\Store $instance */
  10499. return $instance->pull($key, $default);
  10500. }
  10501. /**
  10502. * Determine if the session contains old input.
  10503. *
  10504. * @param string $key
  10505. * @return bool
  10506. * @static
  10507. */
  10508. public static function hasOldInput($key = null)
  10509. {
  10510. /** @var \Illuminate\Session\Store $instance */
  10511. return $instance->hasOldInput($key);
  10512. }
  10513. /**
  10514. * Get the requested item from the flashed input array.
  10515. *
  10516. * @param string $key
  10517. * @param mixed $default
  10518. * @return mixed
  10519. * @static
  10520. */
  10521. public static function getOldInput($key = null, $default = null)
  10522. {
  10523. /** @var \Illuminate\Session\Store $instance */
  10524. return $instance->getOldInput($key, $default);
  10525. }
  10526. /**
  10527. * Replace the given session attributes entirely.
  10528. *
  10529. * @param array $attributes
  10530. * @return void
  10531. * @static
  10532. */
  10533. public static function replace($attributes)
  10534. {
  10535. /** @var \Illuminate\Session\Store $instance */
  10536. $instance->replace($attributes);
  10537. }
  10538. /**
  10539. * Put a key / value pair or array of key / value pairs in the session.
  10540. *
  10541. * @param string|array $key
  10542. * @param mixed $value
  10543. * @return void
  10544. * @static
  10545. */
  10546. public static function put($key, $value = null)
  10547. {
  10548. /** @var \Illuminate\Session\Store $instance */
  10549. $instance->put($key, $value);
  10550. }
  10551. /**
  10552. * Get an item from the session, or store the default value.
  10553. *
  10554. * @param string $key
  10555. * @param \Closure $callback
  10556. * @return mixed
  10557. * @static
  10558. */
  10559. public static function remember($key, $callback)
  10560. {
  10561. /** @var \Illuminate\Session\Store $instance */
  10562. return $instance->remember($key, $callback);
  10563. }
  10564. /**
  10565. * Push a value onto a session array.
  10566. *
  10567. * @param string $key
  10568. * @param mixed $value
  10569. * @return void
  10570. * @static
  10571. */
  10572. public static function push($key, $value)
  10573. {
  10574. /** @var \Illuminate\Session\Store $instance */
  10575. $instance->push($key, $value);
  10576. }
  10577. /**
  10578. * Increment the value of an item in the session.
  10579. *
  10580. * @param string $key
  10581. * @param int $amount
  10582. * @return mixed
  10583. * @static
  10584. */
  10585. public static function increment($key, $amount = 1)
  10586. {
  10587. /** @var \Illuminate\Session\Store $instance */
  10588. return $instance->increment($key, $amount);
  10589. }
  10590. /**
  10591. * Decrement the value of an item in the session.
  10592. *
  10593. * @param string $key
  10594. * @param int $amount
  10595. * @return int
  10596. * @static
  10597. */
  10598. public static function decrement($key, $amount = 1)
  10599. {
  10600. /** @var \Illuminate\Session\Store $instance */
  10601. return $instance->decrement($key, $amount);
  10602. }
  10603. /**
  10604. * Flash a key / value pair to the session.
  10605. *
  10606. * @param string $key
  10607. * @param mixed $value
  10608. * @return void
  10609. * @static
  10610. */
  10611. public static function flash($key, $value = true)
  10612. {
  10613. /** @var \Illuminate\Session\Store $instance */
  10614. $instance->flash($key, $value);
  10615. }
  10616. /**
  10617. * Flash a key / value pair to the session for immediate use.
  10618. *
  10619. * @param string $key
  10620. * @param mixed $value
  10621. * @return void
  10622. * @static
  10623. */
  10624. public static function now($key, $value)
  10625. {
  10626. /** @var \Illuminate\Session\Store $instance */
  10627. $instance->now($key, $value);
  10628. }
  10629. /**
  10630. * Reflash all of the session flash data.
  10631. *
  10632. * @return void
  10633. * @static
  10634. */
  10635. public static function reflash()
  10636. {
  10637. /** @var \Illuminate\Session\Store $instance */
  10638. $instance->reflash();
  10639. }
  10640. /**
  10641. * Reflash a subset of the current flash data.
  10642. *
  10643. * @param array|mixed $keys
  10644. * @return void
  10645. * @static
  10646. */
  10647. public static function keep($keys = null)
  10648. {
  10649. /** @var \Illuminate\Session\Store $instance */
  10650. $instance->keep($keys);
  10651. }
  10652. /**
  10653. * Flash an input array to the session.
  10654. *
  10655. * @param array $value
  10656. * @return void
  10657. * @static
  10658. */
  10659. public static function flashInput($value)
  10660. {
  10661. /** @var \Illuminate\Session\Store $instance */
  10662. $instance->flashInput($value);
  10663. }
  10664. /**
  10665. * Remove an item from the session, returning its value.
  10666. *
  10667. * @param string $key
  10668. * @return mixed
  10669. * @static
  10670. */
  10671. public static function remove($key)
  10672. {
  10673. /** @var \Illuminate\Session\Store $instance */
  10674. return $instance->remove($key);
  10675. }
  10676. /**
  10677. * Remove one or many items from the session.
  10678. *
  10679. * @param string|array $keys
  10680. * @return void
  10681. * @static
  10682. */
  10683. public static function forget($keys)
  10684. {
  10685. /** @var \Illuminate\Session\Store $instance */
  10686. $instance->forget($keys);
  10687. }
  10688. /**
  10689. * Remove all of the items from the session.
  10690. *
  10691. * @return void
  10692. * @static
  10693. */
  10694. public static function flush()
  10695. {
  10696. /** @var \Illuminate\Session\Store $instance */
  10697. $instance->flush();
  10698. }
  10699. /**
  10700. * Flush the session data and regenerate the ID.
  10701. *
  10702. * @return bool
  10703. * @static
  10704. */
  10705. public static function invalidate()
  10706. {
  10707. /** @var \Illuminate\Session\Store $instance */
  10708. return $instance->invalidate();
  10709. }
  10710. /**
  10711. * Generate a new session identifier.
  10712. *
  10713. * @param bool $destroy
  10714. * @return bool
  10715. * @static
  10716. */
  10717. public static function regenerate($destroy = false)
  10718. {
  10719. /** @var \Illuminate\Session\Store $instance */
  10720. return $instance->regenerate($destroy);
  10721. }
  10722. /**
  10723. * Generate a new session ID for the session.
  10724. *
  10725. * @param bool $destroy
  10726. * @return bool
  10727. * @static
  10728. */
  10729. public static function migrate($destroy = false)
  10730. {
  10731. /** @var \Illuminate\Session\Store $instance */
  10732. return $instance->migrate($destroy);
  10733. }
  10734. /**
  10735. * Determine if the session has been started.
  10736. *
  10737. * @return bool
  10738. * @static
  10739. */
  10740. public static function isStarted()
  10741. {
  10742. /** @var \Illuminate\Session\Store $instance */
  10743. return $instance->isStarted();
  10744. }
  10745. /**
  10746. * Get the name of the session.
  10747. *
  10748. * @return string
  10749. * @static
  10750. */
  10751. public static function getName()
  10752. {
  10753. /** @var \Illuminate\Session\Store $instance */
  10754. return $instance->getName();
  10755. }
  10756. /**
  10757. * Set the name of the session.
  10758. *
  10759. * @param string $name
  10760. * @return void
  10761. * @static
  10762. */
  10763. public static function setName($name)
  10764. {
  10765. /** @var \Illuminate\Session\Store $instance */
  10766. $instance->setName($name);
  10767. }
  10768. /**
  10769. * Get the current session ID.
  10770. *
  10771. * @return string
  10772. * @static
  10773. */
  10774. public static function getId()
  10775. {
  10776. /** @var \Illuminate\Session\Store $instance */
  10777. return $instance->getId();
  10778. }
  10779. /**
  10780. * Set the session ID.
  10781. *
  10782. * @param string $id
  10783. * @return void
  10784. * @static
  10785. */
  10786. public static function setId($id)
  10787. {
  10788. /** @var \Illuminate\Session\Store $instance */
  10789. $instance->setId($id);
  10790. }
  10791. /**
  10792. * Determine if this is a valid session ID.
  10793. *
  10794. * @param string $id
  10795. * @return bool
  10796. * @static
  10797. */
  10798. public static function isValidId($id)
  10799. {
  10800. /** @var \Illuminate\Session\Store $instance */
  10801. return $instance->isValidId($id);
  10802. }
  10803. /**
  10804. * Set the existence of the session on the handler if applicable.
  10805. *
  10806. * @param bool $value
  10807. * @return void
  10808. * @static
  10809. */
  10810. public static function setExists($value)
  10811. {
  10812. /** @var \Illuminate\Session\Store $instance */
  10813. $instance->setExists($value);
  10814. }
  10815. /**
  10816. * Get the CSRF token value.
  10817. *
  10818. * @return string
  10819. * @static
  10820. */
  10821. public static function token()
  10822. {
  10823. /** @var \Illuminate\Session\Store $instance */
  10824. return $instance->token();
  10825. }
  10826. /**
  10827. * Regenerate the CSRF token value.
  10828. *
  10829. * @return void
  10830. * @static
  10831. */
  10832. public static function regenerateToken()
  10833. {
  10834. /** @var \Illuminate\Session\Store $instance */
  10835. $instance->regenerateToken();
  10836. }
  10837. /**
  10838. * Get the previous URL from the session.
  10839. *
  10840. * @return string|null
  10841. * @static
  10842. */
  10843. public static function previousUrl()
  10844. {
  10845. /** @var \Illuminate\Session\Store $instance */
  10846. return $instance->previousUrl();
  10847. }
  10848. /**
  10849. * Set the "previous" URL in the session.
  10850. *
  10851. * @param string $url
  10852. * @return void
  10853. * @static
  10854. */
  10855. public static function setPreviousUrl($url)
  10856. {
  10857. /** @var \Illuminate\Session\Store $instance */
  10858. $instance->setPreviousUrl($url);
  10859. }
  10860. /**
  10861. * Get the underlying session handler implementation.
  10862. *
  10863. * @return \SessionHandlerInterface
  10864. * @static
  10865. */
  10866. public static function getHandler()
  10867. {
  10868. /** @var \Illuminate\Session\Store $instance */
  10869. return $instance->getHandler();
  10870. }
  10871. /**
  10872. * Determine if the session handler needs a request.
  10873. *
  10874. * @return bool
  10875. * @static
  10876. */
  10877. public static function handlerNeedsRequest()
  10878. {
  10879. /** @var \Illuminate\Session\Store $instance */
  10880. return $instance->handlerNeedsRequest();
  10881. }
  10882. /**
  10883. * Set the request on the handler instance.
  10884. *
  10885. * @param \Illuminate\Http\Request $request
  10886. * @return void
  10887. * @static
  10888. */
  10889. public static function setRequestOnHandler($request)
  10890. {
  10891. /** @var \Illuminate\Session\Store $instance */
  10892. $instance->setRequestOnHandler($request);
  10893. }
  10894. }
  10895. /**
  10896. *
  10897. *
  10898. * @see \Illuminate\Filesystem\FilesystemManager
  10899. */
  10900. class Storage {
  10901. /**
  10902. * Get a filesystem instance.
  10903. *
  10904. * @param string $name
  10905. * @return \Illuminate\Filesystem\FilesystemAdapter
  10906. * @static
  10907. */
  10908. public static function drive($name = null)
  10909. {
  10910. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10911. return $instance->drive($name);
  10912. }
  10913. /**
  10914. * Get a filesystem instance.
  10915. *
  10916. * @param string $name
  10917. * @return \Illuminate\Filesystem\FilesystemAdapter
  10918. * @static
  10919. */
  10920. public static function disk($name = null)
  10921. {
  10922. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10923. return $instance->disk($name);
  10924. }
  10925. /**
  10926. * Get a default cloud filesystem instance.
  10927. *
  10928. * @return \Illuminate\Filesystem\FilesystemAdapter
  10929. * @static
  10930. */
  10931. public static function cloud()
  10932. {
  10933. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10934. return $instance->cloud();
  10935. }
  10936. /**
  10937. * Create an instance of the local driver.
  10938. *
  10939. * @param array $config
  10940. * @return \Illuminate\Filesystem\FilesystemAdapter
  10941. * @static
  10942. */
  10943. public static function createLocalDriver($config)
  10944. {
  10945. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10946. return $instance->createLocalDriver($config);
  10947. }
  10948. /**
  10949. * Create an instance of the ftp driver.
  10950. *
  10951. * @param array $config
  10952. * @return \Illuminate\Filesystem\FilesystemAdapter
  10953. * @static
  10954. */
  10955. public static function createFtpDriver($config)
  10956. {
  10957. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10958. return $instance->createFtpDriver($config);
  10959. }
  10960. /**
  10961. * Create an instance of the Amazon S3 driver.
  10962. *
  10963. * @param array $config
  10964. * @return \Illuminate\Contracts\Filesystem\Cloud
  10965. * @static
  10966. */
  10967. public static function createS3Driver($config)
  10968. {
  10969. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10970. return $instance->createS3Driver($config);
  10971. }
  10972. /**
  10973. * Create an instance of the Rackspace driver.
  10974. *
  10975. * @param array $config
  10976. * @return \Illuminate\Contracts\Filesystem\Cloud
  10977. * @static
  10978. */
  10979. public static function createRackspaceDriver($config)
  10980. {
  10981. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10982. return $instance->createRackspaceDriver($config);
  10983. }
  10984. /**
  10985. * Set the given disk instance.
  10986. *
  10987. * @param string $name
  10988. * @param mixed $disk
  10989. * @return void
  10990. * @static
  10991. */
  10992. public static function set($name, $disk)
  10993. {
  10994. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10995. $instance->set($name, $disk);
  10996. }
  10997. /**
  10998. * Get the default driver name.
  10999. *
  11000. * @return string
  11001. * @static
  11002. */
  11003. public static function getDefaultDriver()
  11004. {
  11005. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11006. return $instance->getDefaultDriver();
  11007. }
  11008. /**
  11009. * Get the default cloud driver name.
  11010. *
  11011. * @return string
  11012. * @static
  11013. */
  11014. public static function getDefaultCloudDriver()
  11015. {
  11016. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11017. return $instance->getDefaultCloudDriver();
  11018. }
  11019. /**
  11020. * Register a custom driver creator Closure.
  11021. *
  11022. * @param string $driver
  11023. * @param \Closure $callback
  11024. * @return \Illuminate\Filesystem\FilesystemManager
  11025. * @static
  11026. */
  11027. public static function extend($driver, $callback)
  11028. {
  11029. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11030. return $instance->extend($driver, $callback);
  11031. }
  11032. /**
  11033. * Assert that the given file exists.
  11034. *
  11035. * @param string $path
  11036. * @return void
  11037. * @static
  11038. */
  11039. public static function assertExists($path)
  11040. {
  11041. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11042. $instance->assertExists($path);
  11043. }
  11044. /**
  11045. * Assert that the given file does not exist.
  11046. *
  11047. * @param string $path
  11048. * @return void
  11049. * @static
  11050. */
  11051. public static function assertMissing($path)
  11052. {
  11053. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11054. $instance->assertMissing($path);
  11055. }
  11056. /**
  11057. * Determine if a file exists.
  11058. *
  11059. * @param string $path
  11060. * @return bool
  11061. * @static
  11062. */
  11063. public static function exists($path)
  11064. {
  11065. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11066. return $instance->exists($path);
  11067. }
  11068. /**
  11069. * Get the full path for the file at the given "short" path.
  11070. *
  11071. * @param string $path
  11072. * @return string
  11073. * @static
  11074. */
  11075. public static function path($path)
  11076. {
  11077. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11078. return $instance->path($path);
  11079. }
  11080. /**
  11081. * Get the contents of a file.
  11082. *
  11083. * @param string $path
  11084. * @return string
  11085. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  11086. * @static
  11087. */
  11088. public static function get($path)
  11089. {
  11090. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11091. return $instance->get($path);
  11092. }
  11093. /**
  11094. * Create a streamed response for a given file.
  11095. *
  11096. * @param string $path
  11097. * @param string|null $name
  11098. * @param array|null $headers
  11099. * @param string|null $disposition
  11100. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11101. * @static
  11102. */
  11103. public static function response($path, $name = null, $headers = array(), $disposition = 'inline')
  11104. {
  11105. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11106. return $instance->response($path, $name, $headers, $disposition);
  11107. }
  11108. /**
  11109. * Create a streamed download response for a given file.
  11110. *
  11111. * @param string $path
  11112. * @param string|null $name
  11113. * @param array|null $headers
  11114. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11115. * @static
  11116. */
  11117. public static function download($path, $name = null, $headers = array())
  11118. {
  11119. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11120. return $instance->download($path, $name, $headers);
  11121. }
  11122. /**
  11123. * Write the contents of a file.
  11124. *
  11125. * @param string $path
  11126. * @param string|resource $contents
  11127. * @param mixed $options
  11128. * @return bool
  11129. * @static
  11130. */
  11131. public static function put($path, $contents, $options = array())
  11132. {
  11133. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11134. return $instance->put($path, $contents, $options);
  11135. }
  11136. /**
  11137. * Store the uploaded file on the disk.
  11138. *
  11139. * @param string $path
  11140. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11141. * @param array $options
  11142. * @return string|false
  11143. * @static
  11144. */
  11145. public static function putFile($path, $file, $options = array())
  11146. {
  11147. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11148. return $instance->putFile($path, $file, $options);
  11149. }
  11150. /**
  11151. * Store the uploaded file on the disk with a given name.
  11152. *
  11153. * @param string $path
  11154. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11155. * @param string $name
  11156. * @param array $options
  11157. * @return string|false
  11158. * @static
  11159. */
  11160. public static function putFileAs($path, $file, $name, $options = array())
  11161. {
  11162. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11163. return $instance->putFileAs($path, $file, $name, $options);
  11164. }
  11165. /**
  11166. * Get the visibility for the given path.
  11167. *
  11168. * @param string $path
  11169. * @return string
  11170. * @static
  11171. */
  11172. public static function getVisibility($path)
  11173. {
  11174. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11175. return $instance->getVisibility($path);
  11176. }
  11177. /**
  11178. * Set the visibility for the given path.
  11179. *
  11180. * @param string $path
  11181. * @param string $visibility
  11182. * @return void
  11183. * @static
  11184. */
  11185. public static function setVisibility($path, $visibility)
  11186. {
  11187. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11188. $instance->setVisibility($path, $visibility);
  11189. }
  11190. /**
  11191. * Prepend to a file.
  11192. *
  11193. * @param string $path
  11194. * @param string $data
  11195. * @param string $separator
  11196. * @return int
  11197. * @static
  11198. */
  11199. public static function prepend($path, $data, $separator = '')
  11200. {
  11201. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11202. return $instance->prepend($path, $data, $separator);
  11203. }
  11204. /**
  11205. * Append to a file.
  11206. *
  11207. * @param string $path
  11208. * @param string $data
  11209. * @param string $separator
  11210. * @return int
  11211. * @static
  11212. */
  11213. public static function append($path, $data, $separator = '')
  11214. {
  11215. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11216. return $instance->append($path, $data, $separator);
  11217. }
  11218. /**
  11219. * Delete the file at a given path.
  11220. *
  11221. * @param string|array $paths
  11222. * @return bool
  11223. * @static
  11224. */
  11225. public static function delete($paths)
  11226. {
  11227. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11228. return $instance->delete($paths);
  11229. }
  11230. /**
  11231. * Copy a file to a new location.
  11232. *
  11233. * @param string $from
  11234. * @param string $to
  11235. * @return bool
  11236. * @static
  11237. */
  11238. public static function copy($from, $to)
  11239. {
  11240. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11241. return $instance->copy($from, $to);
  11242. }
  11243. /**
  11244. * Move a file to a new location.
  11245. *
  11246. * @param string $from
  11247. * @param string $to
  11248. * @return bool
  11249. * @static
  11250. */
  11251. public static function move($from, $to)
  11252. {
  11253. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11254. return $instance->move($from, $to);
  11255. }
  11256. /**
  11257. * Get the file size of a given file.
  11258. *
  11259. * @param string $path
  11260. * @return int
  11261. * @static
  11262. */
  11263. public static function size($path)
  11264. {
  11265. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11266. return $instance->size($path);
  11267. }
  11268. /**
  11269. * Get the mime-type of a given file.
  11270. *
  11271. * @param string $path
  11272. * @return string|false
  11273. * @static
  11274. */
  11275. public static function mimeType($path)
  11276. {
  11277. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11278. return $instance->mimeType($path);
  11279. }
  11280. /**
  11281. * Get the file's last modification time.
  11282. *
  11283. * @param string $path
  11284. * @return int
  11285. * @static
  11286. */
  11287. public static function lastModified($path)
  11288. {
  11289. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11290. return $instance->lastModified($path);
  11291. }
  11292. /**
  11293. * Get the URL for the file at the given path.
  11294. *
  11295. * @param string $path
  11296. * @return string
  11297. * @static
  11298. */
  11299. public static function url($path)
  11300. {
  11301. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11302. return $instance->url($path);
  11303. }
  11304. /**
  11305. * Get a temporary URL for the file at the given path.
  11306. *
  11307. * @param string $path
  11308. * @param \DateTimeInterface $expiration
  11309. * @param array $options
  11310. * @return string
  11311. * @static
  11312. */
  11313. public static function temporaryUrl($path, $expiration, $options = array())
  11314. {
  11315. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11316. return $instance->temporaryUrl($path, $expiration, $options);
  11317. }
  11318. /**
  11319. * Get a temporary URL for the file at the given path.
  11320. *
  11321. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  11322. * @param string $path
  11323. * @param \DateTimeInterface $expiration
  11324. * @param array $options
  11325. * @return string
  11326. * @static
  11327. */
  11328. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  11329. {
  11330. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11331. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  11332. }
  11333. /**
  11334. * Get a temporary URL for the file at the given path.
  11335. *
  11336. * @param \League\Flysystem\Rackspace\RackspaceAdapter $adapter
  11337. * @param string $path
  11338. * @param \DateTimeInterface $expiration
  11339. * @param array $options
  11340. * @return string
  11341. * @static
  11342. */
  11343. public static function getRackspaceTemporaryUrl($adapter, $path, $expiration, $options)
  11344. {
  11345. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11346. return $instance->getRackspaceTemporaryUrl($adapter, $path, $expiration, $options);
  11347. }
  11348. /**
  11349. * Get an array of all files in a directory.
  11350. *
  11351. * @param string|null $directory
  11352. * @param bool $recursive
  11353. * @return array
  11354. * @static
  11355. */
  11356. public static function files($directory = null, $recursive = false)
  11357. {
  11358. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11359. return $instance->files($directory, $recursive);
  11360. }
  11361. /**
  11362. * Get all of the files from the given directory (recursive).
  11363. *
  11364. * @param string|null $directory
  11365. * @return array
  11366. * @static
  11367. */
  11368. public static function allFiles($directory = null)
  11369. {
  11370. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11371. return $instance->allFiles($directory);
  11372. }
  11373. /**
  11374. * Get all of the directories within a given directory.
  11375. *
  11376. * @param string|null $directory
  11377. * @param bool $recursive
  11378. * @return array
  11379. * @static
  11380. */
  11381. public static function directories($directory = null, $recursive = false)
  11382. {
  11383. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11384. return $instance->directories($directory, $recursive);
  11385. }
  11386. /**
  11387. * Get all (recursive) of the directories within a given directory.
  11388. *
  11389. * @param string|null $directory
  11390. * @return array
  11391. * @static
  11392. */
  11393. public static function allDirectories($directory = null)
  11394. {
  11395. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11396. return $instance->allDirectories($directory);
  11397. }
  11398. /**
  11399. * Create a directory.
  11400. *
  11401. * @param string $path
  11402. * @return bool
  11403. * @static
  11404. */
  11405. public static function makeDirectory($path)
  11406. {
  11407. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11408. return $instance->makeDirectory($path);
  11409. }
  11410. /**
  11411. * Recursively delete a directory.
  11412. *
  11413. * @param string $directory
  11414. * @return bool
  11415. * @static
  11416. */
  11417. public static function deleteDirectory($directory)
  11418. {
  11419. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11420. return $instance->deleteDirectory($directory);
  11421. }
  11422. /**
  11423. * Flush the Flysystem cache.
  11424. *
  11425. * @return void
  11426. * @static
  11427. */
  11428. public static function flushCache()
  11429. {
  11430. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11431. $instance->flushCache();
  11432. }
  11433. /**
  11434. * Get the Flysystem driver.
  11435. *
  11436. * @return \League\Flysystem\FilesystemInterface
  11437. * @static
  11438. */
  11439. public static function getDriver()
  11440. {
  11441. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11442. return $instance->getDriver();
  11443. }
  11444. }
  11445. /**
  11446. *
  11447. *
  11448. * @see \Illuminate\Routing\UrlGenerator
  11449. */
  11450. class URL {
  11451. /**
  11452. * Get the full URL for the current request.
  11453. *
  11454. * @return string
  11455. * @static
  11456. */
  11457. public static function full()
  11458. {
  11459. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11460. return $instance->full();
  11461. }
  11462. /**
  11463. * Get the current URL for the request.
  11464. *
  11465. * @return string
  11466. * @static
  11467. */
  11468. public static function current()
  11469. {
  11470. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11471. return $instance->current();
  11472. }
  11473. /**
  11474. * Get the URL for the previous request.
  11475. *
  11476. * @param mixed $fallback
  11477. * @return string
  11478. * @static
  11479. */
  11480. public static function previous($fallback = false)
  11481. {
  11482. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11483. return $instance->previous($fallback);
  11484. }
  11485. /**
  11486. * Generate an absolute URL to the given path.
  11487. *
  11488. * @param string $path
  11489. * @param mixed $extra
  11490. * @param bool|null $secure
  11491. * @return string
  11492. * @static
  11493. */
  11494. public static function to($path, $extra = array(), $secure = null)
  11495. {
  11496. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11497. return $instance->to($path, $extra, $secure);
  11498. }
  11499. /**
  11500. * Generate a secure, absolute URL to the given path.
  11501. *
  11502. * @param string $path
  11503. * @param array $parameters
  11504. * @return string
  11505. * @static
  11506. */
  11507. public static function secure($path, $parameters = array())
  11508. {
  11509. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11510. return $instance->secure($path, $parameters);
  11511. }
  11512. /**
  11513. * Generate the URL to an application asset.
  11514. *
  11515. * @param string $path
  11516. * @param bool|null $secure
  11517. * @return string
  11518. * @static
  11519. */
  11520. public static function asset($path, $secure = null)
  11521. {
  11522. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11523. return $instance->asset($path, $secure);
  11524. }
  11525. /**
  11526. * Generate the URL to a secure asset.
  11527. *
  11528. * @param string $path
  11529. * @return string
  11530. * @static
  11531. */
  11532. public static function secureAsset($path)
  11533. {
  11534. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11535. return $instance->secureAsset($path);
  11536. }
  11537. /**
  11538. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  11539. *
  11540. * @param string $root
  11541. * @param string $path
  11542. * @param bool|null $secure
  11543. * @return string
  11544. * @static
  11545. */
  11546. public static function assetFrom($root, $path, $secure = null)
  11547. {
  11548. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11549. return $instance->assetFrom($root, $path, $secure);
  11550. }
  11551. /**
  11552. * Get the default scheme for a raw URL.
  11553. *
  11554. * @param bool|null $secure
  11555. * @return string
  11556. * @static
  11557. */
  11558. public static function formatScheme($secure)
  11559. {
  11560. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11561. return $instance->formatScheme($secure);
  11562. }
  11563. /**
  11564. * Get the URL to a named route.
  11565. *
  11566. * @param string $name
  11567. * @param mixed $parameters
  11568. * @param bool $absolute
  11569. * @return string
  11570. * @throws \InvalidArgumentException
  11571. * @static
  11572. */
  11573. public static function route($name, $parameters = array(), $absolute = true)
  11574. {
  11575. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11576. return $instance->route($name, $parameters, $absolute);
  11577. }
  11578. /**
  11579. * Get the URL to a controller action.
  11580. *
  11581. * @param string $action
  11582. * @param mixed $parameters
  11583. * @param bool $absolute
  11584. * @return string
  11585. * @throws \InvalidArgumentException
  11586. * @static
  11587. */
  11588. public static function action($action, $parameters = array(), $absolute = true)
  11589. {
  11590. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11591. return $instance->action($action, $parameters, $absolute);
  11592. }
  11593. /**
  11594. * Format the array of URL parameters.
  11595. *
  11596. * @param mixed|array $parameters
  11597. * @return array
  11598. * @static
  11599. */
  11600. public static function formatParameters($parameters)
  11601. {
  11602. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11603. return $instance->formatParameters($parameters);
  11604. }
  11605. /**
  11606. * Get the base URL for the request.
  11607. *
  11608. * @param string $scheme
  11609. * @param string $root
  11610. * @return string
  11611. * @static
  11612. */
  11613. public static function formatRoot($scheme, $root = null)
  11614. {
  11615. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11616. return $instance->formatRoot($scheme, $root);
  11617. }
  11618. /**
  11619. * Format the given URL segments into a single URL.
  11620. *
  11621. * @param string $root
  11622. * @param string $path
  11623. * @return string
  11624. * @static
  11625. */
  11626. public static function format($root, $path)
  11627. {
  11628. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11629. return $instance->format($root, $path);
  11630. }
  11631. /**
  11632. * Determine if the given path is a valid URL.
  11633. *
  11634. * @param string $path
  11635. * @return bool
  11636. * @static
  11637. */
  11638. public static function isValidUrl($path)
  11639. {
  11640. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11641. return $instance->isValidUrl($path);
  11642. }
  11643. /**
  11644. * Set the default named parameters used by the URL generator.
  11645. *
  11646. * @param array $defaults
  11647. * @return void
  11648. * @static
  11649. */
  11650. public static function defaults($defaults)
  11651. {
  11652. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11653. $instance->defaults($defaults);
  11654. }
  11655. /**
  11656. * Get the default named parameters used by the URL generator.
  11657. *
  11658. * @return array
  11659. * @static
  11660. */
  11661. public static function getDefaultParameters()
  11662. {
  11663. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11664. return $instance->getDefaultParameters();
  11665. }
  11666. /**
  11667. * Force the scheme for URLs.
  11668. *
  11669. * @param string $schema
  11670. * @return void
  11671. * @static
  11672. */
  11673. public static function forceScheme($schema)
  11674. {
  11675. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11676. $instance->forceScheme($schema);
  11677. }
  11678. /**
  11679. * Set the forced root URL.
  11680. *
  11681. * @param string $root
  11682. * @return void
  11683. * @static
  11684. */
  11685. public static function forceRootUrl($root)
  11686. {
  11687. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11688. $instance->forceRootUrl($root);
  11689. }
  11690. /**
  11691. * Set a callback to be used to format the host of generated URLs.
  11692. *
  11693. * @param \Closure $callback
  11694. * @return \Illuminate\Routing\UrlGenerator
  11695. * @static
  11696. */
  11697. public static function formatHostUsing($callback)
  11698. {
  11699. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11700. return $instance->formatHostUsing($callback);
  11701. }
  11702. /**
  11703. * Set a callback to be used to format the path of generated URLs.
  11704. *
  11705. * @param \Closure $callback
  11706. * @return \Illuminate\Routing\UrlGenerator
  11707. * @static
  11708. */
  11709. public static function formatPathUsing($callback)
  11710. {
  11711. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11712. return $instance->formatPathUsing($callback);
  11713. }
  11714. /**
  11715. * Get the path formatter being used by the URL generator.
  11716. *
  11717. * @return \Closure
  11718. * @static
  11719. */
  11720. public static function pathFormatter()
  11721. {
  11722. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11723. return $instance->pathFormatter();
  11724. }
  11725. /**
  11726. * Get the request instance.
  11727. *
  11728. * @return \Illuminate\Http\Request
  11729. * @static
  11730. */
  11731. public static function getRequest()
  11732. {
  11733. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11734. return $instance->getRequest();
  11735. }
  11736. /**
  11737. * Set the current request instance.
  11738. *
  11739. * @param \Illuminate\Http\Request $request
  11740. * @return void
  11741. * @static
  11742. */
  11743. public static function setRequest($request)
  11744. {
  11745. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11746. $instance->setRequest($request);
  11747. }
  11748. /**
  11749. * Set the route collection.
  11750. *
  11751. * @param \Illuminate\Routing\RouteCollection $routes
  11752. * @return \Illuminate\Routing\UrlGenerator
  11753. * @static
  11754. */
  11755. public static function setRoutes($routes)
  11756. {
  11757. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11758. return $instance->setRoutes($routes);
  11759. }
  11760. /**
  11761. * Set the session resolver for the generator.
  11762. *
  11763. * @param callable $sessionResolver
  11764. * @return \Illuminate\Routing\UrlGenerator
  11765. * @static
  11766. */
  11767. public static function setSessionResolver($sessionResolver)
  11768. {
  11769. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11770. return $instance->setSessionResolver($sessionResolver);
  11771. }
  11772. /**
  11773. * Set the root controller namespace.
  11774. *
  11775. * @param string $rootNamespace
  11776. * @return \Illuminate\Routing\UrlGenerator
  11777. * @static
  11778. */
  11779. public static function setRootControllerNamespace($rootNamespace)
  11780. {
  11781. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11782. return $instance->setRootControllerNamespace($rootNamespace);
  11783. }
  11784. /**
  11785. * Register a custom macro.
  11786. *
  11787. * @param string $name
  11788. * @param object|callable $macro
  11789. * @return void
  11790. * @static
  11791. */
  11792. public static function macro($name, $macro)
  11793. {
  11794. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  11795. }
  11796. /**
  11797. * Mix another object into the class.
  11798. *
  11799. * @param object $mixin
  11800. * @return void
  11801. * @static
  11802. */
  11803. public static function mixin($mixin)
  11804. {
  11805. \Illuminate\Routing\UrlGenerator::mixin($mixin);
  11806. }
  11807. /**
  11808. * Checks if macro is registered.
  11809. *
  11810. * @param string $name
  11811. * @return bool
  11812. * @static
  11813. */
  11814. public static function hasMacro($name)
  11815. {
  11816. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  11817. }
  11818. }
  11819. /**
  11820. *
  11821. *
  11822. * @see \Illuminate\Validation\Factory
  11823. */
  11824. class Validator {
  11825. /**
  11826. * Create a new Validator instance.
  11827. *
  11828. * @param array $data
  11829. * @param array $rules
  11830. * @param array $messages
  11831. * @param array $customAttributes
  11832. * @return \Illuminate\Validation\Validator
  11833. * @static
  11834. */
  11835. public static function make($data, $rules, $messages = array(), $customAttributes = array())
  11836. {
  11837. /** @var \Illuminate\Validation\Factory $instance */
  11838. return $instance->make($data, $rules, $messages, $customAttributes);
  11839. }
  11840. /**
  11841. * Validate the given data against the provided rules.
  11842. *
  11843. * @param array $data
  11844. * @param array $rules
  11845. * @param array $messages
  11846. * @param array $customAttributes
  11847. * @return void
  11848. * @throws \Illuminate\Validation\ValidationException
  11849. * @static
  11850. */
  11851. public static function validate($data, $rules, $messages = array(), $customAttributes = array())
  11852. {
  11853. /** @var \Illuminate\Validation\Factory $instance */
  11854. $instance->validate($data, $rules, $messages, $customAttributes);
  11855. }
  11856. /**
  11857. * Register a custom validator extension.
  11858. *
  11859. * @param string $rule
  11860. * @param \Closure|string $extension
  11861. * @param string $message
  11862. * @return void
  11863. * @static
  11864. */
  11865. public static function extend($rule, $extension, $message = null)
  11866. {
  11867. /** @var \Illuminate\Validation\Factory $instance */
  11868. $instance->extend($rule, $extension, $message);
  11869. }
  11870. /**
  11871. * Register a custom implicit validator extension.
  11872. *
  11873. * @param string $rule
  11874. * @param \Closure|string $extension
  11875. * @param string $message
  11876. * @return void
  11877. * @static
  11878. */
  11879. public static function extendImplicit($rule, $extension, $message = null)
  11880. {
  11881. /** @var \Illuminate\Validation\Factory $instance */
  11882. $instance->extendImplicit($rule, $extension, $message);
  11883. }
  11884. /**
  11885. * Register a custom dependent validator extension.
  11886. *
  11887. * @param string $rule
  11888. * @param \Closure|string $extension
  11889. * @param string $message
  11890. * @return void
  11891. * @static
  11892. */
  11893. public static function extendDependent($rule, $extension, $message = null)
  11894. {
  11895. /** @var \Illuminate\Validation\Factory $instance */
  11896. $instance->extendDependent($rule, $extension, $message);
  11897. }
  11898. /**
  11899. * Register a custom validator message replacer.
  11900. *
  11901. * @param string $rule
  11902. * @param \Closure|string $replacer
  11903. * @return void
  11904. * @static
  11905. */
  11906. public static function replacer($rule, $replacer)
  11907. {
  11908. /** @var \Illuminate\Validation\Factory $instance */
  11909. $instance->replacer($rule, $replacer);
  11910. }
  11911. /**
  11912. * Set the Validator instance resolver.
  11913. *
  11914. * @param \Closure $resolver
  11915. * @return void
  11916. * @static
  11917. */
  11918. public static function resolver($resolver)
  11919. {
  11920. /** @var \Illuminate\Validation\Factory $instance */
  11921. $instance->resolver($resolver);
  11922. }
  11923. /**
  11924. * Get the Translator implementation.
  11925. *
  11926. * @return \Illuminate\Contracts\Translation\Translator
  11927. * @static
  11928. */
  11929. public static function getTranslator()
  11930. {
  11931. /** @var \Illuminate\Validation\Factory $instance */
  11932. return $instance->getTranslator();
  11933. }
  11934. /**
  11935. * Get the Presence Verifier implementation.
  11936. *
  11937. * @return \Illuminate\Validation\PresenceVerifierInterface
  11938. * @static
  11939. */
  11940. public static function getPresenceVerifier()
  11941. {
  11942. /** @var \Illuminate\Validation\Factory $instance */
  11943. return $instance->getPresenceVerifier();
  11944. }
  11945. /**
  11946. * Set the Presence Verifier implementation.
  11947. *
  11948. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  11949. * @return void
  11950. * @static
  11951. */
  11952. public static function setPresenceVerifier($presenceVerifier)
  11953. {
  11954. /** @var \Illuminate\Validation\Factory $instance */
  11955. $instance->setPresenceVerifier($presenceVerifier);
  11956. }
  11957. }
  11958. /**
  11959. *
  11960. *
  11961. * @see \Illuminate\View\Factory
  11962. */
  11963. class View {
  11964. /**
  11965. * Get the evaluated view contents for the given view.
  11966. *
  11967. * @param string $path
  11968. * @param array $data
  11969. * @param array $mergeData
  11970. * @return \Illuminate\Contracts\View\View
  11971. * @static
  11972. */
  11973. public static function file($path, $data = array(), $mergeData = array())
  11974. {
  11975. /** @var \Illuminate\View\Factory $instance */
  11976. return $instance->file($path, $data, $mergeData);
  11977. }
  11978. /**
  11979. * Get the evaluated view contents for the given view.
  11980. *
  11981. * @param string $view
  11982. * @param array $data
  11983. * @param array $mergeData
  11984. * @return \Illuminate\Contracts\View\View
  11985. * @static
  11986. */
  11987. public static function make($view, $data = array(), $mergeData = array())
  11988. {
  11989. /** @var \Illuminate\View\Factory $instance */
  11990. return $instance->make($view, $data, $mergeData);
  11991. }
  11992. /**
  11993. * Get the first view that actually exists from the given list.
  11994. *
  11995. * @param array $views
  11996. * @param array $data
  11997. * @param array $mergeData
  11998. * @return \Illuminate\Contracts\View\View
  11999. * @static
  12000. */
  12001. public static function first($views, $data = array(), $mergeData = array())
  12002. {
  12003. /** @var \Illuminate\View\Factory $instance */
  12004. return $instance->first($views, $data, $mergeData);
  12005. }
  12006. /**
  12007. * Get the rendered content of the view based on a given condition.
  12008. *
  12009. * @param bool $condition
  12010. * @param string $view
  12011. * @param array $data
  12012. * @param array $mergeData
  12013. * @return string
  12014. * @static
  12015. */
  12016. public static function renderWhen($condition, $view, $data = array(), $mergeData = array())
  12017. {
  12018. /** @var \Illuminate\View\Factory $instance */
  12019. return $instance->renderWhen($condition, $view, $data, $mergeData);
  12020. }
  12021. /**
  12022. * Get the rendered contents of a partial from a loop.
  12023. *
  12024. * @param string $view
  12025. * @param array $data
  12026. * @param string $iterator
  12027. * @param string $empty
  12028. * @return string
  12029. * @static
  12030. */
  12031. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  12032. {
  12033. /** @var \Illuminate\View\Factory $instance */
  12034. return $instance->renderEach($view, $data, $iterator, $empty);
  12035. }
  12036. /**
  12037. * Determine if a given view exists.
  12038. *
  12039. * @param string $view
  12040. * @return bool
  12041. * @static
  12042. */
  12043. public static function exists($view)
  12044. {
  12045. /** @var \Illuminate\View\Factory $instance */
  12046. return $instance->exists($view);
  12047. }
  12048. /**
  12049. * Get the appropriate view engine for the given path.
  12050. *
  12051. * @param string $path
  12052. * @return \Illuminate\Contracts\View\Engine
  12053. * @throws \InvalidArgumentException
  12054. * @static
  12055. */
  12056. public static function getEngineFromPath($path)
  12057. {
  12058. /** @var \Illuminate\View\Factory $instance */
  12059. return $instance->getEngineFromPath($path);
  12060. }
  12061. /**
  12062. * Add a piece of shared data to the environment.
  12063. *
  12064. * @param array|string $key
  12065. * @param mixed $value
  12066. * @return mixed
  12067. * @static
  12068. */
  12069. public static function share($key, $value = null)
  12070. {
  12071. /** @var \Illuminate\View\Factory $instance */
  12072. return $instance->share($key, $value);
  12073. }
  12074. /**
  12075. * Increment the rendering counter.
  12076. *
  12077. * @return void
  12078. * @static
  12079. */
  12080. public static function incrementRender()
  12081. {
  12082. /** @var \Illuminate\View\Factory $instance */
  12083. $instance->incrementRender();
  12084. }
  12085. /**
  12086. * Decrement the rendering counter.
  12087. *
  12088. * @return void
  12089. * @static
  12090. */
  12091. public static function decrementRender()
  12092. {
  12093. /** @var \Illuminate\View\Factory $instance */
  12094. $instance->decrementRender();
  12095. }
  12096. /**
  12097. * Check if there are no active render operations.
  12098. *
  12099. * @return bool
  12100. * @static
  12101. */
  12102. public static function doneRendering()
  12103. {
  12104. /** @var \Illuminate\View\Factory $instance */
  12105. return $instance->doneRendering();
  12106. }
  12107. /**
  12108. * Add a location to the array of view locations.
  12109. *
  12110. * @param string $location
  12111. * @return void
  12112. * @static
  12113. */
  12114. public static function addLocation($location)
  12115. {
  12116. /** @var \Illuminate\View\Factory $instance */
  12117. $instance->addLocation($location);
  12118. }
  12119. /**
  12120. * Add a new namespace to the loader.
  12121. *
  12122. * @param string $namespace
  12123. * @param string|array $hints
  12124. * @return \Illuminate\View\Factory
  12125. * @static
  12126. */
  12127. public static function addNamespace($namespace, $hints)
  12128. {
  12129. /** @var \Illuminate\View\Factory $instance */
  12130. return $instance->addNamespace($namespace, $hints);
  12131. }
  12132. /**
  12133. * Prepend a new namespace to the loader.
  12134. *
  12135. * @param string $namespace
  12136. * @param string|array $hints
  12137. * @return \Illuminate\View\Factory
  12138. * @static
  12139. */
  12140. public static function prependNamespace($namespace, $hints)
  12141. {
  12142. /** @var \Illuminate\View\Factory $instance */
  12143. return $instance->prependNamespace($namespace, $hints);
  12144. }
  12145. /**
  12146. * Replace the namespace hints for the given namespace.
  12147. *
  12148. * @param string $namespace
  12149. * @param string|array $hints
  12150. * @return \Illuminate\View\Factory
  12151. * @static
  12152. */
  12153. public static function replaceNamespace($namespace, $hints)
  12154. {
  12155. /** @var \Illuminate\View\Factory $instance */
  12156. return $instance->replaceNamespace($namespace, $hints);
  12157. }
  12158. /**
  12159. * Register a valid view extension and its engine.
  12160. *
  12161. * @param string $extension
  12162. * @param string $engine
  12163. * @param \Closure $resolver
  12164. * @return void
  12165. * @static
  12166. */
  12167. public static function addExtension($extension, $engine, $resolver = null)
  12168. {
  12169. /** @var \Illuminate\View\Factory $instance */
  12170. $instance->addExtension($extension, $engine, $resolver);
  12171. }
  12172. /**
  12173. * Flush all of the factory state like sections and stacks.
  12174. *
  12175. * @return void
  12176. * @static
  12177. */
  12178. public static function flushState()
  12179. {
  12180. /** @var \Illuminate\View\Factory $instance */
  12181. $instance->flushState();
  12182. }
  12183. /**
  12184. * Flush all of the section contents if done rendering.
  12185. *
  12186. * @return void
  12187. * @static
  12188. */
  12189. public static function flushStateIfDoneRendering()
  12190. {
  12191. /** @var \Illuminate\View\Factory $instance */
  12192. $instance->flushStateIfDoneRendering();
  12193. }
  12194. /**
  12195. * Get the extension to engine bindings.
  12196. *
  12197. * @return array
  12198. * @static
  12199. */
  12200. public static function getExtensions()
  12201. {
  12202. /** @var \Illuminate\View\Factory $instance */
  12203. return $instance->getExtensions();
  12204. }
  12205. /**
  12206. * Get the engine resolver instance.
  12207. *
  12208. * @return \Illuminate\View\Engines\EngineResolver
  12209. * @static
  12210. */
  12211. public static function getEngineResolver()
  12212. {
  12213. /** @var \Illuminate\View\Factory $instance */
  12214. return $instance->getEngineResolver();
  12215. }
  12216. /**
  12217. * Get the view finder instance.
  12218. *
  12219. * @return \Illuminate\View\ViewFinderInterface
  12220. * @static
  12221. */
  12222. public static function getFinder()
  12223. {
  12224. /** @var \Illuminate\View\Factory $instance */
  12225. return $instance->getFinder();
  12226. }
  12227. /**
  12228. * Set the view finder instance.
  12229. *
  12230. * @param \Illuminate\View\ViewFinderInterface $finder
  12231. * @return void
  12232. * @static
  12233. */
  12234. public static function setFinder($finder)
  12235. {
  12236. /** @var \Illuminate\View\Factory $instance */
  12237. $instance->setFinder($finder);
  12238. }
  12239. /**
  12240. * Flush the cache of views located by the finder.
  12241. *
  12242. * @return void
  12243. * @static
  12244. */
  12245. public static function flushFinderCache()
  12246. {
  12247. /** @var \Illuminate\View\Factory $instance */
  12248. $instance->flushFinderCache();
  12249. }
  12250. /**
  12251. * Get the event dispatcher instance.
  12252. *
  12253. * @return \Illuminate\Contracts\Events\Dispatcher
  12254. * @static
  12255. */
  12256. public static function getDispatcher()
  12257. {
  12258. /** @var \Illuminate\View\Factory $instance */
  12259. return $instance->getDispatcher();
  12260. }
  12261. /**
  12262. * Set the event dispatcher instance.
  12263. *
  12264. * @param \Illuminate\Contracts\Events\Dispatcher $events
  12265. * @return void
  12266. * @static
  12267. */
  12268. public static function setDispatcher($events)
  12269. {
  12270. /** @var \Illuminate\View\Factory $instance */
  12271. $instance->setDispatcher($events);
  12272. }
  12273. /**
  12274. * Get the IoC container instance.
  12275. *
  12276. * @return \Illuminate\Contracts\Container\Container
  12277. * @static
  12278. */
  12279. public static function getContainer()
  12280. {
  12281. /** @var \Illuminate\View\Factory $instance */
  12282. return $instance->getContainer();
  12283. }
  12284. /**
  12285. * Set the IoC container instance.
  12286. *
  12287. * @param \Illuminate\Contracts\Container\Container $container
  12288. * @return void
  12289. * @static
  12290. */
  12291. public static function setContainer($container)
  12292. {
  12293. /** @var \Illuminate\View\Factory $instance */
  12294. $instance->setContainer($container);
  12295. }
  12296. /**
  12297. * Get an item from the shared data.
  12298. *
  12299. * @param string $key
  12300. * @param mixed $default
  12301. * @return mixed
  12302. * @static
  12303. */
  12304. public static function shared($key, $default = null)
  12305. {
  12306. /** @var \Illuminate\View\Factory $instance */
  12307. return $instance->shared($key, $default);
  12308. }
  12309. /**
  12310. * Get all of the shared data for the environment.
  12311. *
  12312. * @return array
  12313. * @static
  12314. */
  12315. public static function getShared()
  12316. {
  12317. /** @var \Illuminate\View\Factory $instance */
  12318. return $instance->getShared();
  12319. }
  12320. /**
  12321. * Start a component rendering process.
  12322. *
  12323. * @param string $name
  12324. * @param array $data
  12325. * @return void
  12326. * @static
  12327. */
  12328. public static function startComponent($name, $data = array())
  12329. {
  12330. /** @var \Illuminate\View\Factory $instance */
  12331. $instance->startComponent($name, $data);
  12332. }
  12333. /**
  12334. * Render the current component.
  12335. *
  12336. * @return string
  12337. * @static
  12338. */
  12339. public static function renderComponent()
  12340. {
  12341. /** @var \Illuminate\View\Factory $instance */
  12342. return $instance->renderComponent();
  12343. }
  12344. /**
  12345. * Start the slot rendering process.
  12346. *
  12347. * @param string $name
  12348. * @param string|null $content
  12349. * @return void
  12350. * @static
  12351. */
  12352. public static function slot($name, $content = null)
  12353. {
  12354. /** @var \Illuminate\View\Factory $instance */
  12355. $instance->slot($name, $content);
  12356. }
  12357. /**
  12358. * Save the slot content for rendering.
  12359. *
  12360. * @return void
  12361. * @static
  12362. */
  12363. public static function endSlot()
  12364. {
  12365. /** @var \Illuminate\View\Factory $instance */
  12366. $instance->endSlot();
  12367. }
  12368. /**
  12369. * Register a view creator event.
  12370. *
  12371. * @param array|string $views
  12372. * @param \Closure|string $callback
  12373. * @return array
  12374. * @static
  12375. */
  12376. public static function creator($views, $callback)
  12377. {
  12378. /** @var \Illuminate\View\Factory $instance */
  12379. return $instance->creator($views, $callback);
  12380. }
  12381. /**
  12382. * Register multiple view composers via an array.
  12383. *
  12384. * @param array $composers
  12385. * @return array
  12386. * @static
  12387. */
  12388. public static function composers($composers)
  12389. {
  12390. /** @var \Illuminate\View\Factory $instance */
  12391. return $instance->composers($composers);
  12392. }
  12393. /**
  12394. * Register a view composer event.
  12395. *
  12396. * @param array|string $views
  12397. * @param \Closure|string $callback
  12398. * @return array
  12399. * @static
  12400. */
  12401. public static function composer($views, $callback)
  12402. {
  12403. /** @var \Illuminate\View\Factory $instance */
  12404. return $instance->composer($views, $callback);
  12405. }
  12406. /**
  12407. * Call the composer for a given view.
  12408. *
  12409. * @param \Illuminate\Contracts\View\View $view
  12410. * @return void
  12411. * @static
  12412. */
  12413. public static function callComposer($view)
  12414. {
  12415. /** @var \Illuminate\View\Factory $instance */
  12416. $instance->callComposer($view);
  12417. }
  12418. /**
  12419. * Call the creator for a given view.
  12420. *
  12421. * @param \Illuminate\Contracts\View\View $view
  12422. * @return void
  12423. * @static
  12424. */
  12425. public static function callCreator($view)
  12426. {
  12427. /** @var \Illuminate\View\Factory $instance */
  12428. $instance->callCreator($view);
  12429. }
  12430. /**
  12431. * Start injecting content into a section.
  12432. *
  12433. * @param string $section
  12434. * @param string|null $content
  12435. * @return void
  12436. * @static
  12437. */
  12438. public static function startSection($section, $content = null)
  12439. {
  12440. /** @var \Illuminate\View\Factory $instance */
  12441. $instance->startSection($section, $content);
  12442. }
  12443. /**
  12444. * Inject inline content into a section.
  12445. *
  12446. * @param string $section
  12447. * @param string $content
  12448. * @return void
  12449. * @static
  12450. */
  12451. public static function inject($section, $content)
  12452. {
  12453. /** @var \Illuminate\View\Factory $instance */
  12454. $instance->inject($section, $content);
  12455. }
  12456. /**
  12457. * Stop injecting content into a section and return its contents.
  12458. *
  12459. * @return string
  12460. * @static
  12461. */
  12462. public static function yieldSection()
  12463. {
  12464. /** @var \Illuminate\View\Factory $instance */
  12465. return $instance->yieldSection();
  12466. }
  12467. /**
  12468. * Stop injecting content into a section.
  12469. *
  12470. * @param bool $overwrite
  12471. * @return string
  12472. * @throws \InvalidArgumentException
  12473. * @static
  12474. */
  12475. public static function stopSection($overwrite = false)
  12476. {
  12477. /** @var \Illuminate\View\Factory $instance */
  12478. return $instance->stopSection($overwrite);
  12479. }
  12480. /**
  12481. * Stop injecting content into a section and append it.
  12482. *
  12483. * @return string
  12484. * @throws \InvalidArgumentException
  12485. * @static
  12486. */
  12487. public static function appendSection()
  12488. {
  12489. /** @var \Illuminate\View\Factory $instance */
  12490. return $instance->appendSection();
  12491. }
  12492. /**
  12493. * Get the string contents of a section.
  12494. *
  12495. * @param string $section
  12496. * @param string $default
  12497. * @return string
  12498. * @static
  12499. */
  12500. public static function yieldContent($section, $default = '')
  12501. {
  12502. /** @var \Illuminate\View\Factory $instance */
  12503. return $instance->yieldContent($section, $default);
  12504. }
  12505. /**
  12506. * Get the parent placeholder for the current request.
  12507. *
  12508. * @param string $section
  12509. * @return string
  12510. * @static
  12511. */
  12512. public static function parentPlaceholder($section = '')
  12513. {
  12514. return \Illuminate\View\Factory::parentPlaceholder($section);
  12515. }
  12516. /**
  12517. * Check if section exists.
  12518. *
  12519. * @param string $name
  12520. * @return bool
  12521. * @static
  12522. */
  12523. public static function hasSection($name)
  12524. {
  12525. /** @var \Illuminate\View\Factory $instance */
  12526. return $instance->hasSection($name);
  12527. }
  12528. /**
  12529. * Get the contents of a section.
  12530. *
  12531. * @param string $name
  12532. * @param string $default
  12533. * @return mixed
  12534. * @static
  12535. */
  12536. public static function getSection($name, $default = null)
  12537. {
  12538. /** @var \Illuminate\View\Factory $instance */
  12539. return $instance->getSection($name, $default);
  12540. }
  12541. /**
  12542. * Get the entire array of sections.
  12543. *
  12544. * @return array
  12545. * @static
  12546. */
  12547. public static function getSections()
  12548. {
  12549. /** @var \Illuminate\View\Factory $instance */
  12550. return $instance->getSections();
  12551. }
  12552. /**
  12553. * Flush all of the sections.
  12554. *
  12555. * @return void
  12556. * @static
  12557. */
  12558. public static function flushSections()
  12559. {
  12560. /** @var \Illuminate\View\Factory $instance */
  12561. $instance->flushSections();
  12562. }
  12563. /**
  12564. * Add new loop to the stack.
  12565. *
  12566. * @param \Countable|array $data
  12567. * @return void
  12568. * @static
  12569. */
  12570. public static function addLoop($data)
  12571. {
  12572. /** @var \Illuminate\View\Factory $instance */
  12573. $instance->addLoop($data);
  12574. }
  12575. /**
  12576. * Increment the top loop's indices.
  12577. *
  12578. * @return void
  12579. * @static
  12580. */
  12581. public static function incrementLoopIndices()
  12582. {
  12583. /** @var \Illuminate\View\Factory $instance */
  12584. $instance->incrementLoopIndices();
  12585. }
  12586. /**
  12587. * Pop a loop from the top of the loop stack.
  12588. *
  12589. * @return void
  12590. * @static
  12591. */
  12592. public static function popLoop()
  12593. {
  12594. /** @var \Illuminate\View\Factory $instance */
  12595. $instance->popLoop();
  12596. }
  12597. /**
  12598. * Get an instance of the last loop in the stack.
  12599. *
  12600. * @return \stdClass|null
  12601. * @static
  12602. */
  12603. public static function getLastLoop()
  12604. {
  12605. /** @var \Illuminate\View\Factory $instance */
  12606. return $instance->getLastLoop();
  12607. }
  12608. /**
  12609. * Get the entire loop stack.
  12610. *
  12611. * @return array
  12612. * @static
  12613. */
  12614. public static function getLoopStack()
  12615. {
  12616. /** @var \Illuminate\View\Factory $instance */
  12617. return $instance->getLoopStack();
  12618. }
  12619. /**
  12620. * Start injecting content into a push section.
  12621. *
  12622. * @param string $section
  12623. * @param string $content
  12624. * @return void
  12625. * @static
  12626. */
  12627. public static function startPush($section, $content = '')
  12628. {
  12629. /** @var \Illuminate\View\Factory $instance */
  12630. $instance->startPush($section, $content);
  12631. }
  12632. /**
  12633. * Stop injecting content into a push section.
  12634. *
  12635. * @return string
  12636. * @throws \InvalidArgumentException
  12637. * @static
  12638. */
  12639. public static function stopPush()
  12640. {
  12641. /** @var \Illuminate\View\Factory $instance */
  12642. return $instance->stopPush();
  12643. }
  12644. /**
  12645. * Start prepending content into a push section.
  12646. *
  12647. * @param string $section
  12648. * @param string $content
  12649. * @return void
  12650. * @static
  12651. */
  12652. public static function startPrepend($section, $content = '')
  12653. {
  12654. /** @var \Illuminate\View\Factory $instance */
  12655. $instance->startPrepend($section, $content);
  12656. }
  12657. /**
  12658. * Stop prepending content into a push section.
  12659. *
  12660. * @return string
  12661. * @throws \InvalidArgumentException
  12662. * @static
  12663. */
  12664. public static function stopPrepend()
  12665. {
  12666. /** @var \Illuminate\View\Factory $instance */
  12667. return $instance->stopPrepend();
  12668. }
  12669. /**
  12670. * Get the string contents of a push section.
  12671. *
  12672. * @param string $section
  12673. * @param string $default
  12674. * @return string
  12675. * @static
  12676. */
  12677. public static function yieldPushContent($section, $default = '')
  12678. {
  12679. /** @var \Illuminate\View\Factory $instance */
  12680. return $instance->yieldPushContent($section, $default);
  12681. }
  12682. /**
  12683. * Flush all of the stacks.
  12684. *
  12685. * @return void
  12686. * @static
  12687. */
  12688. public static function flushStacks()
  12689. {
  12690. /** @var \Illuminate\View\Factory $instance */
  12691. $instance->flushStacks();
  12692. }
  12693. /**
  12694. * Start a translation block.
  12695. *
  12696. * @param array $replacements
  12697. * @return void
  12698. * @static
  12699. */
  12700. public static function startTranslation($replacements = array())
  12701. {
  12702. /** @var \Illuminate\View\Factory $instance */
  12703. $instance->startTranslation($replacements);
  12704. }
  12705. /**
  12706. * Render the current translation.
  12707. *
  12708. * @return string
  12709. * @static
  12710. */
  12711. public static function renderTranslation()
  12712. {
  12713. /** @var \Illuminate\View\Factory $instance */
  12714. return $instance->renderTranslation();
  12715. }
  12716. }
  12717. }
  12718. namespace Orangehill\Iseed\Facades {
  12719. /**
  12720. *
  12721. *
  12722. */
  12723. class Iseed {
  12724. /**
  12725. *
  12726. *
  12727. * @static
  12728. */
  12729. public static function readStubFile($file)
  12730. {
  12731. /** @var \Orangehill\Iseed\Iseed $instance */
  12732. return $instance->readStubFile($file);
  12733. }
  12734. /**
  12735. * Generates a seed file.
  12736. *
  12737. * @param string $table
  12738. * @param string $prefix
  12739. * @param string $suffix
  12740. * @param string $database
  12741. * @param int $max
  12742. * @param string $prerunEvent
  12743. * @param string $postunEvent
  12744. * @return bool
  12745. * @throws Orangehill\Iseed\TableNotFoundException
  12746. * @static
  12747. */
  12748. public static function generateSeed($table, $prefix = null, $suffix = null, $database = null, $max = 0, $chunkSize = 0, $exclude = null, $prerunEvent = null, $postrunEvent = null, $dumpAuto = true, $indexed = true, $orderBy = null, $direction = 'ASC')
  12749. {
  12750. /** @var \Orangehill\Iseed\Iseed $instance */
  12751. return $instance->generateSeed($table, $prefix, $suffix, $database, $max, $chunkSize, $exclude, $prerunEvent, $postrunEvent, $dumpAuto, $indexed, $orderBy, $direction);
  12752. }
  12753. /**
  12754. * Get a seed folder path
  12755. *
  12756. * @return string
  12757. * @static
  12758. */
  12759. public static function getSeedPath()
  12760. {
  12761. /** @var \Orangehill\Iseed\Iseed $instance */
  12762. return $instance->getSeedPath();
  12763. }
  12764. /**
  12765. * Get the Data
  12766. *
  12767. * @param string $table
  12768. * @return Array
  12769. * @static
  12770. */
  12771. public static function getData($table, $max, $exclude = null, $orderBy = null, $direction = 'ASC')
  12772. {
  12773. /** @var \Orangehill\Iseed\Iseed $instance */
  12774. return $instance->getData($table, $max, $exclude, $orderBy, $direction);
  12775. }
  12776. /**
  12777. * Repacks data read from the database
  12778. *
  12779. * @param array|object $data
  12780. * @return array
  12781. * @static
  12782. */
  12783. public static function repackSeedData($data)
  12784. {
  12785. /** @var \Orangehill\Iseed\Iseed $instance */
  12786. return $instance->repackSeedData($data);
  12787. }
  12788. /**
  12789. * Checks if a database table exists
  12790. *
  12791. * @param string $table
  12792. * @return boolean
  12793. * @static
  12794. */
  12795. public static function hasTable($table)
  12796. {
  12797. /** @var \Orangehill\Iseed\Iseed $instance */
  12798. return $instance->hasTable($table);
  12799. }
  12800. /**
  12801. * Generates a seed class name (also used as a filename)
  12802. *
  12803. * @param string $table
  12804. * @param string $prefix
  12805. * @param string $suffix
  12806. * @return string
  12807. * @static
  12808. */
  12809. public static function generateClassName($table, $prefix = null, $suffix = null)
  12810. {
  12811. /** @var \Orangehill\Iseed\Iseed $instance */
  12812. return $instance->generateClassName($table, $prefix, $suffix);
  12813. }
  12814. /**
  12815. * Get the path to the stub file.
  12816. *
  12817. * @return string
  12818. * @static
  12819. */
  12820. public static function getStubPath()
  12821. {
  12822. /** @var \Orangehill\Iseed\Iseed $instance */
  12823. return $instance->getStubPath();
  12824. }
  12825. /**
  12826. * Populate the place-holders in the seed stub.
  12827. *
  12828. * @param string $class
  12829. * @param string $stub
  12830. * @param string $table
  12831. * @param string $data
  12832. * @param int $chunkSize
  12833. * @param string $prerunEvent
  12834. * @param string $postunEvent
  12835. * @return string
  12836. * @static
  12837. */
  12838. public static function populateStub($class, $stub, $table, $data, $chunkSize = null, $prerunEvent = null, $postrunEvent = null, $indexed = true)
  12839. {
  12840. /** @var \Orangehill\Iseed\Iseed $instance */
  12841. return $instance->populateStub($class, $stub, $table, $data, $chunkSize, $prerunEvent, $postrunEvent, $indexed);
  12842. }
  12843. /**
  12844. * Create the full path name to the seed file.
  12845. *
  12846. * @param string $name
  12847. * @param string $path
  12848. * @return string
  12849. * @static
  12850. */
  12851. public static function getPath($name, $path)
  12852. {
  12853. /** @var \Orangehill\Iseed\Iseed $instance */
  12854. return $instance->getPath($name, $path);
  12855. }
  12856. /**
  12857. * Cleans the iSeed section
  12858. *
  12859. * @return bool
  12860. * @static
  12861. */
  12862. public static function cleanSection()
  12863. {
  12864. /** @var \Orangehill\Iseed\Iseed $instance */
  12865. return $instance->cleanSection();
  12866. }
  12867. /**
  12868. * Updates the DatabaseSeeder file's run method (kudoz to: https://github.com/JeffreyWay/Laravel-4-Generators)
  12869. *
  12870. * @param string $className
  12871. * @return bool
  12872. * @static
  12873. */
  12874. public static function updateDatabaseSeederRunMethod($className)
  12875. {
  12876. /** @var \Orangehill\Iseed\Iseed $instance */
  12877. return $instance->updateDatabaseSeederRunMethod($className);
  12878. }
  12879. }
  12880. }
  12881. namespace {
  12882. class App extends \Illuminate\Support\Facades\App {}
  12883. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  12884. class Auth extends \Illuminate\Support\Facades\Auth {}
  12885. class Blade extends \Illuminate\Support\Facades\Blade {}
  12886. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  12887. class Bus extends \Illuminate\Support\Facades\Bus {}
  12888. class Cache extends \Illuminate\Support\Facades\Cache {}
  12889. class Config extends \Illuminate\Support\Facades\Config {}
  12890. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  12891. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  12892. class DB extends \Illuminate\Support\Facades\DB {}
  12893. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  12894. /**
  12895. * Create and return an un-saved model instance.
  12896. *
  12897. * @param array $attributes
  12898. * @return \Illuminate\Database\Eloquent\Model
  12899. * @static
  12900. */
  12901. public static function make($attributes = array())
  12902. {
  12903. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12904. return $instance->make($attributes);
  12905. }
  12906. /**
  12907. * Register a new global scope.
  12908. *
  12909. * @param string $identifier
  12910. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  12911. * @return \Illuminate\Database\Eloquent\Builder
  12912. * @static
  12913. */
  12914. public static function withGlobalScope($identifier, $scope)
  12915. {
  12916. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12917. return $instance->withGlobalScope($identifier, $scope);
  12918. }
  12919. /**
  12920. * Remove a registered global scope.
  12921. *
  12922. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  12923. * @return \Illuminate\Database\Eloquent\Builder
  12924. * @static
  12925. */
  12926. public static function withoutGlobalScope($scope)
  12927. {
  12928. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12929. return $instance->withoutGlobalScope($scope);
  12930. }
  12931. /**
  12932. * Remove all or passed registered global scopes.
  12933. *
  12934. * @param array|null $scopes
  12935. * @return \Illuminate\Database\Eloquent\Builder
  12936. * @static
  12937. */
  12938. public static function withoutGlobalScopes($scopes = null)
  12939. {
  12940. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12941. return $instance->withoutGlobalScopes($scopes);
  12942. }
  12943. /**
  12944. * Get an array of global scopes that were removed from the query.
  12945. *
  12946. * @return array
  12947. * @static
  12948. */
  12949. public static function removedScopes()
  12950. {
  12951. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12952. return $instance->removedScopes();
  12953. }
  12954. /**
  12955. * Add a where clause on the primary key to the query.
  12956. *
  12957. * @param mixed $id
  12958. * @return \Illuminate\Database\Eloquent\Builder
  12959. * @static
  12960. */
  12961. public static function whereKey($id)
  12962. {
  12963. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12964. return $instance->whereKey($id);
  12965. }
  12966. /**
  12967. * Add a where clause on the primary key to the query.
  12968. *
  12969. * @param mixed $id
  12970. * @return \Illuminate\Database\Eloquent\Builder
  12971. * @static
  12972. */
  12973. public static function whereKeyNot($id)
  12974. {
  12975. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12976. return $instance->whereKeyNot($id);
  12977. }
  12978. /**
  12979. * Add a basic where clause to the query.
  12980. *
  12981. * @param string|array|\Closure $column
  12982. * @param string $operator
  12983. * @param mixed $value
  12984. * @param string $boolean
  12985. * @return \Illuminate\Database\Eloquent\Builder
  12986. * @static
  12987. */
  12988. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  12989. {
  12990. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  12991. return $instance->where($column, $operator, $value, $boolean);
  12992. }
  12993. /**
  12994. * Add an "or where" clause to the query.
  12995. *
  12996. * @param \Closure|array|string $column
  12997. * @param string $operator
  12998. * @param mixed $value
  12999. * @return \Illuminate\Database\Eloquent\Builder|static
  13000. * @static
  13001. */
  13002. public static function orWhere($column, $operator = null, $value = null)
  13003. {
  13004. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13005. return $instance->orWhere($column, $operator, $value);
  13006. }
  13007. /**
  13008. * Create a collection of models from plain arrays.
  13009. *
  13010. * @param array $items
  13011. * @return \Illuminate\Database\Eloquent\Collection
  13012. * @static
  13013. */
  13014. public static function hydrate($items)
  13015. {
  13016. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13017. return $instance->hydrate($items);
  13018. }
  13019. /**
  13020. * Create a collection of models from a raw query.
  13021. *
  13022. * @param string $query
  13023. * @param array $bindings
  13024. * @return \Illuminate\Database\Eloquent\Collection
  13025. * @static
  13026. */
  13027. public static function fromQuery($query, $bindings = array())
  13028. {
  13029. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13030. return $instance->fromQuery($query, $bindings);
  13031. }
  13032. /**
  13033. * Find a model by its primary key.
  13034. *
  13035. * @param mixed $id
  13036. * @param array $columns
  13037. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  13038. * @static
  13039. */
  13040. public static function find($id, $columns = array())
  13041. {
  13042. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13043. return $instance->find($id, $columns);
  13044. }
  13045. /**
  13046. * Find multiple models by their primary keys.
  13047. *
  13048. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  13049. * @param array $columns
  13050. * @return \Illuminate\Database\Eloquent\Collection
  13051. * @static
  13052. */
  13053. public static function findMany($ids, $columns = array())
  13054. {
  13055. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13056. return $instance->findMany($ids, $columns);
  13057. }
  13058. /**
  13059. * Find a model by its primary key or throw an exception.
  13060. *
  13061. * @param mixed $id
  13062. * @param array $columns
  13063. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
  13064. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  13065. * @static
  13066. */
  13067. public static function findOrFail($id, $columns = array())
  13068. {
  13069. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13070. return $instance->findOrFail($id, $columns);
  13071. }
  13072. /**
  13073. * Find a model by its primary key or return fresh model instance.
  13074. *
  13075. * @param mixed $id
  13076. * @param array $columns
  13077. * @return \Illuminate\Database\Eloquent\Model
  13078. * @static
  13079. */
  13080. public static function findOrNew($id, $columns = array())
  13081. {
  13082. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13083. return $instance->findOrNew($id, $columns);
  13084. }
  13085. /**
  13086. * Get the first record matching the attributes or instantiate it.
  13087. *
  13088. * @param array $attributes
  13089. * @param array $values
  13090. * @return \Illuminate\Database\Eloquent\Model
  13091. * @static
  13092. */
  13093. public static function firstOrNew($attributes, $values = array())
  13094. {
  13095. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13096. return $instance->firstOrNew($attributes, $values);
  13097. }
  13098. /**
  13099. * Get the first record matching the attributes or create it.
  13100. *
  13101. * @param array $attributes
  13102. * @param array $values
  13103. * @return \Illuminate\Database\Eloquent\Model
  13104. * @static
  13105. */
  13106. public static function firstOrCreate($attributes, $values = array())
  13107. {
  13108. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13109. return $instance->firstOrCreate($attributes, $values);
  13110. }
  13111. /**
  13112. * Create or update a record matching the attributes, and fill it with values.
  13113. *
  13114. * @param array $attributes
  13115. * @param array $values
  13116. * @return \Illuminate\Database\Eloquent\Model
  13117. * @static
  13118. */
  13119. public static function updateOrCreate($attributes, $values = array())
  13120. {
  13121. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13122. return $instance->updateOrCreate($attributes, $values);
  13123. }
  13124. /**
  13125. * Execute the query and get the first result or throw an exception.
  13126. *
  13127. * @param array $columns
  13128. * @return \Illuminate\Database\Eloquent\Model|static
  13129. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  13130. * @static
  13131. */
  13132. public static function firstOrFail($columns = array())
  13133. {
  13134. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13135. return $instance->firstOrFail($columns);
  13136. }
  13137. /**
  13138. * Execute the query and get the first result or call a callback.
  13139. *
  13140. * @param \Closure|array $columns
  13141. * @param \Closure|null $callback
  13142. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  13143. * @static
  13144. */
  13145. public static function firstOr($columns = array(), $callback = null)
  13146. {
  13147. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13148. return $instance->firstOr($columns, $callback);
  13149. }
  13150. /**
  13151. * Get a single column's value from the first result of a query.
  13152. *
  13153. * @param string $column
  13154. * @return mixed
  13155. * @static
  13156. */
  13157. public static function value($column)
  13158. {
  13159. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13160. return $instance->value($column);
  13161. }
  13162. /**
  13163. * Execute the query as a "select" statement.
  13164. *
  13165. * @param array $columns
  13166. * @return \Illuminate\Database\Eloquent\Collection|static[]
  13167. * @static
  13168. */
  13169. public static function get($columns = array())
  13170. {
  13171. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13172. return $instance->get($columns);
  13173. }
  13174. /**
  13175. * Get the hydrated models without eager loading.
  13176. *
  13177. * @param array $columns
  13178. * @return \Illuminate\Database\Eloquent\Model[]
  13179. * @static
  13180. */
  13181. public static function getModels($columns = array())
  13182. {
  13183. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13184. return $instance->getModels($columns);
  13185. }
  13186. /**
  13187. * Eager load the relationships for the models.
  13188. *
  13189. * @param array $models
  13190. * @return array
  13191. * @static
  13192. */
  13193. public static function eagerLoadRelations($models)
  13194. {
  13195. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13196. return $instance->eagerLoadRelations($models);
  13197. }
  13198. /**
  13199. * Get a generator for the given query.
  13200. *
  13201. * @return \Generator
  13202. * @static
  13203. */
  13204. public static function cursor()
  13205. {
  13206. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13207. return $instance->cursor();
  13208. }
  13209. /**
  13210. * Chunk the results of a query by comparing numeric IDs.
  13211. *
  13212. * @param int $count
  13213. * @param callable $callback
  13214. * @param string $column
  13215. * @param string|null $alias
  13216. * @return bool
  13217. * @static
  13218. */
  13219. public static function chunkById($count, $callback, $column = null, $alias = null)
  13220. {
  13221. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13222. return $instance->chunkById($count, $callback, $column, $alias);
  13223. }
  13224. /**
  13225. * Get an array with the values of a given column.
  13226. *
  13227. * @param string $column
  13228. * @param string|null $key
  13229. * @return \Illuminate\Support\Collection
  13230. * @static
  13231. */
  13232. public static function pluck($column, $key = null)
  13233. {
  13234. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13235. return $instance->pluck($column, $key);
  13236. }
  13237. /**
  13238. * Paginate the given query.
  13239. *
  13240. * @param int $perPage
  13241. * @param array $columns
  13242. * @param string $pageName
  13243. * @param int|null $page
  13244. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  13245. * @throws \InvalidArgumentException
  13246. * @static
  13247. */
  13248. public static function paginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  13249. {
  13250. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13251. return $instance->paginate($perPage, $columns, $pageName, $page);
  13252. }
  13253. /**
  13254. * Paginate the given query into a simple paginator.
  13255. *
  13256. * @param int $perPage
  13257. * @param array $columns
  13258. * @param string $pageName
  13259. * @param int|null $page
  13260. * @return \Illuminate\Contracts\Pagination\Paginator
  13261. * @static
  13262. */
  13263. public static function simplePaginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  13264. {
  13265. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13266. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  13267. }
  13268. /**
  13269. * Save a new model and return the instance.
  13270. *
  13271. * @param array $attributes
  13272. * @return \Illuminate\Database\Eloquent\Model|$this
  13273. * @static
  13274. */
  13275. public static function create($attributes = array())
  13276. {
  13277. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13278. return $instance->create($attributes);
  13279. }
  13280. /**
  13281. * Save a new model and return the instance. Allow mass-assignment.
  13282. *
  13283. * @param array $attributes
  13284. * @return \Illuminate\Database\Eloquent\Model|$this
  13285. * @static
  13286. */
  13287. public static function forceCreate($attributes)
  13288. {
  13289. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13290. return $instance->forceCreate($attributes);
  13291. }
  13292. /**
  13293. * Register a replacement for the default delete function.
  13294. *
  13295. * @param \Closure $callback
  13296. * @return void
  13297. * @static
  13298. */
  13299. public static function onDelete($callback)
  13300. {
  13301. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13302. $instance->onDelete($callback);
  13303. }
  13304. /**
  13305. * Call the given local model scopes.
  13306. *
  13307. * @param array $scopes
  13308. * @return mixed
  13309. * @static
  13310. */
  13311. public static function scopes($scopes)
  13312. {
  13313. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13314. return $instance->scopes($scopes);
  13315. }
  13316. /**
  13317. * Apply the scopes to the Eloquent builder instance and return it.
  13318. *
  13319. * @return \Illuminate\Database\Eloquent\Builder|static
  13320. * @static
  13321. */
  13322. public static function applyScopes()
  13323. {
  13324. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13325. return $instance->applyScopes();
  13326. }
  13327. /**
  13328. * Prevent the specified relations from being eager loaded.
  13329. *
  13330. * @param mixed $relations
  13331. * @return \Illuminate\Database\Eloquent\Builder
  13332. * @static
  13333. */
  13334. public static function without($relations)
  13335. {
  13336. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13337. return $instance->without($relations);
  13338. }
  13339. /**
  13340. * Create a new instance of the model being queried.
  13341. *
  13342. * @param array $attributes
  13343. * @return \Illuminate\Database\Eloquent\Model
  13344. * @static
  13345. */
  13346. public static function newModelInstance($attributes = array())
  13347. {
  13348. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13349. return $instance->newModelInstance($attributes);
  13350. }
  13351. /**
  13352. * Get the underlying query builder instance.
  13353. *
  13354. * @return \Illuminate\Database\Query\Builder
  13355. * @static
  13356. */
  13357. public static function getQuery()
  13358. {
  13359. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13360. return $instance->getQuery();
  13361. }
  13362. /**
  13363. * Set the underlying query builder instance.
  13364. *
  13365. * @param \Illuminate\Database\Query\Builder $query
  13366. * @return \Illuminate\Database\Eloquent\Builder
  13367. * @static
  13368. */
  13369. public static function setQuery($query)
  13370. {
  13371. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13372. return $instance->setQuery($query);
  13373. }
  13374. /**
  13375. * Get a base query builder instance.
  13376. *
  13377. * @return \Illuminate\Database\Query\Builder
  13378. * @static
  13379. */
  13380. public static function toBase()
  13381. {
  13382. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13383. return $instance->toBase();
  13384. }
  13385. /**
  13386. * Get the relationships being eagerly loaded.
  13387. *
  13388. * @return array
  13389. * @static
  13390. */
  13391. public static function getEagerLoads()
  13392. {
  13393. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13394. return $instance->getEagerLoads();
  13395. }
  13396. /**
  13397. * Set the relationships being eagerly loaded.
  13398. *
  13399. * @param array $eagerLoad
  13400. * @return \Illuminate\Database\Eloquent\Builder
  13401. * @static
  13402. */
  13403. public static function setEagerLoads($eagerLoad)
  13404. {
  13405. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13406. return $instance->setEagerLoads($eagerLoad);
  13407. }
  13408. /**
  13409. * Get the model instance being queried.
  13410. *
  13411. * @return \Illuminate\Database\Eloquent\Model
  13412. * @static
  13413. */
  13414. public static function getModel()
  13415. {
  13416. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13417. return $instance->getModel();
  13418. }
  13419. /**
  13420. * Set a model instance for the model being queried.
  13421. *
  13422. * @param \Illuminate\Database\Eloquent\Model $model
  13423. * @return \Illuminate\Database\Eloquent\Builder
  13424. * @static
  13425. */
  13426. public static function setModel($model)
  13427. {
  13428. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13429. return $instance->setModel($model);
  13430. }
  13431. /**
  13432. * Get the given macro by name.
  13433. *
  13434. * @param string $name
  13435. * @return \Closure
  13436. * @static
  13437. */
  13438. public static function getMacro($name)
  13439. {
  13440. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13441. return $instance->getMacro($name);
  13442. }
  13443. /**
  13444. * Chunk the results of the query.
  13445. *
  13446. * @param int $count
  13447. * @param callable $callback
  13448. * @return bool
  13449. * @static
  13450. */
  13451. public static function chunk($count, $callback)
  13452. {
  13453. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13454. return $instance->chunk($count, $callback);
  13455. }
  13456. /**
  13457. * Execute a callback over each item while chunking.
  13458. *
  13459. * @param callable $callback
  13460. * @param int $count
  13461. * @return bool
  13462. * @static
  13463. */
  13464. public static function each($callback, $count = 1000)
  13465. {
  13466. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13467. return $instance->each($callback, $count);
  13468. }
  13469. /**
  13470. * Execute the query and get the first result.
  13471. *
  13472. * @param array $columns
  13473. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  13474. * @static
  13475. */
  13476. public static function first($columns = array())
  13477. {
  13478. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13479. return $instance->first($columns);
  13480. }
  13481. /**
  13482. * Apply the callback's query changes if the given "value" is true.
  13483. *
  13484. * @param mixed $value
  13485. * @param callable $callback
  13486. * @param callable $default
  13487. * @return mixed
  13488. * @static
  13489. */
  13490. public static function when($value, $callback, $default = null)
  13491. {
  13492. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13493. return $instance->when($value, $callback, $default);
  13494. }
  13495. /**
  13496. * Pass the query to a given callback.
  13497. *
  13498. * @param \Closure $callback
  13499. * @return \Illuminate\Database\Query\Builder
  13500. * @static
  13501. */
  13502. public static function tap($callback)
  13503. {
  13504. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13505. return $instance->tap($callback);
  13506. }
  13507. /**
  13508. * Apply the callback's query changes if the given "value" is false.
  13509. *
  13510. * @param mixed $value
  13511. * @param callable $callback
  13512. * @param callable $default
  13513. * @return mixed
  13514. * @static
  13515. */
  13516. public static function unless($value, $callback, $default = null)
  13517. {
  13518. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13519. return $instance->unless($value, $callback, $default);
  13520. }
  13521. /**
  13522. * Add a relationship count / exists condition to the query.
  13523. *
  13524. * @param string $relation
  13525. * @param string $operator
  13526. * @param int $count
  13527. * @param string $boolean
  13528. * @param \Closure|null $callback
  13529. * @return \Illuminate\Database\Eloquent\Builder|static
  13530. * @static
  13531. */
  13532. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  13533. {
  13534. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13535. return $instance->has($relation, $operator, $count, $boolean, $callback);
  13536. }
  13537. /**
  13538. * Add a relationship count / exists condition to the query with an "or".
  13539. *
  13540. * @param string $relation
  13541. * @param string $operator
  13542. * @param int $count
  13543. * @return \Illuminate\Database\Eloquent\Builder|static
  13544. * @static
  13545. */
  13546. public static function orHas($relation, $operator = '>=', $count = 1)
  13547. {
  13548. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13549. return $instance->orHas($relation, $operator, $count);
  13550. }
  13551. /**
  13552. * Add a relationship count / exists condition to the query.
  13553. *
  13554. * @param string $relation
  13555. * @param string $boolean
  13556. * @param \Closure|null $callback
  13557. * @return \Illuminate\Database\Eloquent\Builder|static
  13558. * @static
  13559. */
  13560. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  13561. {
  13562. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13563. return $instance->doesntHave($relation, $boolean, $callback);
  13564. }
  13565. /**
  13566. * Add a relationship count / exists condition to the query with an "or".
  13567. *
  13568. * @param string $relation
  13569. * @return \Illuminate\Database\Eloquent\Builder|static
  13570. * @static
  13571. */
  13572. public static function orDoesntHave($relation)
  13573. {
  13574. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13575. return $instance->orDoesntHave($relation);
  13576. }
  13577. /**
  13578. * Add a relationship count / exists condition to the query with where clauses.
  13579. *
  13580. * @param string $relation
  13581. * @param \Closure|null $callback
  13582. * @param string $operator
  13583. * @param int $count
  13584. * @return \Illuminate\Database\Eloquent\Builder|static
  13585. * @static
  13586. */
  13587. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  13588. {
  13589. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13590. return $instance->whereHas($relation, $callback, $operator, $count);
  13591. }
  13592. /**
  13593. * Add a relationship count / exists condition to the query with where clauses and an "or".
  13594. *
  13595. * @param string $relation
  13596. * @param \Closure $callback
  13597. * @param string $operator
  13598. * @param int $count
  13599. * @return \Illuminate\Database\Eloquent\Builder|static
  13600. * @static
  13601. */
  13602. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  13603. {
  13604. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13605. return $instance->orWhereHas($relation, $callback, $operator, $count);
  13606. }
  13607. /**
  13608. * Add a relationship count / exists condition to the query with where clauses.
  13609. *
  13610. * @param string $relation
  13611. * @param \Closure|null $callback
  13612. * @return \Illuminate\Database\Eloquent\Builder|static
  13613. * @static
  13614. */
  13615. public static function whereDoesntHave($relation, $callback = null)
  13616. {
  13617. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13618. return $instance->whereDoesntHave($relation, $callback);
  13619. }
  13620. /**
  13621. * Add a relationship count / exists condition to the query with where clauses and an "or".
  13622. *
  13623. * @param string $relation
  13624. * @param \Closure $callback
  13625. * @return \Illuminate\Database\Eloquent\Builder|static
  13626. * @static
  13627. */
  13628. public static function orWhereDoesntHave($relation, $callback = null)
  13629. {
  13630. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13631. return $instance->orWhereDoesntHave($relation, $callback);
  13632. }
  13633. /**
  13634. * Add subselect queries to count the relations.
  13635. *
  13636. * @param mixed $relations
  13637. * @return \Illuminate\Database\Eloquent\Builder
  13638. * @static
  13639. */
  13640. public static function withCount($relations)
  13641. {
  13642. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13643. return $instance->withCount($relations);
  13644. }
  13645. /**
  13646. * Merge the where constraints from another query to the current query.
  13647. *
  13648. * @param \Illuminate\Database\Eloquent\Builder $from
  13649. * @return \Illuminate\Database\Eloquent\Builder|static
  13650. * @static
  13651. */
  13652. public static function mergeConstraintsFrom($from)
  13653. {
  13654. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  13655. return $instance->mergeConstraintsFrom($from);
  13656. }
  13657. /**
  13658. * Set the columns to be selected.
  13659. *
  13660. * @param array|mixed $columns
  13661. * @return \Illuminate\Database\Query\Builder
  13662. * @static
  13663. */
  13664. public static function select($columns = array())
  13665. {
  13666. /** @var \Illuminate\Database\Query\Builder $instance */
  13667. return $instance->select($columns);
  13668. }
  13669. /**
  13670. * Add a new "raw" select expression to the query.
  13671. *
  13672. * @param string $expression
  13673. * @param array $bindings
  13674. * @return \Illuminate\Database\Query\Builder|static
  13675. * @static
  13676. */
  13677. public static function selectRaw($expression, $bindings = array())
  13678. {
  13679. /** @var \Illuminate\Database\Query\Builder $instance */
  13680. return $instance->selectRaw($expression, $bindings);
  13681. }
  13682. /**
  13683. * Add a subselect expression to the query.
  13684. *
  13685. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  13686. * @param string $as
  13687. * @return \Illuminate\Database\Query\Builder|static
  13688. * @throws \InvalidArgumentException
  13689. * @static
  13690. */
  13691. public static function selectSub($query, $as)
  13692. {
  13693. /** @var \Illuminate\Database\Query\Builder $instance */
  13694. return $instance->selectSub($query, $as);
  13695. }
  13696. /**
  13697. * Add a new select column to the query.
  13698. *
  13699. * @param array|mixed $column
  13700. * @return \Illuminate\Database\Query\Builder
  13701. * @static
  13702. */
  13703. public static function addSelect($column)
  13704. {
  13705. /** @var \Illuminate\Database\Query\Builder $instance */
  13706. return $instance->addSelect($column);
  13707. }
  13708. /**
  13709. * Force the query to only return distinct results.
  13710. *
  13711. * @return \Illuminate\Database\Query\Builder
  13712. * @static
  13713. */
  13714. public static function distinct()
  13715. {
  13716. /** @var \Illuminate\Database\Query\Builder $instance */
  13717. return $instance->distinct();
  13718. }
  13719. /**
  13720. * Set the table which the query is targeting.
  13721. *
  13722. * @param string $table
  13723. * @return \Illuminate\Database\Query\Builder
  13724. * @static
  13725. */
  13726. public static function from($table)
  13727. {
  13728. /** @var \Illuminate\Database\Query\Builder $instance */
  13729. return $instance->from($table);
  13730. }
  13731. /**
  13732. * Add a join clause to the query.
  13733. *
  13734. * @param string $table
  13735. * @param string $first
  13736. * @param string|null $operator
  13737. * @param string|null $second
  13738. * @param string $type
  13739. * @param bool $where
  13740. * @return \Illuminate\Database\Query\Builder
  13741. * @static
  13742. */
  13743. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  13744. {
  13745. /** @var \Illuminate\Database\Query\Builder $instance */
  13746. return $instance->join($table, $first, $operator, $second, $type, $where);
  13747. }
  13748. /**
  13749. * Add a "join where" clause to the query.
  13750. *
  13751. * @param string $table
  13752. * @param string $first
  13753. * @param string $operator
  13754. * @param string $second
  13755. * @param string $type
  13756. * @return \Illuminate\Database\Query\Builder|static
  13757. * @static
  13758. */
  13759. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  13760. {
  13761. /** @var \Illuminate\Database\Query\Builder $instance */
  13762. return $instance->joinWhere($table, $first, $operator, $second, $type);
  13763. }
  13764. /**
  13765. * Add a left join to the query.
  13766. *
  13767. * @param string $table
  13768. * @param string $first
  13769. * @param string|null $operator
  13770. * @param string|null $second
  13771. * @return \Illuminate\Database\Query\Builder|static
  13772. * @static
  13773. */
  13774. public static function leftJoin($table, $first, $operator = null, $second = null)
  13775. {
  13776. /** @var \Illuminate\Database\Query\Builder $instance */
  13777. return $instance->leftJoin($table, $first, $operator, $second);
  13778. }
  13779. /**
  13780. * Add a "join where" clause to the query.
  13781. *
  13782. * @param string $table
  13783. * @param string $first
  13784. * @param string $operator
  13785. * @param string $second
  13786. * @return \Illuminate\Database\Query\Builder|static
  13787. * @static
  13788. */
  13789. public static function leftJoinWhere($table, $first, $operator, $second)
  13790. {
  13791. /** @var \Illuminate\Database\Query\Builder $instance */
  13792. return $instance->leftJoinWhere($table, $first, $operator, $second);
  13793. }
  13794. /**
  13795. * Add a right join to the query.
  13796. *
  13797. * @param string $table
  13798. * @param string $first
  13799. * @param string|null $operator
  13800. * @param string|null $second
  13801. * @return \Illuminate\Database\Query\Builder|static
  13802. * @static
  13803. */
  13804. public static function rightJoin($table, $first, $operator = null, $second = null)
  13805. {
  13806. /** @var \Illuminate\Database\Query\Builder $instance */
  13807. return $instance->rightJoin($table, $first, $operator, $second);
  13808. }
  13809. /**
  13810. * Add a "right join where" clause to the query.
  13811. *
  13812. * @param string $table
  13813. * @param string $first
  13814. * @param string $operator
  13815. * @param string $second
  13816. * @return \Illuminate\Database\Query\Builder|static
  13817. * @static
  13818. */
  13819. public static function rightJoinWhere($table, $first, $operator, $second)
  13820. {
  13821. /** @var \Illuminate\Database\Query\Builder $instance */
  13822. return $instance->rightJoinWhere($table, $first, $operator, $second);
  13823. }
  13824. /**
  13825. * Add a "cross join" clause to the query.
  13826. *
  13827. * @param string $table
  13828. * @param string|null $first
  13829. * @param string|null $operator
  13830. * @param string|null $second
  13831. * @return \Illuminate\Database\Query\Builder|static
  13832. * @static
  13833. */
  13834. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  13835. {
  13836. /** @var \Illuminate\Database\Query\Builder $instance */
  13837. return $instance->crossJoin($table, $first, $operator, $second);
  13838. }
  13839. /**
  13840. * Merge an array of where clauses and bindings.
  13841. *
  13842. * @param array $wheres
  13843. * @param array $bindings
  13844. * @return void
  13845. * @static
  13846. */
  13847. public static function mergeWheres($wheres, $bindings)
  13848. {
  13849. /** @var \Illuminate\Database\Query\Builder $instance */
  13850. $instance->mergeWheres($wheres, $bindings);
  13851. }
  13852. /**
  13853. * Prepare the value and operator for a where clause.
  13854. *
  13855. * @param string $value
  13856. * @param string $operator
  13857. * @param bool $useDefault
  13858. * @return array
  13859. * @throws \InvalidArgumentException
  13860. * @static
  13861. */
  13862. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  13863. {
  13864. /** @var \Illuminate\Database\Query\Builder $instance */
  13865. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  13866. }
  13867. /**
  13868. * Add a "where" clause comparing two columns to the query.
  13869. *
  13870. * @param string|array $first
  13871. * @param string|null $operator
  13872. * @param string|null $second
  13873. * @param string|null $boolean
  13874. * @return \Illuminate\Database\Query\Builder|static
  13875. * @static
  13876. */
  13877. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  13878. {
  13879. /** @var \Illuminate\Database\Query\Builder $instance */
  13880. return $instance->whereColumn($first, $operator, $second, $boolean);
  13881. }
  13882. /**
  13883. * Add an "or where" clause comparing two columns to the query.
  13884. *
  13885. * @param string|array $first
  13886. * @param string|null $operator
  13887. * @param string|null $second
  13888. * @return \Illuminate\Database\Query\Builder|static
  13889. * @static
  13890. */
  13891. public static function orWhereColumn($first, $operator = null, $second = null)
  13892. {
  13893. /** @var \Illuminate\Database\Query\Builder $instance */
  13894. return $instance->orWhereColumn($first, $operator, $second);
  13895. }
  13896. /**
  13897. * Add a raw where clause to the query.
  13898. *
  13899. * @param string $sql
  13900. * @param mixed $bindings
  13901. * @param string $boolean
  13902. * @return \Illuminate\Database\Query\Builder
  13903. * @static
  13904. */
  13905. public static function whereRaw($sql, $bindings = array(), $boolean = 'and')
  13906. {
  13907. /** @var \Illuminate\Database\Query\Builder $instance */
  13908. return $instance->whereRaw($sql, $bindings, $boolean);
  13909. }
  13910. /**
  13911. * Add a raw or where clause to the query.
  13912. *
  13913. * @param string $sql
  13914. * @param mixed $bindings
  13915. * @return \Illuminate\Database\Query\Builder|static
  13916. * @static
  13917. */
  13918. public static function orWhereRaw($sql, $bindings = array())
  13919. {
  13920. /** @var \Illuminate\Database\Query\Builder $instance */
  13921. return $instance->orWhereRaw($sql, $bindings);
  13922. }
  13923. /**
  13924. * Add a "where in" clause to the query.
  13925. *
  13926. * @param string $column
  13927. * @param mixed $values
  13928. * @param string $boolean
  13929. * @param bool $not
  13930. * @return \Illuminate\Database\Query\Builder
  13931. * @static
  13932. */
  13933. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  13934. {
  13935. /** @var \Illuminate\Database\Query\Builder $instance */
  13936. return $instance->whereIn($column, $values, $boolean, $not);
  13937. }
  13938. /**
  13939. * Add an "or where in" clause to the query.
  13940. *
  13941. * @param string $column
  13942. * @param mixed $values
  13943. * @return \Illuminate\Database\Query\Builder|static
  13944. * @static
  13945. */
  13946. public static function orWhereIn($column, $values)
  13947. {
  13948. /** @var \Illuminate\Database\Query\Builder $instance */
  13949. return $instance->orWhereIn($column, $values);
  13950. }
  13951. /**
  13952. * Add a "where not in" clause to the query.
  13953. *
  13954. * @param string $column
  13955. * @param mixed $values
  13956. * @param string $boolean
  13957. * @return \Illuminate\Database\Query\Builder|static
  13958. * @static
  13959. */
  13960. public static function whereNotIn($column, $values, $boolean = 'and')
  13961. {
  13962. /** @var \Illuminate\Database\Query\Builder $instance */
  13963. return $instance->whereNotIn($column, $values, $boolean);
  13964. }
  13965. /**
  13966. * Add an "or where not in" clause to the query.
  13967. *
  13968. * @param string $column
  13969. * @param mixed $values
  13970. * @return \Illuminate\Database\Query\Builder|static
  13971. * @static
  13972. */
  13973. public static function orWhereNotIn($column, $values)
  13974. {
  13975. /** @var \Illuminate\Database\Query\Builder $instance */
  13976. return $instance->orWhereNotIn($column, $values);
  13977. }
  13978. /**
  13979. * Add a "where null" clause to the query.
  13980. *
  13981. * @param string $column
  13982. * @param string $boolean
  13983. * @param bool $not
  13984. * @return \Illuminate\Database\Query\Builder
  13985. * @static
  13986. */
  13987. public static function whereNull($column, $boolean = 'and', $not = false)
  13988. {
  13989. /** @var \Illuminate\Database\Query\Builder $instance */
  13990. return $instance->whereNull($column, $boolean, $not);
  13991. }
  13992. /**
  13993. * Add an "or where null" clause to the query.
  13994. *
  13995. * @param string $column
  13996. * @return \Illuminate\Database\Query\Builder|static
  13997. * @static
  13998. */
  13999. public static function orWhereNull($column)
  14000. {
  14001. /** @var \Illuminate\Database\Query\Builder $instance */
  14002. return $instance->orWhereNull($column);
  14003. }
  14004. /**
  14005. * Add a "where not null" clause to the query.
  14006. *
  14007. * @param string $column
  14008. * @param string $boolean
  14009. * @return \Illuminate\Database\Query\Builder|static
  14010. * @static
  14011. */
  14012. public static function whereNotNull($column, $boolean = 'and')
  14013. {
  14014. /** @var \Illuminate\Database\Query\Builder $instance */
  14015. return $instance->whereNotNull($column, $boolean);
  14016. }
  14017. /**
  14018. * Add a where between statement to the query.
  14019. *
  14020. * @param string $column
  14021. * @param array $values
  14022. * @param string $boolean
  14023. * @param bool $not
  14024. * @return \Illuminate\Database\Query\Builder
  14025. * @static
  14026. */
  14027. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  14028. {
  14029. /** @var \Illuminate\Database\Query\Builder $instance */
  14030. return $instance->whereBetween($column, $values, $boolean, $not);
  14031. }
  14032. /**
  14033. * Add an or where between statement to the query.
  14034. *
  14035. * @param string $column
  14036. * @param array $values
  14037. * @return \Illuminate\Database\Query\Builder|static
  14038. * @static
  14039. */
  14040. public static function orWhereBetween($column, $values)
  14041. {
  14042. /** @var \Illuminate\Database\Query\Builder $instance */
  14043. return $instance->orWhereBetween($column, $values);
  14044. }
  14045. /**
  14046. * Add a where not between statement to the query.
  14047. *
  14048. * @param string $column
  14049. * @param array $values
  14050. * @param string $boolean
  14051. * @return \Illuminate\Database\Query\Builder|static
  14052. * @static
  14053. */
  14054. public static function whereNotBetween($column, $values, $boolean = 'and')
  14055. {
  14056. /** @var \Illuminate\Database\Query\Builder $instance */
  14057. return $instance->whereNotBetween($column, $values, $boolean);
  14058. }
  14059. /**
  14060. * Add an or where not between statement to the query.
  14061. *
  14062. * @param string $column
  14063. * @param array $values
  14064. * @return \Illuminate\Database\Query\Builder|static
  14065. * @static
  14066. */
  14067. public static function orWhereNotBetween($column, $values)
  14068. {
  14069. /** @var \Illuminate\Database\Query\Builder $instance */
  14070. return $instance->orWhereNotBetween($column, $values);
  14071. }
  14072. /**
  14073. * Add an "or where not null" clause to the query.
  14074. *
  14075. * @param string $column
  14076. * @return \Illuminate\Database\Query\Builder|static
  14077. * @static
  14078. */
  14079. public static function orWhereNotNull($column)
  14080. {
  14081. /** @var \Illuminate\Database\Query\Builder $instance */
  14082. return $instance->orWhereNotNull($column);
  14083. }
  14084. /**
  14085. * Add a "where date" statement to the query.
  14086. *
  14087. * @param string $column
  14088. * @param string $operator
  14089. * @param mixed $value
  14090. * @param string $boolean
  14091. * @return \Illuminate\Database\Query\Builder|static
  14092. * @static
  14093. */
  14094. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  14095. {
  14096. /** @var \Illuminate\Database\Query\Builder $instance */
  14097. return $instance->whereDate($column, $operator, $value, $boolean);
  14098. }
  14099. /**
  14100. * Add an "or where date" statement to the query.
  14101. *
  14102. * @param string $column
  14103. * @param string $operator
  14104. * @param string $value
  14105. * @return \Illuminate\Database\Query\Builder|static
  14106. * @static
  14107. */
  14108. public static function orWhereDate($column, $operator, $value)
  14109. {
  14110. /** @var \Illuminate\Database\Query\Builder $instance */
  14111. return $instance->orWhereDate($column, $operator, $value);
  14112. }
  14113. /**
  14114. * Add a "where time" statement to the query.
  14115. *
  14116. * @param string $column
  14117. * @param string $operator
  14118. * @param int $value
  14119. * @param string $boolean
  14120. * @return \Illuminate\Database\Query\Builder|static
  14121. * @static
  14122. */
  14123. public static function whereTime($column, $operator, $value, $boolean = 'and')
  14124. {
  14125. /** @var \Illuminate\Database\Query\Builder $instance */
  14126. return $instance->whereTime($column, $operator, $value, $boolean);
  14127. }
  14128. /**
  14129. * Add an "or where time" statement to the query.
  14130. *
  14131. * @param string $column
  14132. * @param string $operator
  14133. * @param int $value
  14134. * @return \Illuminate\Database\Query\Builder|static
  14135. * @static
  14136. */
  14137. public static function orWhereTime($column, $operator, $value)
  14138. {
  14139. /** @var \Illuminate\Database\Query\Builder $instance */
  14140. return $instance->orWhereTime($column, $operator, $value);
  14141. }
  14142. /**
  14143. * Add a "where day" statement to the query.
  14144. *
  14145. * @param string $column
  14146. * @param string $operator
  14147. * @param mixed $value
  14148. * @param string $boolean
  14149. * @return \Illuminate\Database\Query\Builder|static
  14150. * @static
  14151. */
  14152. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  14153. {
  14154. /** @var \Illuminate\Database\Query\Builder $instance */
  14155. return $instance->whereDay($column, $operator, $value, $boolean);
  14156. }
  14157. /**
  14158. * Add a "where month" statement to the query.
  14159. *
  14160. * @param string $column
  14161. * @param string $operator
  14162. * @param mixed $value
  14163. * @param string $boolean
  14164. * @return \Illuminate\Database\Query\Builder|static
  14165. * @static
  14166. */
  14167. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  14168. {
  14169. /** @var \Illuminate\Database\Query\Builder $instance */
  14170. return $instance->whereMonth($column, $operator, $value, $boolean);
  14171. }
  14172. /**
  14173. * Add a "where year" statement to the query.
  14174. *
  14175. * @param string $column
  14176. * @param string $operator
  14177. * @param mixed $value
  14178. * @param string $boolean
  14179. * @return \Illuminate\Database\Query\Builder|static
  14180. * @static
  14181. */
  14182. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  14183. {
  14184. /** @var \Illuminate\Database\Query\Builder $instance */
  14185. return $instance->whereYear($column, $operator, $value, $boolean);
  14186. }
  14187. /**
  14188. * Add a nested where statement to the query.
  14189. *
  14190. * @param \Closure $callback
  14191. * @param string $boolean
  14192. * @return \Illuminate\Database\Query\Builder|static
  14193. * @static
  14194. */
  14195. public static function whereNested($callback, $boolean = 'and')
  14196. {
  14197. /** @var \Illuminate\Database\Query\Builder $instance */
  14198. return $instance->whereNested($callback, $boolean);
  14199. }
  14200. /**
  14201. * Create a new query instance for nested where condition.
  14202. *
  14203. * @return \Illuminate\Database\Query\Builder
  14204. * @static
  14205. */
  14206. public static function forNestedWhere()
  14207. {
  14208. /** @var \Illuminate\Database\Query\Builder $instance */
  14209. return $instance->forNestedWhere();
  14210. }
  14211. /**
  14212. * Add another query builder as a nested where to the query builder.
  14213. *
  14214. * @param \Illuminate\Database\Query\Builder|static $query
  14215. * @param string $boolean
  14216. * @return \Illuminate\Database\Query\Builder
  14217. * @static
  14218. */
  14219. public static function addNestedWhereQuery($query, $boolean = 'and')
  14220. {
  14221. /** @var \Illuminate\Database\Query\Builder $instance */
  14222. return $instance->addNestedWhereQuery($query, $boolean);
  14223. }
  14224. /**
  14225. * Add an exists clause to the query.
  14226. *
  14227. * @param \Closure $callback
  14228. * @param string $boolean
  14229. * @param bool $not
  14230. * @return \Illuminate\Database\Query\Builder
  14231. * @static
  14232. */
  14233. public static function whereExists($callback, $boolean = 'and', $not = false)
  14234. {
  14235. /** @var \Illuminate\Database\Query\Builder $instance */
  14236. return $instance->whereExists($callback, $boolean, $not);
  14237. }
  14238. /**
  14239. * Add an or exists clause to the query.
  14240. *
  14241. * @param \Closure $callback
  14242. * @param bool $not
  14243. * @return \Illuminate\Database\Query\Builder|static
  14244. * @static
  14245. */
  14246. public static function orWhereExists($callback, $not = false)
  14247. {
  14248. /** @var \Illuminate\Database\Query\Builder $instance */
  14249. return $instance->orWhereExists($callback, $not);
  14250. }
  14251. /**
  14252. * Add a where not exists clause to the query.
  14253. *
  14254. * @param \Closure $callback
  14255. * @param string $boolean
  14256. * @return \Illuminate\Database\Query\Builder|static
  14257. * @static
  14258. */
  14259. public static function whereNotExists($callback, $boolean = 'and')
  14260. {
  14261. /** @var \Illuminate\Database\Query\Builder $instance */
  14262. return $instance->whereNotExists($callback, $boolean);
  14263. }
  14264. /**
  14265. * Add a where not exists clause to the query.
  14266. *
  14267. * @param \Closure $callback
  14268. * @return \Illuminate\Database\Query\Builder|static
  14269. * @static
  14270. */
  14271. public static function orWhereNotExists($callback)
  14272. {
  14273. /** @var \Illuminate\Database\Query\Builder $instance */
  14274. return $instance->orWhereNotExists($callback);
  14275. }
  14276. /**
  14277. * Add an exists clause to the query.
  14278. *
  14279. * @param \Illuminate\Database\Query\Builder $query
  14280. * @param string $boolean
  14281. * @param bool $not
  14282. * @return \Illuminate\Database\Query\Builder
  14283. * @static
  14284. */
  14285. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  14286. {
  14287. /** @var \Illuminate\Database\Query\Builder $instance */
  14288. return $instance->addWhereExistsQuery($query, $boolean, $not);
  14289. }
  14290. /**
  14291. * Handles dynamic "where" clauses to the query.
  14292. *
  14293. * @param string $method
  14294. * @param string $parameters
  14295. * @return \Illuminate\Database\Query\Builder
  14296. * @static
  14297. */
  14298. public static function dynamicWhere($method, $parameters)
  14299. {
  14300. /** @var \Illuminate\Database\Query\Builder $instance */
  14301. return $instance->dynamicWhere($method, $parameters);
  14302. }
  14303. /**
  14304. * Add a "group by" clause to the query.
  14305. *
  14306. * @param array $groups
  14307. * @return \Illuminate\Database\Query\Builder
  14308. * @static
  14309. */
  14310. public static function groupBy($groups = null)
  14311. {
  14312. /** @var \Illuminate\Database\Query\Builder $instance */
  14313. return $instance->groupBy($groups);
  14314. }
  14315. /**
  14316. * Add a "having" clause to the query.
  14317. *
  14318. * @param string $column
  14319. * @param string|null $operator
  14320. * @param string|null $value
  14321. * @param string $boolean
  14322. * @return \Illuminate\Database\Query\Builder
  14323. * @static
  14324. */
  14325. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  14326. {
  14327. /** @var \Illuminate\Database\Query\Builder $instance */
  14328. return $instance->having($column, $operator, $value, $boolean);
  14329. }
  14330. /**
  14331. * Add a "or having" clause to the query.
  14332. *
  14333. * @param string $column
  14334. * @param string|null $operator
  14335. * @param string|null $value
  14336. * @return \Illuminate\Database\Query\Builder|static
  14337. * @static
  14338. */
  14339. public static function orHaving($column, $operator = null, $value = null)
  14340. {
  14341. /** @var \Illuminate\Database\Query\Builder $instance */
  14342. return $instance->orHaving($column, $operator, $value);
  14343. }
  14344. /**
  14345. * Add a raw having clause to the query.
  14346. *
  14347. * @param string $sql
  14348. * @param array $bindings
  14349. * @param string $boolean
  14350. * @return \Illuminate\Database\Query\Builder
  14351. * @static
  14352. */
  14353. public static function havingRaw($sql, $bindings = array(), $boolean = 'and')
  14354. {
  14355. /** @var \Illuminate\Database\Query\Builder $instance */
  14356. return $instance->havingRaw($sql, $bindings, $boolean);
  14357. }
  14358. /**
  14359. * Add a raw or having clause to the query.
  14360. *
  14361. * @param string $sql
  14362. * @param array $bindings
  14363. * @return \Illuminate\Database\Query\Builder|static
  14364. * @static
  14365. */
  14366. public static function orHavingRaw($sql, $bindings = array())
  14367. {
  14368. /** @var \Illuminate\Database\Query\Builder $instance */
  14369. return $instance->orHavingRaw($sql, $bindings);
  14370. }
  14371. /**
  14372. * Add an "order by" clause to the query.
  14373. *
  14374. * @param string $column
  14375. * @param string $direction
  14376. * @return \Illuminate\Database\Query\Builder
  14377. * @static
  14378. */
  14379. public static function orderBy($column, $direction = 'asc')
  14380. {
  14381. /** @var \Illuminate\Database\Query\Builder $instance */
  14382. return $instance->orderBy($column, $direction);
  14383. }
  14384. /**
  14385. * Add a descending "order by" clause to the query.
  14386. *
  14387. * @param string $column
  14388. * @return \Illuminate\Database\Query\Builder
  14389. * @static
  14390. */
  14391. public static function orderByDesc($column)
  14392. {
  14393. /** @var \Illuminate\Database\Query\Builder $instance */
  14394. return $instance->orderByDesc($column);
  14395. }
  14396. /**
  14397. * Add an "order by" clause for a timestamp to the query.
  14398. *
  14399. * @param string $column
  14400. * @return \Illuminate\Database\Query\Builder|static
  14401. * @static
  14402. */
  14403. public static function latest($column = 'created_at')
  14404. {
  14405. /** @var \Illuminate\Database\Query\Builder $instance */
  14406. return $instance->latest($column);
  14407. }
  14408. /**
  14409. * Add an "order by" clause for a timestamp to the query.
  14410. *
  14411. * @param string $column
  14412. * @return \Illuminate\Database\Query\Builder|static
  14413. * @static
  14414. */
  14415. public static function oldest($column = 'created_at')
  14416. {
  14417. /** @var \Illuminate\Database\Query\Builder $instance */
  14418. return $instance->oldest($column);
  14419. }
  14420. /**
  14421. * Put the query's results in random order.
  14422. *
  14423. * @param string $seed
  14424. * @return \Illuminate\Database\Query\Builder
  14425. * @static
  14426. */
  14427. public static function inRandomOrder($seed = '')
  14428. {
  14429. /** @var \Illuminate\Database\Query\Builder $instance */
  14430. return $instance->inRandomOrder($seed);
  14431. }
  14432. /**
  14433. * Add a raw "order by" clause to the query.
  14434. *
  14435. * @param string $sql
  14436. * @param array $bindings
  14437. * @return \Illuminate\Database\Query\Builder
  14438. * @static
  14439. */
  14440. public static function orderByRaw($sql, $bindings = array())
  14441. {
  14442. /** @var \Illuminate\Database\Query\Builder $instance */
  14443. return $instance->orderByRaw($sql, $bindings);
  14444. }
  14445. /**
  14446. * Alias to set the "offset" value of the query.
  14447. *
  14448. * @param int $value
  14449. * @return \Illuminate\Database\Query\Builder|static
  14450. * @static
  14451. */
  14452. public static function skip($value)
  14453. {
  14454. /** @var \Illuminate\Database\Query\Builder $instance */
  14455. return $instance->skip($value);
  14456. }
  14457. /**
  14458. * Set the "offset" value of the query.
  14459. *
  14460. * @param int $value
  14461. * @return \Illuminate\Database\Query\Builder
  14462. * @static
  14463. */
  14464. public static function offset($value)
  14465. {
  14466. /** @var \Illuminate\Database\Query\Builder $instance */
  14467. return $instance->offset($value);
  14468. }
  14469. /**
  14470. * Alias to set the "limit" value of the query.
  14471. *
  14472. * @param int $value
  14473. * @return \Illuminate\Database\Query\Builder|static
  14474. * @static
  14475. */
  14476. public static function take($value)
  14477. {
  14478. /** @var \Illuminate\Database\Query\Builder $instance */
  14479. return $instance->take($value);
  14480. }
  14481. /**
  14482. * Set the "limit" value of the query.
  14483. *
  14484. * @param int $value
  14485. * @return \Illuminate\Database\Query\Builder
  14486. * @static
  14487. */
  14488. public static function limit($value)
  14489. {
  14490. /** @var \Illuminate\Database\Query\Builder $instance */
  14491. return $instance->limit($value);
  14492. }
  14493. /**
  14494. * Set the limit and offset for a given page.
  14495. *
  14496. * @param int $page
  14497. * @param int $perPage
  14498. * @return \Illuminate\Database\Query\Builder|static
  14499. * @static
  14500. */
  14501. public static function forPage($page, $perPage = 15)
  14502. {
  14503. /** @var \Illuminate\Database\Query\Builder $instance */
  14504. return $instance->forPage($page, $perPage);
  14505. }
  14506. /**
  14507. * Constrain the query to the next "page" of results after a given ID.
  14508. *
  14509. * @param int $perPage
  14510. * @param int $lastId
  14511. * @param string $column
  14512. * @return \Illuminate\Database\Query\Builder|static
  14513. * @static
  14514. */
  14515. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  14516. {
  14517. /** @var \Illuminate\Database\Query\Builder $instance */
  14518. return $instance->forPageAfterId($perPage, $lastId, $column);
  14519. }
  14520. /**
  14521. * Add a union statement to the query.
  14522. *
  14523. * @param \Illuminate\Database\Query\Builder|\Closure $query
  14524. * @param bool $all
  14525. * @return \Illuminate\Database\Query\Builder|static
  14526. * @static
  14527. */
  14528. public static function union($query, $all = false)
  14529. {
  14530. /** @var \Illuminate\Database\Query\Builder $instance */
  14531. return $instance->union($query, $all);
  14532. }
  14533. /**
  14534. * Add a union all statement to the query.
  14535. *
  14536. * @param \Illuminate\Database\Query\Builder|\Closure $query
  14537. * @return \Illuminate\Database\Query\Builder|static
  14538. * @static
  14539. */
  14540. public static function unionAll($query)
  14541. {
  14542. /** @var \Illuminate\Database\Query\Builder $instance */
  14543. return $instance->unionAll($query);
  14544. }
  14545. /**
  14546. * Lock the selected rows in the table.
  14547. *
  14548. * @param string|bool $value
  14549. * @return \Illuminate\Database\Query\Builder
  14550. * @static
  14551. */
  14552. public static function lock($value = true)
  14553. {
  14554. /** @var \Illuminate\Database\Query\Builder $instance */
  14555. return $instance->lock($value);
  14556. }
  14557. /**
  14558. * Lock the selected rows in the table for updating.
  14559. *
  14560. * @return \Illuminate\Database\Query\Builder
  14561. * @static
  14562. */
  14563. public static function lockForUpdate()
  14564. {
  14565. /** @var \Illuminate\Database\Query\Builder $instance */
  14566. return $instance->lockForUpdate();
  14567. }
  14568. /**
  14569. * Share lock the selected rows in the table.
  14570. *
  14571. * @return \Illuminate\Database\Query\Builder
  14572. * @static
  14573. */
  14574. public static function sharedLock()
  14575. {
  14576. /** @var \Illuminate\Database\Query\Builder $instance */
  14577. return $instance->sharedLock();
  14578. }
  14579. /**
  14580. * Get the SQL representation of the query.
  14581. *
  14582. * @return string
  14583. * @static
  14584. */
  14585. public static function toSql()
  14586. {
  14587. /** @var \Illuminate\Database\Query\Builder $instance */
  14588. return $instance->toSql();
  14589. }
  14590. /**
  14591. * Get the count of the total records for the paginator.
  14592. *
  14593. * @param array $columns
  14594. * @return int
  14595. * @static
  14596. */
  14597. public static function getCountForPagination($columns = array())
  14598. {
  14599. /** @var \Illuminate\Database\Query\Builder $instance */
  14600. return $instance->getCountForPagination($columns);
  14601. }
  14602. /**
  14603. * Concatenate values of a given column as a string.
  14604. *
  14605. * @param string $column
  14606. * @param string $glue
  14607. * @return string
  14608. * @static
  14609. */
  14610. public static function implode($column, $glue = '')
  14611. {
  14612. /** @var \Illuminate\Database\Query\Builder $instance */
  14613. return $instance->implode($column, $glue);
  14614. }
  14615. /**
  14616. * Determine if any rows exist for the current query.
  14617. *
  14618. * @return bool
  14619. * @static
  14620. */
  14621. public static function exists()
  14622. {
  14623. /** @var \Illuminate\Database\Query\Builder $instance */
  14624. return $instance->exists();
  14625. }
  14626. /**
  14627. * Determine if no rows exist for the current query.
  14628. *
  14629. * @return bool
  14630. * @static
  14631. */
  14632. public static function doesntExist()
  14633. {
  14634. /** @var \Illuminate\Database\Query\Builder $instance */
  14635. return $instance->doesntExist();
  14636. }
  14637. /**
  14638. * Retrieve the "count" result of the query.
  14639. *
  14640. * @param string $columns
  14641. * @return int
  14642. * @static
  14643. */
  14644. public static function count($columns = '*')
  14645. {
  14646. /** @var \Illuminate\Database\Query\Builder $instance */
  14647. return $instance->count($columns);
  14648. }
  14649. /**
  14650. * Retrieve the minimum value of a given column.
  14651. *
  14652. * @param string $column
  14653. * @return mixed
  14654. * @static
  14655. */
  14656. public static function min($column)
  14657. {
  14658. /** @var \Illuminate\Database\Query\Builder $instance */
  14659. return $instance->min($column);
  14660. }
  14661. /**
  14662. * Retrieve the maximum value of a given column.
  14663. *
  14664. * @param string $column
  14665. * @return mixed
  14666. * @static
  14667. */
  14668. public static function max($column)
  14669. {
  14670. /** @var \Illuminate\Database\Query\Builder $instance */
  14671. return $instance->max($column);
  14672. }
  14673. /**
  14674. * Retrieve the sum of the values of a given column.
  14675. *
  14676. * @param string $column
  14677. * @return mixed
  14678. * @static
  14679. */
  14680. public static function sum($column)
  14681. {
  14682. /** @var \Illuminate\Database\Query\Builder $instance */
  14683. return $instance->sum($column);
  14684. }
  14685. /**
  14686. * Retrieve the average of the values of a given column.
  14687. *
  14688. * @param string $column
  14689. * @return mixed
  14690. * @static
  14691. */
  14692. public static function avg($column)
  14693. {
  14694. /** @var \Illuminate\Database\Query\Builder $instance */
  14695. return $instance->avg($column);
  14696. }
  14697. /**
  14698. * Alias for the "avg" method.
  14699. *
  14700. * @param string $column
  14701. * @return mixed
  14702. * @static
  14703. */
  14704. public static function average($column)
  14705. {
  14706. /** @var \Illuminate\Database\Query\Builder $instance */
  14707. return $instance->average($column);
  14708. }
  14709. /**
  14710. * Execute an aggregate function on the database.
  14711. *
  14712. * @param string $function
  14713. * @param array $columns
  14714. * @return mixed
  14715. * @static
  14716. */
  14717. public static function aggregate($function, $columns = array())
  14718. {
  14719. /** @var \Illuminate\Database\Query\Builder $instance */
  14720. return $instance->aggregate($function, $columns);
  14721. }
  14722. /**
  14723. * Execute a numeric aggregate function on the database.
  14724. *
  14725. * @param string $function
  14726. * @param array $columns
  14727. * @return float|int
  14728. * @static
  14729. */
  14730. public static function numericAggregate($function, $columns = array())
  14731. {
  14732. /** @var \Illuminate\Database\Query\Builder $instance */
  14733. return $instance->numericAggregate($function, $columns);
  14734. }
  14735. /**
  14736. * Insert a new record into the database.
  14737. *
  14738. * @param array $values
  14739. * @return bool
  14740. * @static
  14741. */
  14742. public static function insert($values)
  14743. {
  14744. /** @var \Illuminate\Database\Query\Builder $instance */
  14745. return $instance->insert($values);
  14746. }
  14747. /**
  14748. * Insert a new record and get the value of the primary key.
  14749. *
  14750. * @param array $values
  14751. * @param string|null $sequence
  14752. * @return int
  14753. * @static
  14754. */
  14755. public static function insertGetId($values, $sequence = null)
  14756. {
  14757. /** @var \Illuminate\Database\Query\Builder $instance */
  14758. return $instance->insertGetId($values, $sequence);
  14759. }
  14760. /**
  14761. * Insert or update a record matching the attributes, and fill it with values.
  14762. *
  14763. * @param array $attributes
  14764. * @param array $values
  14765. * @return bool
  14766. * @static
  14767. */
  14768. public static function updateOrInsert($attributes, $values = array())
  14769. {
  14770. /** @var \Illuminate\Database\Query\Builder $instance */
  14771. return $instance->updateOrInsert($attributes, $values);
  14772. }
  14773. /**
  14774. * Run a truncate statement on the table.
  14775. *
  14776. * @return void
  14777. * @static
  14778. */
  14779. public static function truncate()
  14780. {
  14781. /** @var \Illuminate\Database\Query\Builder $instance */
  14782. $instance->truncate();
  14783. }
  14784. /**
  14785. * Create a raw database expression.
  14786. *
  14787. * @param mixed $value
  14788. * @return \Illuminate\Database\Query\Expression
  14789. * @static
  14790. */
  14791. public static function raw($value)
  14792. {
  14793. /** @var \Illuminate\Database\Query\Builder $instance */
  14794. return $instance->raw($value);
  14795. }
  14796. /**
  14797. * Get the current query value bindings in a flattened array.
  14798. *
  14799. * @return array
  14800. * @static
  14801. */
  14802. public static function getBindings()
  14803. {
  14804. /** @var \Illuminate\Database\Query\Builder $instance */
  14805. return $instance->getBindings();
  14806. }
  14807. /**
  14808. * Get the raw array of bindings.
  14809. *
  14810. * @return array
  14811. * @static
  14812. */
  14813. public static function getRawBindings()
  14814. {
  14815. /** @var \Illuminate\Database\Query\Builder $instance */
  14816. return $instance->getRawBindings();
  14817. }
  14818. /**
  14819. * Set the bindings on the query builder.
  14820. *
  14821. * @param array $bindings
  14822. * @param string $type
  14823. * @return \Illuminate\Database\Query\Builder
  14824. * @throws \InvalidArgumentException
  14825. * @static
  14826. */
  14827. public static function setBindings($bindings, $type = 'where')
  14828. {
  14829. /** @var \Illuminate\Database\Query\Builder $instance */
  14830. return $instance->setBindings($bindings, $type);
  14831. }
  14832. /**
  14833. * Add a binding to the query.
  14834. *
  14835. * @param mixed $value
  14836. * @param string $type
  14837. * @return \Illuminate\Database\Query\Builder
  14838. * @throws \InvalidArgumentException
  14839. * @static
  14840. */
  14841. public static function addBinding($value, $type = 'where')
  14842. {
  14843. /** @var \Illuminate\Database\Query\Builder $instance */
  14844. return $instance->addBinding($value, $type);
  14845. }
  14846. /**
  14847. * Merge an array of bindings into our bindings.
  14848. *
  14849. * @param \Illuminate\Database\Query\Builder $query
  14850. * @return \Illuminate\Database\Query\Builder
  14851. * @static
  14852. */
  14853. public static function mergeBindings($query)
  14854. {
  14855. /** @var \Illuminate\Database\Query\Builder $instance */
  14856. return $instance->mergeBindings($query);
  14857. }
  14858. /**
  14859. * Get the database query processor instance.
  14860. *
  14861. * @return \Illuminate\Database\Query\Processors\Processor
  14862. * @static
  14863. */
  14864. public static function getProcessor()
  14865. {
  14866. /** @var \Illuminate\Database\Query\Builder $instance */
  14867. return $instance->getProcessor();
  14868. }
  14869. /**
  14870. * Get the query grammar instance.
  14871. *
  14872. * @return \Illuminate\Database\Query\Grammars\Grammar
  14873. * @static
  14874. */
  14875. public static function getGrammar()
  14876. {
  14877. /** @var \Illuminate\Database\Query\Builder $instance */
  14878. return $instance->getGrammar();
  14879. }
  14880. /**
  14881. * Use the write pdo for query.
  14882. *
  14883. * @return \Illuminate\Database\Query\Builder
  14884. * @static
  14885. */
  14886. public static function useWritePdo()
  14887. {
  14888. /** @var \Illuminate\Database\Query\Builder $instance */
  14889. return $instance->useWritePdo();
  14890. }
  14891. /**
  14892. * Clone the query without the given properties.
  14893. *
  14894. * @param array $properties
  14895. * @return static
  14896. * @static
  14897. */
  14898. public static function cloneWithout($properties)
  14899. {
  14900. /** @var \Illuminate\Database\Query\Builder $instance */
  14901. return $instance->cloneWithout($properties);
  14902. }
  14903. /**
  14904. * Clone the query without the given bindings.
  14905. *
  14906. * @param array $except
  14907. * @return static
  14908. * @static
  14909. */
  14910. public static function cloneWithoutBindings($except)
  14911. {
  14912. /** @var \Illuminate\Database\Query\Builder $instance */
  14913. return $instance->cloneWithoutBindings($except);
  14914. }
  14915. /**
  14916. * Register a custom macro.
  14917. *
  14918. * @param string $name
  14919. * @param object|callable $macro
  14920. * @return void
  14921. * @static
  14922. */
  14923. public static function macro($name, $macro)
  14924. {
  14925. \Illuminate\Database\Query\Builder::macro($name, $macro);
  14926. }
  14927. /**
  14928. * Mix another object into the class.
  14929. *
  14930. * @param object $mixin
  14931. * @return void
  14932. * @static
  14933. */
  14934. public static function mixin($mixin)
  14935. {
  14936. \Illuminate\Database\Query\Builder::mixin($mixin);
  14937. }
  14938. /**
  14939. * Checks if macro is registered.
  14940. *
  14941. * @param string $name
  14942. * @return bool
  14943. * @static
  14944. */
  14945. public static function hasMacro($name)
  14946. {
  14947. return \Illuminate\Database\Query\Builder::hasMacro($name);
  14948. }
  14949. /**
  14950. * Dynamically handle calls to the class.
  14951. *
  14952. * @param string $method
  14953. * @param array $parameters
  14954. * @return mixed
  14955. * @throws \BadMethodCallException
  14956. * @static
  14957. */
  14958. public static function macroCall($method, $parameters)
  14959. {
  14960. /** @var \Illuminate\Database\Query\Builder $instance */
  14961. return $instance->macroCall($method, $parameters);
  14962. }
  14963. }
  14964. class Event extends \Illuminate\Support\Facades\Event {}
  14965. class File extends \Illuminate\Support\Facades\File {}
  14966. class Gate extends \Illuminate\Support\Facades\Gate {}
  14967. class Hash extends \Illuminate\Support\Facades\Hash {}
  14968. class Lang extends \Illuminate\Support\Facades\Lang {}
  14969. class Log extends \Illuminate\Support\Facades\Log {}
  14970. class Mail extends \Illuminate\Support\Facades\Mail {}
  14971. class Notification extends \Illuminate\Support\Facades\Notification {}
  14972. class Password extends \Illuminate\Support\Facades\Password {}
  14973. class Queue extends \Illuminate\Support\Facades\Queue {}
  14974. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  14975. class Request extends \Illuminate\Support\Facades\Request {}
  14976. class Response extends \Illuminate\Support\Facades\Response {}
  14977. class Route extends \Illuminate\Support\Facades\Route {}
  14978. class Schema extends \Illuminate\Support\Facades\Schema {}
  14979. class Session extends \Illuminate\Support\Facades\Session {}
  14980. class Storage extends \Illuminate\Support\Facades\Storage {}
  14981. class URL extends \Illuminate\Support\Facades\URL {}
  14982. class Validator extends \Illuminate\Support\Facades\Validator {}
  14983. class View extends \Illuminate\Support\Facades\View {}
  14984. class Iseed extends \Orangehill\Iseed\Facades\Iseed {}
  14985. }