_ide_helper.php 482 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251
  1. <?php
  2. // @formatter:off
  3. /**
  4. * A helper file for Laravel 5, to provide autocomplete information to your IDE
  5. * Generated for Laravel 5.6.39 on 2019-01-17 01:33:55.
  6. *
  7. * This file should not be included in your code, only analyzed by your IDE!
  8. *
  9. * @author Barry vd. Heuvel <[email protected]>
  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. return \Illuminate\Foundation\Application::version();
  28. }
  29. /**
  30. * Run the given array of bootstrap classes.
  31. *
  32. * @param array $bootstrappers
  33. * @return void
  34. * @static
  35. */
  36. public static function bootstrapWith($bootstrappers)
  37. {
  38. \Illuminate\Foundation\Application::bootstrapWith($bootstrappers);
  39. }
  40. /**
  41. * Register a callback to run after loading the environment.
  42. *
  43. * @param \Closure $callback
  44. * @return void
  45. * @static
  46. */
  47. public static function afterLoadingEnvironment($callback)
  48. {
  49. \Illuminate\Foundation\Application::afterLoadingEnvironment($callback);
  50. }
  51. /**
  52. * Register a callback to run before a bootstrapper.
  53. *
  54. * @param string $bootstrapper
  55. * @param \Closure $callback
  56. * @return void
  57. * @static
  58. */
  59. public static function beforeBootstrapping($bootstrapper, $callback)
  60. {
  61. \Illuminate\Foundation\Application::beforeBootstrapping($bootstrapper, $callback);
  62. }
  63. /**
  64. * Register a callback to run after a bootstrapper.
  65. *
  66. * @param string $bootstrapper
  67. * @param \Closure $callback
  68. * @return void
  69. * @static
  70. */
  71. public static function afterBootstrapping($bootstrapper, $callback)
  72. {
  73. \Illuminate\Foundation\Application::afterBootstrapping($bootstrapper, $callback);
  74. }
  75. /**
  76. * Determine if the application has been bootstrapped before.
  77. *
  78. * @return bool
  79. * @static
  80. */
  81. public static function hasBeenBootstrapped()
  82. {
  83. return \Illuminate\Foundation\Application::hasBeenBootstrapped();
  84. }
  85. /**
  86. * Set the base path for the application.
  87. *
  88. * @param string $basePath
  89. * @return $this
  90. * @static
  91. */
  92. public static function setBasePath($basePath)
  93. {
  94. return \Illuminate\Foundation\Application::setBasePath($basePath);
  95. }
  96. /**
  97. * Get the path to the application "app" directory.
  98. *
  99. * @param string $path Optionally, a path to append to the app path
  100. * @return string
  101. * @static
  102. */
  103. public static function path($path = '')
  104. {
  105. return \Illuminate\Foundation\Application::path($path);
  106. }
  107. /**
  108. * Get the base path of the Laravel installation.
  109. *
  110. * @param string $path Optionally, a path to append to the base path
  111. * @return string
  112. * @static
  113. */
  114. public static function basePath($path = '')
  115. {
  116. return \Illuminate\Foundation\Application::basePath($path);
  117. }
  118. /**
  119. * Get the path to the bootstrap directory.
  120. *
  121. * @param string $path Optionally, a path to append to the bootstrap path
  122. * @return string
  123. * @static
  124. */
  125. public static function bootstrapPath($path = '')
  126. {
  127. return \Illuminate\Foundation\Application::bootstrapPath($path);
  128. }
  129. /**
  130. * Get the path to the application configuration files.
  131. *
  132. * @param string $path Optionally, a path to append to the config path
  133. * @return string
  134. * @static
  135. */
  136. public static function configPath($path = '')
  137. {
  138. return \Illuminate\Foundation\Application::configPath($path);
  139. }
  140. /**
  141. * Get the path to the database directory.
  142. *
  143. * @param string $path Optionally, a path to append to the database path
  144. * @return string
  145. * @static
  146. */
  147. public static function databasePath($path = '')
  148. {
  149. return \Illuminate\Foundation\Application::databasePath($path);
  150. }
  151. /**
  152. * Set the database directory.
  153. *
  154. * @param string $path
  155. * @return $this
  156. * @static
  157. */
  158. public static function useDatabasePath($path)
  159. {
  160. return \Illuminate\Foundation\Application::useDatabasePath($path);
  161. }
  162. /**
  163. * Get the path to the language files.
  164. *
  165. * @return string
  166. * @static
  167. */
  168. public static function langPath()
  169. {
  170. return \Illuminate\Foundation\Application::langPath();
  171. }
  172. /**
  173. * Get the path to the public / web directory.
  174. *
  175. * @return string
  176. * @static
  177. */
  178. public static function publicPath()
  179. {
  180. return \Illuminate\Foundation\Application::publicPath();
  181. }
  182. /**
  183. * Get the path to the storage directory.
  184. *
  185. * @return string
  186. * @static
  187. */
  188. public static function storagePath()
  189. {
  190. return \Illuminate\Foundation\Application::storagePath();
  191. }
  192. /**
  193. * Set the storage directory.
  194. *
  195. * @param string $path
  196. * @return $this
  197. * @static
  198. */
  199. public static function useStoragePath($path)
  200. {
  201. return \Illuminate\Foundation\Application::useStoragePath($path);
  202. }
  203. /**
  204. * Get the path to the resources directory.
  205. *
  206. * @param string $path
  207. * @return string
  208. * @static
  209. */
  210. public static function resourcePath($path = '')
  211. {
  212. return \Illuminate\Foundation\Application::resourcePath($path);
  213. }
  214. /**
  215. * Get the path to the environment file directory.
  216. *
  217. * @return string
  218. * @static
  219. */
  220. public static function environmentPath()
  221. {
  222. return \Illuminate\Foundation\Application::environmentPath();
  223. }
  224. /**
  225. * Set the directory for the environment file.
  226. *
  227. * @param string $path
  228. * @return $this
  229. * @static
  230. */
  231. public static function useEnvironmentPath($path)
  232. {
  233. return \Illuminate\Foundation\Application::useEnvironmentPath($path);
  234. }
  235. /**
  236. * Set the environment file to be loaded during bootstrapping.
  237. *
  238. * @param string $file
  239. * @return $this
  240. * @static
  241. */
  242. public static function loadEnvironmentFrom($file)
  243. {
  244. return \Illuminate\Foundation\Application::loadEnvironmentFrom($file);
  245. }
  246. /**
  247. * Get the environment file the application is using.
  248. *
  249. * @return string
  250. * @static
  251. */
  252. public static function environmentFile()
  253. {
  254. return \Illuminate\Foundation\Application::environmentFile();
  255. }
  256. /**
  257. * Get the fully qualified path to the environment file.
  258. *
  259. * @return string
  260. * @static
  261. */
  262. public static function environmentFilePath()
  263. {
  264. return \Illuminate\Foundation\Application::environmentFilePath();
  265. }
  266. /**
  267. * Get or check the current application environment.
  268. *
  269. * @return string|bool
  270. * @static
  271. */
  272. public static function environment()
  273. {
  274. return \Illuminate\Foundation\Application::environment();
  275. }
  276. /**
  277. * Determine if application is in local environment.
  278. *
  279. * @return bool
  280. * @static
  281. */
  282. public static function isLocal()
  283. {
  284. return \Illuminate\Foundation\Application::isLocal();
  285. }
  286. /**
  287. * Detect the application's current environment.
  288. *
  289. * @param \Closure $callback
  290. * @return string
  291. * @static
  292. */
  293. public static function detectEnvironment($callback)
  294. {
  295. return \Illuminate\Foundation\Application::detectEnvironment($callback);
  296. }
  297. /**
  298. * Determine if the application is running in the console.
  299. *
  300. * @return bool
  301. * @static
  302. */
  303. public static function runningInConsole()
  304. {
  305. return \Illuminate\Foundation\Application::runningInConsole();
  306. }
  307. /**
  308. * Determine if the application is running unit tests.
  309. *
  310. * @return bool
  311. * @static
  312. */
  313. public static function runningUnitTests()
  314. {
  315. return \Illuminate\Foundation\Application::runningUnitTests();
  316. }
  317. /**
  318. * Register all of the configured providers.
  319. *
  320. * @return void
  321. * @static
  322. */
  323. public static function registerConfiguredProviders()
  324. {
  325. \Illuminate\Foundation\Application::registerConfiguredProviders();
  326. }
  327. /**
  328. * Register a service provider with the application.
  329. *
  330. * @param \Illuminate\Support\ServiceProvider|string $provider
  331. * @param array $options
  332. * @param bool $force
  333. * @return \Illuminate\Support\ServiceProvider
  334. * @static
  335. */
  336. public static function register($provider, $options = array(), $force = false)
  337. {
  338. return \Illuminate\Foundation\Application::register($provider, $options, $force);
  339. }
  340. /**
  341. * Get the registered service provider instance if it exists.
  342. *
  343. * @param \Illuminate\Support\ServiceProvider|string $provider
  344. * @return \Illuminate\Support\ServiceProvider|null
  345. * @static
  346. */
  347. public static function getProvider($provider)
  348. {
  349. return \Illuminate\Foundation\Application::getProvider($provider);
  350. }
  351. /**
  352. * Get the registered service provider instances if any exist.
  353. *
  354. * @param \Illuminate\Support\ServiceProvider|string $provider
  355. * @return array
  356. * @static
  357. */
  358. public static function getProviders($provider)
  359. {
  360. return \Illuminate\Foundation\Application::getProviders($provider);
  361. }
  362. /**
  363. * Resolve a service provider instance from the class name.
  364. *
  365. * @param string $provider
  366. * @return \Illuminate\Support\ServiceProvider
  367. * @static
  368. */
  369. public static function resolveProvider($provider)
  370. {
  371. return \Illuminate\Foundation\Application::resolveProvider($provider);
  372. }
  373. /**
  374. * Load and boot all of the remaining deferred providers.
  375. *
  376. * @return void
  377. * @static
  378. */
  379. public static function loadDeferredProviders()
  380. {
  381. \Illuminate\Foundation\Application::loadDeferredProviders();
  382. }
  383. /**
  384. * Load the provider for a deferred service.
  385. *
  386. * @param string $service
  387. * @return void
  388. * @static
  389. */
  390. public static function loadDeferredProvider($service)
  391. {
  392. \Illuminate\Foundation\Application::loadDeferredProvider($service);
  393. }
  394. /**
  395. * Register a deferred provider and service.
  396. *
  397. * @param string $provider
  398. * @param string|null $service
  399. * @return void
  400. * @static
  401. */
  402. public static function registerDeferredProvider($provider, $service = null)
  403. {
  404. \Illuminate\Foundation\Application::registerDeferredProvider($provider, $service);
  405. }
  406. /**
  407. * Resolve the given type from the container.
  408. *
  409. * (Overriding Container::make)
  410. *
  411. * @param string $abstract
  412. * @param array $parameters
  413. * @return mixed
  414. * @static
  415. */
  416. public static function make($abstract, $parameters = array())
  417. {
  418. return \Illuminate\Foundation\Application::make($abstract, $parameters);
  419. }
  420. /**
  421. * Determine if the given abstract type has been bound.
  422. *
  423. * (Overriding Container::bound)
  424. *
  425. * @param string $abstract
  426. * @return bool
  427. * @static
  428. */
  429. public static function bound($abstract)
  430. {
  431. return \Illuminate\Foundation\Application::bound($abstract);
  432. }
  433. /**
  434. * Determine if the application has booted.
  435. *
  436. * @return bool
  437. * @static
  438. */
  439. public static function isBooted()
  440. {
  441. return \Illuminate\Foundation\Application::isBooted();
  442. }
  443. /**
  444. * Boot the application's service providers.
  445. *
  446. * @return void
  447. * @static
  448. */
  449. public static function boot()
  450. {
  451. \Illuminate\Foundation\Application::boot();
  452. }
  453. /**
  454. * Register a new boot listener.
  455. *
  456. * @param mixed $callback
  457. * @return void
  458. * @static
  459. */
  460. public static function booting($callback)
  461. {
  462. \Illuminate\Foundation\Application::booting($callback);
  463. }
  464. /**
  465. * Register a new "booted" listener.
  466. *
  467. * @param mixed $callback
  468. * @return void
  469. * @static
  470. */
  471. public static function booted($callback)
  472. {
  473. \Illuminate\Foundation\Application::booted($callback);
  474. }
  475. /**
  476. * {@inheritdoc}
  477. *
  478. * @static
  479. */
  480. public static function handle($request, $type = 1, $catch = true)
  481. {
  482. return \Illuminate\Foundation\Application::handle($request, $type, $catch);
  483. }
  484. /**
  485. * Determine if middleware has been disabled for the application.
  486. *
  487. * @return bool
  488. * @static
  489. */
  490. public static function shouldSkipMiddleware()
  491. {
  492. return \Illuminate\Foundation\Application::shouldSkipMiddleware();
  493. }
  494. /**
  495. * Get the path to the cached services.php file.
  496. *
  497. * @return string
  498. * @static
  499. */
  500. public static function getCachedServicesPath()
  501. {
  502. return \Illuminate\Foundation\Application::getCachedServicesPath();
  503. }
  504. /**
  505. * Get the path to the cached packages.php file.
  506. *
  507. * @return string
  508. * @static
  509. */
  510. public static function getCachedPackagesPath()
  511. {
  512. return \Illuminate\Foundation\Application::getCachedPackagesPath();
  513. }
  514. /**
  515. * Determine if the application configuration is cached.
  516. *
  517. * @return bool
  518. * @static
  519. */
  520. public static function configurationIsCached()
  521. {
  522. return \Illuminate\Foundation\Application::configurationIsCached();
  523. }
  524. /**
  525. * Get the path to the configuration cache file.
  526. *
  527. * @return string
  528. * @static
  529. */
  530. public static function getCachedConfigPath()
  531. {
  532. return \Illuminate\Foundation\Application::getCachedConfigPath();
  533. }
  534. /**
  535. * Determine if the application routes are cached.
  536. *
  537. * @return bool
  538. * @static
  539. */
  540. public static function routesAreCached()
  541. {
  542. return \Illuminate\Foundation\Application::routesAreCached();
  543. }
  544. /**
  545. * Get the path to the routes cache file.
  546. *
  547. * @return string
  548. * @static
  549. */
  550. public static function getCachedRoutesPath()
  551. {
  552. return \Illuminate\Foundation\Application::getCachedRoutesPath();
  553. }
  554. /**
  555. * Determine if the application is currently down for maintenance.
  556. *
  557. * @return bool
  558. * @static
  559. */
  560. public static function isDownForMaintenance()
  561. {
  562. return \Illuminate\Foundation\Application::isDownForMaintenance();
  563. }
  564. /**
  565. * Throw an HttpException with the given data.
  566. *
  567. * @param int $code
  568. * @param string $message
  569. * @param array $headers
  570. * @return void
  571. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  572. * @static
  573. */
  574. public static function abort($code, $message = '', $headers = array())
  575. {
  576. \Illuminate\Foundation\Application::abort($code, $message, $headers);
  577. }
  578. /**
  579. * Register a terminating callback with the application.
  580. *
  581. * @param \Closure $callback
  582. * @return $this
  583. * @static
  584. */
  585. public static function terminating($callback)
  586. {
  587. return \Illuminate\Foundation\Application::terminating($callback);
  588. }
  589. /**
  590. * Terminate the application.
  591. *
  592. * @return void
  593. * @static
  594. */
  595. public static function terminate()
  596. {
  597. \Illuminate\Foundation\Application::terminate();
  598. }
  599. /**
  600. * Get the service providers that have been loaded.
  601. *
  602. * @return array
  603. * @static
  604. */
  605. public static function getLoadedProviders()
  606. {
  607. return \Illuminate\Foundation\Application::getLoadedProviders();
  608. }
  609. /**
  610. * Get the application's deferred services.
  611. *
  612. * @return array
  613. * @static
  614. */
  615. public static function getDeferredServices()
  616. {
  617. return \Illuminate\Foundation\Application::getDeferredServices();
  618. }
  619. /**
  620. * Set the application's deferred services.
  621. *
  622. * @param array $services
  623. * @return void
  624. * @static
  625. */
  626. public static function setDeferredServices($services)
  627. {
  628. \Illuminate\Foundation\Application::setDeferredServices($services);
  629. }
  630. /**
  631. * Add an array of services to the application's deferred services.
  632. *
  633. * @param array $services
  634. * @return void
  635. * @static
  636. */
  637. public static function addDeferredServices($services)
  638. {
  639. \Illuminate\Foundation\Application::addDeferredServices($services);
  640. }
  641. /**
  642. * Determine if the given service is a deferred service.
  643. *
  644. * @param string $service
  645. * @return bool
  646. * @static
  647. */
  648. public static function isDeferredService($service)
  649. {
  650. return \Illuminate\Foundation\Application::isDeferredService($service);
  651. }
  652. /**
  653. * Configure the real-time facade namespace.
  654. *
  655. * @param string $namespace
  656. * @return void
  657. * @static
  658. */
  659. public static function provideFacades($namespace)
  660. {
  661. \Illuminate\Foundation\Application::provideFacades($namespace);
  662. }
  663. /**
  664. * Get the current application locale.
  665. *
  666. * @return string
  667. * @static
  668. */
  669. public static function getLocale()
  670. {
  671. return \Illuminate\Foundation\Application::getLocale();
  672. }
  673. /**
  674. * Set the current application locale.
  675. *
  676. * @param string $locale
  677. * @return void
  678. * @static
  679. */
  680. public static function setLocale($locale)
  681. {
  682. \Illuminate\Foundation\Application::setLocale($locale);
  683. }
  684. /**
  685. * Determine if application locale is the given locale.
  686. *
  687. * @param string $locale
  688. * @return bool
  689. * @static
  690. */
  691. public static function isLocale($locale)
  692. {
  693. return \Illuminate\Foundation\Application::isLocale($locale);
  694. }
  695. /**
  696. * Register the core class aliases in the container.
  697. *
  698. * @return void
  699. * @static
  700. */
  701. public static function registerCoreContainerAliases()
  702. {
  703. \Illuminate\Foundation\Application::registerCoreContainerAliases();
  704. }
  705. /**
  706. * Flush the container of all bindings and resolved instances.
  707. *
  708. * @return void
  709. * @static
  710. */
  711. public static function flush()
  712. {
  713. \Illuminate\Foundation\Application::flush();
  714. }
  715. /**
  716. * Get the application namespace.
  717. *
  718. * @return string
  719. * @throws \RuntimeException
  720. * @static
  721. */
  722. public static function getNamespace()
  723. {
  724. return \Illuminate\Foundation\Application::getNamespace();
  725. }
  726. /**
  727. * Define a contextual binding.
  728. *
  729. * @param string $concrete
  730. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  731. * @static
  732. */
  733. public static function when($concrete)
  734. {
  735. //Method inherited from \Illuminate\Container\Container
  736. return \Illuminate\Foundation\Application::when($concrete);
  737. }
  738. /**
  739. * Returns true if the container can return an entry for the given identifier.
  740. *
  741. * Returns false otherwise.
  742. *
  743. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  744. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  745. *
  746. * @param string $id Identifier of the entry to look for.
  747. * @return bool
  748. * @static
  749. */
  750. public static function has($id)
  751. {
  752. //Method inherited from \Illuminate\Container\Container
  753. return \Illuminate\Foundation\Application::has($id);
  754. }
  755. /**
  756. * Determine if the given abstract type has been resolved.
  757. *
  758. * @param string $abstract
  759. * @return bool
  760. * @static
  761. */
  762. public static function resolved($abstract)
  763. {
  764. //Method inherited from \Illuminate\Container\Container
  765. return \Illuminate\Foundation\Application::resolved($abstract);
  766. }
  767. /**
  768. * Determine if a given type is shared.
  769. *
  770. * @param string $abstract
  771. * @return bool
  772. * @static
  773. */
  774. public static function isShared($abstract)
  775. {
  776. //Method inherited from \Illuminate\Container\Container
  777. return \Illuminate\Foundation\Application::isShared($abstract);
  778. }
  779. /**
  780. * Determine if a given string is an alias.
  781. *
  782. * @param string $name
  783. * @return bool
  784. * @static
  785. */
  786. public static function isAlias($name)
  787. {
  788. //Method inherited from \Illuminate\Container\Container
  789. return \Illuminate\Foundation\Application::isAlias($name);
  790. }
  791. /**
  792. * Register a binding with the container.
  793. *
  794. * @param string $abstract
  795. * @param \Closure|string|null $concrete
  796. * @param bool $shared
  797. * @return void
  798. * @static
  799. */
  800. public static function bind($abstract, $concrete = null, $shared = false)
  801. {
  802. //Method inherited from \Illuminate\Container\Container
  803. \Illuminate\Foundation\Application::bind($abstract, $concrete, $shared);
  804. }
  805. /**
  806. * Determine if the container has a method binding.
  807. *
  808. * @param string $method
  809. * @return bool
  810. * @static
  811. */
  812. public static function hasMethodBinding($method)
  813. {
  814. //Method inherited from \Illuminate\Container\Container
  815. return \Illuminate\Foundation\Application::hasMethodBinding($method);
  816. }
  817. /**
  818. * Bind a callback to resolve with Container::call.
  819. *
  820. * @param array|string $method
  821. * @param \Closure $callback
  822. * @return void
  823. * @static
  824. */
  825. public static function bindMethod($method, $callback)
  826. {
  827. //Method inherited from \Illuminate\Container\Container
  828. \Illuminate\Foundation\Application::bindMethod($method, $callback);
  829. }
  830. /**
  831. * Get the method binding for the given method.
  832. *
  833. * @param string $method
  834. * @param mixed $instance
  835. * @return mixed
  836. * @static
  837. */
  838. public static function callMethodBinding($method, $instance)
  839. {
  840. //Method inherited from \Illuminate\Container\Container
  841. return \Illuminate\Foundation\Application::callMethodBinding($method, $instance);
  842. }
  843. /**
  844. * Add a contextual binding to the container.
  845. *
  846. * @param string $concrete
  847. * @param string $abstract
  848. * @param \Closure|string $implementation
  849. * @return void
  850. * @static
  851. */
  852. public static function addContextualBinding($concrete, $abstract, $implementation)
  853. {
  854. //Method inherited from \Illuminate\Container\Container
  855. \Illuminate\Foundation\Application::addContextualBinding($concrete, $abstract, $implementation);
  856. }
  857. /**
  858. * Register a binding if it hasn't already been registered.
  859. *
  860. * @param string $abstract
  861. * @param \Closure|string|null $concrete
  862. * @param bool $shared
  863. * @return void
  864. * @static
  865. */
  866. public static function bindIf($abstract, $concrete = null, $shared = false)
  867. {
  868. //Method inherited from \Illuminate\Container\Container
  869. \Illuminate\Foundation\Application::bindIf($abstract, $concrete, $shared);
  870. }
  871. /**
  872. * Register a shared binding in the container.
  873. *
  874. * @param string $abstract
  875. * @param \Closure|string|null $concrete
  876. * @return void
  877. * @static
  878. */
  879. public static function singleton($abstract, $concrete = null)
  880. {
  881. //Method inherited from \Illuminate\Container\Container
  882. \Illuminate\Foundation\Application::singleton($abstract, $concrete);
  883. }
  884. /**
  885. * "Extend" an abstract type in the container.
  886. *
  887. * @param string $abstract
  888. * @param \Closure $closure
  889. * @return void
  890. * @throws \InvalidArgumentException
  891. * @static
  892. */
  893. public static function extend($abstract, $closure)
  894. {
  895. //Method inherited from \Illuminate\Container\Container
  896. \Illuminate\Foundation\Application::extend($abstract, $closure);
  897. }
  898. /**
  899. * Register an existing instance as shared in the container.
  900. *
  901. * @param string $abstract
  902. * @param mixed $instance
  903. * @return mixed
  904. * @static
  905. */
  906. public static function instance($abstract, $instance)
  907. {
  908. //Method inherited from \Illuminate\Container\Container
  909. return \Illuminate\Foundation\Application::instance($abstract, $instance);
  910. }
  911. /**
  912. * Assign a set of tags to a given binding.
  913. *
  914. * @param array|string $abstracts
  915. * @param array|mixed $tags
  916. * @return void
  917. * @static
  918. */
  919. public static function tag($abstracts, $tags)
  920. {
  921. //Method inherited from \Illuminate\Container\Container
  922. \Illuminate\Foundation\Application::tag($abstracts, $tags);
  923. }
  924. /**
  925. * Resolve all of the bindings for a given tag.
  926. *
  927. * @param string $tag
  928. * @return array
  929. * @static
  930. */
  931. public static function tagged($tag)
  932. {
  933. //Method inherited from \Illuminate\Container\Container
  934. return \Illuminate\Foundation\Application::tagged($tag);
  935. }
  936. /**
  937. * Alias a type to a different name.
  938. *
  939. * @param string $abstract
  940. * @param string $alias
  941. * @return void
  942. * @static
  943. */
  944. public static function alias($abstract, $alias)
  945. {
  946. //Method inherited from \Illuminate\Container\Container
  947. \Illuminate\Foundation\Application::alias($abstract, $alias);
  948. }
  949. /**
  950. * Bind a new callback to an abstract's rebind event.
  951. *
  952. * @param string $abstract
  953. * @param \Closure $callback
  954. * @return mixed
  955. * @static
  956. */
  957. public static function rebinding($abstract, $callback)
  958. {
  959. //Method inherited from \Illuminate\Container\Container
  960. return \Illuminate\Foundation\Application::rebinding($abstract, $callback);
  961. }
  962. /**
  963. * Refresh an instance on the given target and method.
  964. *
  965. * @param string $abstract
  966. * @param mixed $target
  967. * @param string $method
  968. * @return mixed
  969. * @static
  970. */
  971. public static function refresh($abstract, $target, $method)
  972. {
  973. //Method inherited from \Illuminate\Container\Container
  974. return \Illuminate\Foundation\Application::refresh($abstract, $target, $method);
  975. }
  976. /**
  977. * Wrap the given closure such that its dependencies will be injected when executed.
  978. *
  979. * @param \Closure $callback
  980. * @param array $parameters
  981. * @return \Closure
  982. * @static
  983. */
  984. public static function wrap($callback, $parameters = array())
  985. {
  986. //Method inherited from \Illuminate\Container\Container
  987. return \Illuminate\Foundation\Application::wrap($callback, $parameters);
  988. }
  989. /**
  990. * Call the given Closure / class@method and inject its dependencies.
  991. *
  992. * @param callable|string $callback
  993. * @param array $parameters
  994. * @param string|null $defaultMethod
  995. * @return mixed
  996. * @static
  997. */
  998. public static function call($callback, $parameters = array(), $defaultMethod = null)
  999. {
  1000. //Method inherited from \Illuminate\Container\Container
  1001. return \Illuminate\Foundation\Application::call($callback, $parameters, $defaultMethod);
  1002. }
  1003. /**
  1004. * Get a closure to resolve the given type from the container.
  1005. *
  1006. * @param string $abstract
  1007. * @return \Closure
  1008. * @static
  1009. */
  1010. public static function factory($abstract)
  1011. {
  1012. //Method inherited from \Illuminate\Container\Container
  1013. return \Illuminate\Foundation\Application::factory($abstract);
  1014. }
  1015. /**
  1016. * An alias function name for make().
  1017. *
  1018. * @param string $abstract
  1019. * @param array $parameters
  1020. * @return mixed
  1021. * @static
  1022. */
  1023. public static function makeWith($abstract, $parameters = array())
  1024. {
  1025. //Method inherited from \Illuminate\Container\Container
  1026. return \Illuminate\Foundation\Application::makeWith($abstract, $parameters);
  1027. }
  1028. /**
  1029. * Finds an entry of the container by its identifier and returns it.
  1030. *
  1031. * @param string $id Identifier of the entry to look for.
  1032. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1033. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1034. * @return mixed Entry.
  1035. * @static
  1036. */
  1037. public static function get($id)
  1038. {
  1039. //Method inherited from \Illuminate\Container\Container
  1040. return \Illuminate\Foundation\Application::get($id);
  1041. }
  1042. /**
  1043. * Instantiate a concrete instance of the given type.
  1044. *
  1045. * @param string $concrete
  1046. * @return mixed
  1047. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1048. * @static
  1049. */
  1050. public static function build($concrete)
  1051. {
  1052. //Method inherited from \Illuminate\Container\Container
  1053. return \Illuminate\Foundation\Application::build($concrete);
  1054. }
  1055. /**
  1056. * Register a new resolving callback.
  1057. *
  1058. * @param \Closure|string $abstract
  1059. * @param \Closure|null $callback
  1060. * @return void
  1061. * @static
  1062. */
  1063. public static function resolving($abstract, $callback = null)
  1064. {
  1065. //Method inherited from \Illuminate\Container\Container
  1066. \Illuminate\Foundation\Application::resolving($abstract, $callback);
  1067. }
  1068. /**
  1069. * Register a new after resolving callback for all types.
  1070. *
  1071. * @param \Closure|string $abstract
  1072. * @param \Closure|null $callback
  1073. * @return void
  1074. * @static
  1075. */
  1076. public static function afterResolving($abstract, $callback = null)
  1077. {
  1078. //Method inherited from \Illuminate\Container\Container
  1079. \Illuminate\Foundation\Application::afterResolving($abstract, $callback);
  1080. }
  1081. /**
  1082. * Get the container's bindings.
  1083. *
  1084. * @return array
  1085. * @static
  1086. */
  1087. public static function getBindings()
  1088. {
  1089. //Method inherited from \Illuminate\Container\Container
  1090. return \Illuminate\Foundation\Application::getBindings();
  1091. }
  1092. /**
  1093. * Get the alias for an abstract if available.
  1094. *
  1095. * @param string $abstract
  1096. * @return string
  1097. * @throws \LogicException
  1098. * @static
  1099. */
  1100. public static function getAlias($abstract)
  1101. {
  1102. //Method inherited from \Illuminate\Container\Container
  1103. return \Illuminate\Foundation\Application::getAlias($abstract);
  1104. }
  1105. /**
  1106. * Remove all of the extender callbacks for a given type.
  1107. *
  1108. * @param string $abstract
  1109. * @return void
  1110. * @static
  1111. */
  1112. public static function forgetExtenders($abstract)
  1113. {
  1114. //Method inherited from \Illuminate\Container\Container
  1115. \Illuminate\Foundation\Application::forgetExtenders($abstract);
  1116. }
  1117. /**
  1118. * Remove a resolved instance from the instance cache.
  1119. *
  1120. * @param string $abstract
  1121. * @return void
  1122. * @static
  1123. */
  1124. public static function forgetInstance($abstract)
  1125. {
  1126. //Method inherited from \Illuminate\Container\Container
  1127. \Illuminate\Foundation\Application::forgetInstance($abstract);
  1128. }
  1129. /**
  1130. * Clear all of the instances from the container.
  1131. *
  1132. * @return void
  1133. * @static
  1134. */
  1135. public static function forgetInstances()
  1136. {
  1137. //Method inherited from \Illuminate\Container\Container
  1138. \Illuminate\Foundation\Application::forgetInstances();
  1139. }
  1140. /**
  1141. * Set the globally available instance of the container.
  1142. *
  1143. * @return static
  1144. * @static
  1145. */
  1146. public static function getInstance()
  1147. {
  1148. //Method inherited from \Illuminate\Container\Container
  1149. return \Illuminate\Foundation\Application::getInstance();
  1150. }
  1151. /**
  1152. * Set the shared instance of the container.
  1153. *
  1154. * @param \Illuminate\Contracts\Container\Container|null $container
  1155. * @return \Illuminate\Contracts\Container\Container|static
  1156. * @static
  1157. */
  1158. public static function setInstance($container = null)
  1159. {
  1160. //Method inherited from \Illuminate\Container\Container
  1161. return \Illuminate\Foundation\Application::setInstance($container);
  1162. }
  1163. /**
  1164. * Determine if a given offset exists.
  1165. *
  1166. * @param string $key
  1167. * @return bool
  1168. * @static
  1169. */
  1170. public static function offsetExists($key)
  1171. {
  1172. //Method inherited from \Illuminate\Container\Container
  1173. return \Illuminate\Foundation\Application::offsetExists($key);
  1174. }
  1175. /**
  1176. * Get the value at a given offset.
  1177. *
  1178. * @param string $key
  1179. * @return mixed
  1180. * @static
  1181. */
  1182. public static function offsetGet($key)
  1183. {
  1184. //Method inherited from \Illuminate\Container\Container
  1185. return \Illuminate\Foundation\Application::offsetGet($key);
  1186. }
  1187. /**
  1188. * Set the value at a given offset.
  1189. *
  1190. * @param string $key
  1191. * @param mixed $value
  1192. * @return void
  1193. * @static
  1194. */
  1195. public static function offsetSet($key, $value)
  1196. {
  1197. //Method inherited from \Illuminate\Container\Container
  1198. \Illuminate\Foundation\Application::offsetSet($key, $value);
  1199. }
  1200. /**
  1201. * Unset the value at a given offset.
  1202. *
  1203. * @param string $key
  1204. * @return void
  1205. * @static
  1206. */
  1207. public static function offsetUnset($key)
  1208. {
  1209. //Method inherited from \Illuminate\Container\Container
  1210. \Illuminate\Foundation\Application::offsetUnset($key);
  1211. }
  1212. }
  1213. /**
  1214. *
  1215. *
  1216. * @see \Illuminate\Contracts\Console\Kernel
  1217. */
  1218. class Artisan {
  1219. /**
  1220. * Run the console application.
  1221. *
  1222. * @param \Symfony\Component\Console\Input\InputInterface $input
  1223. * @param \Symfony\Component\Console\Output\OutputInterface $output
  1224. * @return int
  1225. * @static
  1226. */
  1227. public static function handle($input, $output = null)
  1228. {
  1229. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1230. return \App\Console\Kernel::handle($input, $output);
  1231. }
  1232. /**
  1233. * Terminate the application.
  1234. *
  1235. * @param \Symfony\Component\Console\Input\InputInterface $input
  1236. * @param int $status
  1237. * @return void
  1238. * @static
  1239. */
  1240. public static function terminate($input, $status)
  1241. {
  1242. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1243. \App\Console\Kernel::terminate($input, $status);
  1244. }
  1245. /**
  1246. * Register a Closure based command with the application.
  1247. *
  1248. * @param string $signature
  1249. * @param \Closure $callback
  1250. * @return \Illuminate\Foundation\Console\ClosureCommand
  1251. * @static
  1252. */
  1253. public static function command($signature, $callback)
  1254. {
  1255. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1256. return \App\Console\Kernel::command($signature, $callback);
  1257. }
  1258. /**
  1259. * Register the given command with the console application.
  1260. *
  1261. * @param \Symfony\Component\Console\Command\Command $command
  1262. * @return void
  1263. * @static
  1264. */
  1265. public static function registerCommand($command)
  1266. {
  1267. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1268. \App\Console\Kernel::registerCommand($command);
  1269. }
  1270. /**
  1271. * Run an Artisan console command by name.
  1272. *
  1273. * @param string $command
  1274. * @param array $parameters
  1275. * @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
  1276. * @return int
  1277. * @static
  1278. */
  1279. public static function call($command, $parameters = array(), $outputBuffer = null)
  1280. {
  1281. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1282. return \App\Console\Kernel::call($command, $parameters, $outputBuffer);
  1283. }
  1284. /**
  1285. * Queue the given console command.
  1286. *
  1287. * @param string $command
  1288. * @param array $parameters
  1289. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1290. * @static
  1291. */
  1292. public static function queue($command, $parameters = array())
  1293. {
  1294. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1295. return \App\Console\Kernel::queue($command, $parameters);
  1296. }
  1297. /**
  1298. * Get all of the commands registered with the console.
  1299. *
  1300. * @return array
  1301. * @static
  1302. */
  1303. public static function all()
  1304. {
  1305. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1306. return \App\Console\Kernel::all();
  1307. }
  1308. /**
  1309. * Get the output for the last run command.
  1310. *
  1311. * @return string
  1312. * @static
  1313. */
  1314. public static function output()
  1315. {
  1316. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1317. return \App\Console\Kernel::output();
  1318. }
  1319. /**
  1320. * Bootstrap the application for artisan commands.
  1321. *
  1322. * @return void
  1323. * @static
  1324. */
  1325. public static function bootstrap()
  1326. {
  1327. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1328. \App\Console\Kernel::bootstrap();
  1329. }
  1330. /**
  1331. * Set the Artisan application instance.
  1332. *
  1333. * @param \Illuminate\Console\Application $artisan
  1334. * @return void
  1335. * @static
  1336. */
  1337. public static function setArtisan($artisan)
  1338. {
  1339. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1340. \App\Console\Kernel::setArtisan($artisan);
  1341. }
  1342. }
  1343. /**
  1344. *
  1345. *
  1346. * @see \Illuminate\Auth\AuthManager
  1347. * @see \Illuminate\Contracts\Auth\Factory
  1348. * @see \Illuminate\Contracts\Auth\Guard
  1349. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1350. */
  1351. class Auth {
  1352. /**
  1353. * Attempt to get the guard from the local cache.
  1354. *
  1355. * @param string $name
  1356. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1357. * @static
  1358. */
  1359. public static function guard($name = null)
  1360. {
  1361. return \Illuminate\Auth\AuthManager::guard($name);
  1362. }
  1363. /**
  1364. * Create a session based authentication guard.
  1365. *
  1366. * @param string $name
  1367. * @param array $config
  1368. * @return \Illuminate\Auth\SessionGuard
  1369. * @static
  1370. */
  1371. public static function createSessionDriver($name, $config)
  1372. {
  1373. return \Illuminate\Auth\AuthManager::createSessionDriver($name, $config);
  1374. }
  1375. /**
  1376. * Create a token based authentication guard.
  1377. *
  1378. * @param string $name
  1379. * @param array $config
  1380. * @return \Illuminate\Auth\TokenGuard
  1381. * @static
  1382. */
  1383. public static function createTokenDriver($name, $config)
  1384. {
  1385. return \Illuminate\Auth\AuthManager::createTokenDriver($name, $config);
  1386. }
  1387. /**
  1388. * Get the default authentication driver name.
  1389. *
  1390. * @return string
  1391. * @static
  1392. */
  1393. public static function getDefaultDriver()
  1394. {
  1395. return \Illuminate\Auth\AuthManager::getDefaultDriver();
  1396. }
  1397. /**
  1398. * Set the default guard driver the factory should serve.
  1399. *
  1400. * @param string $name
  1401. * @return void
  1402. * @static
  1403. */
  1404. public static function shouldUse($name)
  1405. {
  1406. \Illuminate\Auth\AuthManager::shouldUse($name);
  1407. }
  1408. /**
  1409. * Set the default authentication driver name.
  1410. *
  1411. * @param string $name
  1412. * @return void
  1413. * @static
  1414. */
  1415. public static function setDefaultDriver($name)
  1416. {
  1417. \Illuminate\Auth\AuthManager::setDefaultDriver($name);
  1418. }
  1419. /**
  1420. * Register a new callback based request guard.
  1421. *
  1422. * @param string $driver
  1423. * @param callable $callback
  1424. * @return $this
  1425. * @static
  1426. */
  1427. public static function viaRequest($driver, $callback)
  1428. {
  1429. return \Illuminate\Auth\AuthManager::viaRequest($driver, $callback);
  1430. }
  1431. /**
  1432. * Get the user resolver callback.
  1433. *
  1434. * @return \Closure
  1435. * @static
  1436. */
  1437. public static function userResolver()
  1438. {
  1439. return \Illuminate\Auth\AuthManager::userResolver();
  1440. }
  1441. /**
  1442. * Set the callback to be used to resolve users.
  1443. *
  1444. * @param \Closure $userResolver
  1445. * @return $this
  1446. * @static
  1447. */
  1448. public static function resolveUsersUsing($userResolver)
  1449. {
  1450. return \Illuminate\Auth\AuthManager::resolveUsersUsing($userResolver);
  1451. }
  1452. /**
  1453. * Register a custom driver creator Closure.
  1454. *
  1455. * @param string $driver
  1456. * @param \Closure $callback
  1457. * @return $this
  1458. * @static
  1459. */
  1460. public static function extend($driver, $callback)
  1461. {
  1462. return \Illuminate\Auth\AuthManager::extend($driver, $callback);
  1463. }
  1464. /**
  1465. * Register a custom provider creator Closure.
  1466. *
  1467. * @param string $name
  1468. * @param \Closure $callback
  1469. * @return $this
  1470. * @static
  1471. */
  1472. public static function provider($name, $callback)
  1473. {
  1474. return \Illuminate\Auth\AuthManager::provider($name, $callback);
  1475. }
  1476. /**
  1477. * Create the user provider implementation for the driver.
  1478. *
  1479. * @param string|null $provider
  1480. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1481. * @throws \InvalidArgumentException
  1482. * @static
  1483. */
  1484. public static function createUserProvider($provider = null)
  1485. {
  1486. return \Illuminate\Auth\AuthManager::createUserProvider($provider);
  1487. }
  1488. /**
  1489. * Get the default user provider name.
  1490. *
  1491. * @return string
  1492. * @static
  1493. */
  1494. public static function getDefaultUserProvider()
  1495. {
  1496. return \Illuminate\Auth\AuthManager::getDefaultUserProvider();
  1497. }
  1498. /**
  1499. * Get the currently authenticated user.
  1500. *
  1501. * @return \App\Http\Models\User|null
  1502. * @static
  1503. */
  1504. public static function user()
  1505. {
  1506. return \Illuminate\Auth\SessionGuard::user();
  1507. }
  1508. /**
  1509. * Get the ID for the currently authenticated user.
  1510. *
  1511. * @return int|null
  1512. * @static
  1513. */
  1514. public static function id()
  1515. {
  1516. return \Illuminate\Auth\SessionGuard::id();
  1517. }
  1518. /**
  1519. * Log a user into the application without sessions or cookies.
  1520. *
  1521. * @param array $credentials
  1522. * @return bool
  1523. * @static
  1524. */
  1525. public static function once($credentials = array())
  1526. {
  1527. return \Illuminate\Auth\SessionGuard::once($credentials);
  1528. }
  1529. /**
  1530. * Log the given user ID into the application without sessions or cookies.
  1531. *
  1532. * @param mixed $id
  1533. * @return \App\Http\Models\User|false
  1534. * @static
  1535. */
  1536. public static function onceUsingId($id)
  1537. {
  1538. return \Illuminate\Auth\SessionGuard::onceUsingId($id);
  1539. }
  1540. /**
  1541. * Validate a user's credentials.
  1542. *
  1543. * @param array $credentials
  1544. * @return bool
  1545. * @static
  1546. */
  1547. public static function validate($credentials = array())
  1548. {
  1549. return \Illuminate\Auth\SessionGuard::validate($credentials);
  1550. }
  1551. /**
  1552. * Attempt to authenticate using HTTP Basic Auth.
  1553. *
  1554. * @param string $field
  1555. * @param array $extraConditions
  1556. * @return \Symfony\Component\HttpFoundation\Response|null
  1557. * @static
  1558. */
  1559. public static function basic($field = 'email', $extraConditions = array())
  1560. {
  1561. return \Illuminate\Auth\SessionGuard::basic($field, $extraConditions);
  1562. }
  1563. /**
  1564. * Perform a stateless HTTP Basic login attempt.
  1565. *
  1566. * @param string $field
  1567. * @param array $extraConditions
  1568. * @return \Symfony\Component\HttpFoundation\Response|null
  1569. * @static
  1570. */
  1571. public static function onceBasic($field = 'email', $extraConditions = array())
  1572. {
  1573. return \Illuminate\Auth\SessionGuard::onceBasic($field, $extraConditions);
  1574. }
  1575. /**
  1576. * Attempt to authenticate a user using the given credentials.
  1577. *
  1578. * @param array $credentials
  1579. * @param bool $remember
  1580. * @return bool
  1581. * @static
  1582. */
  1583. public static function attempt($credentials = array(), $remember = false)
  1584. {
  1585. return \Illuminate\Auth\SessionGuard::attempt($credentials, $remember);
  1586. }
  1587. /**
  1588. * Log the given user ID into the application.
  1589. *
  1590. * @param mixed $id
  1591. * @param bool $remember
  1592. * @return \App\Http\Models\User|false
  1593. * @static
  1594. */
  1595. public static function loginUsingId($id, $remember = false)
  1596. {
  1597. return \Illuminate\Auth\SessionGuard::loginUsingId($id, $remember);
  1598. }
  1599. /**
  1600. * Log a user into the application.
  1601. *
  1602. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1603. * @param bool $remember
  1604. * @return void
  1605. * @static
  1606. */
  1607. public static function login($user, $remember = false)
  1608. {
  1609. \Illuminate\Auth\SessionGuard::login($user, $remember);
  1610. }
  1611. /**
  1612. * Log the user out of the application.
  1613. *
  1614. * @return void
  1615. * @static
  1616. */
  1617. public static function logout()
  1618. {
  1619. \Illuminate\Auth\SessionGuard::logout();
  1620. }
  1621. /**
  1622. * Invalidate other sessions for the current user.
  1623. *
  1624. * The application must be using the AuthenticateSession middleware.
  1625. *
  1626. * @param string $password
  1627. * @param string $attribute
  1628. * @return bool|null
  1629. * @static
  1630. */
  1631. public static function logoutOtherDevices($password, $attribute = 'password')
  1632. {
  1633. return \Illuminate\Auth\SessionGuard::logoutOtherDevices($password, $attribute);
  1634. }
  1635. /**
  1636. * Register an authentication attempt event listener.
  1637. *
  1638. * @param mixed $callback
  1639. * @return void
  1640. * @static
  1641. */
  1642. public static function attempting($callback)
  1643. {
  1644. \Illuminate\Auth\SessionGuard::attempting($callback);
  1645. }
  1646. /**
  1647. * Get the last user we attempted to authenticate.
  1648. *
  1649. * @return \App\Http\Models\User
  1650. * @static
  1651. */
  1652. public static function getLastAttempted()
  1653. {
  1654. return \Illuminate\Auth\SessionGuard::getLastAttempted();
  1655. }
  1656. /**
  1657. * Get a unique identifier for the auth session value.
  1658. *
  1659. * @return string
  1660. * @static
  1661. */
  1662. public static function getName()
  1663. {
  1664. return \Illuminate\Auth\SessionGuard::getName();
  1665. }
  1666. /**
  1667. * Get the name of the cookie used to store the "recaller".
  1668. *
  1669. * @return string
  1670. * @static
  1671. */
  1672. public static function getRecallerName()
  1673. {
  1674. return \Illuminate\Auth\SessionGuard::getRecallerName();
  1675. }
  1676. /**
  1677. * Determine if the user was authenticated via "remember me" cookie.
  1678. *
  1679. * @return bool
  1680. * @static
  1681. */
  1682. public static function viaRemember()
  1683. {
  1684. return \Illuminate\Auth\SessionGuard::viaRemember();
  1685. }
  1686. /**
  1687. * Get the cookie creator instance used by the guard.
  1688. *
  1689. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1690. * @throws \RuntimeException
  1691. * @static
  1692. */
  1693. public static function getCookieJar()
  1694. {
  1695. return \Illuminate\Auth\SessionGuard::getCookieJar();
  1696. }
  1697. /**
  1698. * Set the cookie creator instance used by the guard.
  1699. *
  1700. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1701. * @return void
  1702. * @static
  1703. */
  1704. public static function setCookieJar($cookie)
  1705. {
  1706. \Illuminate\Auth\SessionGuard::setCookieJar($cookie);
  1707. }
  1708. /**
  1709. * Get the event dispatcher instance.
  1710. *
  1711. * @return \Illuminate\Contracts\Events\Dispatcher
  1712. * @static
  1713. */
  1714. public static function getDispatcher()
  1715. {
  1716. return \Illuminate\Auth\SessionGuard::getDispatcher();
  1717. }
  1718. /**
  1719. * Set the event dispatcher instance.
  1720. *
  1721. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1722. * @return void
  1723. * @static
  1724. */
  1725. public static function setDispatcher($events)
  1726. {
  1727. \Illuminate\Auth\SessionGuard::setDispatcher($events);
  1728. }
  1729. /**
  1730. * Get the session store used by the guard.
  1731. *
  1732. * @return \Illuminate\Contracts\Session\Session
  1733. * @static
  1734. */
  1735. public static function getSession()
  1736. {
  1737. return \Illuminate\Auth\SessionGuard::getSession();
  1738. }
  1739. /**
  1740. * Return the currently cached user.
  1741. *
  1742. * @return \App\Http\Models\User|null
  1743. * @static
  1744. */
  1745. public static function getUser()
  1746. {
  1747. return \Illuminate\Auth\SessionGuard::getUser();
  1748. }
  1749. /**
  1750. * Set the current user.
  1751. *
  1752. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1753. * @return $this
  1754. * @static
  1755. */
  1756. public static function setUser($user)
  1757. {
  1758. return \Illuminate\Auth\SessionGuard::setUser($user);
  1759. }
  1760. /**
  1761. * Get the current request instance.
  1762. *
  1763. * @return \Symfony\Component\HttpFoundation\Request
  1764. * @static
  1765. */
  1766. public static function getRequest()
  1767. {
  1768. return \Illuminate\Auth\SessionGuard::getRequest();
  1769. }
  1770. /**
  1771. * Set the current request instance.
  1772. *
  1773. * @param \Symfony\Component\HttpFoundation\Request $request
  1774. * @return $this
  1775. * @static
  1776. */
  1777. public static function setRequest($request)
  1778. {
  1779. return \Illuminate\Auth\SessionGuard::setRequest($request);
  1780. }
  1781. /**
  1782. * Determine if the current user is authenticated.
  1783. *
  1784. * @return \App\Http\Models\User
  1785. * @throws \Illuminate\Auth\AuthenticationException
  1786. * @static
  1787. */
  1788. public static function authenticate()
  1789. {
  1790. return \Illuminate\Auth\SessionGuard::authenticate();
  1791. }
  1792. /**
  1793. * Determine if the guard has a user instance.
  1794. *
  1795. * @return bool
  1796. * @static
  1797. */
  1798. public static function hasUser()
  1799. {
  1800. return \Illuminate\Auth\SessionGuard::hasUser();
  1801. }
  1802. /**
  1803. * Determine if the current user is authenticated.
  1804. *
  1805. * @return bool
  1806. * @static
  1807. */
  1808. public static function check()
  1809. {
  1810. return \Illuminate\Auth\SessionGuard::check();
  1811. }
  1812. /**
  1813. * Determine if the current user is a guest.
  1814. *
  1815. * @return bool
  1816. * @static
  1817. */
  1818. public static function guest()
  1819. {
  1820. return \Illuminate\Auth\SessionGuard::guest();
  1821. }
  1822. /**
  1823. * Get the user provider used by the guard.
  1824. *
  1825. * @return \Illuminate\Contracts\Auth\UserProvider
  1826. * @static
  1827. */
  1828. public static function getProvider()
  1829. {
  1830. return \Illuminate\Auth\SessionGuard::getProvider();
  1831. }
  1832. /**
  1833. * Set the user provider used by the guard.
  1834. *
  1835. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  1836. * @return void
  1837. * @static
  1838. */
  1839. public static function setProvider($provider)
  1840. {
  1841. \Illuminate\Auth\SessionGuard::setProvider($provider);
  1842. }
  1843. /**
  1844. * Register a custom macro.
  1845. *
  1846. * @param string $name
  1847. * @param object|callable $macro
  1848. * @return void
  1849. * @static
  1850. */
  1851. public static function macro($name, $macro)
  1852. {
  1853. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  1854. }
  1855. /**
  1856. * Mix another object into the class.
  1857. *
  1858. * @param object $mixin
  1859. * @return void
  1860. * @throws \ReflectionException
  1861. * @static
  1862. */
  1863. public static function mixin($mixin)
  1864. {
  1865. \Illuminate\Auth\SessionGuard::mixin($mixin);
  1866. }
  1867. /**
  1868. * Checks if macro is registered.
  1869. *
  1870. * @param string $name
  1871. * @return bool
  1872. * @static
  1873. */
  1874. public static function hasMacro($name)
  1875. {
  1876. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  1877. }
  1878. }
  1879. /**
  1880. *
  1881. *
  1882. * @see \Illuminate\View\Compilers\BladeCompiler
  1883. */
  1884. class Blade {
  1885. /**
  1886. * Compile the view at the given path.
  1887. *
  1888. * @param string $path
  1889. * @return void
  1890. * @static
  1891. */
  1892. public static function compile($path = null)
  1893. {
  1894. \Illuminate\View\Compilers\BladeCompiler::compile($path);
  1895. }
  1896. /**
  1897. * Get the path currently being compiled.
  1898. *
  1899. * @return string
  1900. * @static
  1901. */
  1902. public static function getPath()
  1903. {
  1904. return \Illuminate\View\Compilers\BladeCompiler::getPath();
  1905. }
  1906. /**
  1907. * Set the path currently being compiled.
  1908. *
  1909. * @param string $path
  1910. * @return void
  1911. * @static
  1912. */
  1913. public static function setPath($path)
  1914. {
  1915. \Illuminate\View\Compilers\BladeCompiler::setPath($path);
  1916. }
  1917. /**
  1918. * Compile the given Blade template contents.
  1919. *
  1920. * @param string $value
  1921. * @return string
  1922. * @static
  1923. */
  1924. public static function compileString($value)
  1925. {
  1926. return \Illuminate\View\Compilers\BladeCompiler::compileString($value);
  1927. }
  1928. /**
  1929. * Strip the parentheses from the given expression.
  1930. *
  1931. * @param string $expression
  1932. * @return string
  1933. * @static
  1934. */
  1935. public static function stripParentheses($expression)
  1936. {
  1937. return \Illuminate\View\Compilers\BladeCompiler::stripParentheses($expression);
  1938. }
  1939. /**
  1940. * Register a custom Blade compiler.
  1941. *
  1942. * @param callable $compiler
  1943. * @return void
  1944. * @static
  1945. */
  1946. public static function extend($compiler)
  1947. {
  1948. \Illuminate\View\Compilers\BladeCompiler::extend($compiler);
  1949. }
  1950. /**
  1951. * Get the extensions used by the compiler.
  1952. *
  1953. * @return array
  1954. * @static
  1955. */
  1956. public static function getExtensions()
  1957. {
  1958. return \Illuminate\View\Compilers\BladeCompiler::getExtensions();
  1959. }
  1960. /**
  1961. * Register an "if" statement directive.
  1962. *
  1963. * @param string $name
  1964. * @param callable $callback
  1965. * @return void
  1966. * @static
  1967. */
  1968. public static function if($name, $callback)
  1969. {
  1970. \Illuminate\View\Compilers\BladeCompiler::if($name, $callback);
  1971. }
  1972. /**
  1973. * Check the result of a condition.
  1974. *
  1975. * @param string $name
  1976. * @param array $parameters
  1977. * @return bool
  1978. * @static
  1979. */
  1980. public static function check($name, $parameters = null)
  1981. {
  1982. return \Illuminate\View\Compilers\BladeCompiler::check($name, $parameters);
  1983. }
  1984. /**
  1985. * Register a component alias directive.
  1986. *
  1987. * @param string $path
  1988. * @param string $alias
  1989. * @return void
  1990. * @static
  1991. */
  1992. public static function component($path, $alias = null)
  1993. {
  1994. \Illuminate\View\Compilers\BladeCompiler::component($path, $alias);
  1995. }
  1996. /**
  1997. * Register an include alias directive.
  1998. *
  1999. * @param string $path
  2000. * @param string $alias
  2001. * @return void
  2002. * @static
  2003. */
  2004. public static function include($path, $alias = null)
  2005. {
  2006. \Illuminate\View\Compilers\BladeCompiler::include($path, $alias);
  2007. }
  2008. /**
  2009. * Register a handler for custom directives.
  2010. *
  2011. * @param string $name
  2012. * @param callable $handler
  2013. * @return void
  2014. * @static
  2015. */
  2016. public static function directive($name, $handler)
  2017. {
  2018. \Illuminate\View\Compilers\BladeCompiler::directive($name, $handler);
  2019. }
  2020. /**
  2021. * Get the list of custom directives.
  2022. *
  2023. * @return array
  2024. * @static
  2025. */
  2026. public static function getCustomDirectives()
  2027. {
  2028. return \Illuminate\View\Compilers\BladeCompiler::getCustomDirectives();
  2029. }
  2030. /**
  2031. * Set the echo format to be used by the compiler.
  2032. *
  2033. * @param string $format
  2034. * @return void
  2035. * @static
  2036. */
  2037. public static function setEchoFormat($format)
  2038. {
  2039. \Illuminate\View\Compilers\BladeCompiler::setEchoFormat($format);
  2040. }
  2041. /**
  2042. * Set the "echo" format to double encode entities.
  2043. *
  2044. * @return void
  2045. * @static
  2046. */
  2047. public static function withDoubleEncoding()
  2048. {
  2049. \Illuminate\View\Compilers\BladeCompiler::withDoubleEncoding();
  2050. }
  2051. /**
  2052. * Set the "echo" format to not double encode entities.
  2053. *
  2054. * @return void
  2055. * @static
  2056. */
  2057. public static function withoutDoubleEncoding()
  2058. {
  2059. \Illuminate\View\Compilers\BladeCompiler::withoutDoubleEncoding();
  2060. }
  2061. /**
  2062. * Get the path to the compiled version of a view.
  2063. *
  2064. * @param string $path
  2065. * @return string
  2066. * @static
  2067. */
  2068. public static function getCompiledPath($path)
  2069. {
  2070. //Method inherited from \Illuminate\View\Compilers\Compiler
  2071. return \Illuminate\View\Compilers\BladeCompiler::getCompiledPath($path);
  2072. }
  2073. /**
  2074. * Determine if the view at the given path is expired.
  2075. *
  2076. * @param string $path
  2077. * @return bool
  2078. * @static
  2079. */
  2080. public static function isExpired($path)
  2081. {
  2082. //Method inherited from \Illuminate\View\Compilers\Compiler
  2083. return \Illuminate\View\Compilers\BladeCompiler::isExpired($path);
  2084. }
  2085. /**
  2086. * Compile the default values for the echo statement.
  2087. *
  2088. * @param string $value
  2089. * @return string
  2090. * @static
  2091. */
  2092. public static function compileEchoDefaults($value)
  2093. {
  2094. return \Illuminate\View\Compilers\BladeCompiler::compileEchoDefaults($value);
  2095. }
  2096. }
  2097. /**
  2098. *
  2099. *
  2100. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback)
  2101. * @method static mixed auth(\Illuminate\Http\Request $request)
  2102. * @see \Illuminate\Contracts\Broadcasting\Factory
  2103. */
  2104. class Broadcast {
  2105. /**
  2106. * Register the routes for handling broadcast authentication and sockets.
  2107. *
  2108. * @param array|null $attributes
  2109. * @return void
  2110. * @static
  2111. */
  2112. public static function routes($attributes = null)
  2113. {
  2114. \Illuminate\Broadcasting\BroadcastManager::routes($attributes);
  2115. }
  2116. /**
  2117. * Get the socket ID for the given request.
  2118. *
  2119. * @param \Illuminate\Http\Request|null $request
  2120. * @return string|null
  2121. * @static
  2122. */
  2123. public static function socket($request = null)
  2124. {
  2125. return \Illuminate\Broadcasting\BroadcastManager::socket($request);
  2126. }
  2127. /**
  2128. * Begin broadcasting an event.
  2129. *
  2130. * @param mixed|null $event
  2131. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  2132. * @static
  2133. */
  2134. public static function event($event = null)
  2135. {
  2136. return \Illuminate\Broadcasting\BroadcastManager::event($event);
  2137. }
  2138. /**
  2139. * Queue the given event for broadcast.
  2140. *
  2141. * @param mixed $event
  2142. * @return void
  2143. * @static
  2144. */
  2145. public static function queue($event)
  2146. {
  2147. \Illuminate\Broadcasting\BroadcastManager::queue($event);
  2148. }
  2149. /**
  2150. * Get a driver instance.
  2151. *
  2152. * @param string $driver
  2153. * @return mixed
  2154. * @static
  2155. */
  2156. public static function connection($driver = null)
  2157. {
  2158. return \Illuminate\Broadcasting\BroadcastManager::connection($driver);
  2159. }
  2160. /**
  2161. * Get a driver instance.
  2162. *
  2163. * @param string|null $name
  2164. * @return mixed
  2165. * @static
  2166. */
  2167. public static function driver($name = null)
  2168. {
  2169. return \Illuminate\Broadcasting\BroadcastManager::driver($name);
  2170. }
  2171. /**
  2172. * Get the default driver name.
  2173. *
  2174. * @return string
  2175. * @static
  2176. */
  2177. public static function getDefaultDriver()
  2178. {
  2179. return \Illuminate\Broadcasting\BroadcastManager::getDefaultDriver();
  2180. }
  2181. /**
  2182. * Set the default driver name.
  2183. *
  2184. * @param string $name
  2185. * @return void
  2186. * @static
  2187. */
  2188. public static function setDefaultDriver($name)
  2189. {
  2190. \Illuminate\Broadcasting\BroadcastManager::setDefaultDriver($name);
  2191. }
  2192. /**
  2193. * Register a custom driver creator Closure.
  2194. *
  2195. * @param string $driver
  2196. * @param \Closure $callback
  2197. * @return $this
  2198. * @static
  2199. */
  2200. public static function extend($driver, $callback)
  2201. {
  2202. return \Illuminate\Broadcasting\BroadcastManager::extend($driver, $callback);
  2203. }
  2204. }
  2205. /**
  2206. *
  2207. *
  2208. * @see \Illuminate\Contracts\Bus\Dispatcher
  2209. */
  2210. class Bus {
  2211. /**
  2212. * Dispatch a command to its appropriate handler.
  2213. *
  2214. * @param mixed $command
  2215. * @return mixed
  2216. * @static
  2217. */
  2218. public static function dispatch($command)
  2219. {
  2220. return \Illuminate\Bus\Dispatcher::dispatch($command);
  2221. }
  2222. /**
  2223. * Dispatch a command to its appropriate handler in the current process.
  2224. *
  2225. * @param mixed $command
  2226. * @param mixed $handler
  2227. * @return mixed
  2228. * @static
  2229. */
  2230. public static function dispatchNow($command, $handler = null)
  2231. {
  2232. return \Illuminate\Bus\Dispatcher::dispatchNow($command, $handler);
  2233. }
  2234. /**
  2235. * Determine if the given command has a handler.
  2236. *
  2237. * @param mixed $command
  2238. * @return bool
  2239. * @static
  2240. */
  2241. public static function hasCommandHandler($command)
  2242. {
  2243. return \Illuminate\Bus\Dispatcher::hasCommandHandler($command);
  2244. }
  2245. /**
  2246. * Retrieve the handler for a command.
  2247. *
  2248. * @param mixed $command
  2249. * @return bool|mixed
  2250. * @static
  2251. */
  2252. public static function getCommandHandler($command)
  2253. {
  2254. return \Illuminate\Bus\Dispatcher::getCommandHandler($command);
  2255. }
  2256. /**
  2257. * Dispatch a command to its appropriate handler behind a queue.
  2258. *
  2259. * @param mixed $command
  2260. * @return mixed
  2261. * @throws \RuntimeException
  2262. * @static
  2263. */
  2264. public static function dispatchToQueue($command)
  2265. {
  2266. return \Illuminate\Bus\Dispatcher::dispatchToQueue($command);
  2267. }
  2268. /**
  2269. * Set the pipes through which commands should be piped before dispatching.
  2270. *
  2271. * @param array $pipes
  2272. * @return $this
  2273. * @static
  2274. */
  2275. public static function pipeThrough($pipes)
  2276. {
  2277. return \Illuminate\Bus\Dispatcher::pipeThrough($pipes);
  2278. }
  2279. /**
  2280. * Map a command to a handler.
  2281. *
  2282. * @param array $map
  2283. * @return $this
  2284. * @static
  2285. */
  2286. public static function map($map)
  2287. {
  2288. return \Illuminate\Bus\Dispatcher::map($map);
  2289. }
  2290. /**
  2291. * Assert if a job was dispatched based on a truth-test callback.
  2292. *
  2293. * @param string $command
  2294. * @param callable|int|null $callback
  2295. * @return void
  2296. * @static
  2297. */
  2298. public static function assertDispatched($command, $callback = null)
  2299. {
  2300. \Illuminate\Support\Testing\Fakes\BusFake::assertDispatched($command, $callback);
  2301. }
  2302. /**
  2303. * Determine if a job was dispatched based on a truth-test callback.
  2304. *
  2305. * @param string $command
  2306. * @param callable|null $callback
  2307. * @return void
  2308. * @static
  2309. */
  2310. public static function assertNotDispatched($command, $callback = null)
  2311. {
  2312. \Illuminate\Support\Testing\Fakes\BusFake::assertNotDispatched($command, $callback);
  2313. }
  2314. /**
  2315. * Get all of the jobs matching a truth-test callback.
  2316. *
  2317. * @param string $command
  2318. * @param callable|null $callback
  2319. * @return \Illuminate\Support\Collection
  2320. * @static
  2321. */
  2322. public static function dispatched($command, $callback = null)
  2323. {
  2324. return \Illuminate\Support\Testing\Fakes\BusFake::dispatched($command, $callback);
  2325. }
  2326. /**
  2327. * Determine if there are any stored commands for a given class.
  2328. *
  2329. * @param string $command
  2330. * @return bool
  2331. * @static
  2332. */
  2333. public static function hasDispatched($command)
  2334. {
  2335. return \Illuminate\Support\Testing\Fakes\BusFake::hasDispatched($command);
  2336. }
  2337. }
  2338. /**
  2339. *
  2340. *
  2341. * @see \Illuminate\Cache\CacheManager
  2342. * @see \Illuminate\Cache\Repository
  2343. */
  2344. class Cache {
  2345. /**
  2346. * Get a cache store instance by name.
  2347. *
  2348. * @param string|null $name
  2349. * @return \Illuminate\Contracts\Cache\Repository
  2350. * @static
  2351. */
  2352. public static function store($name = null)
  2353. {
  2354. return \Illuminate\Cache\CacheManager::store($name);
  2355. }
  2356. /**
  2357. * Get a cache driver instance.
  2358. *
  2359. * @param string|null $driver
  2360. * @return mixed
  2361. * @static
  2362. */
  2363. public static function driver($driver = null)
  2364. {
  2365. return \Illuminate\Cache\CacheManager::driver($driver);
  2366. }
  2367. /**
  2368. * Create a new cache repository with the given implementation.
  2369. *
  2370. * @param \Illuminate\Contracts\Cache\Store $store
  2371. * @return \Illuminate\Cache\Repository
  2372. * @static
  2373. */
  2374. public static function repository($store)
  2375. {
  2376. return \Illuminate\Cache\CacheManager::repository($store);
  2377. }
  2378. /**
  2379. * Get the default cache driver name.
  2380. *
  2381. * @return string
  2382. * @static
  2383. */
  2384. public static function getDefaultDriver()
  2385. {
  2386. return \Illuminate\Cache\CacheManager::getDefaultDriver();
  2387. }
  2388. /**
  2389. * Set the default cache driver name.
  2390. *
  2391. * @param string $name
  2392. * @return void
  2393. * @static
  2394. */
  2395. public static function setDefaultDriver($name)
  2396. {
  2397. \Illuminate\Cache\CacheManager::setDefaultDriver($name);
  2398. }
  2399. /**
  2400. * Register a custom driver creator Closure.
  2401. *
  2402. * @param string $driver
  2403. * @param \Closure $callback
  2404. * @return $this
  2405. * @static
  2406. */
  2407. public static function extend($driver, $callback)
  2408. {
  2409. return \Illuminate\Cache\CacheManager::extend($driver, $callback);
  2410. }
  2411. /**
  2412. * Determine if an item exists in the cache.
  2413. *
  2414. * @param string $key
  2415. * @return bool
  2416. * @static
  2417. */
  2418. public static function has($key)
  2419. {
  2420. return \Illuminate\Cache\Repository::has($key);
  2421. }
  2422. /**
  2423. * Retrieve an item from the cache by key.
  2424. *
  2425. * @param string $key
  2426. * @param mixed $default
  2427. * @return mixed
  2428. * @static
  2429. */
  2430. public static function get($key, $default = null)
  2431. {
  2432. return \Illuminate\Cache\Repository::get($key, $default);
  2433. }
  2434. /**
  2435. * Retrieve multiple items from the cache by key.
  2436. *
  2437. * Items not found in the cache will have a null value.
  2438. *
  2439. * @param array $keys
  2440. * @return array
  2441. * @static
  2442. */
  2443. public static function many($keys)
  2444. {
  2445. return \Illuminate\Cache\Repository::many($keys);
  2446. }
  2447. /**
  2448. * Obtains multiple cache items by their unique keys.
  2449. *
  2450. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  2451. * @param mixed $default Default value to return for keys that do not exist.
  2452. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  2453. * @throws \Psr\SimpleCache\InvalidArgumentException
  2454. * MUST be thrown if $keys is neither an array nor a Traversable,
  2455. * or if any of the $keys are not a legal value.
  2456. * @static
  2457. */
  2458. public static function getMultiple($keys, $default = null)
  2459. {
  2460. return \Illuminate\Cache\Repository::getMultiple($keys, $default);
  2461. }
  2462. /**
  2463. * Retrieve an item from the cache and delete it.
  2464. *
  2465. * @param string $key
  2466. * @param mixed $default
  2467. * @return mixed
  2468. * @static
  2469. */
  2470. public static function pull($key, $default = null)
  2471. {
  2472. return \Illuminate\Cache\Repository::pull($key, $default);
  2473. }
  2474. /**
  2475. * Store an item in the cache.
  2476. *
  2477. * @param string $key
  2478. * @param mixed $value
  2479. * @param \DateTimeInterface|\DateInterval|float|int|null $minutes
  2480. * @return void
  2481. * @static
  2482. */
  2483. public static function put($key, $value, $minutes = null)
  2484. {
  2485. \Illuminate\Cache\Repository::put($key, $value, $minutes);
  2486. }
  2487. /**
  2488. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  2489. *
  2490. * @param string $key The key of the item to store.
  2491. * @param mixed $value The value of the item to store, must be serializable.
  2492. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2493. * the driver supports TTL then the library may set a default value
  2494. * for it or let the driver take care of that.
  2495. * @return bool True on success and false on failure.
  2496. * @throws \Psr\SimpleCache\InvalidArgumentException
  2497. * MUST be thrown if the $key string is not a legal value.
  2498. * @static
  2499. */
  2500. public static function set($key, $value, $ttl = null)
  2501. {
  2502. return \Illuminate\Cache\Repository::set($key, $value, $ttl);
  2503. }
  2504. /**
  2505. * Store multiple items in the cache for a given number of minutes.
  2506. *
  2507. * @param array $values
  2508. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2509. * @return void
  2510. * @static
  2511. */
  2512. public static function putMany($values, $minutes)
  2513. {
  2514. \Illuminate\Cache\Repository::putMany($values, $minutes);
  2515. }
  2516. /**
  2517. * Persists a set of key => value pairs in the cache, with an optional TTL.
  2518. *
  2519. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  2520. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2521. * the driver supports TTL then the library may set a default value
  2522. * for it or let the driver take care of that.
  2523. * @return bool True on success and false on failure.
  2524. * @throws \Psr\SimpleCache\InvalidArgumentException
  2525. * MUST be thrown if $values is neither an array nor a Traversable,
  2526. * or if any of the $values are not a legal value.
  2527. * @static
  2528. */
  2529. public static function setMultiple($values, $ttl = null)
  2530. {
  2531. return \Illuminate\Cache\Repository::setMultiple($values, $ttl);
  2532. }
  2533. /**
  2534. * Store an item in the cache if the key does not exist.
  2535. *
  2536. * @param string $key
  2537. * @param mixed $value
  2538. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2539. * @return bool
  2540. * @static
  2541. */
  2542. public static function add($key, $value, $minutes)
  2543. {
  2544. return \Illuminate\Cache\Repository::add($key, $value, $minutes);
  2545. }
  2546. /**
  2547. * Increment the value of an item in the cache.
  2548. *
  2549. * @param string $key
  2550. * @param mixed $value
  2551. * @return int|bool
  2552. * @static
  2553. */
  2554. public static function increment($key, $value = 1)
  2555. {
  2556. return \Illuminate\Cache\Repository::increment($key, $value);
  2557. }
  2558. /**
  2559. * Decrement the value of an item in the cache.
  2560. *
  2561. * @param string $key
  2562. * @param mixed $value
  2563. * @return int|bool
  2564. * @static
  2565. */
  2566. public static function decrement($key, $value = 1)
  2567. {
  2568. return \Illuminate\Cache\Repository::decrement($key, $value);
  2569. }
  2570. /**
  2571. * Store an item in the cache indefinitely.
  2572. *
  2573. * @param string $key
  2574. * @param mixed $value
  2575. * @return void
  2576. * @static
  2577. */
  2578. public static function forever($key, $value)
  2579. {
  2580. \Illuminate\Cache\Repository::forever($key, $value);
  2581. }
  2582. /**
  2583. * Get an item from the cache, or store the default value.
  2584. *
  2585. * @param string $key
  2586. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2587. * @param \Closure $callback
  2588. * @return mixed
  2589. * @static
  2590. */
  2591. public static function remember($key, $minutes, $callback)
  2592. {
  2593. return \Illuminate\Cache\Repository::remember($key, $minutes, $callback);
  2594. }
  2595. /**
  2596. * Get an item from the cache, or store the default value forever.
  2597. *
  2598. * @param string $key
  2599. * @param \Closure $callback
  2600. * @return mixed
  2601. * @static
  2602. */
  2603. public static function sear($key, $callback)
  2604. {
  2605. return \Illuminate\Cache\Repository::sear($key, $callback);
  2606. }
  2607. /**
  2608. * Get an item from the cache, or store the default value forever.
  2609. *
  2610. * @param string $key
  2611. * @param \Closure $callback
  2612. * @return mixed
  2613. * @static
  2614. */
  2615. public static function rememberForever($key, $callback)
  2616. {
  2617. return \Illuminate\Cache\Repository::rememberForever($key, $callback);
  2618. }
  2619. /**
  2620. * Remove an item from the cache.
  2621. *
  2622. * @param string $key
  2623. * @return bool
  2624. * @static
  2625. */
  2626. public static function forget($key)
  2627. {
  2628. return \Illuminate\Cache\Repository::forget($key);
  2629. }
  2630. /**
  2631. * Delete an item from the cache by its unique key.
  2632. *
  2633. * @param string $key The unique cache key of the item to delete.
  2634. * @return bool True if the item was successfully removed. False if there was an error.
  2635. * @throws \Psr\SimpleCache\InvalidArgumentException
  2636. * MUST be thrown if the $key string is not a legal value.
  2637. * @static
  2638. */
  2639. public static function delete($key)
  2640. {
  2641. return \Illuminate\Cache\Repository::delete($key);
  2642. }
  2643. /**
  2644. * Deletes multiple cache items in a single operation.
  2645. *
  2646. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  2647. * @return bool True if the items were successfully removed. False if there was an error.
  2648. * @throws \Psr\SimpleCache\InvalidArgumentException
  2649. * MUST be thrown if $keys is neither an array nor a Traversable,
  2650. * or if any of the $keys are not a legal value.
  2651. * @static
  2652. */
  2653. public static function deleteMultiple($keys)
  2654. {
  2655. return \Illuminate\Cache\Repository::deleteMultiple($keys);
  2656. }
  2657. /**
  2658. * Wipes clean the entire cache's keys.
  2659. *
  2660. * @return bool True on success and false on failure.
  2661. * @static
  2662. */
  2663. public static function clear()
  2664. {
  2665. return \Illuminate\Cache\Repository::clear();
  2666. }
  2667. /**
  2668. * Begin executing a new tags operation if the store supports it.
  2669. *
  2670. * @param array|mixed $names
  2671. * @return \Illuminate\Cache\TaggedCache
  2672. * @throws \BadMethodCallException
  2673. * @static
  2674. */
  2675. public static function tags($names)
  2676. {
  2677. return \Illuminate\Cache\Repository::tags($names);
  2678. }
  2679. /**
  2680. * Get the default cache time.
  2681. *
  2682. * @return float|int
  2683. * @static
  2684. */
  2685. public static function getDefaultCacheTime()
  2686. {
  2687. return \Illuminate\Cache\Repository::getDefaultCacheTime();
  2688. }
  2689. /**
  2690. * Set the default cache time in minutes.
  2691. *
  2692. * @param float|int $minutes
  2693. * @return $this
  2694. * @static
  2695. */
  2696. public static function setDefaultCacheTime($minutes)
  2697. {
  2698. return \Illuminate\Cache\Repository::setDefaultCacheTime($minutes);
  2699. }
  2700. /**
  2701. * Get the cache store implementation.
  2702. *
  2703. * @return \Illuminate\Contracts\Cache\Store
  2704. * @static
  2705. */
  2706. public static function getStore()
  2707. {
  2708. return \Illuminate\Cache\Repository::getStore();
  2709. }
  2710. /**
  2711. * Set the event dispatcher instance.
  2712. *
  2713. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2714. * @return void
  2715. * @static
  2716. */
  2717. public static function setEventDispatcher($events)
  2718. {
  2719. \Illuminate\Cache\Repository::setEventDispatcher($events);
  2720. }
  2721. /**
  2722. * Determine if a cached value exists.
  2723. *
  2724. * @param string $key
  2725. * @return bool
  2726. * @static
  2727. */
  2728. public static function offsetExists($key)
  2729. {
  2730. return \Illuminate\Cache\Repository::offsetExists($key);
  2731. }
  2732. /**
  2733. * Retrieve an item from the cache by key.
  2734. *
  2735. * @param string $key
  2736. * @return mixed
  2737. * @static
  2738. */
  2739. public static function offsetGet($key)
  2740. {
  2741. return \Illuminate\Cache\Repository::offsetGet($key);
  2742. }
  2743. /**
  2744. * Store an item in the cache for the default time.
  2745. *
  2746. * @param string $key
  2747. * @param mixed $value
  2748. * @return void
  2749. * @static
  2750. */
  2751. public static function offsetSet($key, $value)
  2752. {
  2753. \Illuminate\Cache\Repository::offsetSet($key, $value);
  2754. }
  2755. /**
  2756. * Remove an item from the cache.
  2757. *
  2758. * @param string $key
  2759. * @return void
  2760. * @static
  2761. */
  2762. public static function offsetUnset($key)
  2763. {
  2764. \Illuminate\Cache\Repository::offsetUnset($key);
  2765. }
  2766. /**
  2767. * Register a custom macro.
  2768. *
  2769. * @param string $name
  2770. * @param object|callable $macro
  2771. * @return void
  2772. * @static
  2773. */
  2774. public static function macro($name, $macro)
  2775. {
  2776. \Illuminate\Cache\Repository::macro($name, $macro);
  2777. }
  2778. /**
  2779. * Mix another object into the class.
  2780. *
  2781. * @param object $mixin
  2782. * @return void
  2783. * @throws \ReflectionException
  2784. * @static
  2785. */
  2786. public static function mixin($mixin)
  2787. {
  2788. \Illuminate\Cache\Repository::mixin($mixin);
  2789. }
  2790. /**
  2791. * Checks if macro is registered.
  2792. *
  2793. * @param string $name
  2794. * @return bool
  2795. * @static
  2796. */
  2797. public static function hasMacro($name)
  2798. {
  2799. return \Illuminate\Cache\Repository::hasMacro($name);
  2800. }
  2801. /**
  2802. * Dynamically handle calls to the class.
  2803. *
  2804. * @param string $method
  2805. * @param array $parameters
  2806. * @return mixed
  2807. * @throws \BadMethodCallException
  2808. * @static
  2809. */
  2810. public static function macroCall($method, $parameters)
  2811. {
  2812. return \Illuminate\Cache\Repository::macroCall($method, $parameters);
  2813. }
  2814. /**
  2815. * Remove all items from the cache.
  2816. *
  2817. * @return bool
  2818. * @static
  2819. */
  2820. public static function flush()
  2821. {
  2822. return \Illuminate\Cache\FileStore::flush();
  2823. }
  2824. /**
  2825. * Get the Filesystem instance.
  2826. *
  2827. * @return \Illuminate\Filesystem\Filesystem
  2828. * @static
  2829. */
  2830. public static function getFilesystem()
  2831. {
  2832. return \Illuminate\Cache\FileStore::getFilesystem();
  2833. }
  2834. /**
  2835. * Get the working directory of the cache.
  2836. *
  2837. * @return string
  2838. * @static
  2839. */
  2840. public static function getDirectory()
  2841. {
  2842. return \Illuminate\Cache\FileStore::getDirectory();
  2843. }
  2844. /**
  2845. * Get the cache key prefix.
  2846. *
  2847. * @return string
  2848. * @static
  2849. */
  2850. public static function getPrefix()
  2851. {
  2852. return \Illuminate\Cache\FileStore::getPrefix();
  2853. }
  2854. }
  2855. /**
  2856. *
  2857. *
  2858. * @see \Illuminate\Config\Repository
  2859. */
  2860. class Config {
  2861. /**
  2862. * Determine if the given configuration value exists.
  2863. *
  2864. * @param string $key
  2865. * @return bool
  2866. * @static
  2867. */
  2868. public static function has($key)
  2869. {
  2870. return \Illuminate\Config\Repository::has($key);
  2871. }
  2872. /**
  2873. * Get the specified configuration value.
  2874. *
  2875. * @param array|string $key
  2876. * @param mixed $default
  2877. * @return mixed
  2878. * @static
  2879. */
  2880. public static function get($key, $default = null)
  2881. {
  2882. return \Illuminate\Config\Repository::get($key, $default);
  2883. }
  2884. /**
  2885. * Get many configuration values.
  2886. *
  2887. * @param array $keys
  2888. * @return array
  2889. * @static
  2890. */
  2891. public static function getMany($keys)
  2892. {
  2893. return \Illuminate\Config\Repository::getMany($keys);
  2894. }
  2895. /**
  2896. * Set a given configuration value.
  2897. *
  2898. * @param array|string $key
  2899. * @param mixed $value
  2900. * @return void
  2901. * @static
  2902. */
  2903. public static function set($key, $value = null)
  2904. {
  2905. \Illuminate\Config\Repository::set($key, $value);
  2906. }
  2907. /**
  2908. * Prepend a value onto an array configuration value.
  2909. *
  2910. * @param string $key
  2911. * @param mixed $value
  2912. * @return void
  2913. * @static
  2914. */
  2915. public static function prepend($key, $value)
  2916. {
  2917. \Illuminate\Config\Repository::prepend($key, $value);
  2918. }
  2919. /**
  2920. * Push a value onto an array configuration value.
  2921. *
  2922. * @param string $key
  2923. * @param mixed $value
  2924. * @return void
  2925. * @static
  2926. */
  2927. public static function push($key, $value)
  2928. {
  2929. \Illuminate\Config\Repository::push($key, $value);
  2930. }
  2931. /**
  2932. * Get all of the configuration items for the application.
  2933. *
  2934. * @return array
  2935. * @static
  2936. */
  2937. public static function all()
  2938. {
  2939. return \Illuminate\Config\Repository::all();
  2940. }
  2941. /**
  2942. * Determine if the given configuration option exists.
  2943. *
  2944. * @param string $key
  2945. * @return bool
  2946. * @static
  2947. */
  2948. public static function offsetExists($key)
  2949. {
  2950. return \Illuminate\Config\Repository::offsetExists($key);
  2951. }
  2952. /**
  2953. * Get a configuration option.
  2954. *
  2955. * @param string $key
  2956. * @return mixed
  2957. * @static
  2958. */
  2959. public static function offsetGet($key)
  2960. {
  2961. return \Illuminate\Config\Repository::offsetGet($key);
  2962. }
  2963. /**
  2964. * Set a configuration option.
  2965. *
  2966. * @param string $key
  2967. * @param mixed $value
  2968. * @return void
  2969. * @static
  2970. */
  2971. public static function offsetSet($key, $value)
  2972. {
  2973. \Illuminate\Config\Repository::offsetSet($key, $value);
  2974. }
  2975. /**
  2976. * Unset a configuration option.
  2977. *
  2978. * @param string $key
  2979. * @return void
  2980. * @static
  2981. */
  2982. public static function offsetUnset($key)
  2983. {
  2984. \Illuminate\Config\Repository::offsetUnset($key);
  2985. }
  2986. }
  2987. /**
  2988. *
  2989. *
  2990. * @see \Illuminate\Cookie\CookieJar
  2991. */
  2992. class Cookie {
  2993. /**
  2994. * Create a new cookie instance.
  2995. *
  2996. * @param string $name
  2997. * @param string $value
  2998. * @param int $minutes
  2999. * @param string $path
  3000. * @param string $domain
  3001. * @param bool|null $secure
  3002. * @param bool $httpOnly
  3003. * @param bool $raw
  3004. * @param string|null $sameSite
  3005. * @return \Symfony\Component\HttpFoundation\Cookie
  3006. * @static
  3007. */
  3008. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3009. {
  3010. return \Illuminate\Cookie\CookieJar::make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3011. }
  3012. /**
  3013. * Create a cookie that lasts "forever" (five years).
  3014. *
  3015. * @param string $name
  3016. * @param string $value
  3017. * @param string $path
  3018. * @param string $domain
  3019. * @param bool|null $secure
  3020. * @param bool $httpOnly
  3021. * @param bool $raw
  3022. * @param string|null $sameSite
  3023. * @return \Symfony\Component\HttpFoundation\Cookie
  3024. * @static
  3025. */
  3026. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3027. {
  3028. return \Illuminate\Cookie\CookieJar::forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3029. }
  3030. /**
  3031. * Expire the given cookie.
  3032. *
  3033. * @param string $name
  3034. * @param string $path
  3035. * @param string $domain
  3036. * @return \Symfony\Component\HttpFoundation\Cookie
  3037. * @static
  3038. */
  3039. public static function forget($name, $path = null, $domain = null)
  3040. {
  3041. return \Illuminate\Cookie\CookieJar::forget($name, $path, $domain);
  3042. }
  3043. /**
  3044. * Determine if a cookie has been queued.
  3045. *
  3046. * @param string $key
  3047. * @return bool
  3048. * @static
  3049. */
  3050. public static function hasQueued($key)
  3051. {
  3052. return \Illuminate\Cookie\CookieJar::hasQueued($key);
  3053. }
  3054. /**
  3055. * Get a queued cookie instance.
  3056. *
  3057. * @param string $key
  3058. * @param mixed $default
  3059. * @return \Symfony\Component\HttpFoundation\Cookie
  3060. * @static
  3061. */
  3062. public static function queued($key, $default = null)
  3063. {
  3064. return \Illuminate\Cookie\CookieJar::queued($key, $default);
  3065. }
  3066. /**
  3067. * Queue a cookie to send with the next response.
  3068. *
  3069. * @param array $parameters
  3070. * @return void
  3071. * @static
  3072. */
  3073. public static function queue($parameters = null)
  3074. {
  3075. \Illuminate\Cookie\CookieJar::queue($parameters);
  3076. }
  3077. /**
  3078. * Remove a cookie from the queue.
  3079. *
  3080. * @param string $name
  3081. * @return void
  3082. * @static
  3083. */
  3084. public static function unqueue($name)
  3085. {
  3086. \Illuminate\Cookie\CookieJar::unqueue($name);
  3087. }
  3088. /**
  3089. * Set the default path and domain for the jar.
  3090. *
  3091. * @param string $path
  3092. * @param string $domain
  3093. * @param bool $secure
  3094. * @param string $sameSite
  3095. * @return $this
  3096. * @static
  3097. */
  3098. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3099. {
  3100. return \Illuminate\Cookie\CookieJar::setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3101. }
  3102. /**
  3103. * Get the cookies which have been queued for the next request.
  3104. *
  3105. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3106. * @static
  3107. */
  3108. public static function getQueuedCookies()
  3109. {
  3110. return \Illuminate\Cookie\CookieJar::getQueuedCookies();
  3111. }
  3112. }
  3113. /**
  3114. *
  3115. *
  3116. * @see \Illuminate\Encryption\Encrypter
  3117. */
  3118. class Crypt {
  3119. /**
  3120. * Determine if the given key and cipher combination is valid.
  3121. *
  3122. * @param string $key
  3123. * @param string $cipher
  3124. * @return bool
  3125. * @static
  3126. */
  3127. public static function supported($key, $cipher)
  3128. {
  3129. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3130. }
  3131. /**
  3132. * Create a new encryption key for the given cipher.
  3133. *
  3134. * @param string $cipher
  3135. * @return string
  3136. * @static
  3137. */
  3138. public static function generateKey($cipher)
  3139. {
  3140. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3141. }
  3142. /**
  3143. * Encrypt the given value.
  3144. *
  3145. * @param mixed $value
  3146. * @param bool $serialize
  3147. * @return string
  3148. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3149. * @static
  3150. */
  3151. public static function encrypt($value, $serialize = true)
  3152. {
  3153. return \Illuminate\Encryption\Encrypter::encrypt($value, $serialize);
  3154. }
  3155. /**
  3156. * Encrypt a string without serialization.
  3157. *
  3158. * @param string $value
  3159. * @return string
  3160. * @static
  3161. */
  3162. public static function encryptString($value)
  3163. {
  3164. return \Illuminate\Encryption\Encrypter::encryptString($value);
  3165. }
  3166. /**
  3167. * Decrypt the given value.
  3168. *
  3169. * @param mixed $payload
  3170. * @param bool $unserialize
  3171. * @return mixed
  3172. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3173. * @static
  3174. */
  3175. public static function decrypt($payload, $unserialize = true)
  3176. {
  3177. return \Illuminate\Encryption\Encrypter::decrypt($payload, $unserialize);
  3178. }
  3179. /**
  3180. * Decrypt the given string without unserialization.
  3181. *
  3182. * @param string $payload
  3183. * @return string
  3184. * @static
  3185. */
  3186. public static function decryptString($payload)
  3187. {
  3188. return \Illuminate\Encryption\Encrypter::decryptString($payload);
  3189. }
  3190. /**
  3191. * Get the encryption key.
  3192. *
  3193. * @return string
  3194. * @static
  3195. */
  3196. public static function getKey()
  3197. {
  3198. return \Illuminate\Encryption\Encrypter::getKey();
  3199. }
  3200. }
  3201. /**
  3202. *
  3203. *
  3204. * @see \Illuminate\Database\DatabaseManager
  3205. * @see \Illuminate\Database\Connection
  3206. */
  3207. class DB {
  3208. /**
  3209. * Get a database connection instance.
  3210. *
  3211. * @param string $name
  3212. * @return \Illuminate\Database\Connection
  3213. * @static
  3214. */
  3215. public static function connection($name = null)
  3216. {
  3217. return \Illuminate\Database\DatabaseManager::connection($name);
  3218. }
  3219. /**
  3220. * Disconnect from the given database and remove from local cache.
  3221. *
  3222. * @param string $name
  3223. * @return void
  3224. * @static
  3225. */
  3226. public static function purge($name = null)
  3227. {
  3228. \Illuminate\Database\DatabaseManager::purge($name);
  3229. }
  3230. /**
  3231. * Disconnect from the given database.
  3232. *
  3233. * @param string $name
  3234. * @return void
  3235. * @static
  3236. */
  3237. public static function disconnect($name = null)
  3238. {
  3239. \Illuminate\Database\DatabaseManager::disconnect($name);
  3240. }
  3241. /**
  3242. * Reconnect to the given database.
  3243. *
  3244. * @param string $name
  3245. * @return \Illuminate\Database\Connection
  3246. * @static
  3247. */
  3248. public static function reconnect($name = null)
  3249. {
  3250. return \Illuminate\Database\DatabaseManager::reconnect($name);
  3251. }
  3252. /**
  3253. * Get the default connection name.
  3254. *
  3255. * @return string
  3256. * @static
  3257. */
  3258. public static function getDefaultConnection()
  3259. {
  3260. return \Illuminate\Database\DatabaseManager::getDefaultConnection();
  3261. }
  3262. /**
  3263. * Set the default connection name.
  3264. *
  3265. * @param string $name
  3266. * @return void
  3267. * @static
  3268. */
  3269. public static function setDefaultConnection($name)
  3270. {
  3271. \Illuminate\Database\DatabaseManager::setDefaultConnection($name);
  3272. }
  3273. /**
  3274. * Get all of the support drivers.
  3275. *
  3276. * @return array
  3277. * @static
  3278. */
  3279. public static function supportedDrivers()
  3280. {
  3281. return \Illuminate\Database\DatabaseManager::supportedDrivers();
  3282. }
  3283. /**
  3284. * Get all of the drivers that are actually available.
  3285. *
  3286. * @return array
  3287. * @static
  3288. */
  3289. public static function availableDrivers()
  3290. {
  3291. return \Illuminate\Database\DatabaseManager::availableDrivers();
  3292. }
  3293. /**
  3294. * Register an extension connection resolver.
  3295. *
  3296. * @param string $name
  3297. * @param callable $resolver
  3298. * @return void
  3299. * @static
  3300. */
  3301. public static function extend($name, $resolver)
  3302. {
  3303. \Illuminate\Database\DatabaseManager::extend($name, $resolver);
  3304. }
  3305. /**
  3306. * Return all of the created connections.
  3307. *
  3308. * @return array
  3309. * @static
  3310. */
  3311. public static function getConnections()
  3312. {
  3313. return \Illuminate\Database\DatabaseManager::getConnections();
  3314. }
  3315. /**
  3316. * Get a schema builder instance for the connection.
  3317. *
  3318. * @return \Illuminate\Database\Schema\MySqlBuilder
  3319. * @static
  3320. */
  3321. public static function getSchemaBuilder()
  3322. {
  3323. return \Illuminate\Database\MySqlConnection::getSchemaBuilder();
  3324. }
  3325. /**
  3326. * Bind values to their parameters in the given statement.
  3327. *
  3328. * @param \PDOStatement $statement
  3329. * @param array $bindings
  3330. * @return void
  3331. * @static
  3332. */
  3333. public static function bindValues($statement, $bindings)
  3334. {
  3335. \Illuminate\Database\MySqlConnection::bindValues($statement, $bindings);
  3336. }
  3337. /**
  3338. * Set the query grammar to the default implementation.
  3339. *
  3340. * @return void
  3341. * @static
  3342. */
  3343. public static function useDefaultQueryGrammar()
  3344. {
  3345. //Method inherited from \Illuminate\Database\Connection
  3346. \Illuminate\Database\MySqlConnection::useDefaultQueryGrammar();
  3347. }
  3348. /**
  3349. * Set the schema grammar to the default implementation.
  3350. *
  3351. * @return void
  3352. * @static
  3353. */
  3354. public static function useDefaultSchemaGrammar()
  3355. {
  3356. //Method inherited from \Illuminate\Database\Connection
  3357. \Illuminate\Database\MySqlConnection::useDefaultSchemaGrammar();
  3358. }
  3359. /**
  3360. * Set the query post processor to the default implementation.
  3361. *
  3362. * @return void
  3363. * @static
  3364. */
  3365. public static function useDefaultPostProcessor()
  3366. {
  3367. //Method inherited from \Illuminate\Database\Connection
  3368. \Illuminate\Database\MySqlConnection::useDefaultPostProcessor();
  3369. }
  3370. /**
  3371. * Begin a fluent query against a database table.
  3372. *
  3373. * @param string $table
  3374. * @return \Illuminate\Database\Query\Builder
  3375. * @static
  3376. */
  3377. public static function table($table)
  3378. {
  3379. //Method inherited from \Illuminate\Database\Connection
  3380. return \Illuminate\Database\MySqlConnection::table($table);
  3381. }
  3382. /**
  3383. * Get a new query builder instance.
  3384. *
  3385. * @return \Illuminate\Database\Query\Builder
  3386. * @static
  3387. */
  3388. public static function query()
  3389. {
  3390. //Method inherited from \Illuminate\Database\Connection
  3391. return \Illuminate\Database\MySqlConnection::query();
  3392. }
  3393. /**
  3394. * Run a select statement and return a single result.
  3395. *
  3396. * @param string $query
  3397. * @param array $bindings
  3398. * @param bool $useReadPdo
  3399. * @return mixed
  3400. * @static
  3401. */
  3402. public static function selectOne($query, $bindings = array(), $useReadPdo = true)
  3403. {
  3404. //Method inherited from \Illuminate\Database\Connection
  3405. return \Illuminate\Database\MySqlConnection::selectOne($query, $bindings, $useReadPdo);
  3406. }
  3407. /**
  3408. * Run a select statement against the database.
  3409. *
  3410. * @param string $query
  3411. * @param array $bindings
  3412. * @return array
  3413. * @static
  3414. */
  3415. public static function selectFromWriteConnection($query, $bindings = array())
  3416. {
  3417. //Method inherited from \Illuminate\Database\Connection
  3418. return \Illuminate\Database\MySqlConnection::selectFromWriteConnection($query, $bindings);
  3419. }
  3420. /**
  3421. * Run a select statement against the database.
  3422. *
  3423. * @param string $query
  3424. * @param array $bindings
  3425. * @param bool $useReadPdo
  3426. * @return array
  3427. * @static
  3428. */
  3429. public static function select($query, $bindings = array(), $useReadPdo = true)
  3430. {
  3431. //Method inherited from \Illuminate\Database\Connection
  3432. return \Illuminate\Database\MySqlConnection::select($query, $bindings, $useReadPdo);
  3433. }
  3434. /**
  3435. * Run a select statement against the database and returns a generator.
  3436. *
  3437. * @param string $query
  3438. * @param array $bindings
  3439. * @param bool $useReadPdo
  3440. * @return \Generator
  3441. * @static
  3442. */
  3443. public static function cursor($query, $bindings = array(), $useReadPdo = true)
  3444. {
  3445. //Method inherited from \Illuminate\Database\Connection
  3446. return \Illuminate\Database\MySqlConnection::cursor($query, $bindings, $useReadPdo);
  3447. }
  3448. /**
  3449. * Run an insert statement against the database.
  3450. *
  3451. * @param string $query
  3452. * @param array $bindings
  3453. * @return bool
  3454. * @static
  3455. */
  3456. public static function insert($query, $bindings = array())
  3457. {
  3458. //Method inherited from \Illuminate\Database\Connection
  3459. return \Illuminate\Database\MySqlConnection::insert($query, $bindings);
  3460. }
  3461. /**
  3462. * Run an update statement against the database.
  3463. *
  3464. * @param string $query
  3465. * @param array $bindings
  3466. * @return int
  3467. * @static
  3468. */
  3469. public static function update($query, $bindings = array())
  3470. {
  3471. //Method inherited from \Illuminate\Database\Connection
  3472. return \Illuminate\Database\MySqlConnection::update($query, $bindings);
  3473. }
  3474. /**
  3475. * Run a delete statement against the database.
  3476. *
  3477. * @param string $query
  3478. * @param array $bindings
  3479. * @return int
  3480. * @static
  3481. */
  3482. public static function delete($query, $bindings = array())
  3483. {
  3484. //Method inherited from \Illuminate\Database\Connection
  3485. return \Illuminate\Database\MySqlConnection::delete($query, $bindings);
  3486. }
  3487. /**
  3488. * Execute an SQL statement and return the boolean result.
  3489. *
  3490. * @param string $query
  3491. * @param array $bindings
  3492. * @return bool
  3493. * @static
  3494. */
  3495. public static function statement($query, $bindings = array())
  3496. {
  3497. //Method inherited from \Illuminate\Database\Connection
  3498. return \Illuminate\Database\MySqlConnection::statement($query, $bindings);
  3499. }
  3500. /**
  3501. * Run an SQL statement and get the number of rows affected.
  3502. *
  3503. * @param string $query
  3504. * @param array $bindings
  3505. * @return int
  3506. * @static
  3507. */
  3508. public static function affectingStatement($query, $bindings = array())
  3509. {
  3510. //Method inherited from \Illuminate\Database\Connection
  3511. return \Illuminate\Database\MySqlConnection::affectingStatement($query, $bindings);
  3512. }
  3513. /**
  3514. * Run a raw, unprepared query against the PDO connection.
  3515. *
  3516. * @param string $query
  3517. * @return bool
  3518. * @static
  3519. */
  3520. public static function unprepared($query)
  3521. {
  3522. //Method inherited from \Illuminate\Database\Connection
  3523. return \Illuminate\Database\MySqlConnection::unprepared($query);
  3524. }
  3525. /**
  3526. * Execute the given callback in "dry run" mode.
  3527. *
  3528. * @param \Closure $callback
  3529. * @return array
  3530. * @static
  3531. */
  3532. public static function pretend($callback)
  3533. {
  3534. //Method inherited from \Illuminate\Database\Connection
  3535. return \Illuminate\Database\MySqlConnection::pretend($callback);
  3536. }
  3537. /**
  3538. * Prepare the query bindings for execution.
  3539. *
  3540. * @param array $bindings
  3541. * @return array
  3542. * @static
  3543. */
  3544. public static function prepareBindings($bindings)
  3545. {
  3546. //Method inherited from \Illuminate\Database\Connection
  3547. return \Illuminate\Database\MySqlConnection::prepareBindings($bindings);
  3548. }
  3549. /**
  3550. * Log a query in the connection's query log.
  3551. *
  3552. * @param string $query
  3553. * @param array $bindings
  3554. * @param float|null $time
  3555. * @return void
  3556. * @static
  3557. */
  3558. public static function logQuery($query, $bindings, $time = null)
  3559. {
  3560. //Method inherited from \Illuminate\Database\Connection
  3561. \Illuminate\Database\MySqlConnection::logQuery($query, $bindings, $time);
  3562. }
  3563. /**
  3564. * Register a database query listener with the connection.
  3565. *
  3566. * @param \Closure $callback
  3567. * @return void
  3568. * @static
  3569. */
  3570. public static function listen($callback)
  3571. {
  3572. //Method inherited from \Illuminate\Database\Connection
  3573. \Illuminate\Database\MySqlConnection::listen($callback);
  3574. }
  3575. /**
  3576. * Get a new raw query expression.
  3577. *
  3578. * @param mixed $value
  3579. * @return \Illuminate\Database\Query\Expression
  3580. * @static
  3581. */
  3582. public static function raw($value)
  3583. {
  3584. //Method inherited from \Illuminate\Database\Connection
  3585. return \Illuminate\Database\MySqlConnection::raw($value);
  3586. }
  3587. /**
  3588. * Indicate if any records have been modified.
  3589. *
  3590. * @param bool $value
  3591. * @return void
  3592. * @static
  3593. */
  3594. public static function recordsHaveBeenModified($value = true)
  3595. {
  3596. //Method inherited from \Illuminate\Database\Connection
  3597. \Illuminate\Database\MySqlConnection::recordsHaveBeenModified($value);
  3598. }
  3599. /**
  3600. * Is Doctrine available?
  3601. *
  3602. * @return bool
  3603. * @static
  3604. */
  3605. public static function isDoctrineAvailable()
  3606. {
  3607. //Method inherited from \Illuminate\Database\Connection
  3608. return \Illuminate\Database\MySqlConnection::isDoctrineAvailable();
  3609. }
  3610. /**
  3611. * Get a Doctrine Schema Column instance.
  3612. *
  3613. * @param string $table
  3614. * @param string $column
  3615. * @return \Doctrine\DBAL\Schema\Column
  3616. * @static
  3617. */
  3618. public static function getDoctrineColumn($table, $column)
  3619. {
  3620. //Method inherited from \Illuminate\Database\Connection
  3621. return \Illuminate\Database\MySqlConnection::getDoctrineColumn($table, $column);
  3622. }
  3623. /**
  3624. * Get the Doctrine DBAL schema manager for the connection.
  3625. *
  3626. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3627. * @static
  3628. */
  3629. public static function getDoctrineSchemaManager()
  3630. {
  3631. //Method inherited from \Illuminate\Database\Connection
  3632. return \Illuminate\Database\MySqlConnection::getDoctrineSchemaManager();
  3633. }
  3634. /**
  3635. * Get the Doctrine DBAL database connection instance.
  3636. *
  3637. * @return \Doctrine\DBAL\Connection
  3638. * @static
  3639. */
  3640. public static function getDoctrineConnection()
  3641. {
  3642. //Method inherited from \Illuminate\Database\Connection
  3643. return \Illuminate\Database\MySqlConnection::getDoctrineConnection();
  3644. }
  3645. /**
  3646. * Get the current PDO connection.
  3647. *
  3648. * @return \PDO
  3649. * @static
  3650. */
  3651. public static function getPdo()
  3652. {
  3653. //Method inherited from \Illuminate\Database\Connection
  3654. return \Illuminate\Database\MySqlConnection::getPdo();
  3655. }
  3656. /**
  3657. * Get the current PDO connection used for reading.
  3658. *
  3659. * @return \PDO
  3660. * @static
  3661. */
  3662. public static function getReadPdo()
  3663. {
  3664. //Method inherited from \Illuminate\Database\Connection
  3665. return \Illuminate\Database\MySqlConnection::getReadPdo();
  3666. }
  3667. /**
  3668. * Set the PDO connection.
  3669. *
  3670. * @param \PDO|\Closure|null $pdo
  3671. * @return $this
  3672. * @static
  3673. */
  3674. public static function setPdo($pdo)
  3675. {
  3676. //Method inherited from \Illuminate\Database\Connection
  3677. return \Illuminate\Database\MySqlConnection::setPdo($pdo);
  3678. }
  3679. /**
  3680. * Set the PDO connection used for reading.
  3681. *
  3682. * @param \PDO|\Closure|null $pdo
  3683. * @return $this
  3684. * @static
  3685. */
  3686. public static function setReadPdo($pdo)
  3687. {
  3688. //Method inherited from \Illuminate\Database\Connection
  3689. return \Illuminate\Database\MySqlConnection::setReadPdo($pdo);
  3690. }
  3691. /**
  3692. * Set the reconnect instance on the connection.
  3693. *
  3694. * @param callable $reconnector
  3695. * @return $this
  3696. * @static
  3697. */
  3698. public static function setReconnector($reconnector)
  3699. {
  3700. //Method inherited from \Illuminate\Database\Connection
  3701. return \Illuminate\Database\MySqlConnection::setReconnector($reconnector);
  3702. }
  3703. /**
  3704. * Get the database connection name.
  3705. *
  3706. * @return string|null
  3707. * @static
  3708. */
  3709. public static function getName()
  3710. {
  3711. //Method inherited from \Illuminate\Database\Connection
  3712. return \Illuminate\Database\MySqlConnection::getName();
  3713. }
  3714. /**
  3715. * Get an option from the configuration options.
  3716. *
  3717. * @param string|null $option
  3718. * @return mixed
  3719. * @static
  3720. */
  3721. public static function getConfig($option = null)
  3722. {
  3723. //Method inherited from \Illuminate\Database\Connection
  3724. return \Illuminate\Database\MySqlConnection::getConfig($option);
  3725. }
  3726. /**
  3727. * Get the PDO driver name.
  3728. *
  3729. * @return string
  3730. * @static
  3731. */
  3732. public static function getDriverName()
  3733. {
  3734. //Method inherited from \Illuminate\Database\Connection
  3735. return \Illuminate\Database\MySqlConnection::getDriverName();
  3736. }
  3737. /**
  3738. * Get the query grammar used by the connection.
  3739. *
  3740. * @return \Illuminate\Database\Query\Grammars\Grammar
  3741. * @static
  3742. */
  3743. public static function getQueryGrammar()
  3744. {
  3745. //Method inherited from \Illuminate\Database\Connection
  3746. return \Illuminate\Database\MySqlConnection::getQueryGrammar();
  3747. }
  3748. /**
  3749. * Set the query grammar used by the connection.
  3750. *
  3751. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  3752. * @return void
  3753. * @static
  3754. */
  3755. public static function setQueryGrammar($grammar)
  3756. {
  3757. //Method inherited from \Illuminate\Database\Connection
  3758. \Illuminate\Database\MySqlConnection::setQueryGrammar($grammar);
  3759. }
  3760. /**
  3761. * Get the schema grammar used by the connection.
  3762. *
  3763. * @return \Illuminate\Database\Schema\Grammars\Grammar
  3764. * @static
  3765. */
  3766. public static function getSchemaGrammar()
  3767. {
  3768. //Method inherited from \Illuminate\Database\Connection
  3769. return \Illuminate\Database\MySqlConnection::getSchemaGrammar();
  3770. }
  3771. /**
  3772. * Set the schema grammar used by the connection.
  3773. *
  3774. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  3775. * @return void
  3776. * @static
  3777. */
  3778. public static function setSchemaGrammar($grammar)
  3779. {
  3780. //Method inherited from \Illuminate\Database\Connection
  3781. \Illuminate\Database\MySqlConnection::setSchemaGrammar($grammar);
  3782. }
  3783. /**
  3784. * Get the query post processor used by the connection.
  3785. *
  3786. * @return \Illuminate\Database\Query\Processors\Processor
  3787. * @static
  3788. */
  3789. public static function getPostProcessor()
  3790. {
  3791. //Method inherited from \Illuminate\Database\Connection
  3792. return \Illuminate\Database\MySqlConnection::getPostProcessor();
  3793. }
  3794. /**
  3795. * Set the query post processor used by the connection.
  3796. *
  3797. * @param \Illuminate\Database\Query\Processors\Processor $processor
  3798. * @return void
  3799. * @static
  3800. */
  3801. public static function setPostProcessor($processor)
  3802. {
  3803. //Method inherited from \Illuminate\Database\Connection
  3804. \Illuminate\Database\MySqlConnection::setPostProcessor($processor);
  3805. }
  3806. /**
  3807. * Get the event dispatcher used by the connection.
  3808. *
  3809. * @return \Illuminate\Contracts\Events\Dispatcher
  3810. * @static
  3811. */
  3812. public static function getEventDispatcher()
  3813. {
  3814. //Method inherited from \Illuminate\Database\Connection
  3815. return \Illuminate\Database\MySqlConnection::getEventDispatcher();
  3816. }
  3817. /**
  3818. * Set the event dispatcher instance on the connection.
  3819. *
  3820. * @param \Illuminate\Contracts\Events\Dispatcher $events
  3821. * @return void
  3822. * @static
  3823. */
  3824. public static function setEventDispatcher($events)
  3825. {
  3826. //Method inherited from \Illuminate\Database\Connection
  3827. \Illuminate\Database\MySqlConnection::setEventDispatcher($events);
  3828. }
  3829. /**
  3830. * Unset the event dispatcher for this connection.
  3831. *
  3832. * @return void
  3833. * @static
  3834. */
  3835. public static function unsetEventDispatcher()
  3836. {
  3837. //Method inherited from \Illuminate\Database\Connection
  3838. \Illuminate\Database\MySqlConnection::unsetEventDispatcher();
  3839. }
  3840. /**
  3841. * Determine if the connection in a "dry run".
  3842. *
  3843. * @return bool
  3844. * @static
  3845. */
  3846. public static function pretending()
  3847. {
  3848. //Method inherited from \Illuminate\Database\Connection
  3849. return \Illuminate\Database\MySqlConnection::pretending();
  3850. }
  3851. /**
  3852. * Get the connection query log.
  3853. *
  3854. * @return array
  3855. * @static
  3856. */
  3857. public static function getQueryLog()
  3858. {
  3859. //Method inherited from \Illuminate\Database\Connection
  3860. return \Illuminate\Database\MySqlConnection::getQueryLog();
  3861. }
  3862. /**
  3863. * Clear the query log.
  3864. *
  3865. * @return void
  3866. * @static
  3867. */
  3868. public static function flushQueryLog()
  3869. {
  3870. //Method inherited from \Illuminate\Database\Connection
  3871. \Illuminate\Database\MySqlConnection::flushQueryLog();
  3872. }
  3873. /**
  3874. * Enable the query log on the connection.
  3875. *
  3876. * @return void
  3877. * @static
  3878. */
  3879. public static function enableQueryLog()
  3880. {
  3881. //Method inherited from \Illuminate\Database\Connection
  3882. \Illuminate\Database\MySqlConnection::enableQueryLog();
  3883. }
  3884. /**
  3885. * Disable the query log on the connection.
  3886. *
  3887. * @return void
  3888. * @static
  3889. */
  3890. public static function disableQueryLog()
  3891. {
  3892. //Method inherited from \Illuminate\Database\Connection
  3893. \Illuminate\Database\MySqlConnection::disableQueryLog();
  3894. }
  3895. /**
  3896. * Determine whether we're logging queries.
  3897. *
  3898. * @return bool
  3899. * @static
  3900. */
  3901. public static function logging()
  3902. {
  3903. //Method inherited from \Illuminate\Database\Connection
  3904. return \Illuminate\Database\MySqlConnection::logging();
  3905. }
  3906. /**
  3907. * Get the name of the connected database.
  3908. *
  3909. * @return string
  3910. * @static
  3911. */
  3912. public static function getDatabaseName()
  3913. {
  3914. //Method inherited from \Illuminate\Database\Connection
  3915. return \Illuminate\Database\MySqlConnection::getDatabaseName();
  3916. }
  3917. /**
  3918. * Set the name of the connected database.
  3919. *
  3920. * @param string $database
  3921. * @return string
  3922. * @static
  3923. */
  3924. public static function setDatabaseName($database)
  3925. {
  3926. //Method inherited from \Illuminate\Database\Connection
  3927. return \Illuminate\Database\MySqlConnection::setDatabaseName($database);
  3928. }
  3929. /**
  3930. * Get the table prefix for the connection.
  3931. *
  3932. * @return string
  3933. * @static
  3934. */
  3935. public static function getTablePrefix()
  3936. {
  3937. //Method inherited from \Illuminate\Database\Connection
  3938. return \Illuminate\Database\MySqlConnection::getTablePrefix();
  3939. }
  3940. /**
  3941. * Set the table prefix in use by the connection.
  3942. *
  3943. * @param string $prefix
  3944. * @return void
  3945. * @static
  3946. */
  3947. public static function setTablePrefix($prefix)
  3948. {
  3949. //Method inherited from \Illuminate\Database\Connection
  3950. \Illuminate\Database\MySqlConnection::setTablePrefix($prefix);
  3951. }
  3952. /**
  3953. * Set the table prefix and return the grammar.
  3954. *
  3955. * @param \Illuminate\Database\Grammar $grammar
  3956. * @return \Illuminate\Database\Grammar
  3957. * @static
  3958. */
  3959. public static function withTablePrefix($grammar)
  3960. {
  3961. //Method inherited from \Illuminate\Database\Connection
  3962. return \Illuminate\Database\MySqlConnection::withTablePrefix($grammar);
  3963. }
  3964. /**
  3965. * Register a connection resolver.
  3966. *
  3967. * @param string $driver
  3968. * @param \Closure $callback
  3969. * @return void
  3970. * @static
  3971. */
  3972. public static function resolverFor($driver, $callback)
  3973. {
  3974. //Method inherited from \Illuminate\Database\Connection
  3975. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  3976. }
  3977. /**
  3978. * Get the connection resolver for the given driver.
  3979. *
  3980. * @param string $driver
  3981. * @return mixed
  3982. * @static
  3983. */
  3984. public static function getResolver($driver)
  3985. {
  3986. //Method inherited from \Illuminate\Database\Connection
  3987. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  3988. }
  3989. /**
  3990. * Execute a Closure within a transaction.
  3991. *
  3992. * @param \Closure $callback
  3993. * @param int $attempts
  3994. * @return mixed
  3995. * @throws \Exception|\Throwable
  3996. * @static
  3997. */
  3998. public static function transaction($callback, $attempts = 1)
  3999. {
  4000. //Method inherited from \Illuminate\Database\Connection
  4001. return \Illuminate\Database\MySqlConnection::transaction($callback, $attempts);
  4002. }
  4003. /**
  4004. * Start a new database transaction.
  4005. *
  4006. * @return void
  4007. * @throws \Exception
  4008. * @static
  4009. */
  4010. public static function beginTransaction()
  4011. {
  4012. //Method inherited from \Illuminate\Database\Connection
  4013. \Illuminate\Database\MySqlConnection::beginTransaction();
  4014. }
  4015. /**
  4016. * Commit the active database transaction.
  4017. *
  4018. * @return void
  4019. * @static
  4020. */
  4021. public static function commit()
  4022. {
  4023. //Method inherited from \Illuminate\Database\Connection
  4024. \Illuminate\Database\MySqlConnection::commit();
  4025. }
  4026. /**
  4027. * Rollback the active database transaction.
  4028. *
  4029. * @param int|null $toLevel
  4030. * @return void
  4031. * @throws \Exception
  4032. * @static
  4033. */
  4034. public static function rollBack($toLevel = null)
  4035. {
  4036. //Method inherited from \Illuminate\Database\Connection
  4037. \Illuminate\Database\MySqlConnection::rollBack($toLevel);
  4038. }
  4039. /**
  4040. * Get the number of active transactions.
  4041. *
  4042. * @return int
  4043. * @static
  4044. */
  4045. public static function transactionLevel()
  4046. {
  4047. //Method inherited from \Illuminate\Database\Connection
  4048. return \Illuminate\Database\MySqlConnection::transactionLevel();
  4049. }
  4050. }
  4051. /**
  4052. *
  4053. *
  4054. * @see \Illuminate\Events\Dispatcher
  4055. */
  4056. class Event {
  4057. /**
  4058. * Register an event listener with the dispatcher.
  4059. *
  4060. * @param string|array $events
  4061. * @param mixed $listener
  4062. * @return void
  4063. * @static
  4064. */
  4065. public static function listen($events, $listener)
  4066. {
  4067. \Illuminate\Events\Dispatcher::listen($events, $listener);
  4068. }
  4069. /**
  4070. * Determine if a given event has listeners.
  4071. *
  4072. * @param string $eventName
  4073. * @return bool
  4074. * @static
  4075. */
  4076. public static function hasListeners($eventName)
  4077. {
  4078. return \Illuminate\Events\Dispatcher::hasListeners($eventName);
  4079. }
  4080. /**
  4081. * Register an event and payload to be fired later.
  4082. *
  4083. * @param string $event
  4084. * @param array $payload
  4085. * @return void
  4086. * @static
  4087. */
  4088. public static function push($event, $payload = array())
  4089. {
  4090. \Illuminate\Events\Dispatcher::push($event, $payload);
  4091. }
  4092. /**
  4093. * Flush a set of pushed events.
  4094. *
  4095. * @param string $event
  4096. * @return void
  4097. * @static
  4098. */
  4099. public static function flush($event)
  4100. {
  4101. \Illuminate\Events\Dispatcher::flush($event);
  4102. }
  4103. /**
  4104. * Register an event subscriber with the dispatcher.
  4105. *
  4106. * @param object|string $subscriber
  4107. * @return void
  4108. * @static
  4109. */
  4110. public static function subscribe($subscriber)
  4111. {
  4112. \Illuminate\Events\Dispatcher::subscribe($subscriber);
  4113. }
  4114. /**
  4115. * Fire an event until the first non-null response is returned.
  4116. *
  4117. * @param string|object $event
  4118. * @param mixed $payload
  4119. * @return array|null
  4120. * @static
  4121. */
  4122. public static function until($event, $payload = array())
  4123. {
  4124. return \Illuminate\Events\Dispatcher::until($event, $payload);
  4125. }
  4126. /**
  4127. * Fire an event and call the listeners.
  4128. *
  4129. * @param string|object $event
  4130. * @param mixed $payload
  4131. * @param bool $halt
  4132. * @return array|null
  4133. * @static
  4134. */
  4135. public static function fire($event, $payload = array(), $halt = false)
  4136. {
  4137. return \Illuminate\Events\Dispatcher::fire($event, $payload, $halt);
  4138. }
  4139. /**
  4140. * Fire an event and call the listeners.
  4141. *
  4142. * @param string|object $event
  4143. * @param mixed $payload
  4144. * @param bool $halt
  4145. * @return array|null
  4146. * @static
  4147. */
  4148. public static function dispatch($event, $payload = array(), $halt = false)
  4149. {
  4150. return \Illuminate\Events\Dispatcher::dispatch($event, $payload, $halt);
  4151. }
  4152. /**
  4153. * Get all of the listeners for a given event name.
  4154. *
  4155. * @param string $eventName
  4156. * @return array
  4157. * @static
  4158. */
  4159. public static function getListeners($eventName)
  4160. {
  4161. return \Illuminate\Events\Dispatcher::getListeners($eventName);
  4162. }
  4163. /**
  4164. * Register an event listener with the dispatcher.
  4165. *
  4166. * @param \Closure|string $listener
  4167. * @param bool $wildcard
  4168. * @return \Closure
  4169. * @static
  4170. */
  4171. public static function makeListener($listener, $wildcard = false)
  4172. {
  4173. return \Illuminate\Events\Dispatcher::makeListener($listener, $wildcard);
  4174. }
  4175. /**
  4176. * Create a class based listener using the IoC container.
  4177. *
  4178. * @param string $listener
  4179. * @param bool $wildcard
  4180. * @return \Closure
  4181. * @static
  4182. */
  4183. public static function createClassListener($listener, $wildcard = false)
  4184. {
  4185. return \Illuminate\Events\Dispatcher::createClassListener($listener, $wildcard);
  4186. }
  4187. /**
  4188. * Remove a set of listeners from the dispatcher.
  4189. *
  4190. * @param string $event
  4191. * @return void
  4192. * @static
  4193. */
  4194. public static function forget($event)
  4195. {
  4196. \Illuminate\Events\Dispatcher::forget($event);
  4197. }
  4198. /**
  4199. * Forget all of the pushed listeners.
  4200. *
  4201. * @return void
  4202. * @static
  4203. */
  4204. public static function forgetPushed()
  4205. {
  4206. \Illuminate\Events\Dispatcher::forgetPushed();
  4207. }
  4208. /**
  4209. * Set the queue resolver implementation.
  4210. *
  4211. * @param callable $resolver
  4212. * @return $this
  4213. * @static
  4214. */
  4215. public static function setQueueResolver($resolver)
  4216. {
  4217. return \Illuminate\Events\Dispatcher::setQueueResolver($resolver);
  4218. }
  4219. /**
  4220. * Assert if an event was dispatched based on a truth-test callback.
  4221. *
  4222. * @param string $event
  4223. * @param callable|int|null $callback
  4224. * @return void
  4225. * @static
  4226. */
  4227. public static function assertDispatched($event, $callback = null)
  4228. {
  4229. \Illuminate\Support\Testing\Fakes\EventFake::assertDispatched($event, $callback);
  4230. }
  4231. /**
  4232. * Assert if a event was dispatched a number of times.
  4233. *
  4234. * @param string $event
  4235. * @param int $times
  4236. * @return void
  4237. * @static
  4238. */
  4239. public static function assertDispatchedTimes($event, $times = 1)
  4240. {
  4241. \Illuminate\Support\Testing\Fakes\EventFake::assertDispatchedTimes($event, $times);
  4242. }
  4243. /**
  4244. * Determine if an event was dispatched based on a truth-test callback.
  4245. *
  4246. * @param string $event
  4247. * @param callable|null $callback
  4248. * @return void
  4249. * @static
  4250. */
  4251. public static function assertNotDispatched($event, $callback = null)
  4252. {
  4253. \Illuminate\Support\Testing\Fakes\EventFake::assertNotDispatched($event, $callback);
  4254. }
  4255. /**
  4256. * Get all of the events matching a truth-test callback.
  4257. *
  4258. * @param string $event
  4259. * @param callable|null $callback
  4260. * @return \Illuminate\Support\Collection
  4261. * @static
  4262. */
  4263. public static function dispatched($event, $callback = null)
  4264. {
  4265. return \Illuminate\Support\Testing\Fakes\EventFake::dispatched($event, $callback);
  4266. }
  4267. /**
  4268. * Determine if the given event has been dispatched.
  4269. *
  4270. * @param string $event
  4271. * @return bool
  4272. * @static
  4273. */
  4274. public static function hasDispatched($event)
  4275. {
  4276. return \Illuminate\Support\Testing\Fakes\EventFake::hasDispatched($event);
  4277. }
  4278. }
  4279. /**
  4280. *
  4281. *
  4282. * @see \Illuminate\Filesystem\Filesystem
  4283. */
  4284. class File {
  4285. /**
  4286. * Determine if a file or directory exists.
  4287. *
  4288. * @param string $path
  4289. * @return bool
  4290. * @static
  4291. */
  4292. public static function exists($path)
  4293. {
  4294. return \Illuminate\Filesystem\Filesystem::exists($path);
  4295. }
  4296. /**
  4297. * Get the contents of a file.
  4298. *
  4299. * @param string $path
  4300. * @param bool $lock
  4301. * @return string
  4302. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4303. * @static
  4304. */
  4305. public static function get($path, $lock = false)
  4306. {
  4307. return \Illuminate\Filesystem\Filesystem::get($path, $lock);
  4308. }
  4309. /**
  4310. * Get contents of a file with shared access.
  4311. *
  4312. * @param string $path
  4313. * @return string
  4314. * @static
  4315. */
  4316. public static function sharedGet($path)
  4317. {
  4318. return \Illuminate\Filesystem\Filesystem::sharedGet($path);
  4319. }
  4320. /**
  4321. * Get the returned value of a file.
  4322. *
  4323. * @param string $path
  4324. * @return mixed
  4325. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4326. * @static
  4327. */
  4328. public static function getRequire($path)
  4329. {
  4330. return \Illuminate\Filesystem\Filesystem::getRequire($path);
  4331. }
  4332. /**
  4333. * Require the given file once.
  4334. *
  4335. * @param string $file
  4336. * @return mixed
  4337. * @static
  4338. */
  4339. public static function requireOnce($file)
  4340. {
  4341. return \Illuminate\Filesystem\Filesystem::requireOnce($file);
  4342. }
  4343. /**
  4344. * Get the MD5 hash of the file at the given path.
  4345. *
  4346. * @param string $path
  4347. * @return string
  4348. * @static
  4349. */
  4350. public static function hash($path)
  4351. {
  4352. return \Illuminate\Filesystem\Filesystem::hash($path);
  4353. }
  4354. /**
  4355. * Write the contents of a file.
  4356. *
  4357. * @param string $path
  4358. * @param string $contents
  4359. * @param bool $lock
  4360. * @return int
  4361. * @static
  4362. */
  4363. public static function put($path, $contents, $lock = false)
  4364. {
  4365. return \Illuminate\Filesystem\Filesystem::put($path, $contents, $lock);
  4366. }
  4367. /**
  4368. * Prepend to a file.
  4369. *
  4370. * @param string $path
  4371. * @param string $data
  4372. * @return int
  4373. * @static
  4374. */
  4375. public static function prepend($path, $data)
  4376. {
  4377. return \Illuminate\Filesystem\Filesystem::prepend($path, $data);
  4378. }
  4379. /**
  4380. * Append to a file.
  4381. *
  4382. * @param string $path
  4383. * @param string $data
  4384. * @return int
  4385. * @static
  4386. */
  4387. public static function append($path, $data)
  4388. {
  4389. return \Illuminate\Filesystem\Filesystem::append($path, $data);
  4390. }
  4391. /**
  4392. * Get or set UNIX mode of a file or directory.
  4393. *
  4394. * @param string $path
  4395. * @param int $mode
  4396. * @return mixed
  4397. * @static
  4398. */
  4399. public static function chmod($path, $mode = null)
  4400. {
  4401. return \Illuminate\Filesystem\Filesystem::chmod($path, $mode);
  4402. }
  4403. /**
  4404. * Delete the file at a given path.
  4405. *
  4406. * @param string|array $paths
  4407. * @return bool
  4408. * @static
  4409. */
  4410. public static function delete($paths)
  4411. {
  4412. return \Illuminate\Filesystem\Filesystem::delete($paths);
  4413. }
  4414. /**
  4415. * Move a file to a new location.
  4416. *
  4417. * @param string $path
  4418. * @param string $target
  4419. * @return bool
  4420. * @static
  4421. */
  4422. public static function move($path, $target)
  4423. {
  4424. return \Illuminate\Filesystem\Filesystem::move($path, $target);
  4425. }
  4426. /**
  4427. * Copy a file to a new location.
  4428. *
  4429. * @param string $path
  4430. * @param string $target
  4431. * @return bool
  4432. * @static
  4433. */
  4434. public static function copy($path, $target)
  4435. {
  4436. return \Illuminate\Filesystem\Filesystem::copy($path, $target);
  4437. }
  4438. /**
  4439. * Create a hard link to the target file or directory.
  4440. *
  4441. * @param string $target
  4442. * @param string $link
  4443. * @return void
  4444. * @static
  4445. */
  4446. public static function link($target, $link)
  4447. {
  4448. \Illuminate\Filesystem\Filesystem::link($target, $link);
  4449. }
  4450. /**
  4451. * Extract the file name from a file path.
  4452. *
  4453. * @param string $path
  4454. * @return string
  4455. * @static
  4456. */
  4457. public static function name($path)
  4458. {
  4459. return \Illuminate\Filesystem\Filesystem::name($path);
  4460. }
  4461. /**
  4462. * Extract the trailing name component from a file path.
  4463. *
  4464. * @param string $path
  4465. * @return string
  4466. * @static
  4467. */
  4468. public static function basename($path)
  4469. {
  4470. return \Illuminate\Filesystem\Filesystem::basename($path);
  4471. }
  4472. /**
  4473. * Extract the parent directory from a file path.
  4474. *
  4475. * @param string $path
  4476. * @return string
  4477. * @static
  4478. */
  4479. public static function dirname($path)
  4480. {
  4481. return \Illuminate\Filesystem\Filesystem::dirname($path);
  4482. }
  4483. /**
  4484. * Extract the file extension from a file path.
  4485. *
  4486. * @param string $path
  4487. * @return string
  4488. * @static
  4489. */
  4490. public static function extension($path)
  4491. {
  4492. return \Illuminate\Filesystem\Filesystem::extension($path);
  4493. }
  4494. /**
  4495. * Get the file type of a given file.
  4496. *
  4497. * @param string $path
  4498. * @return string
  4499. * @static
  4500. */
  4501. public static function type($path)
  4502. {
  4503. return \Illuminate\Filesystem\Filesystem::type($path);
  4504. }
  4505. /**
  4506. * Get the mime-type of a given file.
  4507. *
  4508. * @param string $path
  4509. * @return string|false
  4510. * @static
  4511. */
  4512. public static function mimeType($path)
  4513. {
  4514. return \Illuminate\Filesystem\Filesystem::mimeType($path);
  4515. }
  4516. /**
  4517. * Get the file size of a given file.
  4518. *
  4519. * @param string $path
  4520. * @return int
  4521. * @static
  4522. */
  4523. public static function size($path)
  4524. {
  4525. return \Illuminate\Filesystem\Filesystem::size($path);
  4526. }
  4527. /**
  4528. * Get the file's last modification time.
  4529. *
  4530. * @param string $path
  4531. * @return int
  4532. * @static
  4533. */
  4534. public static function lastModified($path)
  4535. {
  4536. return \Illuminate\Filesystem\Filesystem::lastModified($path);
  4537. }
  4538. /**
  4539. * Determine if the given path is a directory.
  4540. *
  4541. * @param string $directory
  4542. * @return bool
  4543. * @static
  4544. */
  4545. public static function isDirectory($directory)
  4546. {
  4547. return \Illuminate\Filesystem\Filesystem::isDirectory($directory);
  4548. }
  4549. /**
  4550. * Determine if the given path is readable.
  4551. *
  4552. * @param string $path
  4553. * @return bool
  4554. * @static
  4555. */
  4556. public static function isReadable($path)
  4557. {
  4558. return \Illuminate\Filesystem\Filesystem::isReadable($path);
  4559. }
  4560. /**
  4561. * Determine if the given path is writable.
  4562. *
  4563. * @param string $path
  4564. * @return bool
  4565. * @static
  4566. */
  4567. public static function isWritable($path)
  4568. {
  4569. return \Illuminate\Filesystem\Filesystem::isWritable($path);
  4570. }
  4571. /**
  4572. * Determine if the given path is a file.
  4573. *
  4574. * @param string $file
  4575. * @return bool
  4576. * @static
  4577. */
  4578. public static function isFile($file)
  4579. {
  4580. return \Illuminate\Filesystem\Filesystem::isFile($file);
  4581. }
  4582. /**
  4583. * Find path names matching a given pattern.
  4584. *
  4585. * @param string $pattern
  4586. * @param int $flags
  4587. * @return array
  4588. * @static
  4589. */
  4590. public static function glob($pattern, $flags = 0)
  4591. {
  4592. return \Illuminate\Filesystem\Filesystem::glob($pattern, $flags);
  4593. }
  4594. /**
  4595. * Get an array of all files in a directory.
  4596. *
  4597. * @param string $directory
  4598. * @param bool $hidden
  4599. * @return \Symfony\Component\Finder\SplFileInfo[]
  4600. * @static
  4601. */
  4602. public static function files($directory, $hidden = false)
  4603. {
  4604. return \Illuminate\Filesystem\Filesystem::files($directory, $hidden);
  4605. }
  4606. /**
  4607. * Get all of the files from the given directory (recursive).
  4608. *
  4609. * @param string $directory
  4610. * @param bool $hidden
  4611. * @return \Symfony\Component\Finder\SplFileInfo[]
  4612. * @static
  4613. */
  4614. public static function allFiles($directory, $hidden = false)
  4615. {
  4616. return \Illuminate\Filesystem\Filesystem::allFiles($directory, $hidden);
  4617. }
  4618. /**
  4619. * Get all of the directories within a given directory.
  4620. *
  4621. * @param string $directory
  4622. * @return array
  4623. * @static
  4624. */
  4625. public static function directories($directory)
  4626. {
  4627. return \Illuminate\Filesystem\Filesystem::directories($directory);
  4628. }
  4629. /**
  4630. * Create a directory.
  4631. *
  4632. * @param string $path
  4633. * @param int $mode
  4634. * @param bool $recursive
  4635. * @param bool $force
  4636. * @return bool
  4637. * @static
  4638. */
  4639. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  4640. {
  4641. return \Illuminate\Filesystem\Filesystem::makeDirectory($path, $mode, $recursive, $force);
  4642. }
  4643. /**
  4644. * Move a directory.
  4645. *
  4646. * @param string $from
  4647. * @param string $to
  4648. * @param bool $overwrite
  4649. * @return bool
  4650. * @static
  4651. */
  4652. public static function moveDirectory($from, $to, $overwrite = false)
  4653. {
  4654. return \Illuminate\Filesystem\Filesystem::moveDirectory($from, $to, $overwrite);
  4655. }
  4656. /**
  4657. * Copy a directory from one location to another.
  4658. *
  4659. * @param string $directory
  4660. * @param string $destination
  4661. * @param int $options
  4662. * @return bool
  4663. * @static
  4664. */
  4665. public static function copyDirectory($directory, $destination, $options = null)
  4666. {
  4667. return \Illuminate\Filesystem\Filesystem::copyDirectory($directory, $destination, $options);
  4668. }
  4669. /**
  4670. * Recursively delete a directory.
  4671. *
  4672. * The directory itself may be optionally preserved.
  4673. *
  4674. * @param string $directory
  4675. * @param bool $preserve
  4676. * @return bool
  4677. * @static
  4678. */
  4679. public static function deleteDirectory($directory, $preserve = false)
  4680. {
  4681. return \Illuminate\Filesystem\Filesystem::deleteDirectory($directory, $preserve);
  4682. }
  4683. /**
  4684. * Remove all of the directories within a given directory.
  4685. *
  4686. * @param string $directory
  4687. * @return bool
  4688. * @static
  4689. */
  4690. public static function deleteDirectories($directory)
  4691. {
  4692. return \Illuminate\Filesystem\Filesystem::deleteDirectories($directory);
  4693. }
  4694. /**
  4695. * Empty the specified directory of all files and folders.
  4696. *
  4697. * @param string $directory
  4698. * @return bool
  4699. * @static
  4700. */
  4701. public static function cleanDirectory($directory)
  4702. {
  4703. return \Illuminate\Filesystem\Filesystem::cleanDirectory($directory);
  4704. }
  4705. /**
  4706. * Register a custom macro.
  4707. *
  4708. * @param string $name
  4709. * @param object|callable $macro
  4710. * @return void
  4711. * @static
  4712. */
  4713. public static function macro($name, $macro)
  4714. {
  4715. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  4716. }
  4717. /**
  4718. * Mix another object into the class.
  4719. *
  4720. * @param object $mixin
  4721. * @return void
  4722. * @throws \ReflectionException
  4723. * @static
  4724. */
  4725. public static function mixin($mixin)
  4726. {
  4727. \Illuminate\Filesystem\Filesystem::mixin($mixin);
  4728. }
  4729. /**
  4730. * Checks if macro is registered.
  4731. *
  4732. * @param string $name
  4733. * @return bool
  4734. * @static
  4735. */
  4736. public static function hasMacro($name)
  4737. {
  4738. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  4739. }
  4740. }
  4741. /**
  4742. *
  4743. *
  4744. * @see \Illuminate\Contracts\Auth\Access\Gate
  4745. */
  4746. class Gate {
  4747. /**
  4748. * Determine if a given ability has been defined.
  4749. *
  4750. * @param string|array $ability
  4751. * @return bool
  4752. * @static
  4753. */
  4754. public static function has($ability)
  4755. {
  4756. return \Illuminate\Auth\Access\Gate::has($ability);
  4757. }
  4758. /**
  4759. * Define a new ability.
  4760. *
  4761. * @param string $ability
  4762. * @param callable|string $callback
  4763. * @return $this
  4764. * @throws \InvalidArgumentException
  4765. * @static
  4766. */
  4767. public static function define($ability, $callback)
  4768. {
  4769. return \Illuminate\Auth\Access\Gate::define($ability, $callback);
  4770. }
  4771. /**
  4772. * Define abilities for a resource.
  4773. *
  4774. * @param string $name
  4775. * @param string $class
  4776. * @param array|null $abilities
  4777. * @return $this
  4778. * @static
  4779. */
  4780. public static function resource($name, $class, $abilities = null)
  4781. {
  4782. return \Illuminate\Auth\Access\Gate::resource($name, $class, $abilities);
  4783. }
  4784. /**
  4785. * Define a policy class for a given class type.
  4786. *
  4787. * @param string $class
  4788. * @param string $policy
  4789. * @return $this
  4790. * @static
  4791. */
  4792. public static function policy($class, $policy)
  4793. {
  4794. return \Illuminate\Auth\Access\Gate::policy($class, $policy);
  4795. }
  4796. /**
  4797. * Register a callback to run before all Gate checks.
  4798. *
  4799. * @param callable $callback
  4800. * @return $this
  4801. * @static
  4802. */
  4803. public static function before($callback)
  4804. {
  4805. return \Illuminate\Auth\Access\Gate::before($callback);
  4806. }
  4807. /**
  4808. * Register a callback to run after all Gate checks.
  4809. *
  4810. * @param callable $callback
  4811. * @return $this
  4812. * @static
  4813. */
  4814. public static function after($callback)
  4815. {
  4816. return \Illuminate\Auth\Access\Gate::after($callback);
  4817. }
  4818. /**
  4819. * Determine if the given ability should be granted for the current user.
  4820. *
  4821. * @param string $ability
  4822. * @param array|mixed $arguments
  4823. * @return bool
  4824. * @static
  4825. */
  4826. public static function allows($ability, $arguments = array())
  4827. {
  4828. return \Illuminate\Auth\Access\Gate::allows($ability, $arguments);
  4829. }
  4830. /**
  4831. * Determine if the given ability should be denied for the current user.
  4832. *
  4833. * @param string $ability
  4834. * @param array|mixed $arguments
  4835. * @return bool
  4836. * @static
  4837. */
  4838. public static function denies($ability, $arguments = array())
  4839. {
  4840. return \Illuminate\Auth\Access\Gate::denies($ability, $arguments);
  4841. }
  4842. /**
  4843. * Determine if all of the given abilities should be granted for the current user.
  4844. *
  4845. * @param \Illuminate\Auth\Access\iterable|string $abilities
  4846. * @param array|mixed $arguments
  4847. * @return bool
  4848. * @static
  4849. */
  4850. public static function check($abilities, $arguments = array())
  4851. {
  4852. return \Illuminate\Auth\Access\Gate::check($abilities, $arguments);
  4853. }
  4854. /**
  4855. * Determine if any one of the given abilities should be granted for the current user.
  4856. *
  4857. * @param \Illuminate\Auth\Access\iterable|string $abilities
  4858. * @param array|mixed $arguments
  4859. * @return bool
  4860. * @static
  4861. */
  4862. public static function any($abilities, $arguments = array())
  4863. {
  4864. return \Illuminate\Auth\Access\Gate::any($abilities, $arguments);
  4865. }
  4866. /**
  4867. * Determine if the given ability should be granted for the current user.
  4868. *
  4869. * @param string $ability
  4870. * @param array|mixed $arguments
  4871. * @return \Illuminate\Auth\Access\Response
  4872. * @throws \Illuminate\Auth\Access\AuthorizationException
  4873. * @static
  4874. */
  4875. public static function authorize($ability, $arguments = array())
  4876. {
  4877. return \Illuminate\Auth\Access\Gate::authorize($ability, $arguments);
  4878. }
  4879. /**
  4880. * Get a policy instance for a given class.
  4881. *
  4882. * @param object|string $class
  4883. * @return mixed
  4884. * @static
  4885. */
  4886. public static function getPolicyFor($class)
  4887. {
  4888. return \Illuminate\Auth\Access\Gate::getPolicyFor($class);
  4889. }
  4890. /**
  4891. * Build a policy class instance of the given type.
  4892. *
  4893. * @param object|string $class
  4894. * @return mixed
  4895. * @static
  4896. */
  4897. public static function resolvePolicy($class)
  4898. {
  4899. return \Illuminate\Auth\Access\Gate::resolvePolicy($class);
  4900. }
  4901. /**
  4902. * Get a gate instance for the given user.
  4903. *
  4904. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  4905. * @return static
  4906. * @static
  4907. */
  4908. public static function forUser($user)
  4909. {
  4910. return \Illuminate\Auth\Access\Gate::forUser($user);
  4911. }
  4912. /**
  4913. * Get all of the defined abilities.
  4914. *
  4915. * @return array
  4916. * @static
  4917. */
  4918. public static function abilities()
  4919. {
  4920. return \Illuminate\Auth\Access\Gate::abilities();
  4921. }
  4922. /**
  4923. * Get all of the defined policies.
  4924. *
  4925. * @return array
  4926. * @static
  4927. */
  4928. public static function policies()
  4929. {
  4930. return \Illuminate\Auth\Access\Gate::policies();
  4931. }
  4932. }
  4933. /**
  4934. *
  4935. *
  4936. * @see \Illuminate\Hashing\HashManager
  4937. */
  4938. class Hash {
  4939. /**
  4940. * Create an instance of the Bcrypt hash Driver.
  4941. *
  4942. * @return \Illuminate\Hashing\BcryptHasher
  4943. * @static
  4944. */
  4945. public static function createBcryptDriver()
  4946. {
  4947. return \Illuminate\Hashing\HashManager::createBcryptDriver();
  4948. }
  4949. /**
  4950. * Create an instance of the Argon2 hash Driver.
  4951. *
  4952. * @return \Illuminate\Hashing\ArgonHasher
  4953. * @static
  4954. */
  4955. public static function createArgonDriver()
  4956. {
  4957. return \Illuminate\Hashing\HashManager::createArgonDriver();
  4958. }
  4959. /**
  4960. * Get information about the given hashed value.
  4961. *
  4962. * @param string $hashedValue
  4963. * @return array
  4964. * @static
  4965. */
  4966. public static function info($hashedValue)
  4967. {
  4968. return \Illuminate\Hashing\HashManager::info($hashedValue);
  4969. }
  4970. /**
  4971. * Hash the given value.
  4972. *
  4973. * @param string $value
  4974. * @param array $options
  4975. * @return string
  4976. * @static
  4977. */
  4978. public static function make($value, $options = array())
  4979. {
  4980. return \Illuminate\Hashing\HashManager::make($value, $options);
  4981. }
  4982. /**
  4983. * Check the given plain value against a hash.
  4984. *
  4985. * @param string $value
  4986. * @param string $hashedValue
  4987. * @param array $options
  4988. * @return bool
  4989. * @static
  4990. */
  4991. public static function check($value, $hashedValue, $options = array())
  4992. {
  4993. return \Illuminate\Hashing\HashManager::check($value, $hashedValue, $options);
  4994. }
  4995. /**
  4996. * Check if the given hash has been hashed using the given options.
  4997. *
  4998. * @param string $hashedValue
  4999. * @param array $options
  5000. * @return bool
  5001. * @static
  5002. */
  5003. public static function needsRehash($hashedValue, $options = array())
  5004. {
  5005. return \Illuminate\Hashing\HashManager::needsRehash($hashedValue, $options);
  5006. }
  5007. /**
  5008. * Get the default driver name.
  5009. *
  5010. * @return string
  5011. * @static
  5012. */
  5013. public static function getDefaultDriver()
  5014. {
  5015. return \Illuminate\Hashing\HashManager::getDefaultDriver();
  5016. }
  5017. /**
  5018. * Get a driver instance.
  5019. *
  5020. * @param string $driver
  5021. * @return mixed
  5022. * @throws \InvalidArgumentException
  5023. * @static
  5024. */
  5025. public static function driver($driver = null)
  5026. {
  5027. //Method inherited from \Illuminate\Support\Manager
  5028. return \Illuminate\Hashing\HashManager::driver($driver);
  5029. }
  5030. /**
  5031. * Register a custom driver creator Closure.
  5032. *
  5033. * @param string $driver
  5034. * @param \Closure $callback
  5035. * @return $this
  5036. * @static
  5037. */
  5038. public static function extend($driver, $callback)
  5039. {
  5040. //Method inherited from \Illuminate\Support\Manager
  5041. return \Illuminate\Hashing\HashManager::extend($driver, $callback);
  5042. }
  5043. /**
  5044. * Get all of the created "drivers".
  5045. *
  5046. * @return array
  5047. * @static
  5048. */
  5049. public static function getDrivers()
  5050. {
  5051. //Method inherited from \Illuminate\Support\Manager
  5052. return \Illuminate\Hashing\HashManager::getDrivers();
  5053. }
  5054. }
  5055. /**
  5056. *
  5057. *
  5058. * @see \Illuminate\Translation\Translator
  5059. */
  5060. class Lang {
  5061. /**
  5062. * Determine if a translation exists for a given locale.
  5063. *
  5064. * @param string $key
  5065. * @param string|null $locale
  5066. * @return bool
  5067. * @static
  5068. */
  5069. public static function hasForLocale($key, $locale = null)
  5070. {
  5071. return \Illuminate\Translation\Translator::hasForLocale($key, $locale);
  5072. }
  5073. /**
  5074. * Determine if a translation exists.
  5075. *
  5076. * @param string $key
  5077. * @param string|null $locale
  5078. * @param bool $fallback
  5079. * @return bool
  5080. * @static
  5081. */
  5082. public static function has($key, $locale = null, $fallback = true)
  5083. {
  5084. return \Illuminate\Translation\Translator::has($key, $locale, $fallback);
  5085. }
  5086. /**
  5087. * Get the translation for a given key.
  5088. *
  5089. * @param string $key
  5090. * @param array $replace
  5091. * @param string $locale
  5092. * @return string|array|null
  5093. * @static
  5094. */
  5095. public static function trans($key, $replace = array(), $locale = null)
  5096. {
  5097. return \Illuminate\Translation\Translator::trans($key, $replace, $locale);
  5098. }
  5099. /**
  5100. * Get the translation for the given key.
  5101. *
  5102. * @param string $key
  5103. * @param array $replace
  5104. * @param string|null $locale
  5105. * @param bool $fallback
  5106. * @return string|array|null
  5107. * @static
  5108. */
  5109. public static function get($key, $replace = array(), $locale = null, $fallback = true)
  5110. {
  5111. return \Illuminate\Translation\Translator::get($key, $replace, $locale, $fallback);
  5112. }
  5113. /**
  5114. * Get the translation for a given key from the JSON translation files.
  5115. *
  5116. * @param string $key
  5117. * @param array $replace
  5118. * @param string $locale
  5119. * @return string|array|null
  5120. * @static
  5121. */
  5122. public static function getFromJson($key, $replace = array(), $locale = null)
  5123. {
  5124. return \Illuminate\Translation\Translator::getFromJson($key, $replace, $locale);
  5125. }
  5126. /**
  5127. * Get a translation according to an integer value.
  5128. *
  5129. * @param string $key
  5130. * @param int|array|\Countable $number
  5131. * @param array $replace
  5132. * @param string $locale
  5133. * @return string
  5134. * @static
  5135. */
  5136. public static function transChoice($key, $number, $replace = array(), $locale = null)
  5137. {
  5138. return \Illuminate\Translation\Translator::transChoice($key, $number, $replace, $locale);
  5139. }
  5140. /**
  5141. * Get a translation according to an integer value.
  5142. *
  5143. * @param string $key
  5144. * @param int|array|\Countable $number
  5145. * @param array $replace
  5146. * @param string $locale
  5147. * @return string
  5148. * @static
  5149. */
  5150. public static function choice($key, $number, $replace = array(), $locale = null)
  5151. {
  5152. return \Illuminate\Translation\Translator::choice($key, $number, $replace, $locale);
  5153. }
  5154. /**
  5155. * Add translation lines to the given locale.
  5156. *
  5157. * @param array $lines
  5158. * @param string $locale
  5159. * @param string $namespace
  5160. * @return void
  5161. * @static
  5162. */
  5163. public static function addLines($lines, $locale, $namespace = '*')
  5164. {
  5165. \Illuminate\Translation\Translator::addLines($lines, $locale, $namespace);
  5166. }
  5167. /**
  5168. * Load the specified language group.
  5169. *
  5170. * @param string $namespace
  5171. * @param string $group
  5172. * @param string $locale
  5173. * @return void
  5174. * @static
  5175. */
  5176. public static function load($namespace, $group, $locale)
  5177. {
  5178. \Illuminate\Translation\Translator::load($namespace, $group, $locale);
  5179. }
  5180. /**
  5181. * Add a new namespace to the loader.
  5182. *
  5183. * @param string $namespace
  5184. * @param string $hint
  5185. * @return void
  5186. * @static
  5187. */
  5188. public static function addNamespace($namespace, $hint)
  5189. {
  5190. \Illuminate\Translation\Translator::addNamespace($namespace, $hint);
  5191. }
  5192. /**
  5193. * Add a new JSON path to the loader.
  5194. *
  5195. * @param string $path
  5196. * @return void
  5197. * @static
  5198. */
  5199. public static function addJsonPath($path)
  5200. {
  5201. \Illuminate\Translation\Translator::addJsonPath($path);
  5202. }
  5203. /**
  5204. * Parse a key into namespace, group, and item.
  5205. *
  5206. * @param string $key
  5207. * @return array
  5208. * @static
  5209. */
  5210. public static function parseKey($key)
  5211. {
  5212. return \Illuminate\Translation\Translator::parseKey($key);
  5213. }
  5214. /**
  5215. * Get the message selector instance.
  5216. *
  5217. * @return \Illuminate\Translation\MessageSelector
  5218. * @static
  5219. */
  5220. public static function getSelector()
  5221. {
  5222. return \Illuminate\Translation\Translator::getSelector();
  5223. }
  5224. /**
  5225. * Set the message selector instance.
  5226. *
  5227. * @param \Illuminate\Translation\MessageSelector $selector
  5228. * @return void
  5229. * @static
  5230. */
  5231. public static function setSelector($selector)
  5232. {
  5233. \Illuminate\Translation\Translator::setSelector($selector);
  5234. }
  5235. /**
  5236. * Get the language line loader implementation.
  5237. *
  5238. * @return \Illuminate\Contracts\Translation\Loader
  5239. * @static
  5240. */
  5241. public static function getLoader()
  5242. {
  5243. return \Illuminate\Translation\Translator::getLoader();
  5244. }
  5245. /**
  5246. * Get the default locale being used.
  5247. *
  5248. * @return string
  5249. * @static
  5250. */
  5251. public static function locale()
  5252. {
  5253. return \Illuminate\Translation\Translator::locale();
  5254. }
  5255. /**
  5256. * Get the default locale being used.
  5257. *
  5258. * @return string
  5259. * @static
  5260. */
  5261. public static function getLocale()
  5262. {
  5263. return \Illuminate\Translation\Translator::getLocale();
  5264. }
  5265. /**
  5266. * Set the default locale.
  5267. *
  5268. * @param string $locale
  5269. * @return void
  5270. * @static
  5271. */
  5272. public static function setLocale($locale)
  5273. {
  5274. \Illuminate\Translation\Translator::setLocale($locale);
  5275. }
  5276. /**
  5277. * Get the fallback locale being used.
  5278. *
  5279. * @return string
  5280. * @static
  5281. */
  5282. public static function getFallback()
  5283. {
  5284. return \Illuminate\Translation\Translator::getFallback();
  5285. }
  5286. /**
  5287. * Set the fallback locale being used.
  5288. *
  5289. * @param string $fallback
  5290. * @return void
  5291. * @static
  5292. */
  5293. public static function setFallback($fallback)
  5294. {
  5295. \Illuminate\Translation\Translator::setFallback($fallback);
  5296. }
  5297. /**
  5298. * Set the loaded translation groups.
  5299. *
  5300. * @param array $loaded
  5301. * @return void
  5302. * @static
  5303. */
  5304. public static function setLoaded($loaded)
  5305. {
  5306. \Illuminate\Translation\Translator::setLoaded($loaded);
  5307. }
  5308. /**
  5309. * Set the parsed value of a key.
  5310. *
  5311. * @param string $key
  5312. * @param array $parsed
  5313. * @return void
  5314. * @static
  5315. */
  5316. public static function setParsedKey($key, $parsed)
  5317. {
  5318. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  5319. \Illuminate\Translation\Translator::setParsedKey($key, $parsed);
  5320. }
  5321. /**
  5322. * Register a custom macro.
  5323. *
  5324. * @param string $name
  5325. * @param object|callable $macro
  5326. * @return void
  5327. * @static
  5328. */
  5329. public static function macro($name, $macro)
  5330. {
  5331. \Illuminate\Translation\Translator::macro($name, $macro);
  5332. }
  5333. /**
  5334. * Mix another object into the class.
  5335. *
  5336. * @param object $mixin
  5337. * @return void
  5338. * @throws \ReflectionException
  5339. * @static
  5340. */
  5341. public static function mixin($mixin)
  5342. {
  5343. \Illuminate\Translation\Translator::mixin($mixin);
  5344. }
  5345. /**
  5346. * Checks if macro is registered.
  5347. *
  5348. * @param string $name
  5349. * @return bool
  5350. * @static
  5351. */
  5352. public static function hasMacro($name)
  5353. {
  5354. return \Illuminate\Translation\Translator::hasMacro($name);
  5355. }
  5356. }
  5357. /**
  5358. *
  5359. *
  5360. * @see \Illuminate\Log\Logger
  5361. */
  5362. class Log {
  5363. /**
  5364. * Adds a log record at the DEBUG level.
  5365. *
  5366. * @param string $message The log message
  5367. * @param array $context The log context
  5368. * @return bool Whether the record has been processed
  5369. * @static
  5370. */
  5371. public static function debug($message, $context = array())
  5372. {
  5373. return \Monolog\Logger::addDebug($message, $context);
  5374. }
  5375. /**
  5376. * Adds a log record at the INFO level.
  5377. *
  5378. * @param string $message The log message
  5379. * @param array $context The log context
  5380. * @return bool Whether the record has been processed
  5381. * @static
  5382. */
  5383. public static function info($message, $context = array())
  5384. {
  5385. return \Monolog\Logger::addInfo($message, $context);
  5386. }
  5387. /**
  5388. * Adds a log record at the NOTICE level.
  5389. *
  5390. * @param string $message The log message
  5391. * @param array $context The log context
  5392. * @return bool Whether the record has been processed
  5393. * @static
  5394. */
  5395. public static function notice($message, $context = array())
  5396. {
  5397. return \Monolog\Logger::addNotice($message, $context);
  5398. }
  5399. /**
  5400. * Adds a log record at the WARNING level.
  5401. *
  5402. * @param string $message The log message
  5403. * @param array $context The log context
  5404. * @return bool Whether the record has been processed
  5405. * @static
  5406. */
  5407. public static function warning($message, $context = array())
  5408. {
  5409. return \Monolog\Logger::addWarning($message, $context);
  5410. }
  5411. /**
  5412. * Adds a log record at the ERROR level.
  5413. *
  5414. * @param string $message The log message
  5415. * @param array $context The log context
  5416. * @return bool Whether the record has been processed
  5417. * @static
  5418. */
  5419. public static function error($message, $context = array())
  5420. {
  5421. return \Monolog\Logger::addError($message, $context);
  5422. }
  5423. /**
  5424. * Adds a log record at the CRITICAL level.
  5425. *
  5426. * @param string $message The log message
  5427. * @param array $context The log context
  5428. * @return bool Whether the record has been processed
  5429. * @static
  5430. */
  5431. public static function critical($message, $context = array())
  5432. {
  5433. return \Monolog\Logger::addCritical($message, $context);
  5434. }
  5435. /**
  5436. * Adds a log record at the ALERT level.
  5437. *
  5438. * @param string $message The log message
  5439. * @param array $context The log context
  5440. * @return bool Whether the record has been processed
  5441. * @static
  5442. */
  5443. public static function alert($message, $context = array())
  5444. {
  5445. return \Monolog\Logger::addAlert($message, $context);
  5446. }
  5447. /**
  5448. * Adds a log record at the EMERGENCY level.
  5449. *
  5450. * @param string $message The log message
  5451. * @param array $context The log context
  5452. * @return bool Whether the record has been processed
  5453. * @static
  5454. */
  5455. public static function emergency($message, $context = array())
  5456. {
  5457. return \Monolog\Logger::addEmergency($message, $context);
  5458. }
  5459. /**
  5460. * Create a new, on-demand aggregate logger instance.
  5461. *
  5462. * @param array $channels
  5463. * @param string|null $channel
  5464. * @return \Psr\Log\LoggerInterface
  5465. * @static
  5466. */
  5467. public static function stack($channels, $channel = null)
  5468. {
  5469. return \Illuminate\Log\LogManager::stack($channels, $channel);
  5470. }
  5471. /**
  5472. * Get a log channel instance.
  5473. *
  5474. * @param string|null $channel
  5475. * @return mixed
  5476. * @static
  5477. */
  5478. public static function channel($channel = null)
  5479. {
  5480. return \Illuminate\Log\LogManager::channel($channel);
  5481. }
  5482. /**
  5483. * Get a log driver instance.
  5484. *
  5485. * @param string|null $driver
  5486. * @return mixed
  5487. * @static
  5488. */
  5489. public static function driver($driver = null)
  5490. {
  5491. return \Illuminate\Log\LogManager::driver($driver);
  5492. }
  5493. /**
  5494. * Get the default log driver name.
  5495. *
  5496. * @return string
  5497. * @static
  5498. */
  5499. public static function getDefaultDriver()
  5500. {
  5501. return \Illuminate\Log\LogManager::getDefaultDriver();
  5502. }
  5503. /**
  5504. * Set the default log driver name.
  5505. *
  5506. * @param string $name
  5507. * @return void
  5508. * @static
  5509. */
  5510. public static function setDefaultDriver($name)
  5511. {
  5512. \Illuminate\Log\LogManager::setDefaultDriver($name);
  5513. }
  5514. /**
  5515. * Register a custom driver creator Closure.
  5516. *
  5517. * @param string $driver
  5518. * @param \Closure $callback
  5519. * @return $this
  5520. * @static
  5521. */
  5522. public static function extend($driver, $callback)
  5523. {
  5524. return \Illuminate\Log\LogManager::extend($driver, $callback);
  5525. }
  5526. /**
  5527. * Logs with an arbitrary level.
  5528. *
  5529. * @param mixed $level
  5530. * @param string $message
  5531. * @param array $context
  5532. * @return void
  5533. * @static
  5534. */
  5535. public static function log($level, $message, $context = array())
  5536. {
  5537. \Illuminate\Log\LogManager::log($level, $message, $context);
  5538. }
  5539. }
  5540. /**
  5541. *
  5542. *
  5543. * @see \Illuminate\Mail\Mailer
  5544. */
  5545. class Mail {
  5546. /**
  5547. * Set the global from address and name.
  5548. *
  5549. * @param string $address
  5550. * @param string|null $name
  5551. * @return void
  5552. * @static
  5553. */
  5554. public static function alwaysFrom($address, $name = null)
  5555. {
  5556. \Illuminate\Mail\Mailer::alwaysFrom($address, $name);
  5557. }
  5558. /**
  5559. * Set the global reply-to address and name.
  5560. *
  5561. * @param string $address
  5562. * @param string|null $name
  5563. * @return void
  5564. * @static
  5565. */
  5566. public static function alwaysReplyTo($address, $name = null)
  5567. {
  5568. \Illuminate\Mail\Mailer::alwaysReplyTo($address, $name);
  5569. }
  5570. /**
  5571. * Set the global to address and name.
  5572. *
  5573. * @param string $address
  5574. * @param string|null $name
  5575. * @return void
  5576. * @static
  5577. */
  5578. public static function alwaysTo($address, $name = null)
  5579. {
  5580. \Illuminate\Mail\Mailer::alwaysTo($address, $name);
  5581. }
  5582. /**
  5583. * Begin the process of mailing a mailable class instance.
  5584. *
  5585. * @param mixed $users
  5586. * @return \Illuminate\Mail\PendingMail
  5587. * @static
  5588. */
  5589. public static function to($users)
  5590. {
  5591. return \Illuminate\Mail\Mailer::to($users);
  5592. }
  5593. /**
  5594. * Begin the process of mailing a mailable class instance.
  5595. *
  5596. * @param mixed $users
  5597. * @return \Illuminate\Mail\PendingMail
  5598. * @static
  5599. */
  5600. public static function bcc($users)
  5601. {
  5602. return \Illuminate\Mail\Mailer::bcc($users);
  5603. }
  5604. /**
  5605. * Send a new message with only an HTML part.
  5606. *
  5607. * @param string $html
  5608. * @param mixed $callback
  5609. * @return void
  5610. * @static
  5611. */
  5612. public static function html($html, $callback)
  5613. {
  5614. \Illuminate\Mail\Mailer::html($html, $callback);
  5615. }
  5616. /**
  5617. * Send a new message when only a raw text part.
  5618. *
  5619. * @param string $text
  5620. * @param mixed $callback
  5621. * @return void
  5622. * @static
  5623. */
  5624. public static function raw($text, $callback)
  5625. {
  5626. \Illuminate\Mail\Mailer::raw($text, $callback);
  5627. }
  5628. /**
  5629. * Send a new message when only a plain part.
  5630. *
  5631. * @param string $view
  5632. * @param array $data
  5633. * @param mixed $callback
  5634. * @return void
  5635. * @static
  5636. */
  5637. public static function plain($view, $data, $callback)
  5638. {
  5639. \Illuminate\Mail\Mailer::plain($view, $data, $callback);
  5640. }
  5641. /**
  5642. * Render the given message as a view.
  5643. *
  5644. * @param string|array $view
  5645. * @param array $data
  5646. * @return string
  5647. * @static
  5648. */
  5649. public static function render($view, $data = array())
  5650. {
  5651. return \Illuminate\Mail\Mailer::render($view, $data);
  5652. }
  5653. /**
  5654. * Send a new message using a view.
  5655. *
  5656. * @param string|array|\Illuminate\Mail\MailableContract $view
  5657. * @param array $data
  5658. * @param \Closure|string $callback
  5659. * @return void
  5660. * @static
  5661. */
  5662. public static function send($view, $data = array(), $callback = null)
  5663. {
  5664. \Illuminate\Mail\Mailer::send($view, $data, $callback);
  5665. }
  5666. /**
  5667. * Queue a new e-mail message for sending.
  5668. *
  5669. * @param string|array|\Illuminate\Mail\MailableContract $view
  5670. * @param string|null $queue
  5671. * @return mixed
  5672. * @static
  5673. */
  5674. public static function queue($view, $queue = null)
  5675. {
  5676. return \Illuminate\Mail\Mailer::queue($view, $queue);
  5677. }
  5678. /**
  5679. * Queue a new e-mail message for sending on the given queue.
  5680. *
  5681. * @param string $queue
  5682. * @param string|array $view
  5683. * @return mixed
  5684. * @static
  5685. */
  5686. public static function onQueue($queue, $view)
  5687. {
  5688. return \Illuminate\Mail\Mailer::onQueue($queue, $view);
  5689. }
  5690. /**
  5691. * Queue a new e-mail message for sending on the given queue.
  5692. *
  5693. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  5694. *
  5695. * @param string $queue
  5696. * @param string|array $view
  5697. * @return mixed
  5698. * @static
  5699. */
  5700. public static function queueOn($queue, $view)
  5701. {
  5702. return \Illuminate\Mail\Mailer::queueOn($queue, $view);
  5703. }
  5704. /**
  5705. * Queue a new e-mail message for sending after (n) seconds.
  5706. *
  5707. * @param \DateTimeInterface|\DateInterval|int $delay
  5708. * @param string|array|\Illuminate\Mail\MailableContract $view
  5709. * @param string|null $queue
  5710. * @return mixed
  5711. * @static
  5712. */
  5713. public static function later($delay, $view, $queue = null)
  5714. {
  5715. return \Illuminate\Mail\Mailer::later($delay, $view, $queue);
  5716. }
  5717. /**
  5718. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  5719. *
  5720. * @param string $queue
  5721. * @param \DateTimeInterface|\DateInterval|int $delay
  5722. * @param string|array $view
  5723. * @return mixed
  5724. * @static
  5725. */
  5726. public static function laterOn($queue, $delay, $view)
  5727. {
  5728. return \Illuminate\Mail\Mailer::laterOn($queue, $delay, $view);
  5729. }
  5730. /**
  5731. * Get the view factory instance.
  5732. *
  5733. * @return \Illuminate\Contracts\View\Factory
  5734. * @static
  5735. */
  5736. public static function getViewFactory()
  5737. {
  5738. return \Illuminate\Mail\Mailer::getViewFactory();
  5739. }
  5740. /**
  5741. * Get the Swift Mailer instance.
  5742. *
  5743. * @return \Swift_Mailer
  5744. * @static
  5745. */
  5746. public static function getSwiftMailer()
  5747. {
  5748. return \Illuminate\Mail\Mailer::getSwiftMailer();
  5749. }
  5750. /**
  5751. * Get the array of failed recipients.
  5752. *
  5753. * @return array
  5754. * @static
  5755. */
  5756. public static function failures()
  5757. {
  5758. return \Illuminate\Mail\Mailer::failures();
  5759. }
  5760. /**
  5761. * Set the Swift Mailer instance.
  5762. *
  5763. * @param \Swift_Mailer $swift
  5764. * @return void
  5765. * @static
  5766. */
  5767. public static function setSwiftMailer($swift)
  5768. {
  5769. \Illuminate\Mail\Mailer::setSwiftMailer($swift);
  5770. }
  5771. /**
  5772. * Set the queue manager instance.
  5773. *
  5774. * @param \Illuminate\Contracts\Queue\Factory $queue
  5775. * @return $this
  5776. * @static
  5777. */
  5778. public static function setQueue($queue)
  5779. {
  5780. return \Illuminate\Mail\Mailer::setQueue($queue);
  5781. }
  5782. /**
  5783. * Register a custom macro.
  5784. *
  5785. * @param string $name
  5786. * @param object|callable $macro
  5787. * @return void
  5788. * @static
  5789. */
  5790. public static function macro($name, $macro)
  5791. {
  5792. \Illuminate\Mail\Mailer::macro($name, $macro);
  5793. }
  5794. /**
  5795. * Mix another object into the class.
  5796. *
  5797. * @param object $mixin
  5798. * @return void
  5799. * @throws \ReflectionException
  5800. * @static
  5801. */
  5802. public static function mixin($mixin)
  5803. {
  5804. \Illuminate\Mail\Mailer::mixin($mixin);
  5805. }
  5806. /**
  5807. * Checks if macro is registered.
  5808. *
  5809. * @param string $name
  5810. * @return bool
  5811. * @static
  5812. */
  5813. public static function hasMacro($name)
  5814. {
  5815. return \Illuminate\Mail\Mailer::hasMacro($name);
  5816. }
  5817. /**
  5818. * Assert if a mailable was sent based on a truth-test callback.
  5819. *
  5820. * @param string $mailable
  5821. * @param callable|int|null $callback
  5822. * @return void
  5823. * @static
  5824. */
  5825. public static function assertSent($mailable, $callback = null)
  5826. {
  5827. \Illuminate\Support\Testing\Fakes\MailFake::assertSent($mailable, $callback);
  5828. }
  5829. /**
  5830. * Determine if a mailable was not sent based on a truth-test callback.
  5831. *
  5832. * @param string $mailable
  5833. * @param callable|null $callback
  5834. * @return void
  5835. * @static
  5836. */
  5837. public static function assertNotSent($mailable, $callback = null)
  5838. {
  5839. \Illuminate\Support\Testing\Fakes\MailFake::assertNotSent($mailable, $callback);
  5840. }
  5841. /**
  5842. * Assert that no mailables were sent.
  5843. *
  5844. * @return void
  5845. * @static
  5846. */
  5847. public static function assertNothingSent()
  5848. {
  5849. \Illuminate\Support\Testing\Fakes\MailFake::assertNothingSent();
  5850. }
  5851. /**
  5852. * Assert if a mailable was queued based on a truth-test callback.
  5853. *
  5854. * @param string $mailable
  5855. * @param callable|int|null $callback
  5856. * @return void
  5857. * @static
  5858. */
  5859. public static function assertQueued($mailable, $callback = null)
  5860. {
  5861. \Illuminate\Support\Testing\Fakes\MailFake::assertQueued($mailable, $callback);
  5862. }
  5863. /**
  5864. * Determine if a mailable was not queued based on a truth-test callback.
  5865. *
  5866. * @param string $mailable
  5867. * @param callable|null $callback
  5868. * @return void
  5869. * @static
  5870. */
  5871. public static function assertNotQueued($mailable, $callback = null)
  5872. {
  5873. \Illuminate\Support\Testing\Fakes\MailFake::assertNotQueued($mailable, $callback);
  5874. }
  5875. /**
  5876. * Assert that no mailables were queued.
  5877. *
  5878. * @return void
  5879. * @static
  5880. */
  5881. public static function assertNothingQueued()
  5882. {
  5883. \Illuminate\Support\Testing\Fakes\MailFake::assertNothingQueued();
  5884. }
  5885. /**
  5886. * Get all of the mailables matching a truth-test callback.
  5887. *
  5888. * @param string $mailable
  5889. * @param callable|null $callback
  5890. * @return \Illuminate\Support\Collection
  5891. * @static
  5892. */
  5893. public static function sent($mailable, $callback = null)
  5894. {
  5895. return \Illuminate\Support\Testing\Fakes\MailFake::sent($mailable, $callback);
  5896. }
  5897. /**
  5898. * Determine if the given mailable has been sent.
  5899. *
  5900. * @param string $mailable
  5901. * @return bool
  5902. * @static
  5903. */
  5904. public static function hasSent($mailable)
  5905. {
  5906. return \Illuminate\Support\Testing\Fakes\MailFake::hasSent($mailable);
  5907. }
  5908. /**
  5909. * Get all of the queued mailables matching a truth-test callback.
  5910. *
  5911. * @param string $mailable
  5912. * @param callable|null $callback
  5913. * @return \Illuminate\Support\Collection
  5914. * @static
  5915. */
  5916. public static function queued($mailable, $callback = null)
  5917. {
  5918. return \Illuminate\Support\Testing\Fakes\MailFake::queued($mailable, $callback);
  5919. }
  5920. /**
  5921. * Determine if the given mailable has been queued.
  5922. *
  5923. * @param string $mailable
  5924. * @return bool
  5925. * @static
  5926. */
  5927. public static function hasQueued($mailable)
  5928. {
  5929. return \Illuminate\Support\Testing\Fakes\MailFake::hasQueued($mailable);
  5930. }
  5931. }
  5932. /**
  5933. *
  5934. *
  5935. * @see \Illuminate\Notifications\ChannelManager
  5936. */
  5937. class Notification {
  5938. /**
  5939. * Send the given notification to the given notifiable entities.
  5940. *
  5941. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  5942. * @param mixed $notification
  5943. * @return void
  5944. * @static
  5945. */
  5946. public static function send($notifiables, $notification)
  5947. {
  5948. \Illuminate\Notifications\ChannelManager::send($notifiables, $notification);
  5949. }
  5950. /**
  5951. * Send the given notification immediately.
  5952. *
  5953. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  5954. * @param mixed $notification
  5955. * @param array|null $channels
  5956. * @return void
  5957. * @static
  5958. */
  5959. public static function sendNow($notifiables, $notification, $channels = null)
  5960. {
  5961. \Illuminate\Notifications\ChannelManager::sendNow($notifiables, $notification, $channels);
  5962. }
  5963. /**
  5964. * Get a channel instance.
  5965. *
  5966. * @param string|null $name
  5967. * @return mixed
  5968. * @static
  5969. */
  5970. public static function channel($name = null)
  5971. {
  5972. return \Illuminate\Notifications\ChannelManager::channel($name);
  5973. }
  5974. /**
  5975. * Get the default channel driver name.
  5976. *
  5977. * @return string
  5978. * @static
  5979. */
  5980. public static function getDefaultDriver()
  5981. {
  5982. return \Illuminate\Notifications\ChannelManager::getDefaultDriver();
  5983. }
  5984. /**
  5985. * Get the default channel driver name.
  5986. *
  5987. * @return string
  5988. * @static
  5989. */
  5990. public static function deliversVia()
  5991. {
  5992. return \Illuminate\Notifications\ChannelManager::deliversVia();
  5993. }
  5994. /**
  5995. * Set the default channel driver name.
  5996. *
  5997. * @param string $channel
  5998. * @return void
  5999. * @static
  6000. */
  6001. public static function deliverVia($channel)
  6002. {
  6003. \Illuminate\Notifications\ChannelManager::deliverVia($channel);
  6004. }
  6005. /**
  6006. * Get a driver instance.
  6007. *
  6008. * @param string $driver
  6009. * @return mixed
  6010. * @throws \InvalidArgumentException
  6011. * @static
  6012. */
  6013. public static function driver($driver = null)
  6014. {
  6015. //Method inherited from \Illuminate\Support\Manager
  6016. return \Illuminate\Notifications\ChannelManager::driver($driver);
  6017. }
  6018. /**
  6019. * Register a custom driver creator Closure.
  6020. *
  6021. * @param string $driver
  6022. * @param \Closure $callback
  6023. * @return $this
  6024. * @static
  6025. */
  6026. public static function extend($driver, $callback)
  6027. {
  6028. //Method inherited from \Illuminate\Support\Manager
  6029. return \Illuminate\Notifications\ChannelManager::extend($driver, $callback);
  6030. }
  6031. /**
  6032. * Get all of the created "drivers".
  6033. *
  6034. * @return array
  6035. * @static
  6036. */
  6037. public static function getDrivers()
  6038. {
  6039. //Method inherited from \Illuminate\Support\Manager
  6040. return \Illuminate\Notifications\ChannelManager::getDrivers();
  6041. }
  6042. /**
  6043. * Assert if a notification was sent based on a truth-test callback.
  6044. *
  6045. * @param mixed $notifiable
  6046. * @param string $notification
  6047. * @param callable|null $callback
  6048. * @return void
  6049. * @static
  6050. */
  6051. public static function assertSentTo($notifiable, $notification, $callback = null)
  6052. {
  6053. \Illuminate\Support\Testing\Fakes\NotificationFake::assertSentTo($notifiable, $notification, $callback);
  6054. }
  6055. /**
  6056. * Assert if a notification was sent a number of times.
  6057. *
  6058. * @param mixed $notifiable
  6059. * @param string $notification
  6060. * @param int $times
  6061. * @return void
  6062. * @static
  6063. */
  6064. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  6065. {
  6066. \Illuminate\Support\Testing\Fakes\NotificationFake::assertSentToTimes($notifiable, $notification, $times);
  6067. }
  6068. /**
  6069. * Determine if a notification was sent based on a truth-test callback.
  6070. *
  6071. * @param mixed $notifiable
  6072. * @param string $notification
  6073. * @param callable|null $callback
  6074. * @return void
  6075. * @static
  6076. */
  6077. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  6078. {
  6079. \Illuminate\Support\Testing\Fakes\NotificationFake::assertNotSentTo($notifiable, $notification, $callback);
  6080. }
  6081. /**
  6082. * Assert that no notifications were sent.
  6083. *
  6084. * @return void
  6085. * @static
  6086. */
  6087. public static function assertNothingSent()
  6088. {
  6089. \Illuminate\Support\Testing\Fakes\NotificationFake::assertNothingSent();
  6090. }
  6091. /**
  6092. * Assert the total amount of times a notification was sent.
  6093. *
  6094. * @param int $expectedCount
  6095. * @param string $notification
  6096. * @return void
  6097. * @static
  6098. */
  6099. public static function assertTimesSent($expectedCount, $notification)
  6100. {
  6101. \Illuminate\Support\Testing\Fakes\NotificationFake::assertTimesSent($expectedCount, $notification);
  6102. }
  6103. /**
  6104. * Get all of the notifications matching a truth-test callback.
  6105. *
  6106. * @param mixed $notifiable
  6107. * @param string $notification
  6108. * @param callable|null $callback
  6109. * @return \Illuminate\Support\Collection
  6110. * @static
  6111. */
  6112. public static function sent($notifiable, $notification, $callback = null)
  6113. {
  6114. return \Illuminate\Support\Testing\Fakes\NotificationFake::sent($notifiable, $notification, $callback);
  6115. }
  6116. /**
  6117. * Determine if there are more notifications left to inspect.
  6118. *
  6119. * @param mixed $notifiable
  6120. * @param string $notification
  6121. * @return bool
  6122. * @static
  6123. */
  6124. public static function hasSent($notifiable, $notification)
  6125. {
  6126. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasSent($notifiable, $notification);
  6127. }
  6128. }
  6129. /**
  6130. *
  6131. *
  6132. * @method static string sendResetLink(array $credentials)
  6133. * @method static mixed reset(array $credentials, \Closure $callback)
  6134. * @method static void validator(\Closure $callback)
  6135. * @method static bool validateNewPassword(array $credentials)
  6136. * @see \Illuminate\Auth\Passwords\PasswordBroker
  6137. */
  6138. class Password {
  6139. /**
  6140. * Attempt to get the broker from the local cache.
  6141. *
  6142. * @param string|null $name
  6143. * @return \Illuminate\Contracts\Auth\PasswordBroker
  6144. * @static
  6145. */
  6146. public static function broker($name = null)
  6147. {
  6148. return \Illuminate\Auth\Passwords\PasswordBrokerManager::broker($name);
  6149. }
  6150. /**
  6151. * Get the default password broker name.
  6152. *
  6153. * @return string
  6154. * @static
  6155. */
  6156. public static function getDefaultDriver()
  6157. {
  6158. return \Illuminate\Auth\Passwords\PasswordBrokerManager::getDefaultDriver();
  6159. }
  6160. /**
  6161. * Set the default password broker name.
  6162. *
  6163. * @param string $name
  6164. * @return void
  6165. * @static
  6166. */
  6167. public static function setDefaultDriver($name)
  6168. {
  6169. \Illuminate\Auth\Passwords\PasswordBrokerManager::setDefaultDriver($name);
  6170. }
  6171. }
  6172. /**
  6173. *
  6174. *
  6175. * @see \Illuminate\Queue\QueueManager
  6176. * @see \Illuminate\Queue\Queue
  6177. */
  6178. class Queue {
  6179. /**
  6180. * Register an event listener for the before job event.
  6181. *
  6182. * @param mixed $callback
  6183. * @return void
  6184. * @static
  6185. */
  6186. public static function before($callback)
  6187. {
  6188. \Illuminate\Queue\QueueManager::before($callback);
  6189. }
  6190. /**
  6191. * Register an event listener for the after job event.
  6192. *
  6193. * @param mixed $callback
  6194. * @return void
  6195. * @static
  6196. */
  6197. public static function after($callback)
  6198. {
  6199. \Illuminate\Queue\QueueManager::after($callback);
  6200. }
  6201. /**
  6202. * Register an event listener for the exception occurred job event.
  6203. *
  6204. * @param mixed $callback
  6205. * @return void
  6206. * @static
  6207. */
  6208. public static function exceptionOccurred($callback)
  6209. {
  6210. \Illuminate\Queue\QueueManager::exceptionOccurred($callback);
  6211. }
  6212. /**
  6213. * Register an event listener for the daemon queue loop.
  6214. *
  6215. * @param mixed $callback
  6216. * @return void
  6217. * @static
  6218. */
  6219. public static function looping($callback)
  6220. {
  6221. \Illuminate\Queue\QueueManager::looping($callback);
  6222. }
  6223. /**
  6224. * Register an event listener for the failed job event.
  6225. *
  6226. * @param mixed $callback
  6227. * @return void
  6228. * @static
  6229. */
  6230. public static function failing($callback)
  6231. {
  6232. \Illuminate\Queue\QueueManager::failing($callback);
  6233. }
  6234. /**
  6235. * Register an event listener for the daemon queue stopping.
  6236. *
  6237. * @param mixed $callback
  6238. * @return void
  6239. * @static
  6240. */
  6241. public static function stopping($callback)
  6242. {
  6243. \Illuminate\Queue\QueueManager::stopping($callback);
  6244. }
  6245. /**
  6246. * Determine if the driver is connected.
  6247. *
  6248. * @param string $name
  6249. * @return bool
  6250. * @static
  6251. */
  6252. public static function connected($name = null)
  6253. {
  6254. return \Illuminate\Queue\QueueManager::connected($name);
  6255. }
  6256. /**
  6257. * Resolve a queue connection instance.
  6258. *
  6259. * @param string $name
  6260. * @return \Illuminate\Contracts\Queue\Queue
  6261. * @static
  6262. */
  6263. public static function connection($name = null)
  6264. {
  6265. return \Illuminate\Queue\QueueManager::connection($name);
  6266. }
  6267. /**
  6268. * Add a queue connection resolver.
  6269. *
  6270. * @param string $driver
  6271. * @param \Closure $resolver
  6272. * @return void
  6273. * @static
  6274. */
  6275. public static function extend($driver, $resolver)
  6276. {
  6277. \Illuminate\Queue\QueueManager::extend($driver, $resolver);
  6278. }
  6279. /**
  6280. * Add a queue connection resolver.
  6281. *
  6282. * @param string $driver
  6283. * @param \Closure $resolver
  6284. * @return void
  6285. * @static
  6286. */
  6287. public static function addConnector($driver, $resolver)
  6288. {
  6289. \Illuminate\Queue\QueueManager::addConnector($driver, $resolver);
  6290. }
  6291. /**
  6292. * Get the name of the default queue connection.
  6293. *
  6294. * @return string
  6295. * @static
  6296. */
  6297. public static function getDefaultDriver()
  6298. {
  6299. return \Illuminate\Queue\QueueManager::getDefaultDriver();
  6300. }
  6301. /**
  6302. * Set the name of the default queue connection.
  6303. *
  6304. * @param string $name
  6305. * @return void
  6306. * @static
  6307. */
  6308. public static function setDefaultDriver($name)
  6309. {
  6310. \Illuminate\Queue\QueueManager::setDefaultDriver($name);
  6311. }
  6312. /**
  6313. * Get the full name for the given connection.
  6314. *
  6315. * @param string $connection
  6316. * @return string
  6317. * @static
  6318. */
  6319. public static function getName($connection = null)
  6320. {
  6321. return \Illuminate\Queue\QueueManager::getName($connection);
  6322. }
  6323. /**
  6324. * Determine if the application is in maintenance mode.
  6325. *
  6326. * @return bool
  6327. * @static
  6328. */
  6329. public static function isDownForMaintenance()
  6330. {
  6331. return \Illuminate\Queue\QueueManager::isDownForMaintenance();
  6332. }
  6333. /**
  6334. * Assert if a job was pushed based on a truth-test callback.
  6335. *
  6336. * @param string $job
  6337. * @param callable|int|null $callback
  6338. * @return void
  6339. * @static
  6340. */
  6341. public static function assertPushed($job, $callback = null)
  6342. {
  6343. \Illuminate\Support\Testing\Fakes\QueueFake::assertPushed($job, $callback);
  6344. }
  6345. /**
  6346. * Assert if a job was pushed based on a truth-test callback.
  6347. *
  6348. * @param string $queue
  6349. * @param string $job
  6350. * @param callable|null $callback
  6351. * @return void
  6352. * @static
  6353. */
  6354. public static function assertPushedOn($queue, $job, $callback = null)
  6355. {
  6356. \Illuminate\Support\Testing\Fakes\QueueFake::assertPushedOn($queue, $job, $callback);
  6357. }
  6358. /**
  6359. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  6360. *
  6361. * @param string $job
  6362. * @param array $expectedChain
  6363. * @param callable|null $callback
  6364. * @return void
  6365. * @static
  6366. */
  6367. public static function assertPushedWithChain($job, $expectedChain = array(), $callback = null)
  6368. {
  6369. \Illuminate\Support\Testing\Fakes\QueueFake::assertPushedWithChain($job, $expectedChain, $callback);
  6370. }
  6371. /**
  6372. * Determine if a job was pushed based on a truth-test callback.
  6373. *
  6374. * @param string $job
  6375. * @param callable|null $callback
  6376. * @return void
  6377. * @static
  6378. */
  6379. public static function assertNotPushed($job, $callback = null)
  6380. {
  6381. \Illuminate\Support\Testing\Fakes\QueueFake::assertNotPushed($job, $callback);
  6382. }
  6383. /**
  6384. * Assert that no jobs were pushed.
  6385. *
  6386. * @return void
  6387. * @static
  6388. */
  6389. public static function assertNothingPushed()
  6390. {
  6391. \Illuminate\Support\Testing\Fakes\QueueFake::assertNothingPushed();
  6392. }
  6393. /**
  6394. * Get all of the jobs matching a truth-test callback.
  6395. *
  6396. * @param string $job
  6397. * @param callable|null $callback
  6398. * @return \Illuminate\Support\Collection
  6399. * @static
  6400. */
  6401. public static function pushed($job, $callback = null)
  6402. {
  6403. return \Illuminate\Support\Testing\Fakes\QueueFake::pushed($job, $callback);
  6404. }
  6405. /**
  6406. * Determine if there are any stored jobs for a given class.
  6407. *
  6408. * @param string $job
  6409. * @return bool
  6410. * @static
  6411. */
  6412. public static function hasPushed($job)
  6413. {
  6414. return \Illuminate\Support\Testing\Fakes\QueueFake::hasPushed($job);
  6415. }
  6416. /**
  6417. * Get the size of the queue.
  6418. *
  6419. * @param string $queue
  6420. * @return int
  6421. * @static
  6422. */
  6423. public static function size($queue = null)
  6424. {
  6425. return \Illuminate\Support\Testing\Fakes\QueueFake::size($queue);
  6426. }
  6427. /**
  6428. * Push a new job onto the queue.
  6429. *
  6430. * @param string $job
  6431. * @param mixed $data
  6432. * @param string $queue
  6433. * @return mixed
  6434. * @static
  6435. */
  6436. public static function push($job, $data = '', $queue = null)
  6437. {
  6438. return \Illuminate\Support\Testing\Fakes\QueueFake::push($job, $data, $queue);
  6439. }
  6440. /**
  6441. * Push a raw payload onto the queue.
  6442. *
  6443. * @param string $payload
  6444. * @param string $queue
  6445. * @param array $options
  6446. * @return mixed
  6447. * @static
  6448. */
  6449. public static function pushRaw($payload, $queue = null, $options = array())
  6450. {
  6451. return \Illuminate\Support\Testing\Fakes\QueueFake::pushRaw($payload, $queue, $options);
  6452. }
  6453. /**
  6454. * Push a new job onto the queue after a delay.
  6455. *
  6456. * @param \DateTime|int $delay
  6457. * @param string $job
  6458. * @param mixed $data
  6459. * @param string $queue
  6460. * @return mixed
  6461. * @static
  6462. */
  6463. public static function later($delay, $job, $data = '', $queue = null)
  6464. {
  6465. return \Illuminate\Support\Testing\Fakes\QueueFake::later($delay, $job, $data, $queue);
  6466. }
  6467. /**
  6468. * Push a new job onto the queue.
  6469. *
  6470. * @param string $queue
  6471. * @param string $job
  6472. * @param mixed $data
  6473. * @return mixed
  6474. * @static
  6475. */
  6476. public static function pushOn($queue, $job, $data = '')
  6477. {
  6478. return \Illuminate\Support\Testing\Fakes\QueueFake::pushOn($queue, $job, $data);
  6479. }
  6480. /**
  6481. * Push a new job onto the queue after a delay.
  6482. *
  6483. * @param string $queue
  6484. * @param \DateTime|int $delay
  6485. * @param string $job
  6486. * @param mixed $data
  6487. * @return mixed
  6488. * @static
  6489. */
  6490. public static function laterOn($queue, $delay, $job, $data = '')
  6491. {
  6492. return \Illuminate\Support\Testing\Fakes\QueueFake::laterOn($queue, $delay, $job, $data);
  6493. }
  6494. /**
  6495. * Pop the next job off of the queue.
  6496. *
  6497. * @param string $queue
  6498. * @return \Illuminate\Contracts\Queue\Job|null
  6499. * @static
  6500. */
  6501. public static function pop($queue = null)
  6502. {
  6503. return \Illuminate\Support\Testing\Fakes\QueueFake::pop($queue);
  6504. }
  6505. /**
  6506. * Push an array of jobs onto the queue.
  6507. *
  6508. * @param array $jobs
  6509. * @param mixed $data
  6510. * @param string $queue
  6511. * @return mixed
  6512. * @static
  6513. */
  6514. public static function bulk($jobs, $data = '', $queue = null)
  6515. {
  6516. return \Illuminate\Support\Testing\Fakes\QueueFake::bulk($jobs, $data, $queue);
  6517. }
  6518. /**
  6519. * Get the connection name for the queue.
  6520. *
  6521. * @return string
  6522. * @static
  6523. */
  6524. public static function getConnectionName()
  6525. {
  6526. return \Illuminate\Support\Testing\Fakes\QueueFake::getConnectionName();
  6527. }
  6528. /**
  6529. * Set the connection name for the queue.
  6530. *
  6531. * @param string $name
  6532. * @return $this
  6533. * @static
  6534. */
  6535. public static function setConnectionName($name)
  6536. {
  6537. return \Illuminate\Support\Testing\Fakes\QueueFake::setConnectionName($name);
  6538. }
  6539. /**
  6540. * Get the expiration timestamp for an object-based queue handler.
  6541. *
  6542. * @param mixed $job
  6543. * @return mixed
  6544. * @static
  6545. */
  6546. public static function getJobExpiration($job)
  6547. {
  6548. //Method inherited from \Illuminate\Queue\Queue
  6549. return \Illuminate\Queue\SyncQueue::getJobExpiration($job);
  6550. }
  6551. /**
  6552. * Set the IoC container instance.
  6553. *
  6554. * @param \Illuminate\Container\Container $container
  6555. * @return void
  6556. * @static
  6557. */
  6558. public static function setContainer($container)
  6559. {
  6560. //Method inherited from \Illuminate\Queue\Queue
  6561. \Illuminate\Queue\SyncQueue::setContainer($container);
  6562. }
  6563. }
  6564. /**
  6565. *
  6566. *
  6567. * @see \Illuminate\Routing\Redirector
  6568. */
  6569. class Redirect {
  6570. /**
  6571. * Create a new redirect response to the "home" route.
  6572. *
  6573. * @param int $status
  6574. * @return \Illuminate\Http\RedirectResponse
  6575. * @static
  6576. */
  6577. public static function home($status = 302)
  6578. {
  6579. return \Illuminate\Routing\Redirector::home($status);
  6580. }
  6581. /**
  6582. * Create a new redirect response to the previous location.
  6583. *
  6584. * @param int $status
  6585. * @param array $headers
  6586. * @param mixed $fallback
  6587. * @return \Illuminate\Http\RedirectResponse
  6588. * @static
  6589. */
  6590. public static function back($status = 302, $headers = array(), $fallback = false)
  6591. {
  6592. return \Illuminate\Routing\Redirector::back($status, $headers, $fallback);
  6593. }
  6594. /**
  6595. * Create a new redirect response to the current URI.
  6596. *
  6597. * @param int $status
  6598. * @param array $headers
  6599. * @return \Illuminate\Http\RedirectResponse
  6600. * @static
  6601. */
  6602. public static function refresh($status = 302, $headers = array())
  6603. {
  6604. return \Illuminate\Routing\Redirector::refresh($status, $headers);
  6605. }
  6606. /**
  6607. * Create a new redirect response, while putting the current URL in the session.
  6608. *
  6609. * @param string $path
  6610. * @param int $status
  6611. * @param array $headers
  6612. * @param bool $secure
  6613. * @return \Illuminate\Http\RedirectResponse
  6614. * @static
  6615. */
  6616. public static function guest($path, $status = 302, $headers = array(), $secure = null)
  6617. {
  6618. return \Illuminate\Routing\Redirector::guest($path, $status, $headers, $secure);
  6619. }
  6620. /**
  6621. * Create a new redirect response to the previously intended location.
  6622. *
  6623. * @param string $default
  6624. * @param int $status
  6625. * @param array $headers
  6626. * @param bool $secure
  6627. * @return \Illuminate\Http\RedirectResponse
  6628. * @static
  6629. */
  6630. public static function intended($default = '/', $status = 302, $headers = array(), $secure = null)
  6631. {
  6632. return \Illuminate\Routing\Redirector::intended($default, $status, $headers, $secure);
  6633. }
  6634. /**
  6635. * Create a new redirect response to the given path.
  6636. *
  6637. * @param string $path
  6638. * @param int $status
  6639. * @param array $headers
  6640. * @param bool $secure
  6641. * @return \Illuminate\Http\RedirectResponse
  6642. * @static
  6643. */
  6644. public static function to($path, $status = 302, $headers = array(), $secure = null)
  6645. {
  6646. return \Illuminate\Routing\Redirector::to($path, $status, $headers, $secure);
  6647. }
  6648. /**
  6649. * Create a new redirect response to an external URL (no validation).
  6650. *
  6651. * @param string $path
  6652. * @param int $status
  6653. * @param array $headers
  6654. * @return \Illuminate\Http\RedirectResponse
  6655. * @static
  6656. */
  6657. public static function away($path, $status = 302, $headers = array())
  6658. {
  6659. return \Illuminate\Routing\Redirector::away($path, $status, $headers);
  6660. }
  6661. /**
  6662. * Create a new redirect response to the given HTTPS path.
  6663. *
  6664. * @param string $path
  6665. * @param int $status
  6666. * @param array $headers
  6667. * @return \Illuminate\Http\RedirectResponse
  6668. * @static
  6669. */
  6670. public static function secure($path, $status = 302, $headers = array())
  6671. {
  6672. return \Illuminate\Routing\Redirector::secure($path, $status, $headers);
  6673. }
  6674. /**
  6675. * Create a new redirect response to a named route.
  6676. *
  6677. * @param string $route
  6678. * @param mixed $parameters
  6679. * @param int $status
  6680. * @param array $headers
  6681. * @return \Illuminate\Http\RedirectResponse
  6682. * @static
  6683. */
  6684. public static function route($route, $parameters = array(), $status = 302, $headers = array())
  6685. {
  6686. return \Illuminate\Routing\Redirector::route($route, $parameters, $status, $headers);
  6687. }
  6688. /**
  6689. * Create a new redirect response to a controller action.
  6690. *
  6691. * @param string $action
  6692. * @param mixed $parameters
  6693. * @param int $status
  6694. * @param array $headers
  6695. * @return \Illuminate\Http\RedirectResponse
  6696. * @static
  6697. */
  6698. public static function action($action, $parameters = array(), $status = 302, $headers = array())
  6699. {
  6700. return \Illuminate\Routing\Redirector::action($action, $parameters, $status, $headers);
  6701. }
  6702. /**
  6703. * Get the URL generator instance.
  6704. *
  6705. * @return \Illuminate\Routing\UrlGenerator
  6706. * @static
  6707. */
  6708. public static function getUrlGenerator()
  6709. {
  6710. return \Illuminate\Routing\Redirector::getUrlGenerator();
  6711. }
  6712. /**
  6713. * Set the active session store.
  6714. *
  6715. * @param \Illuminate\Session\Store $session
  6716. * @return void
  6717. * @static
  6718. */
  6719. public static function setSession($session)
  6720. {
  6721. \Illuminate\Routing\Redirector::setSession($session);
  6722. }
  6723. /**
  6724. * Register a custom macro.
  6725. *
  6726. * @param string $name
  6727. * @param object|callable $macro
  6728. * @return void
  6729. * @static
  6730. */
  6731. public static function macro($name, $macro)
  6732. {
  6733. \Illuminate\Routing\Redirector::macro($name, $macro);
  6734. }
  6735. /**
  6736. * Mix another object into the class.
  6737. *
  6738. * @param object $mixin
  6739. * @return void
  6740. * @throws \ReflectionException
  6741. * @static
  6742. */
  6743. public static function mixin($mixin)
  6744. {
  6745. \Illuminate\Routing\Redirector::mixin($mixin);
  6746. }
  6747. /**
  6748. * Checks if macro is registered.
  6749. *
  6750. * @param string $name
  6751. * @return bool
  6752. * @static
  6753. */
  6754. public static function hasMacro($name)
  6755. {
  6756. return \Illuminate\Routing\Redirector::hasMacro($name);
  6757. }
  6758. }
  6759. /**
  6760. *
  6761. *
  6762. * @see \Illuminate\Redis\RedisManager
  6763. * @see \Illuminate\Contracts\Redis\Factory
  6764. */
  6765. class Redis {
  6766. /**
  6767. * Get a Redis connection by name.
  6768. *
  6769. * @param string|null $name
  6770. * @return \Illuminate\Redis\Connections\Connection
  6771. * @static
  6772. */
  6773. public static function connection($name = null)
  6774. {
  6775. return \Illuminate\Redis\RedisManager::connection($name);
  6776. }
  6777. /**
  6778. * Resolve the given connection by name.
  6779. *
  6780. * @param string|null $name
  6781. * @return \Illuminate\Redis\Connections\Connection
  6782. * @throws \InvalidArgumentException
  6783. * @static
  6784. */
  6785. public static function resolve($name = null)
  6786. {
  6787. return \Illuminate\Redis\RedisManager::resolve($name);
  6788. }
  6789. /**
  6790. * Return all of the created connections.
  6791. *
  6792. * @return array
  6793. * @static
  6794. */
  6795. public static function connections()
  6796. {
  6797. return \Illuminate\Redis\RedisManager::connections();
  6798. }
  6799. }
  6800. /**
  6801. *
  6802. *
  6803. * @see \Illuminate\Http\Request
  6804. */
  6805. class Request {
  6806. /**
  6807. * Create a new Illuminate HTTP request from server variables.
  6808. *
  6809. * @return static
  6810. * @static
  6811. */
  6812. public static function capture()
  6813. {
  6814. return \Illuminate\Http\Request::capture();
  6815. }
  6816. /**
  6817. * Return the Request instance.
  6818. *
  6819. * @return $this
  6820. * @static
  6821. */
  6822. public static function instance()
  6823. {
  6824. return \Illuminate\Http\Request::instance();
  6825. }
  6826. /**
  6827. * Get the request method.
  6828. *
  6829. * @return string
  6830. * @static
  6831. */
  6832. public static function method()
  6833. {
  6834. return \Illuminate\Http\Request::method();
  6835. }
  6836. /**
  6837. * Get the root URL for the application.
  6838. *
  6839. * @return string
  6840. * @static
  6841. */
  6842. public static function root()
  6843. {
  6844. return \Illuminate\Http\Request::root();
  6845. }
  6846. /**
  6847. * Get the URL (no query string) for the request.
  6848. *
  6849. * @return string
  6850. * @static
  6851. */
  6852. public static function url()
  6853. {
  6854. return \Illuminate\Http\Request::url();
  6855. }
  6856. /**
  6857. * Get the full URL for the request.
  6858. *
  6859. * @return string
  6860. * @static
  6861. */
  6862. public static function fullUrl()
  6863. {
  6864. return \Illuminate\Http\Request::fullUrl();
  6865. }
  6866. /**
  6867. * Get the full URL for the request with the added query string parameters.
  6868. *
  6869. * @param array $query
  6870. * @return string
  6871. * @static
  6872. */
  6873. public static function fullUrlWithQuery($query)
  6874. {
  6875. return \Illuminate\Http\Request::fullUrlWithQuery($query);
  6876. }
  6877. /**
  6878. * Get the current path info for the request.
  6879. *
  6880. * @return string
  6881. * @static
  6882. */
  6883. public static function path()
  6884. {
  6885. return \Illuminate\Http\Request::path();
  6886. }
  6887. /**
  6888. * Get the current decoded path info for the request.
  6889. *
  6890. * @return string
  6891. * @static
  6892. */
  6893. public static function decodedPath()
  6894. {
  6895. return \Illuminate\Http\Request::decodedPath();
  6896. }
  6897. /**
  6898. * Get a segment from the URI (1 based index).
  6899. *
  6900. * @param int $index
  6901. * @param string|null $default
  6902. * @return string|null
  6903. * @static
  6904. */
  6905. public static function segment($index, $default = null)
  6906. {
  6907. return \Illuminate\Http\Request::segment($index, $default);
  6908. }
  6909. /**
  6910. * Get all of the segments for the request path.
  6911. *
  6912. * @return array
  6913. * @static
  6914. */
  6915. public static function segments()
  6916. {
  6917. return \Illuminate\Http\Request::segments();
  6918. }
  6919. /**
  6920. * Determine if the current request URI matches a pattern.
  6921. *
  6922. * @param mixed $patterns
  6923. * @return bool
  6924. * @static
  6925. */
  6926. public static function is($patterns = null)
  6927. {
  6928. return \Illuminate\Http\Request::is($patterns);
  6929. }
  6930. /**
  6931. * Determine if the route name matches a given pattern.
  6932. *
  6933. * @param mixed $patterns
  6934. * @return bool
  6935. * @static
  6936. */
  6937. public static function routeIs($patterns = null)
  6938. {
  6939. return \Illuminate\Http\Request::routeIs($patterns);
  6940. }
  6941. /**
  6942. * Determine if the current request URL and query string matches a pattern.
  6943. *
  6944. * @param mixed $patterns
  6945. * @return bool
  6946. * @static
  6947. */
  6948. public static function fullUrlIs($patterns = null)
  6949. {
  6950. return \Illuminate\Http\Request::fullUrlIs($patterns);
  6951. }
  6952. /**
  6953. * Determine if the request is the result of an AJAX call.
  6954. *
  6955. * @return bool
  6956. * @static
  6957. */
  6958. public static function ajax()
  6959. {
  6960. return \Illuminate\Http\Request::ajax();
  6961. }
  6962. /**
  6963. * Determine if the request is the result of an PJAX call.
  6964. *
  6965. * @return bool
  6966. * @static
  6967. */
  6968. public static function pjax()
  6969. {
  6970. return \Illuminate\Http\Request::pjax();
  6971. }
  6972. /**
  6973. * Determine if the request is over HTTPS.
  6974. *
  6975. * @return bool
  6976. * @static
  6977. */
  6978. public static function secure()
  6979. {
  6980. return \Illuminate\Http\Request::secure();
  6981. }
  6982. /**
  6983. * Get the client IP address.
  6984. *
  6985. * @return string
  6986. * @static
  6987. */
  6988. public static function ip()
  6989. {
  6990. return \Illuminate\Http\Request::ip();
  6991. }
  6992. /**
  6993. * Get the client IP addresses.
  6994. *
  6995. * @return array
  6996. * @static
  6997. */
  6998. public static function ips()
  6999. {
  7000. return \Illuminate\Http\Request::ips();
  7001. }
  7002. /**
  7003. * Get the client user agent.
  7004. *
  7005. * @return string
  7006. * @static
  7007. */
  7008. public static function userAgent()
  7009. {
  7010. return \Illuminate\Http\Request::userAgent();
  7011. }
  7012. /**
  7013. * Merge new input into the current request's input array.
  7014. *
  7015. * @param array $input
  7016. * @return \Illuminate\Http\Request
  7017. * @static
  7018. */
  7019. public static function merge($input)
  7020. {
  7021. return \Illuminate\Http\Request::merge($input);
  7022. }
  7023. /**
  7024. * Replace the input for the current request.
  7025. *
  7026. * @param array $input
  7027. * @return \Illuminate\Http\Request
  7028. * @static
  7029. */
  7030. public static function replace($input)
  7031. {
  7032. return \Illuminate\Http\Request::replace($input);
  7033. }
  7034. /**
  7035. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  7036. *
  7037. * Instead, you may use the "input" method.
  7038. *
  7039. * @param string $key
  7040. * @param mixed $default
  7041. * @return mixed
  7042. * @static
  7043. */
  7044. public static function get($key, $default = null)
  7045. {
  7046. return \Illuminate\Http\Request::get($key, $default);
  7047. }
  7048. /**
  7049. * Get the JSON payload for the request.
  7050. *
  7051. * @param string $key
  7052. * @param mixed $default
  7053. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  7054. * @static
  7055. */
  7056. public static function json($key = null, $default = null)
  7057. {
  7058. return \Illuminate\Http\Request::json($key, $default);
  7059. }
  7060. /**
  7061. * Create a new request instance from the given Laravel request.
  7062. *
  7063. * @param \Illuminate\Http\Request $from
  7064. * @param \Illuminate\Http\Request|null $to
  7065. * @return static
  7066. * @static
  7067. */
  7068. public static function createFrom($from, $to = null)
  7069. {
  7070. return \Illuminate\Http\Request::createFrom($from, $to);
  7071. }
  7072. /**
  7073. * Create an Illuminate request from a Symfony instance.
  7074. *
  7075. * @param \Symfony\Component\HttpFoundation\Request $request
  7076. * @return \Illuminate\Http\Request
  7077. * @static
  7078. */
  7079. public static function createFromBase($request)
  7080. {
  7081. return \Illuminate\Http\Request::createFromBase($request);
  7082. }
  7083. /**
  7084. * Clones a request and overrides some of its parameters.
  7085. *
  7086. * @param array $query The GET parameters
  7087. * @param array $request The POST parameters
  7088. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7089. * @param array $cookies The COOKIE parameters
  7090. * @param array $files The FILES parameters
  7091. * @param array $server The SERVER parameters
  7092. * @return static
  7093. * @static
  7094. */
  7095. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  7096. {
  7097. return \Illuminate\Http\Request::duplicate($query, $request, $attributes, $cookies, $files, $server);
  7098. }
  7099. /**
  7100. * Get the session associated with the request.
  7101. *
  7102. * @return \Illuminate\Session\Store
  7103. * @throws \RuntimeException
  7104. * @static
  7105. */
  7106. public static function session()
  7107. {
  7108. return \Illuminate\Http\Request::session();
  7109. }
  7110. /**
  7111. * Get the session associated with the request.
  7112. *
  7113. * @return \Illuminate\Session\Store|null
  7114. * @static
  7115. */
  7116. public static function getSession()
  7117. {
  7118. return \Illuminate\Http\Request::getSession();
  7119. }
  7120. /**
  7121. * Set the session instance on the request.
  7122. *
  7123. * @param \Illuminate\Contracts\Session\Session $session
  7124. * @return void
  7125. * @static
  7126. */
  7127. public static function setLaravelSession($session)
  7128. {
  7129. \Illuminate\Http\Request::setLaravelSession($session);
  7130. }
  7131. /**
  7132. * Get the user making the request.
  7133. *
  7134. * @param string|null $guard
  7135. * @return mixed
  7136. * @static
  7137. */
  7138. public static function user($guard = null)
  7139. {
  7140. return \Illuminate\Http\Request::user($guard);
  7141. }
  7142. /**
  7143. * Get the route handling the request.
  7144. *
  7145. * @param string|null $param
  7146. * @return \Illuminate\Routing\Route|object|string
  7147. * @static
  7148. */
  7149. public static function route($param = null)
  7150. {
  7151. return \Illuminate\Http\Request::route($param);
  7152. }
  7153. /**
  7154. * Get a unique fingerprint for the request / route / IP address.
  7155. *
  7156. * @return string
  7157. * @throws \RuntimeException
  7158. * @static
  7159. */
  7160. public static function fingerprint()
  7161. {
  7162. return \Illuminate\Http\Request::fingerprint();
  7163. }
  7164. /**
  7165. * Set the JSON payload for the request.
  7166. *
  7167. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  7168. * @return $this
  7169. * @static
  7170. */
  7171. public static function setJson($json)
  7172. {
  7173. return \Illuminate\Http\Request::setJson($json);
  7174. }
  7175. /**
  7176. * Get the user resolver callback.
  7177. *
  7178. * @return \Closure
  7179. * @static
  7180. */
  7181. public static function getUserResolver()
  7182. {
  7183. return \Illuminate\Http\Request::getUserResolver();
  7184. }
  7185. /**
  7186. * Set the user resolver callback.
  7187. *
  7188. * @param \Closure $callback
  7189. * @return $this
  7190. * @static
  7191. */
  7192. public static function setUserResolver($callback)
  7193. {
  7194. return \Illuminate\Http\Request::setUserResolver($callback);
  7195. }
  7196. /**
  7197. * Get the route resolver callback.
  7198. *
  7199. * @return \Closure
  7200. * @static
  7201. */
  7202. public static function getRouteResolver()
  7203. {
  7204. return \Illuminate\Http\Request::getRouteResolver();
  7205. }
  7206. /**
  7207. * Set the route resolver callback.
  7208. *
  7209. * @param \Closure $callback
  7210. * @return $this
  7211. * @static
  7212. */
  7213. public static function setRouteResolver($callback)
  7214. {
  7215. return \Illuminate\Http\Request::setRouteResolver($callback);
  7216. }
  7217. /**
  7218. * Get all of the input and files for the request.
  7219. *
  7220. * @return array
  7221. * @static
  7222. */
  7223. public static function toArray()
  7224. {
  7225. return \Illuminate\Http\Request::toArray();
  7226. }
  7227. /**
  7228. * Determine if the given offset exists.
  7229. *
  7230. * @param string $offset
  7231. * @return bool
  7232. * @static
  7233. */
  7234. public static function offsetExists($offset)
  7235. {
  7236. return \Illuminate\Http\Request::offsetExists($offset);
  7237. }
  7238. /**
  7239. * Get the value at the given offset.
  7240. *
  7241. * @param string $offset
  7242. * @return mixed
  7243. * @static
  7244. */
  7245. public static function offsetGet($offset)
  7246. {
  7247. return \Illuminate\Http\Request::offsetGet($offset);
  7248. }
  7249. /**
  7250. * Set the value at the given offset.
  7251. *
  7252. * @param string $offset
  7253. * @param mixed $value
  7254. * @return void
  7255. * @static
  7256. */
  7257. public static function offsetSet($offset, $value)
  7258. {
  7259. \Illuminate\Http\Request::offsetSet($offset, $value);
  7260. }
  7261. /**
  7262. * Remove the value at the given offset.
  7263. *
  7264. * @param string $offset
  7265. * @return void
  7266. * @static
  7267. */
  7268. public static function offsetUnset($offset)
  7269. {
  7270. \Illuminate\Http\Request::offsetUnset($offset);
  7271. }
  7272. /**
  7273. * Sets the parameters for this request.
  7274. *
  7275. * This method also re-initializes all properties.
  7276. *
  7277. * @param array $query The GET parameters
  7278. * @param array $request The POST parameters
  7279. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7280. * @param array $cookies The COOKIE parameters
  7281. * @param array $files The FILES parameters
  7282. * @param array $server The SERVER parameters
  7283. * @param string|resource|null $content The raw body data
  7284. * @static
  7285. */
  7286. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  7287. {
  7288. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7289. return \Illuminate\Http\Request::initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  7290. }
  7291. /**
  7292. * Creates a new request with values from PHP's super globals.
  7293. *
  7294. * @return static
  7295. * @static
  7296. */
  7297. public static function createFromGlobals()
  7298. {
  7299. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7300. return \Illuminate\Http\Request::createFromGlobals();
  7301. }
  7302. /**
  7303. * Creates a Request based on a given URI and configuration.
  7304. *
  7305. * The information contained in the URI always take precedence
  7306. * over the other information (server and parameters).
  7307. *
  7308. * @param string $uri The URI
  7309. * @param string $method The HTTP method
  7310. * @param array $parameters The query (GET) or request (POST) parameters
  7311. * @param array $cookies The request cookies ($_COOKIE)
  7312. * @param array $files The request files ($_FILES)
  7313. * @param array $server The server parameters ($_SERVER)
  7314. * @param string|resource|null $content The raw body data
  7315. * @return static
  7316. * @static
  7317. */
  7318. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  7319. {
  7320. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7321. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  7322. }
  7323. /**
  7324. * Sets a callable able to create a Request instance.
  7325. *
  7326. * This is mainly useful when you need to override the Request class
  7327. * to keep BC with an existing system. It should not be used for any
  7328. * other purpose.
  7329. *
  7330. * @param callable|null $callable A PHP callable
  7331. * @static
  7332. */
  7333. public static function setFactory($callable)
  7334. {
  7335. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7336. return \Illuminate\Http\Request::setFactory($callable);
  7337. }
  7338. /**
  7339. * Overrides the PHP global variables according to this request instance.
  7340. *
  7341. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  7342. * $_FILES is never overridden, see rfc1867
  7343. *
  7344. * @static
  7345. */
  7346. public static function overrideGlobals()
  7347. {
  7348. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7349. return \Illuminate\Http\Request::overrideGlobals();
  7350. }
  7351. /**
  7352. * Sets a list of trusted proxies.
  7353. *
  7354. * You should only list the reverse proxies that you manage directly.
  7355. *
  7356. * @param array $proxies A list of trusted proxies
  7357. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  7358. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  7359. * @static
  7360. */
  7361. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  7362. {
  7363. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7364. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  7365. }
  7366. /**
  7367. * Gets the list of trusted proxies.
  7368. *
  7369. * @return array An array of trusted proxies
  7370. * @static
  7371. */
  7372. public static function getTrustedProxies()
  7373. {
  7374. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7375. return \Illuminate\Http\Request::getTrustedProxies();
  7376. }
  7377. /**
  7378. * Gets the set of trusted headers from trusted proxies.
  7379. *
  7380. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  7381. * @static
  7382. */
  7383. public static function getTrustedHeaderSet()
  7384. {
  7385. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7386. return \Illuminate\Http\Request::getTrustedHeaderSet();
  7387. }
  7388. /**
  7389. * Sets a list of trusted host patterns.
  7390. *
  7391. * You should only list the hosts you manage using regexs.
  7392. *
  7393. * @param array $hostPatterns A list of trusted host patterns
  7394. * @static
  7395. */
  7396. public static function setTrustedHosts($hostPatterns)
  7397. {
  7398. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7399. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  7400. }
  7401. /**
  7402. * Gets the list of trusted host patterns.
  7403. *
  7404. * @return array An array of trusted host patterns
  7405. * @static
  7406. */
  7407. public static function getTrustedHosts()
  7408. {
  7409. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7410. return \Illuminate\Http\Request::getTrustedHosts();
  7411. }
  7412. /**
  7413. * Normalizes a query string.
  7414. *
  7415. * It builds a normalized query string, where keys/value pairs are alphabetized,
  7416. * have consistent escaping and unneeded delimiters are removed.
  7417. *
  7418. * @param string $qs Query string
  7419. * @return string A normalized query string for the Request
  7420. * @static
  7421. */
  7422. public static function normalizeQueryString($qs)
  7423. {
  7424. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7425. return \Illuminate\Http\Request::normalizeQueryString($qs);
  7426. }
  7427. /**
  7428. * Enables support for the _method request parameter to determine the intended HTTP method.
  7429. *
  7430. * Be warned that enabling this feature might lead to CSRF issues in your code.
  7431. * Check that you are using CSRF tokens when required.
  7432. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  7433. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  7434. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  7435. *
  7436. * The HTTP method can only be overridden when the real HTTP method is POST.
  7437. *
  7438. * @static
  7439. */
  7440. public static function enableHttpMethodParameterOverride()
  7441. {
  7442. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7443. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  7444. }
  7445. /**
  7446. * Checks whether support for the _method request parameter is enabled.
  7447. *
  7448. * @return bool True when the _method request parameter is enabled, false otherwise
  7449. * @static
  7450. */
  7451. public static function getHttpMethodParameterOverride()
  7452. {
  7453. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7454. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  7455. }
  7456. /**
  7457. * Whether the request contains a Session which was started in one of the
  7458. * previous requests.
  7459. *
  7460. * @return bool
  7461. * @static
  7462. */
  7463. public static function hasPreviousSession()
  7464. {
  7465. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7466. return \Illuminate\Http\Request::hasPreviousSession();
  7467. }
  7468. /**
  7469. * Whether the request contains a Session object.
  7470. *
  7471. * This method does not give any information about the state of the session object,
  7472. * like whether the session is started or not. It is just a way to check if this Request
  7473. * is associated with a Session instance.
  7474. *
  7475. * @return bool true when the Request contains a Session object, false otherwise
  7476. * @static
  7477. */
  7478. public static function hasSession()
  7479. {
  7480. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7481. return \Illuminate\Http\Request::hasSession();
  7482. }
  7483. /**
  7484. * Sets the Session.
  7485. *
  7486. * @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
  7487. * @static
  7488. */
  7489. public static function setSession($session)
  7490. {
  7491. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7492. return \Illuminate\Http\Request::setSession($session);
  7493. }
  7494. /**
  7495. *
  7496. *
  7497. * @internal
  7498. * @static
  7499. */
  7500. public static function setSessionFactory($factory)
  7501. {
  7502. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7503. return \Illuminate\Http\Request::setSessionFactory($factory);
  7504. }
  7505. /**
  7506. * Returns the client IP addresses.
  7507. *
  7508. * In the returned array the most trusted IP address is first, and the
  7509. * least trusted one last. The "real" client IP address is the last one,
  7510. * but this is also the least trusted one. Trusted proxies are stripped.
  7511. *
  7512. * Use this method carefully; you should use getClientIp() instead.
  7513. *
  7514. * @return array The client IP addresses
  7515. * @see getClientIp()
  7516. * @static
  7517. */
  7518. public static function getClientIps()
  7519. {
  7520. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7521. return \Illuminate\Http\Request::getClientIps();
  7522. }
  7523. /**
  7524. * Returns the client IP address.
  7525. *
  7526. * This method can read the client IP address from the "X-Forwarded-For" header
  7527. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  7528. * header value is a comma+space separated list of IP addresses, the left-most
  7529. * being the original client, and each successive proxy that passed the request
  7530. * adding the IP address where it received the request from.
  7531. *
  7532. * @return string|null The client IP address
  7533. * @see getClientIps()
  7534. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  7535. * @static
  7536. */
  7537. public static function getClientIp()
  7538. {
  7539. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7540. return \Illuminate\Http\Request::getClientIp();
  7541. }
  7542. /**
  7543. * Returns current script name.
  7544. *
  7545. * @return string
  7546. * @static
  7547. */
  7548. public static function getScriptName()
  7549. {
  7550. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7551. return \Illuminate\Http\Request::getScriptName();
  7552. }
  7553. /**
  7554. * Returns the path being requested relative to the executed script.
  7555. *
  7556. * The path info always starts with a /.
  7557. *
  7558. * Suppose this request is instantiated from /mysite on localhost:
  7559. *
  7560. * * http://localhost/mysite returns an empty string
  7561. * * http://localhost/mysite/about returns '/about'
  7562. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  7563. * * http://localhost/mysite/about?var=1 returns '/about'
  7564. *
  7565. * @return string The raw path (i.e. not urldecoded)
  7566. * @static
  7567. */
  7568. public static function getPathInfo()
  7569. {
  7570. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7571. return \Illuminate\Http\Request::getPathInfo();
  7572. }
  7573. /**
  7574. * Returns the root path from which this request is executed.
  7575. *
  7576. * Suppose that an index.php file instantiates this request object:
  7577. *
  7578. * * http://localhost/index.php returns an empty string
  7579. * * http://localhost/index.php/page returns an empty string
  7580. * * http://localhost/web/index.php returns '/web'
  7581. * * http://localhost/we%20b/index.php returns '/we%20b'
  7582. *
  7583. * @return string The raw path (i.e. not urldecoded)
  7584. * @static
  7585. */
  7586. public static function getBasePath()
  7587. {
  7588. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7589. return \Illuminate\Http\Request::getBasePath();
  7590. }
  7591. /**
  7592. * Returns the root URL from which this request is executed.
  7593. *
  7594. * The base URL never ends with a /.
  7595. *
  7596. * This is similar to getBasePath(), except that it also includes the
  7597. * script filename (e.g. index.php) if one exists.
  7598. *
  7599. * @return string The raw URL (i.e. not urldecoded)
  7600. * @static
  7601. */
  7602. public static function getBaseUrl()
  7603. {
  7604. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7605. return \Illuminate\Http\Request::getBaseUrl();
  7606. }
  7607. /**
  7608. * Gets the request's scheme.
  7609. *
  7610. * @return string
  7611. * @static
  7612. */
  7613. public static function getScheme()
  7614. {
  7615. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7616. return \Illuminate\Http\Request::getScheme();
  7617. }
  7618. /**
  7619. * Returns the port on which the request is made.
  7620. *
  7621. * This method can read the client port from the "X-Forwarded-Port" header
  7622. * when trusted proxies were set via "setTrustedProxies()".
  7623. *
  7624. * The "X-Forwarded-Port" header must contain the client port.
  7625. *
  7626. * @return int|string can be a string if fetched from the server bag
  7627. * @static
  7628. */
  7629. public static function getPort()
  7630. {
  7631. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7632. return \Illuminate\Http\Request::getPort();
  7633. }
  7634. /**
  7635. * Returns the user.
  7636. *
  7637. * @return string|null
  7638. * @static
  7639. */
  7640. public static function getUser()
  7641. {
  7642. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7643. return \Illuminate\Http\Request::getUser();
  7644. }
  7645. /**
  7646. * Returns the password.
  7647. *
  7648. * @return string|null
  7649. * @static
  7650. */
  7651. public static function getPassword()
  7652. {
  7653. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7654. return \Illuminate\Http\Request::getPassword();
  7655. }
  7656. /**
  7657. * Gets the user info.
  7658. *
  7659. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  7660. * @static
  7661. */
  7662. public static function getUserInfo()
  7663. {
  7664. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7665. return \Illuminate\Http\Request::getUserInfo();
  7666. }
  7667. /**
  7668. * Returns the HTTP host being requested.
  7669. *
  7670. * The port name will be appended to the host if it's non-standard.
  7671. *
  7672. * @return string
  7673. * @static
  7674. */
  7675. public static function getHttpHost()
  7676. {
  7677. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7678. return \Illuminate\Http\Request::getHttpHost();
  7679. }
  7680. /**
  7681. * Returns the requested URI (path and query string).
  7682. *
  7683. * @return string The raw URI (i.e. not URI decoded)
  7684. * @static
  7685. */
  7686. public static function getRequestUri()
  7687. {
  7688. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7689. return \Illuminate\Http\Request::getRequestUri();
  7690. }
  7691. /**
  7692. * Gets the scheme and HTTP host.
  7693. *
  7694. * If the URL was called with basic authentication, the user
  7695. * and the password are not added to the generated string.
  7696. *
  7697. * @return string The scheme and HTTP host
  7698. * @static
  7699. */
  7700. public static function getSchemeAndHttpHost()
  7701. {
  7702. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7703. return \Illuminate\Http\Request::getSchemeAndHttpHost();
  7704. }
  7705. /**
  7706. * Generates a normalized URI (URL) for the Request.
  7707. *
  7708. * @return string A normalized URI (URL) for the Request
  7709. * @see getQueryString()
  7710. * @static
  7711. */
  7712. public static function getUri()
  7713. {
  7714. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7715. return \Illuminate\Http\Request::getUri();
  7716. }
  7717. /**
  7718. * Generates a normalized URI for the given path.
  7719. *
  7720. * @param string $path A path to use instead of the current one
  7721. * @return string The normalized URI for the path
  7722. * @static
  7723. */
  7724. public static function getUriForPath($path)
  7725. {
  7726. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7727. return \Illuminate\Http\Request::getUriForPath($path);
  7728. }
  7729. /**
  7730. * Returns the path as relative reference from the current Request path.
  7731. *
  7732. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  7733. * Both paths must be absolute and not contain relative parts.
  7734. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  7735. * Furthermore, they can be used to reduce the link size in documents.
  7736. *
  7737. * Example target paths, given a base path of "/a/b/c/d":
  7738. * - "/a/b/c/d" -> ""
  7739. * - "/a/b/c/" -> "./"
  7740. * - "/a/b/" -> "../"
  7741. * - "/a/b/c/other" -> "other"
  7742. * - "/a/x/y" -> "../../x/y"
  7743. *
  7744. * @param string $path The target path
  7745. * @return string The relative target path
  7746. * @static
  7747. */
  7748. public static function getRelativeUriForPath($path)
  7749. {
  7750. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7751. return \Illuminate\Http\Request::getRelativeUriForPath($path);
  7752. }
  7753. /**
  7754. * Generates the normalized query string for the Request.
  7755. *
  7756. * It builds a normalized query string, where keys/value pairs are alphabetized
  7757. * and have consistent escaping.
  7758. *
  7759. * @return string|null A normalized query string for the Request
  7760. * @static
  7761. */
  7762. public static function getQueryString()
  7763. {
  7764. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7765. return \Illuminate\Http\Request::getQueryString();
  7766. }
  7767. /**
  7768. * Checks whether the request is secure or not.
  7769. *
  7770. * This method can read the client protocol from the "X-Forwarded-Proto" header
  7771. * when trusted proxies were set via "setTrustedProxies()".
  7772. *
  7773. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  7774. *
  7775. * @return bool
  7776. * @static
  7777. */
  7778. public static function isSecure()
  7779. {
  7780. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7781. return \Illuminate\Http\Request::isSecure();
  7782. }
  7783. /**
  7784. * Returns the host name.
  7785. *
  7786. * This method can read the client host name from the "X-Forwarded-Host" header
  7787. * when trusted proxies were set via "setTrustedProxies()".
  7788. *
  7789. * The "X-Forwarded-Host" header must contain the client host name.
  7790. *
  7791. * @return string
  7792. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  7793. * @static
  7794. */
  7795. public static function getHost()
  7796. {
  7797. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7798. return \Illuminate\Http\Request::getHost();
  7799. }
  7800. /**
  7801. * Sets the request method.
  7802. *
  7803. * @param string $method
  7804. * @static
  7805. */
  7806. public static function setMethod($method)
  7807. {
  7808. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7809. return \Illuminate\Http\Request::setMethod($method);
  7810. }
  7811. /**
  7812. * Gets the request "intended" method.
  7813. *
  7814. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  7815. * then it is used to determine the "real" intended HTTP method.
  7816. *
  7817. * The _method request parameter can also be used to determine the HTTP method,
  7818. * but only if enableHttpMethodParameterOverride() has been called.
  7819. *
  7820. * The method is always an uppercased string.
  7821. *
  7822. * @return string The request method
  7823. * @see getRealMethod()
  7824. * @static
  7825. */
  7826. public static function getMethod()
  7827. {
  7828. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7829. return \Illuminate\Http\Request::getMethod();
  7830. }
  7831. /**
  7832. * Gets the "real" request method.
  7833. *
  7834. * @return string The request method
  7835. * @see getMethod()
  7836. * @static
  7837. */
  7838. public static function getRealMethod()
  7839. {
  7840. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7841. return \Illuminate\Http\Request::getRealMethod();
  7842. }
  7843. /**
  7844. * Gets the mime type associated with the format.
  7845. *
  7846. * @param string $format The format
  7847. * @return string|null The associated mime type (null if not found)
  7848. * @static
  7849. */
  7850. public static function getMimeType($format)
  7851. {
  7852. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7853. return \Illuminate\Http\Request::getMimeType($format);
  7854. }
  7855. /**
  7856. * Gets the mime types associated with the format.
  7857. *
  7858. * @param string $format The format
  7859. * @return array The associated mime types
  7860. * @static
  7861. */
  7862. public static function getMimeTypes($format)
  7863. {
  7864. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7865. return \Illuminate\Http\Request::getMimeTypes($format);
  7866. }
  7867. /**
  7868. * Gets the format associated with the mime type.
  7869. *
  7870. * @param string $mimeType The associated mime type
  7871. * @return string|null The format (null if not found)
  7872. * @static
  7873. */
  7874. public static function getFormat($mimeType)
  7875. {
  7876. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7877. return \Illuminate\Http\Request::getFormat($mimeType);
  7878. }
  7879. /**
  7880. * Associates a format with mime types.
  7881. *
  7882. * @param string $format The format
  7883. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  7884. * @static
  7885. */
  7886. public static function setFormat($format, $mimeTypes)
  7887. {
  7888. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7889. return \Illuminate\Http\Request::setFormat($format, $mimeTypes);
  7890. }
  7891. /**
  7892. * Gets the request format.
  7893. *
  7894. * Here is the process to determine the format:
  7895. *
  7896. * * format defined by the user (with setRequestFormat())
  7897. * * _format request attribute
  7898. * * $default
  7899. *
  7900. * @param string|null $default The default format
  7901. * @return string The request format
  7902. * @static
  7903. */
  7904. public static function getRequestFormat($default = 'html')
  7905. {
  7906. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7907. return \Illuminate\Http\Request::getRequestFormat($default);
  7908. }
  7909. /**
  7910. * Sets the request format.
  7911. *
  7912. * @param string $format The request format
  7913. * @static
  7914. */
  7915. public static function setRequestFormat($format)
  7916. {
  7917. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7918. return \Illuminate\Http\Request::setRequestFormat($format);
  7919. }
  7920. /**
  7921. * Gets the format associated with the request.
  7922. *
  7923. * @return string|null The format (null if no content type is present)
  7924. * @static
  7925. */
  7926. public static function getContentType()
  7927. {
  7928. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7929. return \Illuminate\Http\Request::getContentType();
  7930. }
  7931. /**
  7932. * Sets the default locale.
  7933. *
  7934. * @param string $locale
  7935. * @static
  7936. */
  7937. public static function setDefaultLocale($locale)
  7938. {
  7939. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7940. return \Illuminate\Http\Request::setDefaultLocale($locale);
  7941. }
  7942. /**
  7943. * Get the default locale.
  7944. *
  7945. * @return string
  7946. * @static
  7947. */
  7948. public static function getDefaultLocale()
  7949. {
  7950. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7951. return \Illuminate\Http\Request::getDefaultLocale();
  7952. }
  7953. /**
  7954. * Sets the locale.
  7955. *
  7956. * @param string $locale
  7957. * @static
  7958. */
  7959. public static function setLocale($locale)
  7960. {
  7961. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7962. return \Illuminate\Http\Request::setLocale($locale);
  7963. }
  7964. /**
  7965. * Get the locale.
  7966. *
  7967. * @return string
  7968. * @static
  7969. */
  7970. public static function getLocale()
  7971. {
  7972. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7973. return \Illuminate\Http\Request::getLocale();
  7974. }
  7975. /**
  7976. * Checks if the request method is of specified type.
  7977. *
  7978. * @param string $method Uppercase request method (GET, POST etc)
  7979. * @return bool
  7980. * @static
  7981. */
  7982. public static function isMethod($method)
  7983. {
  7984. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7985. return \Illuminate\Http\Request::isMethod($method);
  7986. }
  7987. /**
  7988. * Checks whether or not the method is safe.
  7989. *
  7990. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  7991. * @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default.
  7992. * @return bool
  7993. * @static
  7994. */
  7995. public static function isMethodSafe()
  7996. {
  7997. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7998. return \Illuminate\Http\Request::isMethodSafe();
  7999. }
  8000. /**
  8001. * Checks whether or not the method is idempotent.
  8002. *
  8003. * @return bool
  8004. * @static
  8005. */
  8006. public static function isMethodIdempotent()
  8007. {
  8008. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8009. return \Illuminate\Http\Request::isMethodIdempotent();
  8010. }
  8011. /**
  8012. * Checks whether the method is cacheable or not.
  8013. *
  8014. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  8015. * @return bool True for GET and HEAD, false otherwise
  8016. * @static
  8017. */
  8018. public static function isMethodCacheable()
  8019. {
  8020. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8021. return \Illuminate\Http\Request::isMethodCacheable();
  8022. }
  8023. /**
  8024. * Returns the protocol version.
  8025. *
  8026. * If the application is behind a proxy, the protocol version used in the
  8027. * requests between the client and the proxy and between the proxy and the
  8028. * server might be different. This returns the former (from the "Via" header)
  8029. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  8030. * the latter (from the "SERVER_PROTOCOL" server parameter).
  8031. *
  8032. * @return string
  8033. * @static
  8034. */
  8035. public static function getProtocolVersion()
  8036. {
  8037. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8038. return \Illuminate\Http\Request::getProtocolVersion();
  8039. }
  8040. /**
  8041. * Returns the request body content.
  8042. *
  8043. * @param bool $asResource If true, a resource will be returned
  8044. * @return string|resource The request body content or a resource to read the body stream
  8045. * @throws \LogicException
  8046. * @static
  8047. */
  8048. public static function getContent($asResource = false)
  8049. {
  8050. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8051. return \Illuminate\Http\Request::getContent($asResource);
  8052. }
  8053. /**
  8054. * Gets the Etags.
  8055. *
  8056. * @return array The entity tags
  8057. * @static
  8058. */
  8059. public static function getETags()
  8060. {
  8061. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8062. return \Illuminate\Http\Request::getETags();
  8063. }
  8064. /**
  8065. *
  8066. *
  8067. * @return bool
  8068. * @static
  8069. */
  8070. public static function isNoCache()
  8071. {
  8072. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8073. return \Illuminate\Http\Request::isNoCache();
  8074. }
  8075. /**
  8076. * Returns the preferred language.
  8077. *
  8078. * @param array $locales An array of ordered available locales
  8079. * @return string|null The preferred locale
  8080. * @static
  8081. */
  8082. public static function getPreferredLanguage($locales = null)
  8083. {
  8084. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8085. return \Illuminate\Http\Request::getPreferredLanguage($locales);
  8086. }
  8087. /**
  8088. * Gets a list of languages acceptable by the client browser.
  8089. *
  8090. * @return array Languages ordered in the user browser preferences
  8091. * @static
  8092. */
  8093. public static function getLanguages()
  8094. {
  8095. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8096. return \Illuminate\Http\Request::getLanguages();
  8097. }
  8098. /**
  8099. * Gets a list of charsets acceptable by the client browser.
  8100. *
  8101. * @return array List of charsets in preferable order
  8102. * @static
  8103. */
  8104. public static function getCharsets()
  8105. {
  8106. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8107. return \Illuminate\Http\Request::getCharsets();
  8108. }
  8109. /**
  8110. * Gets a list of encodings acceptable by the client browser.
  8111. *
  8112. * @return array List of encodings in preferable order
  8113. * @static
  8114. */
  8115. public static function getEncodings()
  8116. {
  8117. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8118. return \Illuminate\Http\Request::getEncodings();
  8119. }
  8120. /**
  8121. * Gets a list of content types acceptable by the client browser.
  8122. *
  8123. * @return array List of content types in preferable order
  8124. * @static
  8125. */
  8126. public static function getAcceptableContentTypes()
  8127. {
  8128. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8129. return \Illuminate\Http\Request::getAcceptableContentTypes();
  8130. }
  8131. /**
  8132. * Returns true if the request is a XMLHttpRequest.
  8133. *
  8134. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  8135. * It is known to work with common JavaScript frameworks:
  8136. *
  8137. * @see http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  8138. * @return bool true if the request is an XMLHttpRequest, false otherwise
  8139. * @static
  8140. */
  8141. public static function isXmlHttpRequest()
  8142. {
  8143. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8144. return \Illuminate\Http\Request::isXmlHttpRequest();
  8145. }
  8146. /**
  8147. * Indicates whether this request originated from a trusted proxy.
  8148. *
  8149. * This can be useful to determine whether or not to trust the
  8150. * contents of a proxy-specific header.
  8151. *
  8152. * @return bool true if the request came from a trusted proxy, false otherwise
  8153. * @static
  8154. */
  8155. public static function isFromTrustedProxy()
  8156. {
  8157. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8158. return \Illuminate\Http\Request::isFromTrustedProxy();
  8159. }
  8160. /**
  8161. * Determine if the given content types match.
  8162. *
  8163. * @param string $actual
  8164. * @param string $type
  8165. * @return bool
  8166. * @static
  8167. */
  8168. public static function matchesType($actual, $type)
  8169. {
  8170. return \Illuminate\Http\Request::matchesType($actual, $type);
  8171. }
  8172. /**
  8173. * Determine if the request is sending JSON.
  8174. *
  8175. * @return bool
  8176. * @static
  8177. */
  8178. public static function isJson()
  8179. {
  8180. return \Illuminate\Http\Request::isJson();
  8181. }
  8182. /**
  8183. * Determine if the current request probably expects a JSON response.
  8184. *
  8185. * @return bool
  8186. * @static
  8187. */
  8188. public static function expectsJson()
  8189. {
  8190. return \Illuminate\Http\Request::expectsJson();
  8191. }
  8192. /**
  8193. * Determine if the current request is asking for JSON.
  8194. *
  8195. * @return bool
  8196. * @static
  8197. */
  8198. public static function wantsJson()
  8199. {
  8200. return \Illuminate\Http\Request::wantsJson();
  8201. }
  8202. /**
  8203. * Determines whether the current requests accepts a given content type.
  8204. *
  8205. * @param string|array $contentTypes
  8206. * @return bool
  8207. * @static
  8208. */
  8209. public static function accepts($contentTypes)
  8210. {
  8211. return \Illuminate\Http\Request::accepts($contentTypes);
  8212. }
  8213. /**
  8214. * Return the most suitable content type from the given array based on content negotiation.
  8215. *
  8216. * @param string|array $contentTypes
  8217. * @return string|null
  8218. * @static
  8219. */
  8220. public static function prefers($contentTypes)
  8221. {
  8222. return \Illuminate\Http\Request::prefers($contentTypes);
  8223. }
  8224. /**
  8225. * Determine if the current request accepts any content type.
  8226. *
  8227. * @return bool
  8228. * @static
  8229. */
  8230. public static function acceptsAnyContentType()
  8231. {
  8232. return \Illuminate\Http\Request::acceptsAnyContentType();
  8233. }
  8234. /**
  8235. * Determines whether a request accepts JSON.
  8236. *
  8237. * @return bool
  8238. * @static
  8239. */
  8240. public static function acceptsJson()
  8241. {
  8242. return \Illuminate\Http\Request::acceptsJson();
  8243. }
  8244. /**
  8245. * Determines whether a request accepts HTML.
  8246. *
  8247. * @return bool
  8248. * @static
  8249. */
  8250. public static function acceptsHtml()
  8251. {
  8252. return \Illuminate\Http\Request::acceptsHtml();
  8253. }
  8254. /**
  8255. * Get the data format expected in the response.
  8256. *
  8257. * @param string $default
  8258. * @return string
  8259. * @static
  8260. */
  8261. public static function format($default = 'html')
  8262. {
  8263. return \Illuminate\Http\Request::format($default);
  8264. }
  8265. /**
  8266. * Retrieve an old input item.
  8267. *
  8268. * @param string $key
  8269. * @param string|array|null $default
  8270. * @return string|array
  8271. * @static
  8272. */
  8273. public static function old($key = null, $default = null)
  8274. {
  8275. return \Illuminate\Http\Request::old($key, $default);
  8276. }
  8277. /**
  8278. * Flash the input for the current request to the session.
  8279. *
  8280. * @return void
  8281. * @static
  8282. */
  8283. public static function flash()
  8284. {
  8285. \Illuminate\Http\Request::flash();
  8286. }
  8287. /**
  8288. * Flash only some of the input to the session.
  8289. *
  8290. * @param array|mixed $keys
  8291. * @return void
  8292. * @static
  8293. */
  8294. public static function flashOnly($keys)
  8295. {
  8296. \Illuminate\Http\Request::flashOnly($keys);
  8297. }
  8298. /**
  8299. * Flash only some of the input to the session.
  8300. *
  8301. * @param array|mixed $keys
  8302. * @return void
  8303. * @static
  8304. */
  8305. public static function flashExcept($keys)
  8306. {
  8307. \Illuminate\Http\Request::flashExcept($keys);
  8308. }
  8309. /**
  8310. * Flush all of the old input from the session.
  8311. *
  8312. * @return void
  8313. * @static
  8314. */
  8315. public static function flush()
  8316. {
  8317. \Illuminate\Http\Request::flush();
  8318. }
  8319. /**
  8320. * Retrieve a server variable from the request.
  8321. *
  8322. * @param string $key
  8323. * @param string|array|null $default
  8324. * @return string|array
  8325. * @static
  8326. */
  8327. public static function server($key = null, $default = null)
  8328. {
  8329. return \Illuminate\Http\Request::server($key, $default);
  8330. }
  8331. /**
  8332. * Determine if a header is set on the request.
  8333. *
  8334. * @param string $key
  8335. * @return bool
  8336. * @static
  8337. */
  8338. public static function hasHeader($key)
  8339. {
  8340. return \Illuminate\Http\Request::hasHeader($key);
  8341. }
  8342. /**
  8343. * Retrieve a header from the request.
  8344. *
  8345. * @param string $key
  8346. * @param string|array|null $default
  8347. * @return string|array
  8348. * @static
  8349. */
  8350. public static function header($key = null, $default = null)
  8351. {
  8352. return \Illuminate\Http\Request::header($key, $default);
  8353. }
  8354. /**
  8355. * Get the bearer token from the request headers.
  8356. *
  8357. * @return string|null
  8358. * @static
  8359. */
  8360. public static function bearerToken()
  8361. {
  8362. return \Illuminate\Http\Request::bearerToken();
  8363. }
  8364. /**
  8365. * Determine if the request contains a given input item key.
  8366. *
  8367. * @param string|array $key
  8368. * @return bool
  8369. * @static
  8370. */
  8371. public static function exists($key)
  8372. {
  8373. return \Illuminate\Http\Request::exists($key);
  8374. }
  8375. /**
  8376. * Determine if the request contains a given input item key.
  8377. *
  8378. * @param string|array $key
  8379. * @return bool
  8380. * @static
  8381. */
  8382. public static function has($key)
  8383. {
  8384. return \Illuminate\Http\Request::has($key);
  8385. }
  8386. /**
  8387. * Determine if the request contains any of the given inputs.
  8388. *
  8389. * @param string|array $keys
  8390. * @return bool
  8391. * @static
  8392. */
  8393. public static function hasAny($keys)
  8394. {
  8395. return \Illuminate\Http\Request::hasAny($keys);
  8396. }
  8397. /**
  8398. * Determine if the request contains a non-empty value for an input item.
  8399. *
  8400. * @param string|array $key
  8401. * @return bool
  8402. * @static
  8403. */
  8404. public static function filled($key)
  8405. {
  8406. return \Illuminate\Http\Request::filled($key);
  8407. }
  8408. /**
  8409. * Determine if the request contains a non-empty value for any of the given inputs.
  8410. *
  8411. * @param string|array $keys
  8412. * @return bool
  8413. * @static
  8414. */
  8415. public static function anyFilled($keys)
  8416. {
  8417. return \Illuminate\Http\Request::anyFilled($keys);
  8418. }
  8419. /**
  8420. * Get the keys for all of the input and files.
  8421. *
  8422. * @return array
  8423. * @static
  8424. */
  8425. public static function keys()
  8426. {
  8427. return \Illuminate\Http\Request::keys();
  8428. }
  8429. /**
  8430. * Get all of the input and files for the request.
  8431. *
  8432. * @param array|mixed $keys
  8433. * @return array
  8434. * @static
  8435. */
  8436. public static function all($keys = null)
  8437. {
  8438. return \Illuminate\Http\Request::all($keys);
  8439. }
  8440. /**
  8441. * Retrieve an input item from the request.
  8442. *
  8443. * @param string|null $key
  8444. * @param string|array|null $default
  8445. * @return string|array|null
  8446. * @static
  8447. */
  8448. public static function input($key = null, $default = null)
  8449. {
  8450. return \Illuminate\Http\Request::input($key, $default);
  8451. }
  8452. /**
  8453. * Get a subset containing the provided keys with values from the input data.
  8454. *
  8455. * @param array|mixed $keys
  8456. * @return array
  8457. * @static
  8458. */
  8459. public static function only($keys)
  8460. {
  8461. return \Illuminate\Http\Request::only($keys);
  8462. }
  8463. /**
  8464. * Get all of the input except for a specified array of items.
  8465. *
  8466. * @param array|mixed $keys
  8467. * @return array
  8468. * @static
  8469. */
  8470. public static function except($keys)
  8471. {
  8472. return \Illuminate\Http\Request::except($keys);
  8473. }
  8474. /**
  8475. * Retrieve a query string item from the request.
  8476. *
  8477. * @param string $key
  8478. * @param string|array|null $default
  8479. * @return string|array
  8480. * @static
  8481. */
  8482. public static function query($key = null, $default = null)
  8483. {
  8484. return \Illuminate\Http\Request::query($key, $default);
  8485. }
  8486. /**
  8487. * Retrieve a request payload item from the request.
  8488. *
  8489. * @param string $key
  8490. * @param string|array|null $default
  8491. * @return string|array
  8492. * @static
  8493. */
  8494. public static function post($key = null, $default = null)
  8495. {
  8496. return \Illuminate\Http\Request::post($key, $default);
  8497. }
  8498. /**
  8499. * Determine if a cookie is set on the request.
  8500. *
  8501. * @param string $key
  8502. * @return bool
  8503. * @static
  8504. */
  8505. public static function hasCookie($key)
  8506. {
  8507. return \Illuminate\Http\Request::hasCookie($key);
  8508. }
  8509. /**
  8510. * Retrieve a cookie from the request.
  8511. *
  8512. * @param string $key
  8513. * @param string|array|null $default
  8514. * @return string|array
  8515. * @static
  8516. */
  8517. public static function cookie($key = null, $default = null)
  8518. {
  8519. return \Illuminate\Http\Request::cookie($key, $default);
  8520. }
  8521. /**
  8522. * Get an array of all of the files on the request.
  8523. *
  8524. * @return array
  8525. * @static
  8526. */
  8527. public static function allFiles()
  8528. {
  8529. return \Illuminate\Http\Request::allFiles();
  8530. }
  8531. /**
  8532. * Determine if the uploaded data contains a file.
  8533. *
  8534. * @param string $key
  8535. * @return bool
  8536. * @static
  8537. */
  8538. public static function hasFile($key)
  8539. {
  8540. return \Illuminate\Http\Request::hasFile($key);
  8541. }
  8542. /**
  8543. * Retrieve a file from the request.
  8544. *
  8545. * @param string $key
  8546. * @param mixed $default
  8547. * @return \Illuminate\Http\UploadedFile|array|null
  8548. * @static
  8549. */
  8550. public static function file($key = null, $default = null)
  8551. {
  8552. return \Illuminate\Http\Request::file($key, $default);
  8553. }
  8554. /**
  8555. * Register a custom macro.
  8556. *
  8557. * @param string $name
  8558. * @param object|callable $macro
  8559. * @return void
  8560. * @static
  8561. */
  8562. public static function macro($name, $macro)
  8563. {
  8564. \Illuminate\Http\Request::macro($name, $macro);
  8565. }
  8566. /**
  8567. * Mix another object into the class.
  8568. *
  8569. * @param object $mixin
  8570. * @return void
  8571. * @throws \ReflectionException
  8572. * @static
  8573. */
  8574. public static function mixin($mixin)
  8575. {
  8576. \Illuminate\Http\Request::mixin($mixin);
  8577. }
  8578. /**
  8579. * Checks if macro is registered.
  8580. *
  8581. * @param string $name
  8582. * @return bool
  8583. * @static
  8584. */
  8585. public static function hasMacro($name)
  8586. {
  8587. return \Illuminate\Http\Request::hasMacro($name);
  8588. }
  8589. /**
  8590. *
  8591. *
  8592. * @static
  8593. */
  8594. public static function validate($rules, $params = null)
  8595. {
  8596. return \Illuminate\Http\Request::validate($rules, $params);
  8597. }
  8598. /**
  8599. *
  8600. *
  8601. * @static
  8602. */
  8603. public static function hasValidSignature()
  8604. {
  8605. return \Illuminate\Http\Request::hasValidSignature();
  8606. }
  8607. }
  8608. /**
  8609. *
  8610. *
  8611. * @see \Illuminate\Contracts\Routing\ResponseFactory
  8612. */
  8613. class Response {
  8614. /**
  8615. * Return a new response from the application.
  8616. *
  8617. * @param string $content
  8618. * @param int $status
  8619. * @param array $headers
  8620. * @return \Illuminate\Http\Response
  8621. * @static
  8622. */
  8623. public static function make($content = '', $status = 200, $headers = array())
  8624. {
  8625. return \Illuminate\Routing\ResponseFactory::make($content, $status, $headers);
  8626. }
  8627. /**
  8628. * Return a new view response from the application.
  8629. *
  8630. * @param string $view
  8631. * @param array $data
  8632. * @param int $status
  8633. * @param array $headers
  8634. * @return \Illuminate\Http\Response
  8635. * @static
  8636. */
  8637. public static function view($view, $data = array(), $status = 200, $headers = array())
  8638. {
  8639. return \Illuminate\Routing\ResponseFactory::view($view, $data, $status, $headers);
  8640. }
  8641. /**
  8642. * Return a new JSON response from the application.
  8643. *
  8644. * @param mixed $data
  8645. * @param int $status
  8646. * @param array $headers
  8647. * @param int $options
  8648. * @return \Illuminate\Http\JsonResponse
  8649. * @static
  8650. */
  8651. public static function json($data = array(), $status = 200, $headers = array(), $options = 0)
  8652. {
  8653. return \Illuminate\Routing\ResponseFactory::json($data, $status, $headers, $options);
  8654. }
  8655. /**
  8656. * Return a new JSONP response from the application.
  8657. *
  8658. * @param string $callback
  8659. * @param mixed $data
  8660. * @param int $status
  8661. * @param array $headers
  8662. * @param int $options
  8663. * @return \Illuminate\Http\JsonResponse
  8664. * @static
  8665. */
  8666. public static function jsonp($callback, $data = array(), $status = 200, $headers = array(), $options = 0)
  8667. {
  8668. return \Illuminate\Routing\ResponseFactory::jsonp($callback, $data, $status, $headers, $options);
  8669. }
  8670. /**
  8671. * Return a new streamed response from the application.
  8672. *
  8673. * @param \Closure $callback
  8674. * @param int $status
  8675. * @param array $headers
  8676. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  8677. * @static
  8678. */
  8679. public static function stream($callback, $status = 200, $headers = array())
  8680. {
  8681. return \Illuminate\Routing\ResponseFactory::stream($callback, $status, $headers);
  8682. }
  8683. /**
  8684. * Return a new streamed response as a file download from the application.
  8685. *
  8686. * @param \Closure $callback
  8687. * @param string|null $name
  8688. * @param array $headers
  8689. * @param string|null $disposition
  8690. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  8691. * @static
  8692. */
  8693. public static function streamDownload($callback, $name = null, $headers = array(), $disposition = 'attachment')
  8694. {
  8695. return \Illuminate\Routing\ResponseFactory::streamDownload($callback, $name, $headers, $disposition);
  8696. }
  8697. /**
  8698. * Create a new file download response.
  8699. *
  8700. * @param \SplFileInfo|string $file
  8701. * @param string|null $name
  8702. * @param array $headers
  8703. * @param string|null $disposition
  8704. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  8705. * @static
  8706. */
  8707. public static function download($file, $name = null, $headers = array(), $disposition = 'attachment')
  8708. {
  8709. return \Illuminate\Routing\ResponseFactory::download($file, $name, $headers, $disposition);
  8710. }
  8711. /**
  8712. * Return the raw contents of a binary file.
  8713. *
  8714. * @param \SplFileInfo|string $file
  8715. * @param array $headers
  8716. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  8717. * @static
  8718. */
  8719. public static function file($file, $headers = array())
  8720. {
  8721. return \Illuminate\Routing\ResponseFactory::file($file, $headers);
  8722. }
  8723. /**
  8724. * Create a new redirect response to the given path.
  8725. *
  8726. * @param string $path
  8727. * @param int $status
  8728. * @param array $headers
  8729. * @param bool|null $secure
  8730. * @return \Illuminate\Http\RedirectResponse
  8731. * @static
  8732. */
  8733. public static function redirectTo($path, $status = 302, $headers = array(), $secure = null)
  8734. {
  8735. return \Illuminate\Routing\ResponseFactory::redirectTo($path, $status, $headers, $secure);
  8736. }
  8737. /**
  8738. * Create a new redirect response to a named route.
  8739. *
  8740. * @param string $route
  8741. * @param array $parameters
  8742. * @param int $status
  8743. * @param array $headers
  8744. * @return \Illuminate\Http\RedirectResponse
  8745. * @static
  8746. */
  8747. public static function redirectToRoute($route, $parameters = array(), $status = 302, $headers = array())
  8748. {
  8749. return \Illuminate\Routing\ResponseFactory::redirectToRoute($route, $parameters, $status, $headers);
  8750. }
  8751. /**
  8752. * Create a new redirect response to a controller action.
  8753. *
  8754. * @param string $action
  8755. * @param array $parameters
  8756. * @param int $status
  8757. * @param array $headers
  8758. * @return \Illuminate\Http\RedirectResponse
  8759. * @static
  8760. */
  8761. public static function redirectToAction($action, $parameters = array(), $status = 302, $headers = array())
  8762. {
  8763. return \Illuminate\Routing\ResponseFactory::redirectToAction($action, $parameters, $status, $headers);
  8764. }
  8765. /**
  8766. * Create a new redirect response, while putting the current URL in the session.
  8767. *
  8768. * @param string $path
  8769. * @param int $status
  8770. * @param array $headers
  8771. * @param bool|null $secure
  8772. * @return \Illuminate\Http\RedirectResponse
  8773. * @static
  8774. */
  8775. public static function redirectGuest($path, $status = 302, $headers = array(), $secure = null)
  8776. {
  8777. return \Illuminate\Routing\ResponseFactory::redirectGuest($path, $status, $headers, $secure);
  8778. }
  8779. /**
  8780. * Create a new redirect response to the previously intended location.
  8781. *
  8782. * @param string $default
  8783. * @param int $status
  8784. * @param array $headers
  8785. * @param bool|null $secure
  8786. * @return \Illuminate\Http\RedirectResponse
  8787. * @static
  8788. */
  8789. public static function redirectToIntended($default = '/', $status = 302, $headers = array(), $secure = null)
  8790. {
  8791. return \Illuminate\Routing\ResponseFactory::redirectToIntended($default, $status, $headers, $secure);
  8792. }
  8793. /**
  8794. * Register a custom macro.
  8795. *
  8796. * @param string $name
  8797. * @param object|callable $macro
  8798. * @return void
  8799. * @static
  8800. */
  8801. public static function macro($name, $macro)
  8802. {
  8803. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  8804. }
  8805. /**
  8806. * Mix another object into the class.
  8807. *
  8808. * @param object $mixin
  8809. * @return void
  8810. * @throws \ReflectionException
  8811. * @static
  8812. */
  8813. public static function mixin($mixin)
  8814. {
  8815. \Illuminate\Routing\ResponseFactory::mixin($mixin);
  8816. }
  8817. /**
  8818. * Checks if macro is registered.
  8819. *
  8820. * @param string $name
  8821. * @return bool
  8822. * @static
  8823. */
  8824. public static function hasMacro($name)
  8825. {
  8826. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  8827. }
  8828. }
  8829. /**
  8830. *
  8831. *
  8832. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  8833. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  8834. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  8835. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  8836. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  8837. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  8838. * @method static \Illuminate\Routing\RouteRegistrar namespace(string $value)
  8839. * @see \Illuminate\Routing\Router
  8840. */
  8841. class Route {
  8842. /**
  8843. * Register a new GET route with the router.
  8844. *
  8845. * @param string $uri
  8846. * @param \Closure|array|string|null $action
  8847. * @return \Illuminate\Routing\Route
  8848. * @static
  8849. */
  8850. public static function get($uri, $action = null)
  8851. {
  8852. return \Illuminate\Routing\Router::get($uri, $action);
  8853. }
  8854. /**
  8855. * Register a new POST route with the router.
  8856. *
  8857. * @param string $uri
  8858. * @param \Closure|array|string|null $action
  8859. * @return \Illuminate\Routing\Route
  8860. * @static
  8861. */
  8862. public static function post($uri, $action = null)
  8863. {
  8864. return \Illuminate\Routing\Router::post($uri, $action);
  8865. }
  8866. /**
  8867. * Register a new PUT route with the router.
  8868. *
  8869. * @param string $uri
  8870. * @param \Closure|array|string|null $action
  8871. * @return \Illuminate\Routing\Route
  8872. * @static
  8873. */
  8874. public static function put($uri, $action = null)
  8875. {
  8876. return \Illuminate\Routing\Router::put($uri, $action);
  8877. }
  8878. /**
  8879. * Register a new PATCH route with the router.
  8880. *
  8881. * @param string $uri
  8882. * @param \Closure|array|string|null $action
  8883. * @return \Illuminate\Routing\Route
  8884. * @static
  8885. */
  8886. public static function patch($uri, $action = null)
  8887. {
  8888. return \Illuminate\Routing\Router::patch($uri, $action);
  8889. }
  8890. /**
  8891. * Register a new DELETE route with the router.
  8892. *
  8893. * @param string $uri
  8894. * @param \Closure|array|string|null $action
  8895. * @return \Illuminate\Routing\Route
  8896. * @static
  8897. */
  8898. public static function delete($uri, $action = null)
  8899. {
  8900. return \Illuminate\Routing\Router::delete($uri, $action);
  8901. }
  8902. /**
  8903. * Register a new OPTIONS route with the router.
  8904. *
  8905. * @param string $uri
  8906. * @param \Closure|array|string|null $action
  8907. * @return \Illuminate\Routing\Route
  8908. * @static
  8909. */
  8910. public static function options($uri, $action = null)
  8911. {
  8912. return \Illuminate\Routing\Router::options($uri, $action);
  8913. }
  8914. /**
  8915. * Register a new route responding to all verbs.
  8916. *
  8917. * @param string $uri
  8918. * @param \Closure|array|string|null $action
  8919. * @return \Illuminate\Routing\Route
  8920. * @static
  8921. */
  8922. public static function any($uri, $action = null)
  8923. {
  8924. return \Illuminate\Routing\Router::any($uri, $action);
  8925. }
  8926. /**
  8927. * Register a new Fallback route with the router.
  8928. *
  8929. * @param \Closure|array|string|null $action
  8930. * @return \Illuminate\Routing\Route
  8931. * @static
  8932. */
  8933. public static function fallback($action)
  8934. {
  8935. return \Illuminate\Routing\Router::fallback($action);
  8936. }
  8937. /**
  8938. * Create a redirect from one URI to another.
  8939. *
  8940. * @param string $uri
  8941. * @param string $destination
  8942. * @param int $status
  8943. * @return \Illuminate\Routing\Route
  8944. * @static
  8945. */
  8946. public static function redirect($uri, $destination, $status = 301)
  8947. {
  8948. return \Illuminate\Routing\Router::redirect($uri, $destination, $status);
  8949. }
  8950. /**
  8951. * Register a new route that returns a view.
  8952. *
  8953. * @param string $uri
  8954. * @param string $view
  8955. * @param array $data
  8956. * @return \Illuminate\Routing\Route
  8957. * @static
  8958. */
  8959. public static function view($uri, $view, $data = array())
  8960. {
  8961. return \Illuminate\Routing\Router::view($uri, $view, $data);
  8962. }
  8963. /**
  8964. * Register a new route with the given verbs.
  8965. *
  8966. * @param array|string $methods
  8967. * @param string $uri
  8968. * @param \Closure|array|string|null $action
  8969. * @return \Illuminate\Routing\Route
  8970. * @static
  8971. */
  8972. public static function match($methods, $uri, $action = null)
  8973. {
  8974. return \Illuminate\Routing\Router::match($methods, $uri, $action);
  8975. }
  8976. /**
  8977. * Register an array of resource controllers.
  8978. *
  8979. * @param array $resources
  8980. * @return void
  8981. * @static
  8982. */
  8983. public static function resources($resources)
  8984. {
  8985. \Illuminate\Routing\Router::resources($resources);
  8986. }
  8987. /**
  8988. * Route a resource to a controller.
  8989. *
  8990. * @param string $name
  8991. * @param string $controller
  8992. * @param array $options
  8993. * @return \Illuminate\Routing\PendingResourceRegistration
  8994. * @static
  8995. */
  8996. public static function resource($name, $controller, $options = array())
  8997. {
  8998. return \Illuminate\Routing\Router::resource($name, $controller, $options);
  8999. }
  9000. /**
  9001. * Register an array of API resource controllers.
  9002. *
  9003. * @param array $resources
  9004. * @return void
  9005. * @static
  9006. */
  9007. public static function apiResources($resources)
  9008. {
  9009. \Illuminate\Routing\Router::apiResources($resources);
  9010. }
  9011. /**
  9012. * Route an API resource to a controller.
  9013. *
  9014. * @param string $name
  9015. * @param string $controller
  9016. * @param array $options
  9017. * @return \Illuminate\Routing\PendingResourceRegistration
  9018. * @static
  9019. */
  9020. public static function apiResource($name, $controller, $options = array())
  9021. {
  9022. return \Illuminate\Routing\Router::apiResource($name, $controller, $options);
  9023. }
  9024. /**
  9025. * Create a route group with shared attributes.
  9026. *
  9027. * @param array $attributes
  9028. * @param \Closure|string $routes
  9029. * @return void
  9030. * @static
  9031. */
  9032. public static function group($attributes, $routes)
  9033. {
  9034. \Illuminate\Routing\Router::group($attributes, $routes);
  9035. }
  9036. /**
  9037. * Merge the given array with the last group stack.
  9038. *
  9039. * @param array $new
  9040. * @return array
  9041. * @static
  9042. */
  9043. public static function mergeWithLastGroup($new)
  9044. {
  9045. return \Illuminate\Routing\Router::mergeWithLastGroup($new);
  9046. }
  9047. /**
  9048. * Get the prefix from the last group on the stack.
  9049. *
  9050. * @return string
  9051. * @static
  9052. */
  9053. public static function getLastGroupPrefix()
  9054. {
  9055. return \Illuminate\Routing\Router::getLastGroupPrefix();
  9056. }
  9057. /**
  9058. * Add a route to the underlying route collection.
  9059. *
  9060. * @param array|string $methods
  9061. * @param string $uri
  9062. * @param \Closure|array|string|null $action
  9063. * @return \Illuminate\Routing\Route
  9064. * @static
  9065. */
  9066. public static function addRoute($methods, $uri, $action)
  9067. {
  9068. return \Illuminate\Routing\Router::addRoute($methods, $uri, $action);
  9069. }
  9070. /**
  9071. * Return the response returned by the given route.
  9072. *
  9073. * @param string $name
  9074. * @return mixed
  9075. * @static
  9076. */
  9077. public static function respondWithRoute($name)
  9078. {
  9079. return \Illuminate\Routing\Router::respondWithRoute($name);
  9080. }
  9081. /**
  9082. * Dispatch the request to the application.
  9083. *
  9084. * @param \Illuminate\Http\Request $request
  9085. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9086. * @static
  9087. */
  9088. public static function dispatch($request)
  9089. {
  9090. return \Illuminate\Routing\Router::dispatch($request);
  9091. }
  9092. /**
  9093. * Dispatch the request to a route and return the response.
  9094. *
  9095. * @param \Illuminate\Http\Request $request
  9096. * @return mixed
  9097. * @static
  9098. */
  9099. public static function dispatchToRoute($request)
  9100. {
  9101. return \Illuminate\Routing\Router::dispatchToRoute($request);
  9102. }
  9103. /**
  9104. * Gather the middleware for the given route with resolved class names.
  9105. *
  9106. * @param \Illuminate\Routing\Route $route
  9107. * @return array
  9108. * @static
  9109. */
  9110. public static function gatherRouteMiddleware($route)
  9111. {
  9112. return \Illuminate\Routing\Router::gatherRouteMiddleware($route);
  9113. }
  9114. /**
  9115. * Create a response instance from the given value.
  9116. *
  9117. * @param \Symfony\Component\HttpFoundation\Request $request
  9118. * @param mixed $response
  9119. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9120. * @static
  9121. */
  9122. public static function prepareResponse($request, $response)
  9123. {
  9124. return \Illuminate\Routing\Router::prepareResponse($request, $response);
  9125. }
  9126. /**
  9127. * Static version of prepareResponse.
  9128. *
  9129. * @param \Symfony\Component\HttpFoundation\Request $request
  9130. * @param mixed $response
  9131. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9132. * @static
  9133. */
  9134. public static function toResponse($request, $response)
  9135. {
  9136. return \Illuminate\Routing\Router::toResponse($request, $response);
  9137. }
  9138. /**
  9139. * Substitute the route bindings onto the route.
  9140. *
  9141. * @param \Illuminate\Routing\Route $route
  9142. * @return \Illuminate\Routing\Route
  9143. * @static
  9144. */
  9145. public static function substituteBindings($route)
  9146. {
  9147. return \Illuminate\Routing\Router::substituteBindings($route);
  9148. }
  9149. /**
  9150. * Substitute the implicit Eloquent model bindings for the route.
  9151. *
  9152. * @param \Illuminate\Routing\Route $route
  9153. * @return void
  9154. * @static
  9155. */
  9156. public static function substituteImplicitBindings($route)
  9157. {
  9158. \Illuminate\Routing\Router::substituteImplicitBindings($route);
  9159. }
  9160. /**
  9161. * Register a route matched event listener.
  9162. *
  9163. * @param string|callable $callback
  9164. * @return void
  9165. * @static
  9166. */
  9167. public static function matched($callback)
  9168. {
  9169. \Illuminate\Routing\Router::matched($callback);
  9170. }
  9171. /**
  9172. * Get all of the defined middleware short-hand names.
  9173. *
  9174. * @return array
  9175. * @static
  9176. */
  9177. public static function getMiddleware()
  9178. {
  9179. return \Illuminate\Routing\Router::getMiddleware();
  9180. }
  9181. /**
  9182. * Register a short-hand name for a middleware.
  9183. *
  9184. * @param string $name
  9185. * @param string $class
  9186. * @return $this
  9187. * @static
  9188. */
  9189. public static function aliasMiddleware($name, $class)
  9190. {
  9191. return \Illuminate\Routing\Router::aliasMiddleware($name, $class);
  9192. }
  9193. /**
  9194. * Check if a middlewareGroup with the given name exists.
  9195. *
  9196. * @param string $name
  9197. * @return bool
  9198. * @static
  9199. */
  9200. public static function hasMiddlewareGroup($name)
  9201. {
  9202. return \Illuminate\Routing\Router::hasMiddlewareGroup($name);
  9203. }
  9204. /**
  9205. * Get all of the defined middleware groups.
  9206. *
  9207. * @return array
  9208. * @static
  9209. */
  9210. public static function getMiddlewareGroups()
  9211. {
  9212. return \Illuminate\Routing\Router::getMiddlewareGroups();
  9213. }
  9214. /**
  9215. * Register a group of middleware.
  9216. *
  9217. * @param string $name
  9218. * @param array $middleware
  9219. * @return $this
  9220. * @static
  9221. */
  9222. public static function middlewareGroup($name, $middleware)
  9223. {
  9224. return \Illuminate\Routing\Router::middlewareGroup($name, $middleware);
  9225. }
  9226. /**
  9227. * Add a middleware to the beginning of a middleware group.
  9228. *
  9229. * If the middleware is already in the group, it will not be added again.
  9230. *
  9231. * @param string $group
  9232. * @param string $middleware
  9233. * @return $this
  9234. * @static
  9235. */
  9236. public static function prependMiddlewareToGroup($group, $middleware)
  9237. {
  9238. return \Illuminate\Routing\Router::prependMiddlewareToGroup($group, $middleware);
  9239. }
  9240. /**
  9241. * Add a middleware to the end of a middleware group.
  9242. *
  9243. * If the middleware is already in the group, it will not be added again.
  9244. *
  9245. * @param string $group
  9246. * @param string $middleware
  9247. * @return $this
  9248. * @static
  9249. */
  9250. public static function pushMiddlewareToGroup($group, $middleware)
  9251. {
  9252. return \Illuminate\Routing\Router::pushMiddlewareToGroup($group, $middleware);
  9253. }
  9254. /**
  9255. * Add a new route parameter binder.
  9256. *
  9257. * @param string $key
  9258. * @param string|callable $binder
  9259. * @return void
  9260. * @static
  9261. */
  9262. public static function bind($key, $binder)
  9263. {
  9264. \Illuminate\Routing\Router::bind($key, $binder);
  9265. }
  9266. /**
  9267. * Register a model binder for a wildcard.
  9268. *
  9269. * @param string $key
  9270. * @param string $class
  9271. * @param \Closure|null $callback
  9272. * @return void
  9273. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  9274. * @static
  9275. */
  9276. public static function model($key, $class, $callback = null)
  9277. {
  9278. \Illuminate\Routing\Router::model($key, $class, $callback);
  9279. }
  9280. /**
  9281. * Get the binding callback for a given binding.
  9282. *
  9283. * @param string $key
  9284. * @return \Closure|null
  9285. * @static
  9286. */
  9287. public static function getBindingCallback($key)
  9288. {
  9289. return \Illuminate\Routing\Router::getBindingCallback($key);
  9290. }
  9291. /**
  9292. * Get the global "where" patterns.
  9293. *
  9294. * @return array
  9295. * @static
  9296. */
  9297. public static function getPatterns()
  9298. {
  9299. return \Illuminate\Routing\Router::getPatterns();
  9300. }
  9301. /**
  9302. * Set a global where pattern on all routes.
  9303. *
  9304. * @param string $key
  9305. * @param string $pattern
  9306. * @return void
  9307. * @static
  9308. */
  9309. public static function pattern($key, $pattern)
  9310. {
  9311. \Illuminate\Routing\Router::pattern($key, $pattern);
  9312. }
  9313. /**
  9314. * Set a group of global where patterns on all routes.
  9315. *
  9316. * @param array $patterns
  9317. * @return void
  9318. * @static
  9319. */
  9320. public static function patterns($patterns)
  9321. {
  9322. \Illuminate\Routing\Router::patterns($patterns);
  9323. }
  9324. /**
  9325. * Determine if the router currently has a group stack.
  9326. *
  9327. * @return bool
  9328. * @static
  9329. */
  9330. public static function hasGroupStack()
  9331. {
  9332. return \Illuminate\Routing\Router::hasGroupStack();
  9333. }
  9334. /**
  9335. * Get the current group stack for the router.
  9336. *
  9337. * @return array
  9338. * @static
  9339. */
  9340. public static function getGroupStack()
  9341. {
  9342. return \Illuminate\Routing\Router::getGroupStack();
  9343. }
  9344. /**
  9345. * Get a route parameter for the current route.
  9346. *
  9347. * @param string $key
  9348. * @param string $default
  9349. * @return mixed
  9350. * @static
  9351. */
  9352. public static function input($key, $default = null)
  9353. {
  9354. return \Illuminate\Routing\Router::input($key, $default);
  9355. }
  9356. /**
  9357. * Get the request currently being dispatched.
  9358. *
  9359. * @return \Illuminate\Http\Request
  9360. * @static
  9361. */
  9362. public static function getCurrentRequest()
  9363. {
  9364. return \Illuminate\Routing\Router::getCurrentRequest();
  9365. }
  9366. /**
  9367. * Get the currently dispatched route instance.
  9368. *
  9369. * @return \Illuminate\Routing\Route
  9370. * @static
  9371. */
  9372. public static function getCurrentRoute()
  9373. {
  9374. return \Illuminate\Routing\Router::getCurrentRoute();
  9375. }
  9376. /**
  9377. * Get the currently dispatched route instance.
  9378. *
  9379. * @return \Illuminate\Routing\Route
  9380. * @static
  9381. */
  9382. public static function current()
  9383. {
  9384. return \Illuminate\Routing\Router::current();
  9385. }
  9386. /**
  9387. * Check if a route with the given name exists.
  9388. *
  9389. * @param string $name
  9390. * @return bool
  9391. * @static
  9392. */
  9393. public static function has($name)
  9394. {
  9395. return \Illuminate\Routing\Router::has($name);
  9396. }
  9397. /**
  9398. * Get the current route name.
  9399. *
  9400. * @return string|null
  9401. * @static
  9402. */
  9403. public static function currentRouteName()
  9404. {
  9405. return \Illuminate\Routing\Router::currentRouteName();
  9406. }
  9407. /**
  9408. * Alias for the "currentRouteNamed" method.
  9409. *
  9410. * @param mixed $patterns
  9411. * @return bool
  9412. * @static
  9413. */
  9414. public static function is($patterns = null)
  9415. {
  9416. return \Illuminate\Routing\Router::is($patterns);
  9417. }
  9418. /**
  9419. * Determine if the current route matches a pattern.
  9420. *
  9421. * @param mixed $patterns
  9422. * @return bool
  9423. * @static
  9424. */
  9425. public static function currentRouteNamed($patterns = null)
  9426. {
  9427. return \Illuminate\Routing\Router::currentRouteNamed($patterns);
  9428. }
  9429. /**
  9430. * Get the current route action.
  9431. *
  9432. * @return string|null
  9433. * @static
  9434. */
  9435. public static function currentRouteAction()
  9436. {
  9437. return \Illuminate\Routing\Router::currentRouteAction();
  9438. }
  9439. /**
  9440. * Alias for the "currentRouteUses" method.
  9441. *
  9442. * @param array $patterns
  9443. * @return bool
  9444. * @static
  9445. */
  9446. public static function uses($patterns = null)
  9447. {
  9448. return \Illuminate\Routing\Router::uses($patterns);
  9449. }
  9450. /**
  9451. * Determine if the current route action matches a given action.
  9452. *
  9453. * @param string $action
  9454. * @return bool
  9455. * @static
  9456. */
  9457. public static function currentRouteUses($action)
  9458. {
  9459. return \Illuminate\Routing\Router::currentRouteUses($action);
  9460. }
  9461. /**
  9462. * Register the typical authentication routes for an application.
  9463. *
  9464. * @return void
  9465. * @static
  9466. */
  9467. public static function auth()
  9468. {
  9469. \Illuminate\Routing\Router::auth();
  9470. }
  9471. /**
  9472. * Set the unmapped global resource parameters to singular.
  9473. *
  9474. * @param bool $singular
  9475. * @return void
  9476. * @static
  9477. */
  9478. public static function singularResourceParameters($singular = true)
  9479. {
  9480. \Illuminate\Routing\Router::singularResourceParameters($singular);
  9481. }
  9482. /**
  9483. * Set the global resource parameter mapping.
  9484. *
  9485. * @param array $parameters
  9486. * @return void
  9487. * @static
  9488. */
  9489. public static function resourceParameters($parameters = array())
  9490. {
  9491. \Illuminate\Routing\Router::resourceParameters($parameters);
  9492. }
  9493. /**
  9494. * Get or set the verbs used in the resource URIs.
  9495. *
  9496. * @param array $verbs
  9497. * @return array|null
  9498. * @static
  9499. */
  9500. public static function resourceVerbs($verbs = array())
  9501. {
  9502. return \Illuminate\Routing\Router::resourceVerbs($verbs);
  9503. }
  9504. /**
  9505. * Get the underlying route collection.
  9506. *
  9507. * @return \Illuminate\Routing\RouteCollection
  9508. * @static
  9509. */
  9510. public static function getRoutes()
  9511. {
  9512. return \Illuminate\Routing\Router::getRoutes();
  9513. }
  9514. /**
  9515. * Set the route collection instance.
  9516. *
  9517. * @param \Illuminate\Routing\RouteCollection $routes
  9518. * @return void
  9519. * @static
  9520. */
  9521. public static function setRoutes($routes)
  9522. {
  9523. \Illuminate\Routing\Router::setRoutes($routes);
  9524. }
  9525. /**
  9526. * Register a custom macro.
  9527. *
  9528. * @param string $name
  9529. * @param object|callable $macro
  9530. * @return void
  9531. * @static
  9532. */
  9533. public static function macro($name, $macro)
  9534. {
  9535. \Illuminate\Routing\Router::macro($name, $macro);
  9536. }
  9537. /**
  9538. * Mix another object into the class.
  9539. *
  9540. * @param object $mixin
  9541. * @return void
  9542. * @throws \ReflectionException
  9543. * @static
  9544. */
  9545. public static function mixin($mixin)
  9546. {
  9547. \Illuminate\Routing\Router::mixin($mixin);
  9548. }
  9549. /**
  9550. * Checks if macro is registered.
  9551. *
  9552. * @param string $name
  9553. * @return bool
  9554. * @static
  9555. */
  9556. public static function hasMacro($name)
  9557. {
  9558. return \Illuminate\Routing\Router::hasMacro($name);
  9559. }
  9560. /**
  9561. * Dynamically handle calls to the class.
  9562. *
  9563. * @param string $method
  9564. * @param array $parameters
  9565. * @return mixed
  9566. * @throws \BadMethodCallException
  9567. * @static
  9568. */
  9569. public static function macroCall($method, $parameters)
  9570. {
  9571. return \Illuminate\Routing\Router::macroCall($method, $parameters);
  9572. }
  9573. }
  9574. /**
  9575. *
  9576. *
  9577. * @see \Illuminate\Database\Schema\Builder
  9578. */
  9579. class Schema {
  9580. /**
  9581. * Determine if the given table exists.
  9582. *
  9583. * @param string $table
  9584. * @return bool
  9585. * @static
  9586. */
  9587. public static function hasTable($table)
  9588. {
  9589. return \Illuminate\Database\Schema\MySqlBuilder::hasTable($table);
  9590. }
  9591. /**
  9592. * Get the column listing for a given table.
  9593. *
  9594. * @param string $table
  9595. * @return array
  9596. * @static
  9597. */
  9598. public static function getColumnListing($table)
  9599. {
  9600. return \Illuminate\Database\Schema\MySqlBuilder::getColumnListing($table);
  9601. }
  9602. /**
  9603. * Drop all tables from the database.
  9604. *
  9605. * @return void
  9606. * @static
  9607. */
  9608. public static function dropAllTables()
  9609. {
  9610. \Illuminate\Database\Schema\MySqlBuilder::dropAllTables();
  9611. }
  9612. /**
  9613. * Drop all views from the database.
  9614. *
  9615. * @return void
  9616. * @static
  9617. */
  9618. public static function dropAllViews()
  9619. {
  9620. \Illuminate\Database\Schema\MySqlBuilder::dropAllViews();
  9621. }
  9622. /**
  9623. * Set the default string length for migrations.
  9624. *
  9625. * @param int $length
  9626. * @return void
  9627. * @static
  9628. */
  9629. public static function defaultStringLength($length)
  9630. {
  9631. //Method inherited from \Illuminate\Database\Schema\Builder
  9632. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  9633. }
  9634. /**
  9635. * Determine if the given table has a given column.
  9636. *
  9637. * @param string $table
  9638. * @param string $column
  9639. * @return bool
  9640. * @static
  9641. */
  9642. public static function hasColumn($table, $column)
  9643. {
  9644. //Method inherited from \Illuminate\Database\Schema\Builder
  9645. return \Illuminate\Database\Schema\MySqlBuilder::hasColumn($table, $column);
  9646. }
  9647. /**
  9648. * Determine if the given table has given columns.
  9649. *
  9650. * @param string $table
  9651. * @param array $columns
  9652. * @return bool
  9653. * @static
  9654. */
  9655. public static function hasColumns($table, $columns)
  9656. {
  9657. //Method inherited from \Illuminate\Database\Schema\Builder
  9658. return \Illuminate\Database\Schema\MySqlBuilder::hasColumns($table, $columns);
  9659. }
  9660. /**
  9661. * Get the data type for the given column name.
  9662. *
  9663. * @param string $table
  9664. * @param string $column
  9665. * @return string
  9666. * @static
  9667. */
  9668. public static function getColumnType($table, $column)
  9669. {
  9670. //Method inherited from \Illuminate\Database\Schema\Builder
  9671. return \Illuminate\Database\Schema\MySqlBuilder::getColumnType($table, $column);
  9672. }
  9673. /**
  9674. * Modify a table on the schema.
  9675. *
  9676. * @param string $table
  9677. * @param \Closure $callback
  9678. * @return void
  9679. * @static
  9680. */
  9681. public static function table($table, $callback)
  9682. {
  9683. //Method inherited from \Illuminate\Database\Schema\Builder
  9684. \Illuminate\Database\Schema\MySqlBuilder::table($table, $callback);
  9685. }
  9686. /**
  9687. * Create a new table on the schema.
  9688. *
  9689. * @param string $table
  9690. * @param \Closure $callback
  9691. * @return void
  9692. * @static
  9693. */
  9694. public static function create($table, $callback)
  9695. {
  9696. //Method inherited from \Illuminate\Database\Schema\Builder
  9697. \Illuminate\Database\Schema\MySqlBuilder::create($table, $callback);
  9698. }
  9699. /**
  9700. * Drop a table from the schema.
  9701. *
  9702. * @param string $table
  9703. * @return void
  9704. * @static
  9705. */
  9706. public static function drop($table)
  9707. {
  9708. //Method inherited from \Illuminate\Database\Schema\Builder
  9709. \Illuminate\Database\Schema\MySqlBuilder::drop($table);
  9710. }
  9711. /**
  9712. * Drop a table from the schema if it exists.
  9713. *
  9714. * @param string $table
  9715. * @return void
  9716. * @static
  9717. */
  9718. public static function dropIfExists($table)
  9719. {
  9720. //Method inherited from \Illuminate\Database\Schema\Builder
  9721. \Illuminate\Database\Schema\MySqlBuilder::dropIfExists($table);
  9722. }
  9723. /**
  9724. * Rename a table on the schema.
  9725. *
  9726. * @param string $from
  9727. * @param string $to
  9728. * @return void
  9729. * @static
  9730. */
  9731. public static function rename($from, $to)
  9732. {
  9733. //Method inherited from \Illuminate\Database\Schema\Builder
  9734. \Illuminate\Database\Schema\MySqlBuilder::rename($from, $to);
  9735. }
  9736. /**
  9737. * Enable foreign key constraints.
  9738. *
  9739. * @return bool
  9740. * @static
  9741. */
  9742. public static function enableForeignKeyConstraints()
  9743. {
  9744. //Method inherited from \Illuminate\Database\Schema\Builder
  9745. return \Illuminate\Database\Schema\MySqlBuilder::enableForeignKeyConstraints();
  9746. }
  9747. /**
  9748. * Disable foreign key constraints.
  9749. *
  9750. * @return bool
  9751. * @static
  9752. */
  9753. public static function disableForeignKeyConstraints()
  9754. {
  9755. //Method inherited from \Illuminate\Database\Schema\Builder
  9756. return \Illuminate\Database\Schema\MySqlBuilder::disableForeignKeyConstraints();
  9757. }
  9758. /**
  9759. * Get the database connection instance.
  9760. *
  9761. * @return \Illuminate\Database\Connection
  9762. * @static
  9763. */
  9764. public static function getConnection()
  9765. {
  9766. //Method inherited from \Illuminate\Database\Schema\Builder
  9767. return \Illuminate\Database\Schema\MySqlBuilder::getConnection();
  9768. }
  9769. /**
  9770. * Set the database connection instance.
  9771. *
  9772. * @param \Illuminate\Database\Connection $connection
  9773. * @return $this
  9774. * @static
  9775. */
  9776. public static function setConnection($connection)
  9777. {
  9778. //Method inherited from \Illuminate\Database\Schema\Builder
  9779. return \Illuminate\Database\Schema\MySqlBuilder::setConnection($connection);
  9780. }
  9781. /**
  9782. * Set the Schema Blueprint resolver callback.
  9783. *
  9784. * @param \Closure $resolver
  9785. * @return void
  9786. * @static
  9787. */
  9788. public static function blueprintResolver($resolver)
  9789. {
  9790. //Method inherited from \Illuminate\Database\Schema\Builder
  9791. \Illuminate\Database\Schema\MySqlBuilder::blueprintResolver($resolver);
  9792. }
  9793. }
  9794. /**
  9795. *
  9796. *
  9797. * @see \Illuminate\Session\SessionManager
  9798. * @see \Illuminate\Session\Store
  9799. */
  9800. class Session {
  9801. /**
  9802. * Get the session configuration.
  9803. *
  9804. * @return array
  9805. * @static
  9806. */
  9807. public static function getSessionConfig()
  9808. {
  9809. return \Illuminate\Session\SessionManager::getSessionConfig();
  9810. }
  9811. /**
  9812. * Get the default session driver name.
  9813. *
  9814. * @return string
  9815. * @static
  9816. */
  9817. public static function getDefaultDriver()
  9818. {
  9819. return \Illuminate\Session\SessionManager::getDefaultDriver();
  9820. }
  9821. /**
  9822. * Set the default session driver name.
  9823. *
  9824. * @param string $name
  9825. * @return void
  9826. * @static
  9827. */
  9828. public static function setDefaultDriver($name)
  9829. {
  9830. \Illuminate\Session\SessionManager::setDefaultDriver($name);
  9831. }
  9832. /**
  9833. * Get a driver instance.
  9834. *
  9835. * @param string $driver
  9836. * @return mixed
  9837. * @throws \InvalidArgumentException
  9838. * @static
  9839. */
  9840. public static function driver($driver = null)
  9841. {
  9842. //Method inherited from \Illuminate\Support\Manager
  9843. return \Illuminate\Session\SessionManager::driver($driver);
  9844. }
  9845. /**
  9846. * Register a custom driver creator Closure.
  9847. *
  9848. * @param string $driver
  9849. * @param \Closure $callback
  9850. * @return $this
  9851. * @static
  9852. */
  9853. public static function extend($driver, $callback)
  9854. {
  9855. //Method inherited from \Illuminate\Support\Manager
  9856. return \Illuminate\Session\SessionManager::extend($driver, $callback);
  9857. }
  9858. /**
  9859. * Get all of the created "drivers".
  9860. *
  9861. * @return array
  9862. * @static
  9863. */
  9864. public static function getDrivers()
  9865. {
  9866. //Method inherited from \Illuminate\Support\Manager
  9867. return \Illuminate\Session\SessionManager::getDrivers();
  9868. }
  9869. /**
  9870. * Start the session, reading the data from a handler.
  9871. *
  9872. * @return bool
  9873. * @static
  9874. */
  9875. public static function start()
  9876. {
  9877. return \Illuminate\Session\Store::start();
  9878. }
  9879. /**
  9880. * Save the session data to storage.
  9881. *
  9882. * @return bool
  9883. * @static
  9884. */
  9885. public static function save()
  9886. {
  9887. return \Illuminate\Session\Store::save();
  9888. }
  9889. /**
  9890. * Age the flash data for the session.
  9891. *
  9892. * @return void
  9893. * @static
  9894. */
  9895. public static function ageFlashData()
  9896. {
  9897. \Illuminate\Session\Store::ageFlashData();
  9898. }
  9899. /**
  9900. * Get all of the session data.
  9901. *
  9902. * @return array
  9903. * @static
  9904. */
  9905. public static function all()
  9906. {
  9907. return \Illuminate\Session\Store::all();
  9908. }
  9909. /**
  9910. * Checks if a key exists.
  9911. *
  9912. * @param string|array $key
  9913. * @return bool
  9914. * @static
  9915. */
  9916. public static function exists($key)
  9917. {
  9918. return \Illuminate\Session\Store::exists($key);
  9919. }
  9920. /**
  9921. * Checks if a key is present and not null.
  9922. *
  9923. * @param string|array $key
  9924. * @return bool
  9925. * @static
  9926. */
  9927. public static function has($key)
  9928. {
  9929. return \Illuminate\Session\Store::has($key);
  9930. }
  9931. /**
  9932. * Get an item from the session.
  9933. *
  9934. * @param string $key
  9935. * @param mixed $default
  9936. * @return mixed
  9937. * @static
  9938. */
  9939. public static function get($key, $default = null)
  9940. {
  9941. return \Illuminate\Session\Store::get($key, $default);
  9942. }
  9943. /**
  9944. * Get the value of a given key and then forget it.
  9945. *
  9946. * @param string $key
  9947. * @param string $default
  9948. * @return mixed
  9949. * @static
  9950. */
  9951. public static function pull($key, $default = null)
  9952. {
  9953. return \Illuminate\Session\Store::pull($key, $default);
  9954. }
  9955. /**
  9956. * Determine if the session contains old input.
  9957. *
  9958. * @param string $key
  9959. * @return bool
  9960. * @static
  9961. */
  9962. public static function hasOldInput($key = null)
  9963. {
  9964. return \Illuminate\Session\Store::hasOldInput($key);
  9965. }
  9966. /**
  9967. * Get the requested item from the flashed input array.
  9968. *
  9969. * @param string $key
  9970. * @param mixed $default
  9971. * @return mixed
  9972. * @static
  9973. */
  9974. public static function getOldInput($key = null, $default = null)
  9975. {
  9976. return \Illuminate\Session\Store::getOldInput($key, $default);
  9977. }
  9978. /**
  9979. * Replace the given session attributes entirely.
  9980. *
  9981. * @param array $attributes
  9982. * @return void
  9983. * @static
  9984. */
  9985. public static function replace($attributes)
  9986. {
  9987. \Illuminate\Session\Store::replace($attributes);
  9988. }
  9989. /**
  9990. * Put a key / value pair or array of key / value pairs in the session.
  9991. *
  9992. * @param string|array $key
  9993. * @param mixed $value
  9994. * @return void
  9995. * @static
  9996. */
  9997. public static function put($key, $value = null)
  9998. {
  9999. \Illuminate\Session\Store::put($key, $value);
  10000. }
  10001. /**
  10002. * Get an item from the session, or store the default value.
  10003. *
  10004. * @param string $key
  10005. * @param \Closure $callback
  10006. * @return mixed
  10007. * @static
  10008. */
  10009. public static function remember($key, $callback)
  10010. {
  10011. return \Illuminate\Session\Store::remember($key, $callback);
  10012. }
  10013. /**
  10014. * Push a value onto a session array.
  10015. *
  10016. * @param string $key
  10017. * @param mixed $value
  10018. * @return void
  10019. * @static
  10020. */
  10021. public static function push($key, $value)
  10022. {
  10023. \Illuminate\Session\Store::push($key, $value);
  10024. }
  10025. /**
  10026. * Increment the value of an item in the session.
  10027. *
  10028. * @param string $key
  10029. * @param int $amount
  10030. * @return mixed
  10031. * @static
  10032. */
  10033. public static function increment($key, $amount = 1)
  10034. {
  10035. return \Illuminate\Session\Store::increment($key, $amount);
  10036. }
  10037. /**
  10038. * Decrement the value of an item in the session.
  10039. *
  10040. * @param string $key
  10041. * @param int $amount
  10042. * @return int
  10043. * @static
  10044. */
  10045. public static function decrement($key, $amount = 1)
  10046. {
  10047. return \Illuminate\Session\Store::decrement($key, $amount);
  10048. }
  10049. /**
  10050. * Flash a key / value pair to the session.
  10051. *
  10052. * @param string $key
  10053. * @param mixed $value
  10054. * @return void
  10055. * @static
  10056. */
  10057. public static function flash($key, $value = true)
  10058. {
  10059. \Illuminate\Session\Store::flash($key, $value);
  10060. }
  10061. /**
  10062. * Flash a key / value pair to the session for immediate use.
  10063. *
  10064. * @param string $key
  10065. * @param mixed $value
  10066. * @return void
  10067. * @static
  10068. */
  10069. public static function now($key, $value)
  10070. {
  10071. \Illuminate\Session\Store::now($key, $value);
  10072. }
  10073. /**
  10074. * Reflash all of the session flash data.
  10075. *
  10076. * @return void
  10077. * @static
  10078. */
  10079. public static function reflash()
  10080. {
  10081. \Illuminate\Session\Store::reflash();
  10082. }
  10083. /**
  10084. * Reflash a subset of the current flash data.
  10085. *
  10086. * @param array|mixed $keys
  10087. * @return void
  10088. * @static
  10089. */
  10090. public static function keep($keys = null)
  10091. {
  10092. \Illuminate\Session\Store::keep($keys);
  10093. }
  10094. /**
  10095. * Flash an input array to the session.
  10096. *
  10097. * @param array $value
  10098. * @return void
  10099. * @static
  10100. */
  10101. public static function flashInput($value)
  10102. {
  10103. \Illuminate\Session\Store::flashInput($value);
  10104. }
  10105. /**
  10106. * Remove an item from the session, returning its value.
  10107. *
  10108. * @param string $key
  10109. * @return mixed
  10110. * @static
  10111. */
  10112. public static function remove($key)
  10113. {
  10114. return \Illuminate\Session\Store::remove($key);
  10115. }
  10116. /**
  10117. * Remove one or many items from the session.
  10118. *
  10119. * @param string|array $keys
  10120. * @return void
  10121. * @static
  10122. */
  10123. public static function forget($keys)
  10124. {
  10125. \Illuminate\Session\Store::forget($keys);
  10126. }
  10127. /**
  10128. * Remove all of the items from the session.
  10129. *
  10130. * @return void
  10131. * @static
  10132. */
  10133. public static function flush()
  10134. {
  10135. \Illuminate\Session\Store::flush();
  10136. }
  10137. /**
  10138. * Flush the session data and regenerate the ID.
  10139. *
  10140. * @return bool
  10141. * @static
  10142. */
  10143. public static function invalidate()
  10144. {
  10145. return \Illuminate\Session\Store::invalidate();
  10146. }
  10147. /**
  10148. * Generate a new session identifier.
  10149. *
  10150. * @param bool $destroy
  10151. * @return bool
  10152. * @static
  10153. */
  10154. public static function regenerate($destroy = false)
  10155. {
  10156. return \Illuminate\Session\Store::regenerate($destroy);
  10157. }
  10158. /**
  10159. * Generate a new session ID for the session.
  10160. *
  10161. * @param bool $destroy
  10162. * @return bool
  10163. * @static
  10164. */
  10165. public static function migrate($destroy = false)
  10166. {
  10167. return \Illuminate\Session\Store::migrate($destroy);
  10168. }
  10169. /**
  10170. * Determine if the session has been started.
  10171. *
  10172. * @return bool
  10173. * @static
  10174. */
  10175. public static function isStarted()
  10176. {
  10177. return \Illuminate\Session\Store::isStarted();
  10178. }
  10179. /**
  10180. * Get the name of the session.
  10181. *
  10182. * @return string
  10183. * @static
  10184. */
  10185. public static function getName()
  10186. {
  10187. return \Illuminate\Session\Store::getName();
  10188. }
  10189. /**
  10190. * Set the name of the session.
  10191. *
  10192. * @param string $name
  10193. * @return void
  10194. * @static
  10195. */
  10196. public static function setName($name)
  10197. {
  10198. \Illuminate\Session\Store::setName($name);
  10199. }
  10200. /**
  10201. * Get the current session ID.
  10202. *
  10203. * @return string
  10204. * @static
  10205. */
  10206. public static function getId()
  10207. {
  10208. return \Illuminate\Session\Store::getId();
  10209. }
  10210. /**
  10211. * Set the session ID.
  10212. *
  10213. * @param string $id
  10214. * @return void
  10215. * @static
  10216. */
  10217. public static function setId($id)
  10218. {
  10219. \Illuminate\Session\Store::setId($id);
  10220. }
  10221. /**
  10222. * Determine if this is a valid session ID.
  10223. *
  10224. * @param string $id
  10225. * @return bool
  10226. * @static
  10227. */
  10228. public static function isValidId($id)
  10229. {
  10230. return \Illuminate\Session\Store::isValidId($id);
  10231. }
  10232. /**
  10233. * Set the existence of the session on the handler if applicable.
  10234. *
  10235. * @param bool $value
  10236. * @return void
  10237. * @static
  10238. */
  10239. public static function setExists($value)
  10240. {
  10241. \Illuminate\Session\Store::setExists($value);
  10242. }
  10243. /**
  10244. * Get the CSRF token value.
  10245. *
  10246. * @return string
  10247. * @static
  10248. */
  10249. public static function token()
  10250. {
  10251. return \Illuminate\Session\Store::token();
  10252. }
  10253. /**
  10254. * Regenerate the CSRF token value.
  10255. *
  10256. * @return void
  10257. * @static
  10258. */
  10259. public static function regenerateToken()
  10260. {
  10261. \Illuminate\Session\Store::regenerateToken();
  10262. }
  10263. /**
  10264. * Get the previous URL from the session.
  10265. *
  10266. * @return string|null
  10267. * @static
  10268. */
  10269. public static function previousUrl()
  10270. {
  10271. return \Illuminate\Session\Store::previousUrl();
  10272. }
  10273. /**
  10274. * Set the "previous" URL in the session.
  10275. *
  10276. * @param string $url
  10277. * @return void
  10278. * @static
  10279. */
  10280. public static function setPreviousUrl($url)
  10281. {
  10282. \Illuminate\Session\Store::setPreviousUrl($url);
  10283. }
  10284. /**
  10285. * Get the underlying session handler implementation.
  10286. *
  10287. * @return \SessionHandlerInterface
  10288. * @static
  10289. */
  10290. public static function getHandler()
  10291. {
  10292. return \Illuminate\Session\Store::getHandler();
  10293. }
  10294. /**
  10295. * Determine if the session handler needs a request.
  10296. *
  10297. * @return bool
  10298. * @static
  10299. */
  10300. public static function handlerNeedsRequest()
  10301. {
  10302. return \Illuminate\Session\Store::handlerNeedsRequest();
  10303. }
  10304. /**
  10305. * Set the request on the handler instance.
  10306. *
  10307. * @param \Illuminate\Http\Request $request
  10308. * @return void
  10309. * @static
  10310. */
  10311. public static function setRequestOnHandler($request)
  10312. {
  10313. \Illuminate\Session\Store::setRequestOnHandler($request);
  10314. }
  10315. }
  10316. /**
  10317. *
  10318. *
  10319. * @see \Illuminate\Filesystem\FilesystemManager
  10320. */
  10321. class Storage {
  10322. /**
  10323. * Get a filesystem instance.
  10324. *
  10325. * @param string $name
  10326. * @return \Illuminate\Filesystem\FilesystemAdapter
  10327. * @static
  10328. */
  10329. public static function drive($name = null)
  10330. {
  10331. return \Illuminate\Filesystem\FilesystemManager::drive($name);
  10332. }
  10333. /**
  10334. * Get a filesystem instance.
  10335. *
  10336. * @param string $name
  10337. * @return \Illuminate\Filesystem\FilesystemAdapter
  10338. * @static
  10339. */
  10340. public static function disk($name = null)
  10341. {
  10342. return \Illuminate\Filesystem\FilesystemManager::disk($name);
  10343. }
  10344. /**
  10345. * Get a default cloud filesystem instance.
  10346. *
  10347. * @return \Illuminate\Filesystem\FilesystemAdapter
  10348. * @static
  10349. */
  10350. public static function cloud()
  10351. {
  10352. return \Illuminate\Filesystem\FilesystemManager::cloud();
  10353. }
  10354. /**
  10355. * Create an instance of the local driver.
  10356. *
  10357. * @param array $config
  10358. * @return \Illuminate\Filesystem\FilesystemAdapter
  10359. * @static
  10360. */
  10361. public static function createLocalDriver($config)
  10362. {
  10363. return \Illuminate\Filesystem\FilesystemManager::createLocalDriver($config);
  10364. }
  10365. /**
  10366. * Create an instance of the ftp driver.
  10367. *
  10368. * @param array $config
  10369. * @return \Illuminate\Filesystem\FilesystemAdapter
  10370. * @static
  10371. */
  10372. public static function createFtpDriver($config)
  10373. {
  10374. return \Illuminate\Filesystem\FilesystemManager::createFtpDriver($config);
  10375. }
  10376. /**
  10377. * Create an instance of the sftp driver.
  10378. *
  10379. * @param array $config
  10380. * @return \Illuminate\Filesystem\FilesystemAdapter
  10381. * @static
  10382. */
  10383. public static function createSftpDriver($config)
  10384. {
  10385. return \Illuminate\Filesystem\FilesystemManager::createSftpDriver($config);
  10386. }
  10387. /**
  10388. * Create an instance of the Amazon S3 driver.
  10389. *
  10390. * @param array $config
  10391. * @return \Illuminate\Contracts\Filesystem\Cloud
  10392. * @static
  10393. */
  10394. public static function createS3Driver($config)
  10395. {
  10396. return \Illuminate\Filesystem\FilesystemManager::createS3Driver($config);
  10397. }
  10398. /**
  10399. * Create an instance of the Rackspace driver.
  10400. *
  10401. * @param array $config
  10402. * @return \Illuminate\Contracts\Filesystem\Cloud
  10403. * @static
  10404. */
  10405. public static function createRackspaceDriver($config)
  10406. {
  10407. return \Illuminate\Filesystem\FilesystemManager::createRackspaceDriver($config);
  10408. }
  10409. /**
  10410. * Set the given disk instance.
  10411. *
  10412. * @param string $name
  10413. * @param mixed $disk
  10414. * @return $this
  10415. * @static
  10416. */
  10417. public static function set($name, $disk)
  10418. {
  10419. return \Illuminate\Filesystem\FilesystemManager::set($name, $disk);
  10420. }
  10421. /**
  10422. * Get the default driver name.
  10423. *
  10424. * @return string
  10425. * @static
  10426. */
  10427. public static function getDefaultDriver()
  10428. {
  10429. return \Illuminate\Filesystem\FilesystemManager::getDefaultDriver();
  10430. }
  10431. /**
  10432. * Get the default cloud driver name.
  10433. *
  10434. * @return string
  10435. * @static
  10436. */
  10437. public static function getDefaultCloudDriver()
  10438. {
  10439. return \Illuminate\Filesystem\FilesystemManager::getDefaultCloudDriver();
  10440. }
  10441. /**
  10442. * Unset the given disk instances.
  10443. *
  10444. * @param array|string $disk
  10445. * @return $this
  10446. * @static
  10447. */
  10448. public static function forgetDisk($disk)
  10449. {
  10450. return \Illuminate\Filesystem\FilesystemManager::forgetDisk($disk);
  10451. }
  10452. /**
  10453. * Register a custom driver creator Closure.
  10454. *
  10455. * @param string $driver
  10456. * @param \Closure $callback
  10457. * @return $this
  10458. * @static
  10459. */
  10460. public static function extend($driver, $callback)
  10461. {
  10462. return \Illuminate\Filesystem\FilesystemManager::extend($driver, $callback);
  10463. }
  10464. /**
  10465. * Assert that the given file exists.
  10466. *
  10467. * @param string $path
  10468. * @return void
  10469. * @static
  10470. */
  10471. public static function assertExists($path)
  10472. {
  10473. \Illuminate\Filesystem\FilesystemAdapter::assertExists($path);
  10474. }
  10475. /**
  10476. * Assert that the given file does not exist.
  10477. *
  10478. * @param string $path
  10479. * @return void
  10480. * @static
  10481. */
  10482. public static function assertMissing($path)
  10483. {
  10484. \Illuminate\Filesystem\FilesystemAdapter::assertMissing($path);
  10485. }
  10486. /**
  10487. * Determine if a file exists.
  10488. *
  10489. * @param string $path
  10490. * @return bool
  10491. * @static
  10492. */
  10493. public static function exists($path)
  10494. {
  10495. return \Illuminate\Filesystem\FilesystemAdapter::exists($path);
  10496. }
  10497. /**
  10498. * Get the full path for the file at the given "short" path.
  10499. *
  10500. * @param string $path
  10501. * @return string
  10502. * @static
  10503. */
  10504. public static function path($path)
  10505. {
  10506. return \Illuminate\Filesystem\FilesystemAdapter::path($path);
  10507. }
  10508. /**
  10509. * Get the contents of a file.
  10510. *
  10511. * @param string $path
  10512. * @return string
  10513. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  10514. * @static
  10515. */
  10516. public static function get($path)
  10517. {
  10518. return \Illuminate\Filesystem\FilesystemAdapter::get($path);
  10519. }
  10520. /**
  10521. * Create a streamed response for a given file.
  10522. *
  10523. * @param string $path
  10524. * @param string|null $name
  10525. * @param array|null $headers
  10526. * @param string|null $disposition
  10527. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  10528. * @static
  10529. */
  10530. public static function response($path, $name = null, $headers = array(), $disposition = 'inline')
  10531. {
  10532. return \Illuminate\Filesystem\FilesystemAdapter::response($path, $name, $headers, $disposition);
  10533. }
  10534. /**
  10535. * Create a streamed download response for a given file.
  10536. *
  10537. * @param string $path
  10538. * @param string|null $name
  10539. * @param array|null $headers
  10540. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  10541. * @static
  10542. */
  10543. public static function download($path, $name = null, $headers = array())
  10544. {
  10545. return \Illuminate\Filesystem\FilesystemAdapter::download($path, $name, $headers);
  10546. }
  10547. /**
  10548. * Write the contents of a file.
  10549. *
  10550. * @param string $path
  10551. * @param string|resource $contents
  10552. * @param mixed $options
  10553. * @return bool
  10554. * @static
  10555. */
  10556. public static function put($path, $contents, $options = array())
  10557. {
  10558. return \Illuminate\Filesystem\FilesystemAdapter::put($path, $contents, $options);
  10559. }
  10560. /**
  10561. * Store the uploaded file on the disk.
  10562. *
  10563. * @param string $path
  10564. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  10565. * @param array $options
  10566. * @return string|false
  10567. * @static
  10568. */
  10569. public static function putFile($path, $file, $options = array())
  10570. {
  10571. return \Illuminate\Filesystem\FilesystemAdapter::putFile($path, $file, $options);
  10572. }
  10573. /**
  10574. * Store the uploaded file on the disk with a given name.
  10575. *
  10576. * @param string $path
  10577. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  10578. * @param string $name
  10579. * @param array $options
  10580. * @return string|false
  10581. * @static
  10582. */
  10583. public static function putFileAs($path, $file, $name, $options = array())
  10584. {
  10585. return \Illuminate\Filesystem\FilesystemAdapter::putFileAs($path, $file, $name, $options);
  10586. }
  10587. /**
  10588. * Get the visibility for the given path.
  10589. *
  10590. * @param string $path
  10591. * @return string
  10592. * @static
  10593. */
  10594. public static function getVisibility($path)
  10595. {
  10596. return \Illuminate\Filesystem\FilesystemAdapter::getVisibility($path);
  10597. }
  10598. /**
  10599. * Set the visibility for the given path.
  10600. *
  10601. * @param string $path
  10602. * @param string $visibility
  10603. * @return void
  10604. * @static
  10605. */
  10606. public static function setVisibility($path, $visibility)
  10607. {
  10608. \Illuminate\Filesystem\FilesystemAdapter::setVisibility($path, $visibility);
  10609. }
  10610. /**
  10611. * Prepend to a file.
  10612. *
  10613. * @param string $path
  10614. * @param string $data
  10615. * @param string $separator
  10616. * @return int
  10617. * @static
  10618. */
  10619. public static function prepend($path, $data, $separator = '')
  10620. {
  10621. return \Illuminate\Filesystem\FilesystemAdapter::prepend($path, $data, $separator);
  10622. }
  10623. /**
  10624. * Append to a file.
  10625. *
  10626. * @param string $path
  10627. * @param string $data
  10628. * @param string $separator
  10629. * @return int
  10630. * @static
  10631. */
  10632. public static function append($path, $data, $separator = '')
  10633. {
  10634. return \Illuminate\Filesystem\FilesystemAdapter::append($path, $data, $separator);
  10635. }
  10636. /**
  10637. * Delete the file at a given path.
  10638. *
  10639. * @param string|array $paths
  10640. * @return bool
  10641. * @static
  10642. */
  10643. public static function delete($paths)
  10644. {
  10645. return \Illuminate\Filesystem\FilesystemAdapter::delete($paths);
  10646. }
  10647. /**
  10648. * Copy a file to a new location.
  10649. *
  10650. * @param string $from
  10651. * @param string $to
  10652. * @return bool
  10653. * @static
  10654. */
  10655. public static function copy($from, $to)
  10656. {
  10657. return \Illuminate\Filesystem\FilesystemAdapter::copy($from, $to);
  10658. }
  10659. /**
  10660. * Move a file to a new location.
  10661. *
  10662. * @param string $from
  10663. * @param string $to
  10664. * @return bool
  10665. * @static
  10666. */
  10667. public static function move($from, $to)
  10668. {
  10669. return \Illuminate\Filesystem\FilesystemAdapter::move($from, $to);
  10670. }
  10671. /**
  10672. * Get the file size of a given file.
  10673. *
  10674. * @param string $path
  10675. * @return int
  10676. * @static
  10677. */
  10678. public static function size($path)
  10679. {
  10680. return \Illuminate\Filesystem\FilesystemAdapter::size($path);
  10681. }
  10682. /**
  10683. * Get the mime-type of a given file.
  10684. *
  10685. * @param string $path
  10686. * @return string|false
  10687. * @static
  10688. */
  10689. public static function mimeType($path)
  10690. {
  10691. return \Illuminate\Filesystem\FilesystemAdapter::mimeType($path);
  10692. }
  10693. /**
  10694. * Get the file's last modification time.
  10695. *
  10696. * @param string $path
  10697. * @return int
  10698. * @static
  10699. */
  10700. public static function lastModified($path)
  10701. {
  10702. return \Illuminate\Filesystem\FilesystemAdapter::lastModified($path);
  10703. }
  10704. /**
  10705. * Get the URL for the file at the given path.
  10706. *
  10707. * @param string $path
  10708. * @return string
  10709. * @static
  10710. */
  10711. public static function url($path)
  10712. {
  10713. return \Illuminate\Filesystem\FilesystemAdapter::url($path);
  10714. }
  10715. /**
  10716. * Get a temporary URL for the file at the given path.
  10717. *
  10718. * @param string $path
  10719. * @param \DateTimeInterface $expiration
  10720. * @param array $options
  10721. * @return string
  10722. * @static
  10723. */
  10724. public static function temporaryUrl($path, $expiration, $options = array())
  10725. {
  10726. return \Illuminate\Filesystem\FilesystemAdapter::temporaryUrl($path, $expiration, $options);
  10727. }
  10728. /**
  10729. * Get a temporary URL for the file at the given path.
  10730. *
  10731. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  10732. * @param string $path
  10733. * @param \DateTimeInterface $expiration
  10734. * @param array $options
  10735. * @return string
  10736. * @static
  10737. */
  10738. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  10739. {
  10740. return \Illuminate\Filesystem\FilesystemAdapter::getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  10741. }
  10742. /**
  10743. * Get a temporary URL for the file at the given path.
  10744. *
  10745. * @param \League\Flysystem\Rackspace\RackspaceAdapter $adapter
  10746. * @param string $path
  10747. * @param \DateTimeInterface $expiration
  10748. * @param array $options
  10749. * @return string
  10750. * @static
  10751. */
  10752. public static function getRackspaceTemporaryUrl($adapter, $path, $expiration, $options)
  10753. {
  10754. return \Illuminate\Filesystem\FilesystemAdapter::getRackspaceTemporaryUrl($adapter, $path, $expiration, $options);
  10755. }
  10756. /**
  10757. * Get an array of all files in a directory.
  10758. *
  10759. * @param string|null $directory
  10760. * @param bool $recursive
  10761. * @return array
  10762. * @static
  10763. */
  10764. public static function files($directory = null, $recursive = false)
  10765. {
  10766. return \Illuminate\Filesystem\FilesystemAdapter::files($directory, $recursive);
  10767. }
  10768. /**
  10769. * Get all of the files from the given directory (recursive).
  10770. *
  10771. * @param string|null $directory
  10772. * @return array
  10773. * @static
  10774. */
  10775. public static function allFiles($directory = null)
  10776. {
  10777. return \Illuminate\Filesystem\FilesystemAdapter::allFiles($directory);
  10778. }
  10779. /**
  10780. * Get all of the directories within a given directory.
  10781. *
  10782. * @param string|null $directory
  10783. * @param bool $recursive
  10784. * @return array
  10785. * @static
  10786. */
  10787. public static function directories($directory = null, $recursive = false)
  10788. {
  10789. return \Illuminate\Filesystem\FilesystemAdapter::directories($directory, $recursive);
  10790. }
  10791. /**
  10792. * Get all (recursive) of the directories within a given directory.
  10793. *
  10794. * @param string|null $directory
  10795. * @return array
  10796. * @static
  10797. */
  10798. public static function allDirectories($directory = null)
  10799. {
  10800. return \Illuminate\Filesystem\FilesystemAdapter::allDirectories($directory);
  10801. }
  10802. /**
  10803. * Create a directory.
  10804. *
  10805. * @param string $path
  10806. * @return bool
  10807. * @static
  10808. */
  10809. public static function makeDirectory($path)
  10810. {
  10811. return \Illuminate\Filesystem\FilesystemAdapter::makeDirectory($path);
  10812. }
  10813. /**
  10814. * Recursively delete a directory.
  10815. *
  10816. * @param string $directory
  10817. * @return bool
  10818. * @static
  10819. */
  10820. public static function deleteDirectory($directory)
  10821. {
  10822. return \Illuminate\Filesystem\FilesystemAdapter::deleteDirectory($directory);
  10823. }
  10824. /**
  10825. * Flush the Flysystem cache.
  10826. *
  10827. * @return void
  10828. * @static
  10829. */
  10830. public static function flushCache()
  10831. {
  10832. \Illuminate\Filesystem\FilesystemAdapter::flushCache();
  10833. }
  10834. /**
  10835. * Get the Flysystem driver.
  10836. *
  10837. * @return \League\Flysystem\FilesystemInterface
  10838. * @static
  10839. */
  10840. public static function getDriver()
  10841. {
  10842. return \Illuminate\Filesystem\FilesystemAdapter::getDriver();
  10843. }
  10844. }
  10845. /**
  10846. *
  10847. *
  10848. * @see \Illuminate\Routing\UrlGenerator
  10849. */
  10850. class URL {
  10851. /**
  10852. * Get the full URL for the current request.
  10853. *
  10854. * @return string
  10855. * @static
  10856. */
  10857. public static function full()
  10858. {
  10859. return \Illuminate\Routing\UrlGenerator::full();
  10860. }
  10861. /**
  10862. * Get the current URL for the request.
  10863. *
  10864. * @return string
  10865. * @static
  10866. */
  10867. public static function current()
  10868. {
  10869. return \Illuminate\Routing\UrlGenerator::current();
  10870. }
  10871. /**
  10872. * Get the URL for the previous request.
  10873. *
  10874. * @param mixed $fallback
  10875. * @return string
  10876. * @static
  10877. */
  10878. public static function previous($fallback = false)
  10879. {
  10880. return \Illuminate\Routing\UrlGenerator::previous($fallback);
  10881. }
  10882. /**
  10883. * Generate an absolute URL to the given path.
  10884. *
  10885. * @param string $path
  10886. * @param mixed $extra
  10887. * @param bool|null $secure
  10888. * @return string
  10889. * @static
  10890. */
  10891. public static function to($path, $extra = array(), $secure = null)
  10892. {
  10893. return \Illuminate\Routing\UrlGenerator::to($path, $extra, $secure);
  10894. }
  10895. /**
  10896. * Generate a secure, absolute URL to the given path.
  10897. *
  10898. * @param string $path
  10899. * @param array $parameters
  10900. * @return string
  10901. * @static
  10902. */
  10903. public static function secure($path, $parameters = array())
  10904. {
  10905. return \Illuminate\Routing\UrlGenerator::secure($path, $parameters);
  10906. }
  10907. /**
  10908. * Generate the URL to an application asset.
  10909. *
  10910. * @param string $path
  10911. * @param bool|null $secure
  10912. * @return string
  10913. * @static
  10914. */
  10915. public static function asset($path, $secure = null)
  10916. {
  10917. return \Illuminate\Routing\UrlGenerator::asset($path, $secure);
  10918. }
  10919. /**
  10920. * Generate the URL to a secure asset.
  10921. *
  10922. * @param string $path
  10923. * @return string
  10924. * @static
  10925. */
  10926. public static function secureAsset($path)
  10927. {
  10928. return \Illuminate\Routing\UrlGenerator::secureAsset($path);
  10929. }
  10930. /**
  10931. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  10932. *
  10933. * @param string $root
  10934. * @param string $path
  10935. * @param bool|null $secure
  10936. * @return string
  10937. * @static
  10938. */
  10939. public static function assetFrom($root, $path, $secure = null)
  10940. {
  10941. return \Illuminate\Routing\UrlGenerator::assetFrom($root, $path, $secure);
  10942. }
  10943. /**
  10944. * Get the default scheme for a raw URL.
  10945. *
  10946. * @param bool|null $secure
  10947. * @return string
  10948. * @static
  10949. */
  10950. public static function formatScheme($secure)
  10951. {
  10952. return \Illuminate\Routing\UrlGenerator::formatScheme($secure);
  10953. }
  10954. /**
  10955. * Create a signed route URL for a named route.
  10956. *
  10957. * @param string $name
  10958. * @param array $parameters
  10959. * @param \DateTimeInterface|int $expiration
  10960. * @return string
  10961. * @static
  10962. */
  10963. public static function signedRoute($name, $parameters = array(), $expiration = null)
  10964. {
  10965. return \Illuminate\Routing\UrlGenerator::signedRoute($name, $parameters, $expiration);
  10966. }
  10967. /**
  10968. * Create a temporary signed route URL for a named route.
  10969. *
  10970. * @param string $name
  10971. * @param \DateTimeInterface|int $expiration
  10972. * @param array $parameters
  10973. * @return string
  10974. * @static
  10975. */
  10976. public static function temporarySignedRoute($name, $expiration, $parameters = array())
  10977. {
  10978. return \Illuminate\Routing\UrlGenerator::temporarySignedRoute($name, $expiration, $parameters);
  10979. }
  10980. /**
  10981. * Determine if the given request has a valid signature.
  10982. *
  10983. * @param \Illuminate\Http\Request $request
  10984. * @return bool
  10985. * @static
  10986. */
  10987. public static function hasValidSignature($request)
  10988. {
  10989. return \Illuminate\Routing\UrlGenerator::hasValidSignature($request);
  10990. }
  10991. /**
  10992. * Get the URL to a named route.
  10993. *
  10994. * @param string $name
  10995. * @param mixed $parameters
  10996. * @param bool $absolute
  10997. * @return string
  10998. * @throws \InvalidArgumentException
  10999. * @static
  11000. */
  11001. public static function route($name, $parameters = array(), $absolute = true)
  11002. {
  11003. return \Illuminate\Routing\UrlGenerator::route($name, $parameters, $absolute);
  11004. }
  11005. /**
  11006. * Get the URL to a controller action.
  11007. *
  11008. * @param string $action
  11009. * @param mixed $parameters
  11010. * @param bool $absolute
  11011. * @return string
  11012. * @throws \InvalidArgumentException
  11013. * @static
  11014. */
  11015. public static function action($action, $parameters = array(), $absolute = true)
  11016. {
  11017. return \Illuminate\Routing\UrlGenerator::action($action, $parameters, $absolute);
  11018. }
  11019. /**
  11020. * Format the array of URL parameters.
  11021. *
  11022. * @param mixed|array $parameters
  11023. * @return array
  11024. * @static
  11025. */
  11026. public static function formatParameters($parameters)
  11027. {
  11028. return \Illuminate\Routing\UrlGenerator::formatParameters($parameters);
  11029. }
  11030. /**
  11031. * Get the base URL for the request.
  11032. *
  11033. * @param string $scheme
  11034. * @param string $root
  11035. * @return string
  11036. * @static
  11037. */
  11038. public static function formatRoot($scheme, $root = null)
  11039. {
  11040. return \Illuminate\Routing\UrlGenerator::formatRoot($scheme, $root);
  11041. }
  11042. /**
  11043. * Format the given URL segments into a single URL.
  11044. *
  11045. * @param string $root
  11046. * @param string $path
  11047. * @return string
  11048. * @static
  11049. */
  11050. public static function format($root, $path)
  11051. {
  11052. return \Illuminate\Routing\UrlGenerator::format($root, $path);
  11053. }
  11054. /**
  11055. * Determine if the given path is a valid URL.
  11056. *
  11057. * @param string $path
  11058. * @return bool
  11059. * @static
  11060. */
  11061. public static function isValidUrl($path)
  11062. {
  11063. return \Illuminate\Routing\UrlGenerator::isValidUrl($path);
  11064. }
  11065. /**
  11066. * Set the default named parameters used by the URL generator.
  11067. *
  11068. * @param array $defaults
  11069. * @return void
  11070. * @static
  11071. */
  11072. public static function defaults($defaults)
  11073. {
  11074. \Illuminate\Routing\UrlGenerator::defaults($defaults);
  11075. }
  11076. /**
  11077. * Get the default named parameters used by the URL generator.
  11078. *
  11079. * @return array
  11080. * @static
  11081. */
  11082. public static function getDefaultParameters()
  11083. {
  11084. return \Illuminate\Routing\UrlGenerator::getDefaultParameters();
  11085. }
  11086. /**
  11087. * Force the scheme for URLs.
  11088. *
  11089. * @param string $schema
  11090. * @return void
  11091. * @static
  11092. */
  11093. public static function forceScheme($schema)
  11094. {
  11095. \Illuminate\Routing\UrlGenerator::forceScheme($schema);
  11096. }
  11097. /**
  11098. * Set the forced root URL.
  11099. *
  11100. * @param string $root
  11101. * @return void
  11102. * @static
  11103. */
  11104. public static function forceRootUrl($root)
  11105. {
  11106. \Illuminate\Routing\UrlGenerator::forceRootUrl($root);
  11107. }
  11108. /**
  11109. * Set a callback to be used to format the host of generated URLs.
  11110. *
  11111. * @param \Closure $callback
  11112. * @return $this
  11113. * @static
  11114. */
  11115. public static function formatHostUsing($callback)
  11116. {
  11117. return \Illuminate\Routing\UrlGenerator::formatHostUsing($callback);
  11118. }
  11119. /**
  11120. * Set a callback to be used to format the path of generated URLs.
  11121. *
  11122. * @param \Closure $callback
  11123. * @return $this
  11124. * @static
  11125. */
  11126. public static function formatPathUsing($callback)
  11127. {
  11128. return \Illuminate\Routing\UrlGenerator::formatPathUsing($callback);
  11129. }
  11130. /**
  11131. * Get the path formatter being used by the URL generator.
  11132. *
  11133. * @return \Closure
  11134. * @static
  11135. */
  11136. public static function pathFormatter()
  11137. {
  11138. return \Illuminate\Routing\UrlGenerator::pathFormatter();
  11139. }
  11140. /**
  11141. * Get the request instance.
  11142. *
  11143. * @return \Illuminate\Http\Request
  11144. * @static
  11145. */
  11146. public static function getRequest()
  11147. {
  11148. return \Illuminate\Routing\UrlGenerator::getRequest();
  11149. }
  11150. /**
  11151. * Set the current request instance.
  11152. *
  11153. * @param \Illuminate\Http\Request $request
  11154. * @return void
  11155. * @static
  11156. */
  11157. public static function setRequest($request)
  11158. {
  11159. \Illuminate\Routing\UrlGenerator::setRequest($request);
  11160. }
  11161. /**
  11162. * Set the route collection.
  11163. *
  11164. * @param \Illuminate\Routing\RouteCollection $routes
  11165. * @return $this
  11166. * @static
  11167. */
  11168. public static function setRoutes($routes)
  11169. {
  11170. return \Illuminate\Routing\UrlGenerator::setRoutes($routes);
  11171. }
  11172. /**
  11173. * Set the session resolver for the generator.
  11174. *
  11175. * @param callable $sessionResolver
  11176. * @return $this
  11177. * @static
  11178. */
  11179. public static function setSessionResolver($sessionResolver)
  11180. {
  11181. return \Illuminate\Routing\UrlGenerator::setSessionResolver($sessionResolver);
  11182. }
  11183. /**
  11184. * Set the encryption key resolver.
  11185. *
  11186. * @param callable $keyResolver
  11187. * @return $this
  11188. * @static
  11189. */
  11190. public static function setKeyResolver($keyResolver)
  11191. {
  11192. return \Illuminate\Routing\UrlGenerator::setKeyResolver($keyResolver);
  11193. }
  11194. /**
  11195. * Set the root controller namespace.
  11196. *
  11197. * @param string $rootNamespace
  11198. * @return $this
  11199. * @static
  11200. */
  11201. public static function setRootControllerNamespace($rootNamespace)
  11202. {
  11203. return \Illuminate\Routing\UrlGenerator::setRootControllerNamespace($rootNamespace);
  11204. }
  11205. /**
  11206. * Register a custom macro.
  11207. *
  11208. * @param string $name
  11209. * @param object|callable $macro
  11210. * @return void
  11211. * @static
  11212. */
  11213. public static function macro($name, $macro)
  11214. {
  11215. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  11216. }
  11217. /**
  11218. * Mix another object into the class.
  11219. *
  11220. * @param object $mixin
  11221. * @return void
  11222. * @throws \ReflectionException
  11223. * @static
  11224. */
  11225. public static function mixin($mixin)
  11226. {
  11227. \Illuminate\Routing\UrlGenerator::mixin($mixin);
  11228. }
  11229. /**
  11230. * Checks if macro is registered.
  11231. *
  11232. * @param string $name
  11233. * @return bool
  11234. * @static
  11235. */
  11236. public static function hasMacro($name)
  11237. {
  11238. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  11239. }
  11240. }
  11241. /**
  11242. *
  11243. *
  11244. * @see \Illuminate\Validation\Factory
  11245. */
  11246. class Validator {
  11247. /**
  11248. * Create a new Validator instance.
  11249. *
  11250. * @param array $data
  11251. * @param array $rules
  11252. * @param array $messages
  11253. * @param array $customAttributes
  11254. * @return \Illuminate\Validation\Validator
  11255. * @static
  11256. */
  11257. public static function make($data, $rules, $messages = array(), $customAttributes = array())
  11258. {
  11259. return \Illuminate\Validation\Factory::make($data, $rules, $messages, $customAttributes);
  11260. }
  11261. /**
  11262. * Validate the given data against the provided rules.
  11263. *
  11264. * @param array $data
  11265. * @param array $rules
  11266. * @param array $messages
  11267. * @param array $customAttributes
  11268. * @return array
  11269. * @throws \Illuminate\Validation\ValidationException
  11270. * @static
  11271. */
  11272. public static function validate($data, $rules, $messages = array(), $customAttributes = array())
  11273. {
  11274. return \Illuminate\Validation\Factory::validate($data, $rules, $messages, $customAttributes);
  11275. }
  11276. /**
  11277. * Register a custom validator extension.
  11278. *
  11279. * @param string $rule
  11280. * @param \Closure|string $extension
  11281. * @param string $message
  11282. * @return void
  11283. * @static
  11284. */
  11285. public static function extend($rule, $extension, $message = null)
  11286. {
  11287. \Illuminate\Validation\Factory::extend($rule, $extension, $message);
  11288. }
  11289. /**
  11290. * Register a custom implicit validator extension.
  11291. *
  11292. * @param string $rule
  11293. * @param \Closure|string $extension
  11294. * @param string $message
  11295. * @return void
  11296. * @static
  11297. */
  11298. public static function extendImplicit($rule, $extension, $message = null)
  11299. {
  11300. \Illuminate\Validation\Factory::extendImplicit($rule, $extension, $message);
  11301. }
  11302. /**
  11303. * Register a custom dependent validator extension.
  11304. *
  11305. * @param string $rule
  11306. * @param \Closure|string $extension
  11307. * @param string $message
  11308. * @return void
  11309. * @static
  11310. */
  11311. public static function extendDependent($rule, $extension, $message = null)
  11312. {
  11313. \Illuminate\Validation\Factory::extendDependent($rule, $extension, $message);
  11314. }
  11315. /**
  11316. * Register a custom validator message replacer.
  11317. *
  11318. * @param string $rule
  11319. * @param \Closure|string $replacer
  11320. * @return void
  11321. * @static
  11322. */
  11323. public static function replacer($rule, $replacer)
  11324. {
  11325. \Illuminate\Validation\Factory::replacer($rule, $replacer);
  11326. }
  11327. /**
  11328. * Set the Validator instance resolver.
  11329. *
  11330. * @param \Closure $resolver
  11331. * @return void
  11332. * @static
  11333. */
  11334. public static function resolver($resolver)
  11335. {
  11336. \Illuminate\Validation\Factory::resolver($resolver);
  11337. }
  11338. /**
  11339. * Get the Translator implementation.
  11340. *
  11341. * @return \Illuminate\Contracts\Translation\Translator
  11342. * @static
  11343. */
  11344. public static function getTranslator()
  11345. {
  11346. return \Illuminate\Validation\Factory::getTranslator();
  11347. }
  11348. /**
  11349. * Get the Presence Verifier implementation.
  11350. *
  11351. * @return \Illuminate\Validation\PresenceVerifierInterface
  11352. * @static
  11353. */
  11354. public static function getPresenceVerifier()
  11355. {
  11356. return \Illuminate\Validation\Factory::getPresenceVerifier();
  11357. }
  11358. /**
  11359. * Set the Presence Verifier implementation.
  11360. *
  11361. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  11362. * @return void
  11363. * @static
  11364. */
  11365. public static function setPresenceVerifier($presenceVerifier)
  11366. {
  11367. \Illuminate\Validation\Factory::setPresenceVerifier($presenceVerifier);
  11368. }
  11369. }
  11370. /**
  11371. *
  11372. *
  11373. * @see \Illuminate\View\Factory
  11374. */
  11375. class View {
  11376. /**
  11377. * Get the evaluated view contents for the given view.
  11378. *
  11379. * @param string $path
  11380. * @param array $data
  11381. * @param array $mergeData
  11382. * @return \Illuminate\Contracts\View\View
  11383. * @static
  11384. */
  11385. public static function file($path, $data = array(), $mergeData = array())
  11386. {
  11387. return \Illuminate\View\Factory::file($path, $data, $mergeData);
  11388. }
  11389. /**
  11390. * Get the evaluated view contents for the given view.
  11391. *
  11392. * @param string $view
  11393. * @param array $data
  11394. * @param array $mergeData
  11395. * @return \Illuminate\Contracts\View\View
  11396. * @static
  11397. */
  11398. public static function make($view, $data = array(), $mergeData = array())
  11399. {
  11400. return \Illuminate\View\Factory::make($view, $data, $mergeData);
  11401. }
  11402. /**
  11403. * Get the first view that actually exists from the given list.
  11404. *
  11405. * @param array $views
  11406. * @param array $data
  11407. * @param array $mergeData
  11408. * @return \Illuminate\Contracts\View\View
  11409. * @throws \InvalidArgumentException
  11410. * @static
  11411. */
  11412. public static function first($views, $data = array(), $mergeData = array())
  11413. {
  11414. return \Illuminate\View\Factory::first($views, $data, $mergeData);
  11415. }
  11416. /**
  11417. * Get the rendered content of the view based on a given condition.
  11418. *
  11419. * @param bool $condition
  11420. * @param string $view
  11421. * @param array $data
  11422. * @param array $mergeData
  11423. * @return string
  11424. * @static
  11425. */
  11426. public static function renderWhen($condition, $view, $data = array(), $mergeData = array())
  11427. {
  11428. return \Illuminate\View\Factory::renderWhen($condition, $view, $data, $mergeData);
  11429. }
  11430. /**
  11431. * Get the rendered contents of a partial from a loop.
  11432. *
  11433. * @param string $view
  11434. * @param array $data
  11435. * @param string $iterator
  11436. * @param string $empty
  11437. * @return string
  11438. * @static
  11439. */
  11440. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  11441. {
  11442. return \Illuminate\View\Factory::renderEach($view, $data, $iterator, $empty);
  11443. }
  11444. /**
  11445. * Determine if a given view exists.
  11446. *
  11447. * @param string $view
  11448. * @return bool
  11449. * @static
  11450. */
  11451. public static function exists($view)
  11452. {
  11453. return \Illuminate\View\Factory::exists($view);
  11454. }
  11455. /**
  11456. * Get the appropriate view engine for the given path.
  11457. *
  11458. * @param string $path
  11459. * @return \Illuminate\Contracts\View\Engine
  11460. * @throws \InvalidArgumentException
  11461. * @static
  11462. */
  11463. public static function getEngineFromPath($path)
  11464. {
  11465. return \Illuminate\View\Factory::getEngineFromPath($path);
  11466. }
  11467. /**
  11468. * Add a piece of shared data to the environment.
  11469. *
  11470. * @param array|string $key
  11471. * @param mixed $value
  11472. * @return mixed
  11473. * @static
  11474. */
  11475. public static function share($key, $value = null)
  11476. {
  11477. return \Illuminate\View\Factory::share($key, $value);
  11478. }
  11479. /**
  11480. * Increment the rendering counter.
  11481. *
  11482. * @return void
  11483. * @static
  11484. */
  11485. public static function incrementRender()
  11486. {
  11487. \Illuminate\View\Factory::incrementRender();
  11488. }
  11489. /**
  11490. * Decrement the rendering counter.
  11491. *
  11492. * @return void
  11493. * @static
  11494. */
  11495. public static function decrementRender()
  11496. {
  11497. \Illuminate\View\Factory::decrementRender();
  11498. }
  11499. /**
  11500. * Check if there are no active render operations.
  11501. *
  11502. * @return bool
  11503. * @static
  11504. */
  11505. public static function doneRendering()
  11506. {
  11507. return \Illuminate\View\Factory::doneRendering();
  11508. }
  11509. /**
  11510. * Add a location to the array of view locations.
  11511. *
  11512. * @param string $location
  11513. * @return void
  11514. * @static
  11515. */
  11516. public static function addLocation($location)
  11517. {
  11518. \Illuminate\View\Factory::addLocation($location);
  11519. }
  11520. /**
  11521. * Add a new namespace to the loader.
  11522. *
  11523. * @param string $namespace
  11524. * @param string|array $hints
  11525. * @return $this
  11526. * @static
  11527. */
  11528. public static function addNamespace($namespace, $hints)
  11529. {
  11530. return \Illuminate\View\Factory::addNamespace($namespace, $hints);
  11531. }
  11532. /**
  11533. * Prepend a new namespace to the loader.
  11534. *
  11535. * @param string $namespace
  11536. * @param string|array $hints
  11537. * @return $this
  11538. * @static
  11539. */
  11540. public static function prependNamespace($namespace, $hints)
  11541. {
  11542. return \Illuminate\View\Factory::prependNamespace($namespace, $hints);
  11543. }
  11544. /**
  11545. * Replace the namespace hints for the given namespace.
  11546. *
  11547. * @param string $namespace
  11548. * @param string|array $hints
  11549. * @return $this
  11550. * @static
  11551. */
  11552. public static function replaceNamespace($namespace, $hints)
  11553. {
  11554. return \Illuminate\View\Factory::replaceNamespace($namespace, $hints);
  11555. }
  11556. /**
  11557. * Register a valid view extension and its engine.
  11558. *
  11559. * @param string $extension
  11560. * @param string $engine
  11561. * @param \Closure $resolver
  11562. * @return void
  11563. * @static
  11564. */
  11565. public static function addExtension($extension, $engine, $resolver = null)
  11566. {
  11567. \Illuminate\View\Factory::addExtension($extension, $engine, $resolver);
  11568. }
  11569. /**
  11570. * Flush all of the factory state like sections and stacks.
  11571. *
  11572. * @return void
  11573. * @static
  11574. */
  11575. public static function flushState()
  11576. {
  11577. \Illuminate\View\Factory::flushState();
  11578. }
  11579. /**
  11580. * Flush all of the section contents if done rendering.
  11581. *
  11582. * @return void
  11583. * @static
  11584. */
  11585. public static function flushStateIfDoneRendering()
  11586. {
  11587. \Illuminate\View\Factory::flushStateIfDoneRendering();
  11588. }
  11589. /**
  11590. * Get the extension to engine bindings.
  11591. *
  11592. * @return array
  11593. * @static
  11594. */
  11595. public static function getExtensions()
  11596. {
  11597. return \Illuminate\View\Factory::getExtensions();
  11598. }
  11599. /**
  11600. * Get the engine resolver instance.
  11601. *
  11602. * @return \Illuminate\View\Engines\EngineResolver
  11603. * @static
  11604. */
  11605. public static function getEngineResolver()
  11606. {
  11607. return \Illuminate\View\Factory::getEngineResolver();
  11608. }
  11609. /**
  11610. * Get the view finder instance.
  11611. *
  11612. * @return \Illuminate\View\ViewFinderInterface
  11613. * @static
  11614. */
  11615. public static function getFinder()
  11616. {
  11617. return \Illuminate\View\Factory::getFinder();
  11618. }
  11619. /**
  11620. * Set the view finder instance.
  11621. *
  11622. * @param \Illuminate\View\ViewFinderInterface $finder
  11623. * @return void
  11624. * @static
  11625. */
  11626. public static function setFinder($finder)
  11627. {
  11628. \Illuminate\View\Factory::setFinder($finder);
  11629. }
  11630. /**
  11631. * Flush the cache of views located by the finder.
  11632. *
  11633. * @return void
  11634. * @static
  11635. */
  11636. public static function flushFinderCache()
  11637. {
  11638. \Illuminate\View\Factory::flushFinderCache();
  11639. }
  11640. /**
  11641. * Get the event dispatcher instance.
  11642. *
  11643. * @return \Illuminate\Contracts\Events\Dispatcher
  11644. * @static
  11645. */
  11646. public static function getDispatcher()
  11647. {
  11648. return \Illuminate\View\Factory::getDispatcher();
  11649. }
  11650. /**
  11651. * Set the event dispatcher instance.
  11652. *
  11653. * @param \Illuminate\Contracts\Events\Dispatcher $events
  11654. * @return void
  11655. * @static
  11656. */
  11657. public static function setDispatcher($events)
  11658. {
  11659. \Illuminate\View\Factory::setDispatcher($events);
  11660. }
  11661. /**
  11662. * Get the IoC container instance.
  11663. *
  11664. * @return \Illuminate\Contracts\Container\Container
  11665. * @static
  11666. */
  11667. public static function getContainer()
  11668. {
  11669. return \Illuminate\View\Factory::getContainer();
  11670. }
  11671. /**
  11672. * Set the IoC container instance.
  11673. *
  11674. * @param \Illuminate\Contracts\Container\Container $container
  11675. * @return void
  11676. * @static
  11677. */
  11678. public static function setContainer($container)
  11679. {
  11680. \Illuminate\View\Factory::setContainer($container);
  11681. }
  11682. /**
  11683. * Get an item from the shared data.
  11684. *
  11685. * @param string $key
  11686. * @param mixed $default
  11687. * @return mixed
  11688. * @static
  11689. */
  11690. public static function shared($key, $default = null)
  11691. {
  11692. return \Illuminate\View\Factory::shared($key, $default);
  11693. }
  11694. /**
  11695. * Get all of the shared data for the environment.
  11696. *
  11697. * @return array
  11698. * @static
  11699. */
  11700. public static function getShared()
  11701. {
  11702. return \Illuminate\View\Factory::getShared();
  11703. }
  11704. /**
  11705. * Start a component rendering process.
  11706. *
  11707. * @param string $name
  11708. * @param array $data
  11709. * @return void
  11710. * @static
  11711. */
  11712. public static function startComponent($name, $data = array())
  11713. {
  11714. \Illuminate\View\Factory::startComponent($name, $data);
  11715. }
  11716. /**
  11717. * Render the current component.
  11718. *
  11719. * @return string
  11720. * @static
  11721. */
  11722. public static function renderComponent()
  11723. {
  11724. return \Illuminate\View\Factory::renderComponent();
  11725. }
  11726. /**
  11727. * Start the slot rendering process.
  11728. *
  11729. * @param string $name
  11730. * @param string|null $content
  11731. * @return void
  11732. * @static
  11733. */
  11734. public static function slot($name, $content = null)
  11735. {
  11736. \Illuminate\View\Factory::slot($name, $content);
  11737. }
  11738. /**
  11739. * Save the slot content for rendering.
  11740. *
  11741. * @return void
  11742. * @static
  11743. */
  11744. public static function endSlot()
  11745. {
  11746. \Illuminate\View\Factory::endSlot();
  11747. }
  11748. /**
  11749. * Register a view creator event.
  11750. *
  11751. * @param array|string $views
  11752. * @param \Closure|string $callback
  11753. * @return array
  11754. * @static
  11755. */
  11756. public static function creator($views, $callback)
  11757. {
  11758. return \Illuminate\View\Factory::creator($views, $callback);
  11759. }
  11760. /**
  11761. * Register multiple view composers via an array.
  11762. *
  11763. * @param array $composers
  11764. * @return array
  11765. * @static
  11766. */
  11767. public static function composers($composers)
  11768. {
  11769. return \Illuminate\View\Factory::composers($composers);
  11770. }
  11771. /**
  11772. * Register a view composer event.
  11773. *
  11774. * @param array|string $views
  11775. * @param \Closure|string $callback
  11776. * @return array
  11777. * @static
  11778. */
  11779. public static function composer($views, $callback)
  11780. {
  11781. return \Illuminate\View\Factory::composer($views, $callback);
  11782. }
  11783. /**
  11784. * Call the composer for a given view.
  11785. *
  11786. * @param \Illuminate\Contracts\View\View $view
  11787. * @return void
  11788. * @static
  11789. */
  11790. public static function callComposer($view)
  11791. {
  11792. \Illuminate\View\Factory::callComposer($view);
  11793. }
  11794. /**
  11795. * Call the creator for a given view.
  11796. *
  11797. * @param \Illuminate\Contracts\View\View $view
  11798. * @return void
  11799. * @static
  11800. */
  11801. public static function callCreator($view)
  11802. {
  11803. \Illuminate\View\Factory::callCreator($view);
  11804. }
  11805. /**
  11806. * Start injecting content into a section.
  11807. *
  11808. * @param string $section
  11809. * @param string|null $content
  11810. * @return void
  11811. * @static
  11812. */
  11813. public static function startSection($section, $content = null)
  11814. {
  11815. \Illuminate\View\Factory::startSection($section, $content);
  11816. }
  11817. /**
  11818. * Inject inline content into a section.
  11819. *
  11820. * @param string $section
  11821. * @param string $content
  11822. * @return void
  11823. * @static
  11824. */
  11825. public static function inject($section, $content)
  11826. {
  11827. \Illuminate\View\Factory::inject($section, $content);
  11828. }
  11829. /**
  11830. * Stop injecting content into a section and return its contents.
  11831. *
  11832. * @return string
  11833. * @static
  11834. */
  11835. public static function yieldSection()
  11836. {
  11837. return \Illuminate\View\Factory::yieldSection();
  11838. }
  11839. /**
  11840. * Stop injecting content into a section.
  11841. *
  11842. * @param bool $overwrite
  11843. * @return string
  11844. * @throws \InvalidArgumentException
  11845. * @static
  11846. */
  11847. public static function stopSection($overwrite = false)
  11848. {
  11849. return \Illuminate\View\Factory::stopSection($overwrite);
  11850. }
  11851. /**
  11852. * Stop injecting content into a section and append it.
  11853. *
  11854. * @return string
  11855. * @throws \InvalidArgumentException
  11856. * @static
  11857. */
  11858. public static function appendSection()
  11859. {
  11860. return \Illuminate\View\Factory::appendSection();
  11861. }
  11862. /**
  11863. * Get the string contents of a section.
  11864. *
  11865. * @param string $section
  11866. * @param string $default
  11867. * @return string
  11868. * @static
  11869. */
  11870. public static function yieldContent($section, $default = '')
  11871. {
  11872. return \Illuminate\View\Factory::yieldContent($section, $default);
  11873. }
  11874. /**
  11875. * Get the parent placeholder for the current request.
  11876. *
  11877. * @param string $section
  11878. * @return string
  11879. * @static
  11880. */
  11881. public static function parentPlaceholder($section = '')
  11882. {
  11883. return \Illuminate\View\Factory::parentPlaceholder($section);
  11884. }
  11885. /**
  11886. * Check if section exists.
  11887. *
  11888. * @param string $name
  11889. * @return bool
  11890. * @static
  11891. */
  11892. public static function hasSection($name)
  11893. {
  11894. return \Illuminate\View\Factory::hasSection($name);
  11895. }
  11896. /**
  11897. * Get the contents of a section.
  11898. *
  11899. * @param string $name
  11900. * @param string $default
  11901. * @return mixed
  11902. * @static
  11903. */
  11904. public static function getSection($name, $default = null)
  11905. {
  11906. return \Illuminate\View\Factory::getSection($name, $default);
  11907. }
  11908. /**
  11909. * Get the entire array of sections.
  11910. *
  11911. * @return array
  11912. * @static
  11913. */
  11914. public static function getSections()
  11915. {
  11916. return \Illuminate\View\Factory::getSections();
  11917. }
  11918. /**
  11919. * Flush all of the sections.
  11920. *
  11921. * @return void
  11922. * @static
  11923. */
  11924. public static function flushSections()
  11925. {
  11926. \Illuminate\View\Factory::flushSections();
  11927. }
  11928. /**
  11929. * Add new loop to the stack.
  11930. *
  11931. * @param \Countable|array $data
  11932. * @return void
  11933. * @static
  11934. */
  11935. public static function addLoop($data)
  11936. {
  11937. \Illuminate\View\Factory::addLoop($data);
  11938. }
  11939. /**
  11940. * Increment the top loop's indices.
  11941. *
  11942. * @return void
  11943. * @static
  11944. */
  11945. public static function incrementLoopIndices()
  11946. {
  11947. \Illuminate\View\Factory::incrementLoopIndices();
  11948. }
  11949. /**
  11950. * Pop a loop from the top of the loop stack.
  11951. *
  11952. * @return void
  11953. * @static
  11954. */
  11955. public static function popLoop()
  11956. {
  11957. \Illuminate\View\Factory::popLoop();
  11958. }
  11959. /**
  11960. * Get an instance of the last loop in the stack.
  11961. *
  11962. * @return \stdClass|null
  11963. * @static
  11964. */
  11965. public static function getLastLoop()
  11966. {
  11967. return \Illuminate\View\Factory::getLastLoop();
  11968. }
  11969. /**
  11970. * Get the entire loop stack.
  11971. *
  11972. * @return array
  11973. * @static
  11974. */
  11975. public static function getLoopStack()
  11976. {
  11977. return \Illuminate\View\Factory::getLoopStack();
  11978. }
  11979. /**
  11980. * Start injecting content into a push section.
  11981. *
  11982. * @param string $section
  11983. * @param string $content
  11984. * @return void
  11985. * @static
  11986. */
  11987. public static function startPush($section, $content = '')
  11988. {
  11989. \Illuminate\View\Factory::startPush($section, $content);
  11990. }
  11991. /**
  11992. * Stop injecting content into a push section.
  11993. *
  11994. * @return string
  11995. * @throws \InvalidArgumentException
  11996. * @static
  11997. */
  11998. public static function stopPush()
  11999. {
  12000. return \Illuminate\View\Factory::stopPush();
  12001. }
  12002. /**
  12003. * Start prepending content into a push section.
  12004. *
  12005. * @param string $section
  12006. * @param string $content
  12007. * @return void
  12008. * @static
  12009. */
  12010. public static function startPrepend($section, $content = '')
  12011. {
  12012. \Illuminate\View\Factory::startPrepend($section, $content);
  12013. }
  12014. /**
  12015. * Stop prepending content into a push section.
  12016. *
  12017. * @return string
  12018. * @throws \InvalidArgumentException
  12019. * @static
  12020. */
  12021. public static function stopPrepend()
  12022. {
  12023. return \Illuminate\View\Factory::stopPrepend();
  12024. }
  12025. /**
  12026. * Get the string contents of a push section.
  12027. *
  12028. * @param string $section
  12029. * @param string $default
  12030. * @return string
  12031. * @static
  12032. */
  12033. public static function yieldPushContent($section, $default = '')
  12034. {
  12035. return \Illuminate\View\Factory::yieldPushContent($section, $default);
  12036. }
  12037. /**
  12038. * Flush all of the stacks.
  12039. *
  12040. * @return void
  12041. * @static
  12042. */
  12043. public static function flushStacks()
  12044. {
  12045. \Illuminate\View\Factory::flushStacks();
  12046. }
  12047. /**
  12048. * Start a translation block.
  12049. *
  12050. * @param array $replacements
  12051. * @return void
  12052. * @static
  12053. */
  12054. public static function startTranslation($replacements = array())
  12055. {
  12056. \Illuminate\View\Factory::startTranslation($replacements);
  12057. }
  12058. /**
  12059. * Render the current translation.
  12060. *
  12061. * @return string
  12062. * @static
  12063. */
  12064. public static function renderTranslation()
  12065. {
  12066. return \Illuminate\View\Factory::renderTranslation();
  12067. }
  12068. }
  12069. }
  12070. namespace Mews\Captcha\Facades {
  12071. /**
  12072. *
  12073. *
  12074. * @see \Mews\Captcha
  12075. */
  12076. class Captcha {
  12077. /**
  12078. * Create captcha image
  12079. *
  12080. * @param string $config
  12081. * @param boolean $api
  12082. * @return \Mews\Captcha\ImageManager->response
  12083. * @static
  12084. */
  12085. public static function create($config = 'default', $api = false)
  12086. {
  12087. return \Mews\Captcha\Captcha::create($config, $api);
  12088. }
  12089. /**
  12090. * Captcha check
  12091. *
  12092. * @param $value
  12093. * @return bool
  12094. * @static
  12095. */
  12096. public static function check($value)
  12097. {
  12098. return \Mews\Captcha\Captcha::check($value);
  12099. }
  12100. /**
  12101. * Captcha check
  12102. *
  12103. * @param $value
  12104. * @return bool
  12105. * @static
  12106. */
  12107. public static function check_api($value, $key)
  12108. {
  12109. return \Mews\Captcha\Captcha::check_api($value, $key);
  12110. }
  12111. /**
  12112. * Generate captcha image source
  12113. *
  12114. * @param null $config
  12115. * @return string
  12116. * @static
  12117. */
  12118. public static function src($config = null)
  12119. {
  12120. return \Mews\Captcha\Captcha::src($config);
  12121. }
  12122. /**
  12123. * Generate captcha image html tag
  12124. *
  12125. * @param null $config
  12126. * @param array $attrs HTML attributes supplied to the image tag where key is the attribute
  12127. * and the value is the attribute value
  12128. * @return string
  12129. * @static
  12130. */
  12131. public static function img($config = null, $attrs = array())
  12132. {
  12133. return \Mews\Captcha\Captcha::img($config, $attrs);
  12134. }
  12135. }
  12136. }
  12137. namespace Jenssegers\Agent\Facades {
  12138. /**
  12139. *
  12140. *
  12141. */
  12142. class Agent {
  12143. /**
  12144. * Get all detection rules. These rules include the additional
  12145. * platforms and browsers and utilities.
  12146. *
  12147. * @return array
  12148. * @static
  12149. */
  12150. public static function getDetectionRulesExtended()
  12151. {
  12152. return \Jenssegers\Agent\Agent::getDetectionRulesExtended();
  12153. }
  12154. /**
  12155. *
  12156. *
  12157. * @static
  12158. */
  12159. public static function getRules()
  12160. {
  12161. return \Jenssegers\Agent\Agent::getRules();
  12162. }
  12163. /**
  12164. *
  12165. *
  12166. * @return \Jenssegers\Agent\CrawlerDetect
  12167. * @static
  12168. */
  12169. public static function getCrawlerDetect()
  12170. {
  12171. return \Jenssegers\Agent\Agent::getCrawlerDetect();
  12172. }
  12173. /**
  12174. *
  12175. *
  12176. * @static
  12177. */
  12178. public static function getBrowsers()
  12179. {
  12180. return \Jenssegers\Agent\Agent::getBrowsers();
  12181. }
  12182. /**
  12183. *
  12184. *
  12185. * @static
  12186. */
  12187. public static function getOperatingSystems()
  12188. {
  12189. return \Jenssegers\Agent\Agent::getOperatingSystems();
  12190. }
  12191. /**
  12192. *
  12193. *
  12194. * @static
  12195. */
  12196. public static function getPlatforms()
  12197. {
  12198. return \Jenssegers\Agent\Agent::getPlatforms();
  12199. }
  12200. /**
  12201. *
  12202. *
  12203. * @static
  12204. */
  12205. public static function getDesktopDevices()
  12206. {
  12207. return \Jenssegers\Agent\Agent::getDesktopDevices();
  12208. }
  12209. /**
  12210. *
  12211. *
  12212. * @static
  12213. */
  12214. public static function getProperties()
  12215. {
  12216. return \Jenssegers\Agent\Agent::getProperties();
  12217. }
  12218. /**
  12219. * Get accept languages.
  12220. *
  12221. * @param string $acceptLanguage
  12222. * @return array
  12223. * @static
  12224. */
  12225. public static function languages($acceptLanguage = null)
  12226. {
  12227. return \Jenssegers\Agent\Agent::languages($acceptLanguage);
  12228. }
  12229. /**
  12230. * Get the browser name.
  12231. *
  12232. * @param string|null $userAgent
  12233. * @return string
  12234. * @static
  12235. */
  12236. public static function browser($userAgent = null)
  12237. {
  12238. return \Jenssegers\Agent\Agent::browser($userAgent);
  12239. }
  12240. /**
  12241. * Get the platform name.
  12242. *
  12243. * @param string|null $userAgent
  12244. * @return string
  12245. * @static
  12246. */
  12247. public static function platform($userAgent = null)
  12248. {
  12249. return \Jenssegers\Agent\Agent::platform($userAgent);
  12250. }
  12251. /**
  12252. * Get the device name.
  12253. *
  12254. * @param string|null $userAgent
  12255. * @return string
  12256. * @static
  12257. */
  12258. public static function device($userAgent = null)
  12259. {
  12260. return \Jenssegers\Agent\Agent::device($userAgent);
  12261. }
  12262. /**
  12263. * Check if the device is a desktop computer.
  12264. *
  12265. * @param string|null $userAgent deprecated
  12266. * @param array $httpHeaders deprecated
  12267. * @return bool
  12268. * @static
  12269. */
  12270. public static function isDesktop($userAgent = null, $httpHeaders = null)
  12271. {
  12272. return \Jenssegers\Agent\Agent::isDesktop($userAgent, $httpHeaders);
  12273. }
  12274. /**
  12275. * Check if the device is a mobile phone.
  12276. *
  12277. * @param string|null $userAgent deprecated
  12278. * @param array $httpHeaders deprecated
  12279. * @return bool
  12280. * @static
  12281. */
  12282. public static function isPhone($userAgent = null, $httpHeaders = null)
  12283. {
  12284. return \Jenssegers\Agent\Agent::isPhone($userAgent, $httpHeaders);
  12285. }
  12286. /**
  12287. * Get the robot name.
  12288. *
  12289. * @param string|null $userAgent
  12290. * @return string|bool
  12291. * @static
  12292. */
  12293. public static function robot($userAgent = null)
  12294. {
  12295. return \Jenssegers\Agent\Agent::robot($userAgent);
  12296. }
  12297. /**
  12298. * Check if device is a robot.
  12299. *
  12300. * @param string|null $userAgent
  12301. * @return bool
  12302. * @static
  12303. */
  12304. public static function isRobot($userAgent = null)
  12305. {
  12306. return \Jenssegers\Agent\Agent::isRobot($userAgent);
  12307. }
  12308. /**
  12309. *
  12310. *
  12311. * @static
  12312. */
  12313. public static function version($propertyName, $type = 'text')
  12314. {
  12315. return \Jenssegers\Agent\Agent::version($propertyName, $type);
  12316. }
  12317. /**
  12318. * Get the current script version.
  12319. *
  12320. * This is useful for the demo.php file,
  12321. * so people can check on what version they are testing
  12322. * for mobile devices.
  12323. *
  12324. * @return string The version number in semantic version format.
  12325. * @static
  12326. */
  12327. public static function getScriptVersion()
  12328. {
  12329. //Method inherited from \Mobile_Detect
  12330. return \Jenssegers\Agent\Agent::getScriptVersion();
  12331. }
  12332. /**
  12333. * Set the HTTP Headers. Must be PHP-flavored. This method will reset existing headers.
  12334. *
  12335. * @param array $httpHeaders The headers to set. If null, then using PHP's _SERVER to extract
  12336. * the headers. The default null is left for backwards compatibility.
  12337. * @static
  12338. */
  12339. public static function setHttpHeaders($httpHeaders = null)
  12340. {
  12341. //Method inherited from \Mobile_Detect
  12342. return \Jenssegers\Agent\Agent::setHttpHeaders($httpHeaders);
  12343. }
  12344. /**
  12345. * Retrieves the HTTP headers.
  12346. *
  12347. * @return array
  12348. * @static
  12349. */
  12350. public static function getHttpHeaders()
  12351. {
  12352. //Method inherited from \Mobile_Detect
  12353. return \Jenssegers\Agent\Agent::getHttpHeaders();
  12354. }
  12355. /**
  12356. * Retrieves a particular header. If it doesn't exist, no exception/error is caused.
  12357. *
  12358. * Simply null is returned.
  12359. *
  12360. * @param string $header The name of the header to retrieve. Can be HTTP compliant such as
  12361. * "User-Agent" or "X-Device-User-Agent" or can be php-esque with the
  12362. * all-caps, HTTP_ prefixed, underscore seperated awesomeness.
  12363. * @return string|null The value of the header.
  12364. * @static
  12365. */
  12366. public static function getHttpHeader($header)
  12367. {
  12368. //Method inherited from \Mobile_Detect
  12369. return \Jenssegers\Agent\Agent::getHttpHeader($header);
  12370. }
  12371. /**
  12372. *
  12373. *
  12374. * @static
  12375. */
  12376. public static function getMobileHeaders()
  12377. {
  12378. //Method inherited from \Mobile_Detect
  12379. return \Jenssegers\Agent\Agent::getMobileHeaders();
  12380. }
  12381. /**
  12382. * Get all possible HTTP headers that
  12383. * can contain the User-Agent string.
  12384. *
  12385. * @return array List of HTTP headers.
  12386. * @static
  12387. */
  12388. public static function getUaHttpHeaders()
  12389. {
  12390. //Method inherited from \Mobile_Detect
  12391. return \Jenssegers\Agent\Agent::getUaHttpHeaders();
  12392. }
  12393. /**
  12394. * Set CloudFront headers
  12395. * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
  12396. *
  12397. * @param array $cfHeaders List of HTTP headers
  12398. * @return boolean If there were CloudFront headers to be set
  12399. * @static
  12400. */
  12401. public static function setCfHeaders($cfHeaders = null)
  12402. {
  12403. //Method inherited from \Mobile_Detect
  12404. return \Jenssegers\Agent\Agent::setCfHeaders($cfHeaders);
  12405. }
  12406. /**
  12407. * Retrieves the cloudfront headers.
  12408. *
  12409. * @return array
  12410. * @static
  12411. */
  12412. public static function getCfHeaders()
  12413. {
  12414. //Method inherited from \Mobile_Detect
  12415. return \Jenssegers\Agent\Agent::getCfHeaders();
  12416. }
  12417. /**
  12418. * Set the User-Agent to be used.
  12419. *
  12420. * @param string $userAgent The user agent string to set.
  12421. * @return string|null
  12422. * @static
  12423. */
  12424. public static function setUserAgent($userAgent = null)
  12425. {
  12426. //Method inherited from \Mobile_Detect
  12427. return \Jenssegers\Agent\Agent::setUserAgent($userAgent);
  12428. }
  12429. /**
  12430. * Retrieve the User-Agent.
  12431. *
  12432. * @return string|null The user agent if it's set.
  12433. * @static
  12434. */
  12435. public static function getUserAgent()
  12436. {
  12437. //Method inherited from \Mobile_Detect
  12438. return \Jenssegers\Agent\Agent::getUserAgent();
  12439. }
  12440. /**
  12441. * Set the detection type. Must be one of self::DETECTION_TYPE_MOBILE or
  12442. * self::DETECTION_TYPE_EXTENDED. Otherwise, nothing is set.
  12443. *
  12444. * @deprecated since version 2.6.9
  12445. * @param string $type The type. Must be a self::DETECTION_TYPE_* constant. The default
  12446. * parameter is null which will default to self::DETECTION_TYPE_MOBILE.
  12447. * @static
  12448. */
  12449. public static function setDetectionType($type = null)
  12450. {
  12451. //Method inherited from \Mobile_Detect
  12452. return \Jenssegers\Agent\Agent::setDetectionType($type);
  12453. }
  12454. /**
  12455. *
  12456. *
  12457. * @static
  12458. */
  12459. public static function getMatchingRegex()
  12460. {
  12461. //Method inherited from \Mobile_Detect
  12462. return \Jenssegers\Agent\Agent::getMatchingRegex();
  12463. }
  12464. /**
  12465. *
  12466. *
  12467. * @static
  12468. */
  12469. public static function getMatchesArray()
  12470. {
  12471. //Method inherited from \Mobile_Detect
  12472. return \Jenssegers\Agent\Agent::getMatchesArray();
  12473. }
  12474. /**
  12475. * Retrieve the list of known phone devices.
  12476. *
  12477. * @return array List of phone devices.
  12478. * @static
  12479. */
  12480. public static function getPhoneDevices()
  12481. {
  12482. //Method inherited from \Mobile_Detect
  12483. return \Jenssegers\Agent\Agent::getPhoneDevices();
  12484. }
  12485. /**
  12486. * Retrieve the list of known tablet devices.
  12487. *
  12488. * @return array List of tablet devices.
  12489. * @static
  12490. */
  12491. public static function getTabletDevices()
  12492. {
  12493. //Method inherited from \Mobile_Detect
  12494. return \Jenssegers\Agent\Agent::getTabletDevices();
  12495. }
  12496. /**
  12497. * Alias for getBrowsers() method.
  12498. *
  12499. * @return array List of user agents.
  12500. * @static
  12501. */
  12502. public static function getUserAgents()
  12503. {
  12504. //Method inherited from \Mobile_Detect
  12505. return \Jenssegers\Agent\Agent::getUserAgents();
  12506. }
  12507. /**
  12508. * Retrieve the list of known utilities.
  12509. *
  12510. * @return array List of utilities.
  12511. * @static
  12512. */
  12513. public static function getUtilities()
  12514. {
  12515. //Method inherited from \Mobile_Detect
  12516. return \Jenssegers\Agent\Agent::getUtilities();
  12517. }
  12518. /**
  12519. * Method gets the mobile detection rules. This method is used for the magic methods $detect->is*().
  12520. *
  12521. * @deprecated since version 2.6.9
  12522. * @return array All the rules (but not extended).
  12523. * @static
  12524. */
  12525. public static function getMobileDetectionRules()
  12526. {
  12527. //Method inherited from \Mobile_Detect
  12528. return \Jenssegers\Agent\Agent::getMobileDetectionRules();
  12529. }
  12530. /**
  12531. * Method gets the mobile detection rules + utilities.
  12532. *
  12533. * The reason this is separate is because utilities rules
  12534. * don't necessary imply mobile. This method is used inside
  12535. * the new $detect->is('stuff') method.
  12536. *
  12537. * @deprecated since version 2.6.9
  12538. * @return array All the rules + extended.
  12539. * @static
  12540. */
  12541. public static function getMobileDetectionRulesExtended()
  12542. {
  12543. //Method inherited from \Mobile_Detect
  12544. return \Jenssegers\Agent\Agent::getMobileDetectionRulesExtended();
  12545. }
  12546. /**
  12547. * Check the HTTP headers for signs of mobile.
  12548. *
  12549. * This is the fastest mobile check possible; it's used
  12550. * inside isMobile() method.
  12551. *
  12552. * @return bool
  12553. * @static
  12554. */
  12555. public static function checkHttpHeadersForMobile()
  12556. {
  12557. //Method inherited from \Mobile_Detect
  12558. return \Jenssegers\Agent\Agent::checkHttpHeadersForMobile();
  12559. }
  12560. /**
  12561. * Check if the device is mobile.
  12562. *
  12563. * Returns true if any type of mobile device detected, including special ones
  12564. *
  12565. * @param null $userAgent deprecated
  12566. * @param null $httpHeaders deprecated
  12567. * @return bool
  12568. * @static
  12569. */
  12570. public static function isMobile($userAgent = null, $httpHeaders = null)
  12571. {
  12572. //Method inherited from \Mobile_Detect
  12573. return \Jenssegers\Agent\Agent::isMobile($userAgent, $httpHeaders);
  12574. }
  12575. /**
  12576. * Check if the device is a tablet.
  12577. *
  12578. * Return true if any type of tablet device is detected.
  12579. *
  12580. * @param string $userAgent deprecated
  12581. * @param array $httpHeaders deprecated
  12582. * @return bool
  12583. * @static
  12584. */
  12585. public static function isTablet($userAgent = null, $httpHeaders = null)
  12586. {
  12587. //Method inherited from \Mobile_Detect
  12588. return \Jenssegers\Agent\Agent::isTablet($userAgent, $httpHeaders);
  12589. }
  12590. /**
  12591. * This method checks for a certain property in the
  12592. * userAgent.
  12593. *
  12594. * @todo : The httpHeaders part is not yet used.
  12595. * @param string $key
  12596. * @param string $userAgent deprecated
  12597. * @param string $httpHeaders deprecated
  12598. * @return bool|int|null
  12599. * @static
  12600. */
  12601. public static function is($key, $userAgent = null, $httpHeaders = null)
  12602. {
  12603. //Method inherited from \Mobile_Detect
  12604. return \Jenssegers\Agent\Agent::is($key, $userAgent, $httpHeaders);
  12605. }
  12606. /**
  12607. * Some detection rules are relative (not standard),
  12608. * because of the diversity of devices, vendors and
  12609. * their conventions in representing the User-Agent or
  12610. * the HTTP headers.
  12611. *
  12612. * This method will be used to check custom regexes against
  12613. * the User-Agent string.
  12614. *
  12615. * @param $regex
  12616. * @param string $userAgent
  12617. * @return bool
  12618. * @todo : search in the HTTP headers too.
  12619. * @static
  12620. */
  12621. public static function match($regex, $userAgent = null)
  12622. {
  12623. //Method inherited from \Mobile_Detect
  12624. return \Jenssegers\Agent\Agent::match($regex, $userAgent);
  12625. }
  12626. /**
  12627. * Prepare the version number.
  12628. *
  12629. * @todo Remove the error supression from str_replace() call.
  12630. * @param string $ver The string version, like "2.6.21.2152";
  12631. * @return float
  12632. * @static
  12633. */
  12634. public static function prepareVersionNo($ver)
  12635. {
  12636. //Method inherited from \Mobile_Detect
  12637. return \Jenssegers\Agent\Agent::prepareVersionNo($ver);
  12638. }
  12639. /**
  12640. * Retrieve the mobile grading, using self::MOBILE_GRADE_* constants.
  12641. *
  12642. * @return string One of the self::MOBILE_GRADE_* constants.
  12643. * @static
  12644. */
  12645. public static function mobileGrade()
  12646. {
  12647. //Method inherited from \Mobile_Detect
  12648. return \Jenssegers\Agent\Agent::mobileGrade();
  12649. }
  12650. }
  12651. }
  12652. namespace Mews\Purifier\Facades {
  12653. /**
  12654. *
  12655. *
  12656. * @see \Mews\Purifier
  12657. */
  12658. class Purifier {
  12659. /**
  12660. *
  12661. *
  12662. * @param $dirty
  12663. * @param null $config
  12664. * @return mixed
  12665. * @static
  12666. */
  12667. public static function clean($dirty, $config = null)
  12668. {
  12669. return \Mews\Purifier\Purifier::clean($dirty, $config);
  12670. }
  12671. /**
  12672. * Get HTMLPurifier instance.
  12673. *
  12674. * @return \HTMLPurifier
  12675. * @static
  12676. */
  12677. public static function getInstance()
  12678. {
  12679. return \Mews\Purifier\Purifier::getInstance();
  12680. }
  12681. }
  12682. }
  12683. namespace Intervention\Image\Facades {
  12684. /**
  12685. *
  12686. *
  12687. */
  12688. class Image {
  12689. /**
  12690. * Overrides configuration settings
  12691. *
  12692. * @param array $config
  12693. * @return self
  12694. * @static
  12695. */
  12696. public static function configure($config = array())
  12697. {
  12698. return \Intervention\Image\ImageManager::configure($config);
  12699. }
  12700. /**
  12701. * Initiates an Image instance from different input types
  12702. *
  12703. * @param mixed $data
  12704. * @return \Intervention\Image\Image
  12705. * @static
  12706. */
  12707. public static function make($data)
  12708. {
  12709. return \Intervention\Image\ImageManager::make($data);
  12710. }
  12711. /**
  12712. * Creates an empty image canvas
  12713. *
  12714. * @param int $width
  12715. * @param int $height
  12716. * @param mixed $background
  12717. * @return \Intervention\Image\Image
  12718. * @static
  12719. */
  12720. public static function canvas($width, $height, $background = null)
  12721. {
  12722. return \Intervention\Image\ImageManager::canvas($width, $height, $background);
  12723. }
  12724. /**
  12725. * Create new cached image and run callback
  12726. * (requires additional package intervention/imagecache)
  12727. *
  12728. * @param \Closure $callback
  12729. * @param int $lifetime
  12730. * @param boolean $returnObj
  12731. * @return \Image
  12732. * @static
  12733. */
  12734. public static function cache($callback, $lifetime = null, $returnObj = false)
  12735. {
  12736. return \Intervention\Image\ImageManager::cache($callback, $lifetime, $returnObj);
  12737. }
  12738. }
  12739. }
  12740. namespace {
  12741. class App extends \Illuminate\Support\Facades\App {}
  12742. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  12743. class Auth extends \Illuminate\Support\Facades\Auth {}
  12744. class Blade extends \Illuminate\Support\Facades\Blade {}
  12745. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  12746. class Bus extends \Illuminate\Support\Facades\Bus {}
  12747. class Cache extends \Illuminate\Support\Facades\Cache {}
  12748. class Config extends \Illuminate\Support\Facades\Config {}
  12749. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  12750. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  12751. class DB extends \Illuminate\Support\Facades\DB {}
  12752. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  12753. /**
  12754. * Create and return an un-saved model instance.
  12755. *
  12756. * @param array $attributes
  12757. * @return \Illuminate\Database\Eloquent\Model
  12758. * @static
  12759. */
  12760. public static function make($attributes = array())
  12761. {
  12762. return \Illuminate\Database\Eloquent\Builder::make($attributes);
  12763. }
  12764. /**
  12765. * Register a new global scope.
  12766. *
  12767. * @param string $identifier
  12768. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  12769. * @return $this
  12770. * @static
  12771. */
  12772. public static function withGlobalScope($identifier, $scope)
  12773. {
  12774. return \Illuminate\Database\Eloquent\Builder::withGlobalScope($identifier, $scope);
  12775. }
  12776. /**
  12777. * Remove a registered global scope.
  12778. *
  12779. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  12780. * @return $this
  12781. * @static
  12782. */
  12783. public static function withoutGlobalScope($scope)
  12784. {
  12785. return \Illuminate\Database\Eloquent\Builder::withoutGlobalScope($scope);
  12786. }
  12787. /**
  12788. * Remove all or passed registered global scopes.
  12789. *
  12790. * @param array|null $scopes
  12791. * @return $this
  12792. * @static
  12793. */
  12794. public static function withoutGlobalScopes($scopes = null)
  12795. {
  12796. return \Illuminate\Database\Eloquent\Builder::withoutGlobalScopes($scopes);
  12797. }
  12798. /**
  12799. * Get an array of global scopes that were removed from the query.
  12800. *
  12801. * @return array
  12802. * @static
  12803. */
  12804. public static function removedScopes()
  12805. {
  12806. return \Illuminate\Database\Eloquent\Builder::removedScopes();
  12807. }
  12808. /**
  12809. * Add a where clause on the primary key to the query.
  12810. *
  12811. * @param mixed $id
  12812. * @return $this
  12813. * @static
  12814. */
  12815. public static function whereKey($id)
  12816. {
  12817. return \Illuminate\Database\Eloquent\Builder::whereKey($id);
  12818. }
  12819. /**
  12820. * Add a where clause on the primary key to the query.
  12821. *
  12822. * @param mixed $id
  12823. * @return $this
  12824. * @static
  12825. */
  12826. public static function whereKeyNot($id)
  12827. {
  12828. return \Illuminate\Database\Eloquent\Builder::whereKeyNot($id);
  12829. }
  12830. /**
  12831. * Add a basic where clause to the query.
  12832. *
  12833. * @param string|array|\Closure $column
  12834. * @param mixed $operator
  12835. * @param mixed $value
  12836. * @param string $boolean
  12837. * @return $this
  12838. * @static
  12839. */
  12840. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  12841. {
  12842. return \Illuminate\Database\Eloquent\Builder::where($column, $operator, $value, $boolean);
  12843. }
  12844. /**
  12845. * Add an "or where" clause to the query.
  12846. *
  12847. * @param \Closure|array|string $column
  12848. * @param mixed $operator
  12849. * @param mixed $value
  12850. * @return \Illuminate\Database\Eloquent\Builder|static
  12851. * @static
  12852. */
  12853. public static function orWhere($column, $operator = null, $value = null)
  12854. {
  12855. return \Illuminate\Database\Eloquent\Builder::orWhere($column, $operator, $value);
  12856. }
  12857. /**
  12858. * Create a collection of models from plain arrays.
  12859. *
  12860. * @param array $items
  12861. * @return \Illuminate\Database\Eloquent\Collection
  12862. * @static
  12863. */
  12864. public static function hydrate($items)
  12865. {
  12866. return \Illuminate\Database\Eloquent\Builder::hydrate($items);
  12867. }
  12868. /**
  12869. * Create a collection of models from a raw query.
  12870. *
  12871. * @param string $query
  12872. * @param array $bindings
  12873. * @return \Illuminate\Database\Eloquent\Collection
  12874. * @static
  12875. */
  12876. public static function fromQuery($query, $bindings = array())
  12877. {
  12878. return \Illuminate\Database\Eloquent\Builder::fromQuery($query, $bindings);
  12879. }
  12880. /**
  12881. * Find a model by its primary key.
  12882. *
  12883. * @param mixed $id
  12884. * @param array $columns
  12885. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  12886. * @static
  12887. */
  12888. public static function find($id, $columns = array())
  12889. {
  12890. return \Illuminate\Database\Eloquent\Builder::find($id, $columns);
  12891. }
  12892. /**
  12893. * Find multiple models by their primary keys.
  12894. *
  12895. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  12896. * @param array $columns
  12897. * @return \Illuminate\Database\Eloquent\Collection
  12898. * @static
  12899. */
  12900. public static function findMany($ids, $columns = array())
  12901. {
  12902. return \Illuminate\Database\Eloquent\Builder::findMany($ids, $columns);
  12903. }
  12904. /**
  12905. * Find a model by its primary key or throw an exception.
  12906. *
  12907. * @param mixed $id
  12908. * @param array $columns
  12909. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  12910. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  12911. * @static
  12912. */
  12913. public static function findOrFail($id, $columns = array())
  12914. {
  12915. return \Illuminate\Database\Eloquent\Builder::findOrFail($id, $columns);
  12916. }
  12917. /**
  12918. * Find a model by its primary key or return fresh model instance.
  12919. *
  12920. * @param mixed $id
  12921. * @param array $columns
  12922. * @return \Illuminate\Database\Eloquent\Model
  12923. * @static
  12924. */
  12925. public static function findOrNew($id, $columns = array())
  12926. {
  12927. return \Illuminate\Database\Eloquent\Builder::findOrNew($id, $columns);
  12928. }
  12929. /**
  12930. * Get the first record matching the attributes or instantiate it.
  12931. *
  12932. * @param array $attributes
  12933. * @param array $values
  12934. * @return \Illuminate\Database\Eloquent\Model
  12935. * @static
  12936. */
  12937. public static function firstOrNew($attributes, $values = array())
  12938. {
  12939. return \Illuminate\Database\Eloquent\Builder::firstOrNew($attributes, $values);
  12940. }
  12941. /**
  12942. * Get the first record matching the attributes or create it.
  12943. *
  12944. * @param array $attributes
  12945. * @param array $values
  12946. * @return \Illuminate\Database\Eloquent\Model
  12947. * @static
  12948. */
  12949. public static function firstOrCreate($attributes, $values = array())
  12950. {
  12951. return \Illuminate\Database\Eloquent\Builder::firstOrCreate($attributes, $values);
  12952. }
  12953. /**
  12954. * Create or update a record matching the attributes, and fill it with values.
  12955. *
  12956. * @param array $attributes
  12957. * @param array $values
  12958. * @return \Illuminate\Database\Eloquent\Model
  12959. * @static
  12960. */
  12961. public static function updateOrCreate($attributes, $values = array())
  12962. {
  12963. return \Illuminate\Database\Eloquent\Builder::updateOrCreate($attributes, $values);
  12964. }
  12965. /**
  12966. * Execute the query and get the first result or throw an exception.
  12967. *
  12968. * @param array $columns
  12969. * @return \Illuminate\Database\Eloquent\Model|static
  12970. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  12971. * @static
  12972. */
  12973. public static function firstOrFail($columns = array())
  12974. {
  12975. return \Illuminate\Database\Eloquent\Builder::firstOrFail($columns);
  12976. }
  12977. /**
  12978. * Execute the query and get the first result or call a callback.
  12979. *
  12980. * @param \Closure|array $columns
  12981. * @param \Closure|null $callback
  12982. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  12983. * @static
  12984. */
  12985. public static function firstOr($columns = array(), $callback = null)
  12986. {
  12987. return \Illuminate\Database\Eloquent\Builder::firstOr($columns, $callback);
  12988. }
  12989. /**
  12990. * Get a single column's value from the first result of a query.
  12991. *
  12992. * @param string $column
  12993. * @return mixed
  12994. * @static
  12995. */
  12996. public static function value($column)
  12997. {
  12998. return \Illuminate\Database\Eloquent\Builder::value($column);
  12999. }
  13000. /**
  13001. * Execute the query as a "select" statement.
  13002. *
  13003. * @param array $columns
  13004. * @return \Illuminate\Database\Eloquent\Collection|static[]
  13005. * @static
  13006. */
  13007. public static function get($columns = array())
  13008. {
  13009. return \Illuminate\Database\Eloquent\Builder::get($columns);
  13010. }
  13011. /**
  13012. * Get the hydrated models without eager loading.
  13013. *
  13014. * @param array $columns
  13015. * @return \Illuminate\Database\Eloquent\Model[]
  13016. * @static
  13017. */
  13018. public static function getModels($columns = array())
  13019. {
  13020. return \Illuminate\Database\Eloquent\Builder::getModels($columns);
  13021. }
  13022. /**
  13023. * Eager load the relationships for the models.
  13024. *
  13025. * @param array $models
  13026. * @return array
  13027. * @static
  13028. */
  13029. public static function eagerLoadRelations($models)
  13030. {
  13031. return \Illuminate\Database\Eloquent\Builder::eagerLoadRelations($models);
  13032. }
  13033. /**
  13034. * Get a generator for the given query.
  13035. *
  13036. * @return \Generator
  13037. * @static
  13038. */
  13039. public static function cursor()
  13040. {
  13041. return \Illuminate\Database\Eloquent\Builder::cursor();
  13042. }
  13043. /**
  13044. * Chunk the results of a query by comparing numeric IDs.
  13045. *
  13046. * @param int $count
  13047. * @param callable $callback
  13048. * @param string|null $column
  13049. * @param string|null $alias
  13050. * @return bool
  13051. * @static
  13052. */
  13053. public static function chunkById($count, $callback, $column = null, $alias = null)
  13054. {
  13055. return \Illuminate\Database\Eloquent\Builder::chunkById($count, $callback, $column, $alias);
  13056. }
  13057. /**
  13058. * Get an array with the values of a given column.
  13059. *
  13060. * @param string $column
  13061. * @param string|null $key
  13062. * @return \Illuminate\Support\Collection
  13063. * @static
  13064. */
  13065. public static function pluck($column, $key = null)
  13066. {
  13067. return \Illuminate\Database\Eloquent\Builder::pluck($column, $key);
  13068. }
  13069. /**
  13070. * Paginate the given query.
  13071. *
  13072. * @param int $perPage
  13073. * @param array $columns
  13074. * @param string $pageName
  13075. * @param int|null $page
  13076. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  13077. * @throws \InvalidArgumentException
  13078. * @static
  13079. */
  13080. public static function paginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  13081. {
  13082. return \Illuminate\Database\Eloquent\Builder::paginate($perPage, $columns, $pageName, $page);
  13083. }
  13084. /**
  13085. * Paginate the given query into a simple paginator.
  13086. *
  13087. * @param int $perPage
  13088. * @param array $columns
  13089. * @param string $pageName
  13090. * @param int|null $page
  13091. * @return \Illuminate\Contracts\Pagination\Paginator
  13092. * @static
  13093. */
  13094. public static function simplePaginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  13095. {
  13096. return \Illuminate\Database\Eloquent\Builder::simplePaginate($perPage, $columns, $pageName, $page);
  13097. }
  13098. /**
  13099. * Save a new model and return the instance.
  13100. *
  13101. * @param array $attributes
  13102. * @return \Illuminate\Database\Eloquent\Model|$this
  13103. * @static
  13104. */
  13105. public static function create($attributes = array())
  13106. {
  13107. return \Illuminate\Database\Eloquent\Builder::create($attributes);
  13108. }
  13109. /**
  13110. * Save a new model and return the instance. Allow mass-assignment.
  13111. *
  13112. * @param array $attributes
  13113. * @return \Illuminate\Database\Eloquent\Model|$this
  13114. * @static
  13115. */
  13116. public static function forceCreate($attributes)
  13117. {
  13118. return \Illuminate\Database\Eloquent\Builder::forceCreate($attributes);
  13119. }
  13120. /**
  13121. * Register a replacement for the default delete function.
  13122. *
  13123. * @param \Closure $callback
  13124. * @return void
  13125. * @static
  13126. */
  13127. public static function onDelete($callback)
  13128. {
  13129. \Illuminate\Database\Eloquent\Builder::onDelete($callback);
  13130. }
  13131. /**
  13132. * Call the given local model scopes.
  13133. *
  13134. * @param array $scopes
  13135. * @return mixed
  13136. * @static
  13137. */
  13138. public static function scopes($scopes)
  13139. {
  13140. return \Illuminate\Database\Eloquent\Builder::scopes($scopes);
  13141. }
  13142. /**
  13143. * Apply the scopes to the Eloquent builder instance and return it.
  13144. *
  13145. * @return \Illuminate\Database\Eloquent\Builder|static
  13146. * @static
  13147. */
  13148. public static function applyScopes()
  13149. {
  13150. return \Illuminate\Database\Eloquent\Builder::applyScopes();
  13151. }
  13152. /**
  13153. * Prevent the specified relations from being eager loaded.
  13154. *
  13155. * @param mixed $relations
  13156. * @return $this
  13157. * @static
  13158. */
  13159. public static function without($relations)
  13160. {
  13161. return \Illuminate\Database\Eloquent\Builder::without($relations);
  13162. }
  13163. /**
  13164. * Create a new instance of the model being queried.
  13165. *
  13166. * @param array $attributes
  13167. * @return \Illuminate\Database\Eloquent\Model
  13168. * @static
  13169. */
  13170. public static function newModelInstance($attributes = array())
  13171. {
  13172. return \Illuminate\Database\Eloquent\Builder::newModelInstance($attributes);
  13173. }
  13174. /**
  13175. * Get the underlying query builder instance.
  13176. *
  13177. * @return \Illuminate\Database\Query\Builder
  13178. * @static
  13179. */
  13180. public static function getQuery()
  13181. {
  13182. return \Illuminate\Database\Eloquent\Builder::getQuery();
  13183. }
  13184. /**
  13185. * Set the underlying query builder instance.
  13186. *
  13187. * @param \Illuminate\Database\Query\Builder $query
  13188. * @return $this
  13189. * @static
  13190. */
  13191. public static function setQuery($query)
  13192. {
  13193. return \Illuminate\Database\Eloquent\Builder::setQuery($query);
  13194. }
  13195. /**
  13196. * Get a base query builder instance.
  13197. *
  13198. * @return \Illuminate\Database\Query\Builder
  13199. * @static
  13200. */
  13201. public static function toBase()
  13202. {
  13203. return \Illuminate\Database\Eloquent\Builder::toBase();
  13204. }
  13205. /**
  13206. * Get the relationships being eagerly loaded.
  13207. *
  13208. * @return array
  13209. * @static
  13210. */
  13211. public static function getEagerLoads()
  13212. {
  13213. return \Illuminate\Database\Eloquent\Builder::getEagerLoads();
  13214. }
  13215. /**
  13216. * Set the relationships being eagerly loaded.
  13217. *
  13218. * @param array $eagerLoad
  13219. * @return $this
  13220. * @static
  13221. */
  13222. public static function setEagerLoads($eagerLoad)
  13223. {
  13224. return \Illuminate\Database\Eloquent\Builder::setEagerLoads($eagerLoad);
  13225. }
  13226. /**
  13227. * Get the model instance being queried.
  13228. *
  13229. * @return \Illuminate\Database\Eloquent\Model
  13230. * @static
  13231. */
  13232. public static function getModel()
  13233. {
  13234. return \Illuminate\Database\Eloquent\Builder::getModel();
  13235. }
  13236. /**
  13237. * Set a model instance for the model being queried.
  13238. *
  13239. * @param \Illuminate\Database\Eloquent\Model $model
  13240. * @return $this
  13241. * @static
  13242. */
  13243. public static function setModel($model)
  13244. {
  13245. return \Illuminate\Database\Eloquent\Builder::setModel($model);
  13246. }
  13247. /**
  13248. * Get the given macro by name.
  13249. *
  13250. * @param string $name
  13251. * @return \Closure
  13252. * @static
  13253. */
  13254. public static function getMacro($name)
  13255. {
  13256. return \Illuminate\Database\Eloquent\Builder::getMacro($name);
  13257. }
  13258. /**
  13259. * Chunk the results of the query.
  13260. *
  13261. * @param int $count
  13262. * @param callable $callback
  13263. * @return bool
  13264. * @static
  13265. */
  13266. public static function chunk($count, $callback)
  13267. {
  13268. return \Illuminate\Database\Eloquent\Builder::chunk($count, $callback);
  13269. }
  13270. /**
  13271. * Execute a callback over each item while chunking.
  13272. *
  13273. * @param callable $callback
  13274. * @param int $count
  13275. * @return bool
  13276. * @static
  13277. */
  13278. public static function each($callback, $count = 1000)
  13279. {
  13280. return \Illuminate\Database\Eloquent\Builder::each($callback, $count);
  13281. }
  13282. /**
  13283. * Execute the query and get the first result.
  13284. *
  13285. * @param array $columns
  13286. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  13287. * @static
  13288. */
  13289. public static function first($columns = array())
  13290. {
  13291. return \Illuminate\Database\Eloquent\Builder::first($columns);
  13292. }
  13293. /**
  13294. * Apply the callback's query changes if the given "value" is true.
  13295. *
  13296. * @param mixed $value
  13297. * @param callable $callback
  13298. * @param callable $default
  13299. * @return mixed|$this
  13300. * @static
  13301. */
  13302. public static function when($value, $callback, $default = null)
  13303. {
  13304. return \Illuminate\Database\Eloquent\Builder::when($value, $callback, $default);
  13305. }
  13306. /**
  13307. * Pass the query to a given callback.
  13308. *
  13309. * @param \Closure $callback
  13310. * @return \Illuminate\Database\Query\Builder
  13311. * @static
  13312. */
  13313. public static function tap($callback)
  13314. {
  13315. return \Illuminate\Database\Eloquent\Builder::tap($callback);
  13316. }
  13317. /**
  13318. * Apply the callback's query changes if the given "value" is false.
  13319. *
  13320. * @param mixed $value
  13321. * @param callable $callback
  13322. * @param callable $default
  13323. * @return mixed|$this
  13324. * @static
  13325. */
  13326. public static function unless($value, $callback, $default = null)
  13327. {
  13328. return \Illuminate\Database\Eloquent\Builder::unless($value, $callback, $default);
  13329. }
  13330. /**
  13331. * Add a relationship count / exists condition to the query.
  13332. *
  13333. * @param string $relation
  13334. * @param string $operator
  13335. * @param int $count
  13336. * @param string $boolean
  13337. * @param \Closure|null $callback
  13338. * @return \Illuminate\Database\Eloquent\Builder|static
  13339. * @static
  13340. */
  13341. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  13342. {
  13343. return \Illuminate\Database\Eloquent\Builder::has($relation, $operator, $count, $boolean, $callback);
  13344. }
  13345. /**
  13346. * Add a relationship count / exists condition to the query with an "or".
  13347. *
  13348. * @param string $relation
  13349. * @param string $operator
  13350. * @param int $count
  13351. * @return \Illuminate\Database\Eloquent\Builder|static
  13352. * @static
  13353. */
  13354. public static function orHas($relation, $operator = '>=', $count = 1)
  13355. {
  13356. return \Illuminate\Database\Eloquent\Builder::orHas($relation, $operator, $count);
  13357. }
  13358. /**
  13359. * Add a relationship count / exists condition to the query.
  13360. *
  13361. * @param string $relation
  13362. * @param string $boolean
  13363. * @param \Closure|null $callback
  13364. * @return \Illuminate\Database\Eloquent\Builder|static
  13365. * @static
  13366. */
  13367. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  13368. {
  13369. return \Illuminate\Database\Eloquent\Builder::doesntHave($relation, $boolean, $callback);
  13370. }
  13371. /**
  13372. * Add a relationship count / exists condition to the query with an "or".
  13373. *
  13374. * @param string $relation
  13375. * @return \Illuminate\Database\Eloquent\Builder|static
  13376. * @static
  13377. */
  13378. public static function orDoesntHave($relation)
  13379. {
  13380. return \Illuminate\Database\Eloquent\Builder::orDoesntHave($relation);
  13381. }
  13382. /**
  13383. * Add a relationship count / exists condition to the query with where clauses.
  13384. *
  13385. * @param string $relation
  13386. * @param \Closure|null $callback
  13387. * @param string $operator
  13388. * @param int $count
  13389. * @return \Illuminate\Database\Eloquent\Builder|static
  13390. * @static
  13391. */
  13392. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  13393. {
  13394. return \Illuminate\Database\Eloquent\Builder::whereHas($relation, $callback, $operator, $count);
  13395. }
  13396. /**
  13397. * Add a relationship count / exists condition to the query with where clauses and an "or".
  13398. *
  13399. * @param string $relation
  13400. * @param \Closure $callback
  13401. * @param string $operator
  13402. * @param int $count
  13403. * @return \Illuminate\Database\Eloquent\Builder|static
  13404. * @static
  13405. */
  13406. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  13407. {
  13408. return \Illuminate\Database\Eloquent\Builder::orWhereHas($relation, $callback, $operator, $count);
  13409. }
  13410. /**
  13411. * Add a relationship count / exists condition to the query with where clauses.
  13412. *
  13413. * @param string $relation
  13414. * @param \Closure|null $callback
  13415. * @return \Illuminate\Database\Eloquent\Builder|static
  13416. * @static
  13417. */
  13418. public static function whereDoesntHave($relation, $callback = null)
  13419. {
  13420. return \Illuminate\Database\Eloquent\Builder::whereDoesntHave($relation, $callback);
  13421. }
  13422. /**
  13423. * Add a relationship count / exists condition to the query with where clauses and an "or".
  13424. *
  13425. * @param string $relation
  13426. * @param \Closure $callback
  13427. * @return \Illuminate\Database\Eloquent\Builder|static
  13428. * @static
  13429. */
  13430. public static function orWhereDoesntHave($relation, $callback = null)
  13431. {
  13432. return \Illuminate\Database\Eloquent\Builder::orWhereDoesntHave($relation, $callback);
  13433. }
  13434. /**
  13435. * Add subselect queries to count the relations.
  13436. *
  13437. * @param mixed $relations
  13438. * @return $this
  13439. * @static
  13440. */
  13441. public static function withCount($relations)
  13442. {
  13443. return \Illuminate\Database\Eloquent\Builder::withCount($relations);
  13444. }
  13445. /**
  13446. * Merge the where constraints from another query to the current query.
  13447. *
  13448. * @param \Illuminate\Database\Eloquent\Builder $from
  13449. * @return \Illuminate\Database\Eloquent\Builder|static
  13450. * @static
  13451. */
  13452. public static function mergeConstraintsFrom($from)
  13453. {
  13454. return \Illuminate\Database\Eloquent\Builder::mergeConstraintsFrom($from);
  13455. }
  13456. /**
  13457. * Set the columns to be selected.
  13458. *
  13459. * @param array|mixed $columns
  13460. * @return $this
  13461. * @static
  13462. */
  13463. public static function select($columns = array())
  13464. {
  13465. return \Illuminate\Database\Query\Builder::select($columns);
  13466. }
  13467. /**
  13468. * Add a subselect expression to the query.
  13469. *
  13470. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  13471. * @param string $as
  13472. * @return \Illuminate\Database\Query\Builder|static
  13473. * @throws \InvalidArgumentException
  13474. * @static
  13475. */
  13476. public static function selectSub($query, $as)
  13477. {
  13478. return \Illuminate\Database\Query\Builder::selectSub($query, $as);
  13479. }
  13480. /**
  13481. * Add a new "raw" select expression to the query.
  13482. *
  13483. * @param string $expression
  13484. * @param array $bindings
  13485. * @return \Illuminate\Database\Query\Builder|static
  13486. * @static
  13487. */
  13488. public static function selectRaw($expression, $bindings = array())
  13489. {
  13490. return \Illuminate\Database\Query\Builder::selectRaw($expression, $bindings);
  13491. }
  13492. /**
  13493. * Makes "from" fetch from a subquery.
  13494. *
  13495. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  13496. * @param string $as
  13497. * @return \Illuminate\Database\Query\Builder|static
  13498. * @throws \InvalidArgumentException
  13499. * @static
  13500. */
  13501. public static function fromSub($query, $as)
  13502. {
  13503. return \Illuminate\Database\Query\Builder::fromSub($query, $as);
  13504. }
  13505. /**
  13506. * Add a raw from clause to the query.
  13507. *
  13508. * @param string $expression
  13509. * @param mixed $bindings
  13510. * @return \Illuminate\Database\Query\Builder|static
  13511. * @static
  13512. */
  13513. public static function fromRaw($expression, $bindings = array())
  13514. {
  13515. return \Illuminate\Database\Query\Builder::fromRaw($expression, $bindings);
  13516. }
  13517. /**
  13518. * Add a new select column to the query.
  13519. *
  13520. * @param array|mixed $column
  13521. * @return $this
  13522. * @static
  13523. */
  13524. public static function addSelect($column)
  13525. {
  13526. return \Illuminate\Database\Query\Builder::addSelect($column);
  13527. }
  13528. /**
  13529. * Force the query to only return distinct results.
  13530. *
  13531. * @return $this
  13532. * @static
  13533. */
  13534. public static function distinct()
  13535. {
  13536. return \Illuminate\Database\Query\Builder::distinct();
  13537. }
  13538. /**
  13539. * Set the table which the query is targeting.
  13540. *
  13541. * @param string $table
  13542. * @return $this
  13543. * @static
  13544. */
  13545. public static function from($table)
  13546. {
  13547. return \Illuminate\Database\Query\Builder::from($table);
  13548. }
  13549. /**
  13550. * Add a join clause to the query.
  13551. *
  13552. * @param string $table
  13553. * @param string $first
  13554. * @param string|null $operator
  13555. * @param string|null $second
  13556. * @param string $type
  13557. * @param bool $where
  13558. * @return $this
  13559. * @static
  13560. */
  13561. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  13562. {
  13563. return \Illuminate\Database\Query\Builder::join($table, $first, $operator, $second, $type, $where);
  13564. }
  13565. /**
  13566. * Add a "join where" clause to the query.
  13567. *
  13568. * @param string $table
  13569. * @param string $first
  13570. * @param string $operator
  13571. * @param string $second
  13572. * @param string $type
  13573. * @return \Illuminate\Database\Query\Builder|static
  13574. * @static
  13575. */
  13576. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  13577. {
  13578. return \Illuminate\Database\Query\Builder::joinWhere($table, $first, $operator, $second, $type);
  13579. }
  13580. /**
  13581. * Add a subquery join clause to the query.
  13582. *
  13583. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  13584. * @param string $as
  13585. * @param string $first
  13586. * @param string|null $operator
  13587. * @param string|null $second
  13588. * @param string $type
  13589. * @param bool $where
  13590. * @return \Illuminate\Database\Query\Builder|static
  13591. * @throws \InvalidArgumentException
  13592. * @static
  13593. */
  13594. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  13595. {
  13596. return \Illuminate\Database\Query\Builder::joinSub($query, $as, $first, $operator, $second, $type, $where);
  13597. }
  13598. /**
  13599. * Add a left join to the query.
  13600. *
  13601. * @param string $table
  13602. * @param string $first
  13603. * @param string|null $operator
  13604. * @param string|null $second
  13605. * @return \Illuminate\Database\Query\Builder|static
  13606. * @static
  13607. */
  13608. public static function leftJoin($table, $first, $operator = null, $second = null)
  13609. {
  13610. return \Illuminate\Database\Query\Builder::leftJoin($table, $first, $operator, $second);
  13611. }
  13612. /**
  13613. * Add a "join where" clause to the query.
  13614. *
  13615. * @param string $table
  13616. * @param string $first
  13617. * @param string $operator
  13618. * @param string $second
  13619. * @return \Illuminate\Database\Query\Builder|static
  13620. * @static
  13621. */
  13622. public static function leftJoinWhere($table, $first, $operator, $second)
  13623. {
  13624. return \Illuminate\Database\Query\Builder::leftJoinWhere($table, $first, $operator, $second);
  13625. }
  13626. /**
  13627. * Add a subquery left join to the query.
  13628. *
  13629. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  13630. * @param string $as
  13631. * @param string $first
  13632. * @param string|null $operator
  13633. * @param string|null $second
  13634. * @return \Illuminate\Database\Query\Builder|static
  13635. * @static
  13636. */
  13637. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  13638. {
  13639. return \Illuminate\Database\Query\Builder::leftJoinSub($query, $as, $first, $operator, $second);
  13640. }
  13641. /**
  13642. * Add a right join to the query.
  13643. *
  13644. * @param string $table
  13645. * @param string $first
  13646. * @param string|null $operator
  13647. * @param string|null $second
  13648. * @return \Illuminate\Database\Query\Builder|static
  13649. * @static
  13650. */
  13651. public static function rightJoin($table, $first, $operator = null, $second = null)
  13652. {
  13653. return \Illuminate\Database\Query\Builder::rightJoin($table, $first, $operator, $second);
  13654. }
  13655. /**
  13656. * Add a "right join where" clause to the query.
  13657. *
  13658. * @param string $table
  13659. * @param string $first
  13660. * @param string $operator
  13661. * @param string $second
  13662. * @return \Illuminate\Database\Query\Builder|static
  13663. * @static
  13664. */
  13665. public static function rightJoinWhere($table, $first, $operator, $second)
  13666. {
  13667. return \Illuminate\Database\Query\Builder::rightJoinWhere($table, $first, $operator, $second);
  13668. }
  13669. /**
  13670. * Add a subquery right join to the query.
  13671. *
  13672. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  13673. * @param string $as
  13674. * @param string $first
  13675. * @param string|null $operator
  13676. * @param string|null $second
  13677. * @return \Illuminate\Database\Query\Builder|static
  13678. * @static
  13679. */
  13680. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  13681. {
  13682. return \Illuminate\Database\Query\Builder::rightJoinSub($query, $as, $first, $operator, $second);
  13683. }
  13684. /**
  13685. * Add a "cross join" clause to the query.
  13686. *
  13687. * @param string $table
  13688. * @param string|null $first
  13689. * @param string|null $operator
  13690. * @param string|null $second
  13691. * @return \Illuminate\Database\Query\Builder|static
  13692. * @static
  13693. */
  13694. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  13695. {
  13696. return \Illuminate\Database\Query\Builder::crossJoin($table, $first, $operator, $second);
  13697. }
  13698. /**
  13699. * Merge an array of where clauses and bindings.
  13700. *
  13701. * @param array $wheres
  13702. * @param array $bindings
  13703. * @return void
  13704. * @static
  13705. */
  13706. public static function mergeWheres($wheres, $bindings)
  13707. {
  13708. \Illuminate\Database\Query\Builder::mergeWheres($wheres, $bindings);
  13709. }
  13710. /**
  13711. * Prepare the value and operator for a where clause.
  13712. *
  13713. * @param string $value
  13714. * @param string $operator
  13715. * @param bool $useDefault
  13716. * @return array
  13717. * @throws \InvalidArgumentException
  13718. * @static
  13719. */
  13720. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  13721. {
  13722. return \Illuminate\Database\Query\Builder::prepareValueAndOperator($value, $operator, $useDefault);
  13723. }
  13724. /**
  13725. * Add a "where" clause comparing two columns to the query.
  13726. *
  13727. * @param string|array $first
  13728. * @param string|null $operator
  13729. * @param string|null $second
  13730. * @param string|null $boolean
  13731. * @return \Illuminate\Database\Query\Builder|static
  13732. * @static
  13733. */
  13734. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  13735. {
  13736. return \Illuminate\Database\Query\Builder::whereColumn($first, $operator, $second, $boolean);
  13737. }
  13738. /**
  13739. * Add an "or where" clause comparing two columns to the query.
  13740. *
  13741. * @param string|array $first
  13742. * @param string|null $operator
  13743. * @param string|null $second
  13744. * @return \Illuminate\Database\Query\Builder|static
  13745. * @static
  13746. */
  13747. public static function orWhereColumn($first, $operator = null, $second = null)
  13748. {
  13749. return \Illuminate\Database\Query\Builder::orWhereColumn($first, $operator, $second);
  13750. }
  13751. /**
  13752. * Add a raw where clause to the query.
  13753. *
  13754. * @param string $sql
  13755. * @param mixed $bindings
  13756. * @param string $boolean
  13757. * @return $this
  13758. * @static
  13759. */
  13760. public static function whereRaw($sql, $bindings = array(), $boolean = 'and')
  13761. {
  13762. return \Illuminate\Database\Query\Builder::whereRaw($sql, $bindings, $boolean);
  13763. }
  13764. /**
  13765. * Add a raw or where clause to the query.
  13766. *
  13767. * @param string $sql
  13768. * @param mixed $bindings
  13769. * @return \Illuminate\Database\Query\Builder|static
  13770. * @static
  13771. */
  13772. public static function orWhereRaw($sql, $bindings = array())
  13773. {
  13774. return \Illuminate\Database\Query\Builder::orWhereRaw($sql, $bindings);
  13775. }
  13776. /**
  13777. * Add a "where in" clause to the query.
  13778. *
  13779. * @param string $column
  13780. * @param mixed $values
  13781. * @param string $boolean
  13782. * @param bool $not
  13783. * @return $this
  13784. * @static
  13785. */
  13786. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  13787. {
  13788. return \Illuminate\Database\Query\Builder::whereIn($column, $values, $boolean, $not);
  13789. }
  13790. /**
  13791. * Add an "or where in" clause to the query.
  13792. *
  13793. * @param string $column
  13794. * @param mixed $values
  13795. * @return \Illuminate\Database\Query\Builder|static
  13796. * @static
  13797. */
  13798. public static function orWhereIn($column, $values)
  13799. {
  13800. return \Illuminate\Database\Query\Builder::orWhereIn($column, $values);
  13801. }
  13802. /**
  13803. * Add a "where not in" clause to the query.
  13804. *
  13805. * @param string $column
  13806. * @param mixed $values
  13807. * @param string $boolean
  13808. * @return \Illuminate\Database\Query\Builder|static
  13809. * @static
  13810. */
  13811. public static function whereNotIn($column, $values, $boolean = 'and')
  13812. {
  13813. return \Illuminate\Database\Query\Builder::whereNotIn($column, $values, $boolean);
  13814. }
  13815. /**
  13816. * Add an "or where not in" clause to the query.
  13817. *
  13818. * @param string $column
  13819. * @param mixed $values
  13820. * @return \Illuminate\Database\Query\Builder|static
  13821. * @static
  13822. */
  13823. public static function orWhereNotIn($column, $values)
  13824. {
  13825. return \Illuminate\Database\Query\Builder::orWhereNotIn($column, $values);
  13826. }
  13827. /**
  13828. * Add a "where null" clause to the query.
  13829. *
  13830. * @param string $column
  13831. * @param string $boolean
  13832. * @param bool $not
  13833. * @return $this
  13834. * @static
  13835. */
  13836. public static function whereNull($column, $boolean = 'and', $not = false)
  13837. {
  13838. return \Illuminate\Database\Query\Builder::whereNull($column, $boolean, $not);
  13839. }
  13840. /**
  13841. * Add an "or where null" clause to the query.
  13842. *
  13843. * @param string $column
  13844. * @return \Illuminate\Database\Query\Builder|static
  13845. * @static
  13846. */
  13847. public static function orWhereNull($column)
  13848. {
  13849. return \Illuminate\Database\Query\Builder::orWhereNull($column);
  13850. }
  13851. /**
  13852. * Add a "where not null" clause to the query.
  13853. *
  13854. * @param string $column
  13855. * @param string $boolean
  13856. * @return \Illuminate\Database\Query\Builder|static
  13857. * @static
  13858. */
  13859. public static function whereNotNull($column, $boolean = 'and')
  13860. {
  13861. return \Illuminate\Database\Query\Builder::whereNotNull($column, $boolean);
  13862. }
  13863. /**
  13864. * Add a where between statement to the query.
  13865. *
  13866. * @param string $column
  13867. * @param array $values
  13868. * @param string $boolean
  13869. * @param bool $not
  13870. * @return $this
  13871. * @static
  13872. */
  13873. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  13874. {
  13875. return \Illuminate\Database\Query\Builder::whereBetween($column, $values, $boolean, $not);
  13876. }
  13877. /**
  13878. * Add an or where between statement to the query.
  13879. *
  13880. * @param string $column
  13881. * @param array $values
  13882. * @return \Illuminate\Database\Query\Builder|static
  13883. * @static
  13884. */
  13885. public static function orWhereBetween($column, $values)
  13886. {
  13887. return \Illuminate\Database\Query\Builder::orWhereBetween($column, $values);
  13888. }
  13889. /**
  13890. * Add a where not between statement to the query.
  13891. *
  13892. * @param string $column
  13893. * @param array $values
  13894. * @param string $boolean
  13895. * @return \Illuminate\Database\Query\Builder|static
  13896. * @static
  13897. */
  13898. public static function whereNotBetween($column, $values, $boolean = 'and')
  13899. {
  13900. return \Illuminate\Database\Query\Builder::whereNotBetween($column, $values, $boolean);
  13901. }
  13902. /**
  13903. * Add an or where not between statement to the query.
  13904. *
  13905. * @param string $column
  13906. * @param array $values
  13907. * @return \Illuminate\Database\Query\Builder|static
  13908. * @static
  13909. */
  13910. public static function orWhereNotBetween($column, $values)
  13911. {
  13912. return \Illuminate\Database\Query\Builder::orWhereNotBetween($column, $values);
  13913. }
  13914. /**
  13915. * Add an "or where not null" clause to the query.
  13916. *
  13917. * @param string $column
  13918. * @return \Illuminate\Database\Query\Builder|static
  13919. * @static
  13920. */
  13921. public static function orWhereNotNull($column)
  13922. {
  13923. return \Illuminate\Database\Query\Builder::orWhereNotNull($column);
  13924. }
  13925. /**
  13926. * Add a "where date" statement to the query.
  13927. *
  13928. * @param string $column
  13929. * @param string $operator
  13930. * @param mixed $value
  13931. * @param string $boolean
  13932. * @return \Illuminate\Database\Query\Builder|static
  13933. * @static
  13934. */
  13935. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  13936. {
  13937. return \Illuminate\Database\Query\Builder::whereDate($column, $operator, $value, $boolean);
  13938. }
  13939. /**
  13940. * Add an "or where date" statement to the query.
  13941. *
  13942. * @param string $column
  13943. * @param string $operator
  13944. * @param mixed $value
  13945. * @return \Illuminate\Database\Query\Builder|static
  13946. * @static
  13947. */
  13948. public static function orWhereDate($column, $operator, $value = null)
  13949. {
  13950. return \Illuminate\Database\Query\Builder::orWhereDate($column, $operator, $value);
  13951. }
  13952. /**
  13953. * Add a "where time" statement to the query.
  13954. *
  13955. * @param string $column
  13956. * @param string $operator
  13957. * @param mixed $value
  13958. * @param string $boolean
  13959. * @return \Illuminate\Database\Query\Builder|static
  13960. * @static
  13961. */
  13962. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  13963. {
  13964. return \Illuminate\Database\Query\Builder::whereTime($column, $operator, $value, $boolean);
  13965. }
  13966. /**
  13967. * Add an "or where time" statement to the query.
  13968. *
  13969. * @param string $column
  13970. * @param string $operator
  13971. * @param mixed $value
  13972. * @return \Illuminate\Database\Query\Builder|static
  13973. * @static
  13974. */
  13975. public static function orWhereTime($column, $operator, $value = null)
  13976. {
  13977. return \Illuminate\Database\Query\Builder::orWhereTime($column, $operator, $value);
  13978. }
  13979. /**
  13980. * Add a "where day" statement to the query.
  13981. *
  13982. * @param string $column
  13983. * @param string $operator
  13984. * @param mixed $value
  13985. * @param string $boolean
  13986. * @return \Illuminate\Database\Query\Builder|static
  13987. * @static
  13988. */
  13989. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  13990. {
  13991. return \Illuminate\Database\Query\Builder::whereDay($column, $operator, $value, $boolean);
  13992. }
  13993. /**
  13994. * Add an "or where day" statement to the query.
  13995. *
  13996. * @param string $column
  13997. * @param string $operator
  13998. * @param mixed $value
  13999. * @return \Illuminate\Database\Query\Builder|static
  14000. * @static
  14001. */
  14002. public static function orWhereDay($column, $operator, $value = null)
  14003. {
  14004. return \Illuminate\Database\Query\Builder::orWhereDay($column, $operator, $value);
  14005. }
  14006. /**
  14007. * Add a "where month" statement to the query.
  14008. *
  14009. * @param string $column
  14010. * @param string $operator
  14011. * @param mixed $value
  14012. * @param string $boolean
  14013. * @return \Illuminate\Database\Query\Builder|static
  14014. * @static
  14015. */
  14016. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  14017. {
  14018. return \Illuminate\Database\Query\Builder::whereMonth($column, $operator, $value, $boolean);
  14019. }
  14020. /**
  14021. * Add an "or where month" statement to the query.
  14022. *
  14023. * @param string $column
  14024. * @param string $operator
  14025. * @param mixed $value
  14026. * @return \Illuminate\Database\Query\Builder|static
  14027. * @static
  14028. */
  14029. public static function orWhereMonth($column, $operator, $value = null)
  14030. {
  14031. return \Illuminate\Database\Query\Builder::orWhereMonth($column, $operator, $value);
  14032. }
  14033. /**
  14034. * Add a "where year" statement to the query.
  14035. *
  14036. * @param string $column
  14037. * @param string $operator
  14038. * @param mixed $value
  14039. * @param string $boolean
  14040. * @return \Illuminate\Database\Query\Builder|static
  14041. * @static
  14042. */
  14043. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  14044. {
  14045. return \Illuminate\Database\Query\Builder::whereYear($column, $operator, $value, $boolean);
  14046. }
  14047. /**
  14048. * Add an "or where year" statement to the query.
  14049. *
  14050. * @param string $column
  14051. * @param string $operator
  14052. * @param mixed $value
  14053. * @return \Illuminate\Database\Query\Builder|static
  14054. * @static
  14055. */
  14056. public static function orWhereYear($column, $operator, $value = null)
  14057. {
  14058. return \Illuminate\Database\Query\Builder::orWhereYear($column, $operator, $value);
  14059. }
  14060. /**
  14061. * Add a nested where statement to the query.
  14062. *
  14063. * @param \Closure $callback
  14064. * @param string $boolean
  14065. * @return \Illuminate\Database\Query\Builder|static
  14066. * @static
  14067. */
  14068. public static function whereNested($callback, $boolean = 'and')
  14069. {
  14070. return \Illuminate\Database\Query\Builder::whereNested($callback, $boolean);
  14071. }
  14072. /**
  14073. * Create a new query instance for nested where condition.
  14074. *
  14075. * @return \Illuminate\Database\Query\Builder
  14076. * @static
  14077. */
  14078. public static function forNestedWhere()
  14079. {
  14080. return \Illuminate\Database\Query\Builder::forNestedWhere();
  14081. }
  14082. /**
  14083. * Add another query builder as a nested where to the query builder.
  14084. *
  14085. * @param \Illuminate\Database\Query\Builder|static $query
  14086. * @param string $boolean
  14087. * @return $this
  14088. * @static
  14089. */
  14090. public static function addNestedWhereQuery($query, $boolean = 'and')
  14091. {
  14092. return \Illuminate\Database\Query\Builder::addNestedWhereQuery($query, $boolean);
  14093. }
  14094. /**
  14095. * Add an exists clause to the query.
  14096. *
  14097. * @param \Closure $callback
  14098. * @param string $boolean
  14099. * @param bool $not
  14100. * @return $this
  14101. * @static
  14102. */
  14103. public static function whereExists($callback, $boolean = 'and', $not = false)
  14104. {
  14105. return \Illuminate\Database\Query\Builder::whereExists($callback, $boolean, $not);
  14106. }
  14107. /**
  14108. * Add an or exists clause to the query.
  14109. *
  14110. * @param \Closure $callback
  14111. * @param bool $not
  14112. * @return \Illuminate\Database\Query\Builder|static
  14113. * @static
  14114. */
  14115. public static function orWhereExists($callback, $not = false)
  14116. {
  14117. return \Illuminate\Database\Query\Builder::orWhereExists($callback, $not);
  14118. }
  14119. /**
  14120. * Add a where not exists clause to the query.
  14121. *
  14122. * @param \Closure $callback
  14123. * @param string $boolean
  14124. * @return \Illuminate\Database\Query\Builder|static
  14125. * @static
  14126. */
  14127. public static function whereNotExists($callback, $boolean = 'and')
  14128. {
  14129. return \Illuminate\Database\Query\Builder::whereNotExists($callback, $boolean);
  14130. }
  14131. /**
  14132. * Add a where not exists clause to the query.
  14133. *
  14134. * @param \Closure $callback
  14135. * @return \Illuminate\Database\Query\Builder|static
  14136. * @static
  14137. */
  14138. public static function orWhereNotExists($callback)
  14139. {
  14140. return \Illuminate\Database\Query\Builder::orWhereNotExists($callback);
  14141. }
  14142. /**
  14143. * Add an exists clause to the query.
  14144. *
  14145. * @param \Illuminate\Database\Query\Builder $query
  14146. * @param string $boolean
  14147. * @param bool $not
  14148. * @return $this
  14149. * @static
  14150. */
  14151. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  14152. {
  14153. return \Illuminate\Database\Query\Builder::addWhereExistsQuery($query, $boolean, $not);
  14154. }
  14155. /**
  14156. * Adds a where condition using row values.
  14157. *
  14158. * @param array $columns
  14159. * @param string $operator
  14160. * @param array $values
  14161. * @param string $boolean
  14162. * @return $this
  14163. * @static
  14164. */
  14165. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  14166. {
  14167. return \Illuminate\Database\Query\Builder::whereRowValues($columns, $operator, $values, $boolean);
  14168. }
  14169. /**
  14170. * Adds a or where condition using row values.
  14171. *
  14172. * @param array $columns
  14173. * @param string $operator
  14174. * @param array $values
  14175. * @return $this
  14176. * @static
  14177. */
  14178. public static function orWhereRowValues($columns, $operator, $values)
  14179. {
  14180. return \Illuminate\Database\Query\Builder::orWhereRowValues($columns, $operator, $values);
  14181. }
  14182. /**
  14183. * Add a "where JSON contains" clause to the query.
  14184. *
  14185. * @param string $column
  14186. * @param mixed $value
  14187. * @param string $boolean
  14188. * @param bool $not
  14189. * @return $this
  14190. * @static
  14191. */
  14192. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  14193. {
  14194. return \Illuminate\Database\Query\Builder::whereJsonContains($column, $value, $boolean, $not);
  14195. }
  14196. /**
  14197. * Add a "or where JSON contains" clause to the query.
  14198. *
  14199. * @param string $column
  14200. * @param mixed $value
  14201. * @return $this
  14202. * @static
  14203. */
  14204. public static function orWhereJsonContains($column, $value)
  14205. {
  14206. return \Illuminate\Database\Query\Builder::orWhereJsonContains($column, $value);
  14207. }
  14208. /**
  14209. * Add a "where JSON not contains" clause to the query.
  14210. *
  14211. * @param string $column
  14212. * @param mixed $value
  14213. * @param string $boolean
  14214. * @return $this
  14215. * @static
  14216. */
  14217. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  14218. {
  14219. return \Illuminate\Database\Query\Builder::whereJsonDoesntContain($column, $value, $boolean);
  14220. }
  14221. /**
  14222. * Add a "or where JSON not contains" clause to the query.
  14223. *
  14224. * @param string $column
  14225. * @param mixed $value
  14226. * @return $this
  14227. * @static
  14228. */
  14229. public static function orWhereJsonDoesntContain($column, $value)
  14230. {
  14231. return \Illuminate\Database\Query\Builder::orWhereJsonDoesntContain($column, $value);
  14232. }
  14233. /**
  14234. * Handles dynamic "where" clauses to the query.
  14235. *
  14236. * @param string $method
  14237. * @param string $parameters
  14238. * @return $this
  14239. * @static
  14240. */
  14241. public static function dynamicWhere($method, $parameters)
  14242. {
  14243. return \Illuminate\Database\Query\Builder::dynamicWhere($method, $parameters);
  14244. }
  14245. /**
  14246. * Add a "group by" clause to the query.
  14247. *
  14248. * @param array $groups
  14249. * @return $this
  14250. * @static
  14251. */
  14252. public static function groupBy($groups = null)
  14253. {
  14254. return \Illuminate\Database\Query\Builder::groupBy($groups);
  14255. }
  14256. /**
  14257. * Add a "having" clause to the query.
  14258. *
  14259. * @param string $column
  14260. * @param string|null $operator
  14261. * @param string|null $value
  14262. * @param string $boolean
  14263. * @return $this
  14264. * @static
  14265. */
  14266. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  14267. {
  14268. return \Illuminate\Database\Query\Builder::having($column, $operator, $value, $boolean);
  14269. }
  14270. /**
  14271. * Add a "or having" clause to the query.
  14272. *
  14273. * @param string $column
  14274. * @param string|null $operator
  14275. * @param string|null $value
  14276. * @return \Illuminate\Database\Query\Builder|static
  14277. * @static
  14278. */
  14279. public static function orHaving($column, $operator = null, $value = null)
  14280. {
  14281. return \Illuminate\Database\Query\Builder::orHaving($column, $operator, $value);
  14282. }
  14283. /**
  14284. * Add a raw having clause to the query.
  14285. *
  14286. * @param string $sql
  14287. * @param array $bindings
  14288. * @param string $boolean
  14289. * @return $this
  14290. * @static
  14291. */
  14292. public static function havingRaw($sql, $bindings = array(), $boolean = 'and')
  14293. {
  14294. return \Illuminate\Database\Query\Builder::havingRaw($sql, $bindings, $boolean);
  14295. }
  14296. /**
  14297. * Add a raw or having clause to the query.
  14298. *
  14299. * @param string $sql
  14300. * @param array $bindings
  14301. * @return \Illuminate\Database\Query\Builder|static
  14302. * @static
  14303. */
  14304. public static function orHavingRaw($sql, $bindings = array())
  14305. {
  14306. return \Illuminate\Database\Query\Builder::orHavingRaw($sql, $bindings);
  14307. }
  14308. /**
  14309. * Add an "order by" clause to the query.
  14310. *
  14311. * @param string $column
  14312. * @param string $direction
  14313. * @return $this
  14314. * @static
  14315. */
  14316. public static function orderBy($column, $direction = 'asc')
  14317. {
  14318. return \Illuminate\Database\Query\Builder::orderBy($column, $direction);
  14319. }
  14320. /**
  14321. * Add a descending "order by" clause to the query.
  14322. *
  14323. * @param string $column
  14324. * @return $this
  14325. * @static
  14326. */
  14327. public static function orderByDesc($column)
  14328. {
  14329. return \Illuminate\Database\Query\Builder::orderByDesc($column);
  14330. }
  14331. /**
  14332. * Add an "order by" clause for a timestamp to the query.
  14333. *
  14334. * @param string $column
  14335. * @return \Illuminate\Database\Query\Builder|static
  14336. * @static
  14337. */
  14338. public static function latest($column = 'created_at')
  14339. {
  14340. return \Illuminate\Database\Query\Builder::latest($column);
  14341. }
  14342. /**
  14343. * Add an "order by" clause for a timestamp to the query.
  14344. *
  14345. * @param string $column
  14346. * @return \Illuminate\Database\Query\Builder|static
  14347. * @static
  14348. */
  14349. public static function oldest($column = 'created_at')
  14350. {
  14351. return \Illuminate\Database\Query\Builder::oldest($column);
  14352. }
  14353. /**
  14354. * Put the query's results in random order.
  14355. *
  14356. * @param string $seed
  14357. * @return $this
  14358. * @static
  14359. */
  14360. public static function inRandomOrder($seed = '')
  14361. {
  14362. return \Illuminate\Database\Query\Builder::inRandomOrder($seed);
  14363. }
  14364. /**
  14365. * Add a raw "order by" clause to the query.
  14366. *
  14367. * @param string $sql
  14368. * @param array $bindings
  14369. * @return $this
  14370. * @static
  14371. */
  14372. public static function orderByRaw($sql, $bindings = array())
  14373. {
  14374. return \Illuminate\Database\Query\Builder::orderByRaw($sql, $bindings);
  14375. }
  14376. /**
  14377. * Alias to set the "offset" value of the query.
  14378. *
  14379. * @param int $value
  14380. * @return \Illuminate\Database\Query\Builder|static
  14381. * @static
  14382. */
  14383. public static function skip($value)
  14384. {
  14385. return \Illuminate\Database\Query\Builder::skip($value);
  14386. }
  14387. /**
  14388. * Set the "offset" value of the query.
  14389. *
  14390. * @param int $value
  14391. * @return $this
  14392. * @static
  14393. */
  14394. public static function offset($value)
  14395. {
  14396. return \Illuminate\Database\Query\Builder::offset($value);
  14397. }
  14398. /**
  14399. * Alias to set the "limit" value of the query.
  14400. *
  14401. * @param int $value
  14402. * @return \Illuminate\Database\Query\Builder|static
  14403. * @static
  14404. */
  14405. public static function take($value)
  14406. {
  14407. return \Illuminate\Database\Query\Builder::take($value);
  14408. }
  14409. /**
  14410. * Set the "limit" value of the query.
  14411. *
  14412. * @param int $value
  14413. * @return $this
  14414. * @static
  14415. */
  14416. public static function limit($value)
  14417. {
  14418. return \Illuminate\Database\Query\Builder::limit($value);
  14419. }
  14420. /**
  14421. * Set the limit and offset for a given page.
  14422. *
  14423. * @param int $page
  14424. * @param int $perPage
  14425. * @return \Illuminate\Database\Query\Builder|static
  14426. * @static
  14427. */
  14428. public static function forPage($page, $perPage = 15)
  14429. {
  14430. return \Illuminate\Database\Query\Builder::forPage($page, $perPage);
  14431. }
  14432. /**
  14433. * Constrain the query to the next "page" of results after a given ID.
  14434. *
  14435. * @param int $perPage
  14436. * @param int|null $lastId
  14437. * @param string $column
  14438. * @return \Illuminate\Database\Query\Builder|static
  14439. * @static
  14440. */
  14441. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  14442. {
  14443. return \Illuminate\Database\Query\Builder::forPageAfterId($perPage, $lastId, $column);
  14444. }
  14445. /**
  14446. * Add a union statement to the query.
  14447. *
  14448. * @param \Illuminate\Database\Query\Builder|\Closure $query
  14449. * @param bool $all
  14450. * @return \Illuminate\Database\Query\Builder|static
  14451. * @static
  14452. */
  14453. public static function union($query, $all = false)
  14454. {
  14455. return \Illuminate\Database\Query\Builder::union($query, $all);
  14456. }
  14457. /**
  14458. * Add a union all statement to the query.
  14459. *
  14460. * @param \Illuminate\Database\Query\Builder|\Closure $query
  14461. * @return \Illuminate\Database\Query\Builder|static
  14462. * @static
  14463. */
  14464. public static function unionAll($query)
  14465. {
  14466. return \Illuminate\Database\Query\Builder::unionAll($query);
  14467. }
  14468. /**
  14469. * Lock the selected rows in the table.
  14470. *
  14471. * @param string|bool $value
  14472. * @return $this
  14473. * @static
  14474. */
  14475. public static function lock($value = true)
  14476. {
  14477. return \Illuminate\Database\Query\Builder::lock($value);
  14478. }
  14479. /**
  14480. * Lock the selected rows in the table for updating.
  14481. *
  14482. * @return \Illuminate\Database\Query\Builder
  14483. * @static
  14484. */
  14485. public static function lockForUpdate()
  14486. {
  14487. return \Illuminate\Database\Query\Builder::lockForUpdate();
  14488. }
  14489. /**
  14490. * Share lock the selected rows in the table.
  14491. *
  14492. * @return \Illuminate\Database\Query\Builder
  14493. * @static
  14494. */
  14495. public static function sharedLock()
  14496. {
  14497. return \Illuminate\Database\Query\Builder::sharedLock();
  14498. }
  14499. /**
  14500. * Get the SQL representation of the query.
  14501. *
  14502. * @return string
  14503. * @static
  14504. */
  14505. public static function toSql()
  14506. {
  14507. return \Illuminate\Database\Query\Builder::toSql();
  14508. }
  14509. /**
  14510. * Get the count of the total records for the paginator.
  14511. *
  14512. * @param array $columns
  14513. * @return int
  14514. * @static
  14515. */
  14516. public static function getCountForPagination($columns = array())
  14517. {
  14518. return \Illuminate\Database\Query\Builder::getCountForPagination($columns);
  14519. }
  14520. /**
  14521. * Concatenate values of a given column as a string.
  14522. *
  14523. * @param string $column
  14524. * @param string $glue
  14525. * @return string
  14526. * @static
  14527. */
  14528. public static function implode($column, $glue = '')
  14529. {
  14530. return \Illuminate\Database\Query\Builder::implode($column, $glue);
  14531. }
  14532. /**
  14533. * Determine if any rows exist for the current query.
  14534. *
  14535. * @return bool
  14536. * @static
  14537. */
  14538. public static function exists()
  14539. {
  14540. return \Illuminate\Database\Query\Builder::exists();
  14541. }
  14542. /**
  14543. * Determine if no rows exist for the current query.
  14544. *
  14545. * @return bool
  14546. * @static
  14547. */
  14548. public static function doesntExist()
  14549. {
  14550. return \Illuminate\Database\Query\Builder::doesntExist();
  14551. }
  14552. /**
  14553. * Retrieve the "count" result of the query.
  14554. *
  14555. * @param string $columns
  14556. * @return int
  14557. * @static
  14558. */
  14559. public static function count($columns = '*')
  14560. {
  14561. return \Illuminate\Database\Query\Builder::count($columns);
  14562. }
  14563. /**
  14564. * Retrieve the minimum value of a given column.
  14565. *
  14566. * @param string $column
  14567. * @return mixed
  14568. * @static
  14569. */
  14570. public static function min($column)
  14571. {
  14572. return \Illuminate\Database\Query\Builder::min($column);
  14573. }
  14574. /**
  14575. * Retrieve the maximum value of a given column.
  14576. *
  14577. * @param string $column
  14578. * @return mixed
  14579. * @static
  14580. */
  14581. public static function max($column)
  14582. {
  14583. return \Illuminate\Database\Query\Builder::max($column);
  14584. }
  14585. /**
  14586. * Retrieve the sum of the values of a given column.
  14587. *
  14588. * @param string $column
  14589. * @return mixed
  14590. * @static
  14591. */
  14592. public static function sum($column)
  14593. {
  14594. return \Illuminate\Database\Query\Builder::sum($column);
  14595. }
  14596. /**
  14597. * Retrieve the average of the values of a given column.
  14598. *
  14599. * @param string $column
  14600. * @return mixed
  14601. * @static
  14602. */
  14603. public static function avg($column)
  14604. {
  14605. return \Illuminate\Database\Query\Builder::avg($column);
  14606. }
  14607. /**
  14608. * Alias for the "avg" method.
  14609. *
  14610. * @param string $column
  14611. * @return mixed
  14612. * @static
  14613. */
  14614. public static function average($column)
  14615. {
  14616. return \Illuminate\Database\Query\Builder::average($column);
  14617. }
  14618. /**
  14619. * Execute an aggregate function on the database.
  14620. *
  14621. * @param string $function
  14622. * @param array $columns
  14623. * @return mixed
  14624. * @static
  14625. */
  14626. public static function aggregate($function, $columns = array())
  14627. {
  14628. return \Illuminate\Database\Query\Builder::aggregate($function, $columns);
  14629. }
  14630. /**
  14631. * Execute a numeric aggregate function on the database.
  14632. *
  14633. * @param string $function
  14634. * @param array $columns
  14635. * @return float|int
  14636. * @static
  14637. */
  14638. public static function numericAggregate($function, $columns = array())
  14639. {
  14640. return \Illuminate\Database\Query\Builder::numericAggregate($function, $columns);
  14641. }
  14642. /**
  14643. * Insert a new record into the database.
  14644. *
  14645. * @param array $values
  14646. * @return bool
  14647. * @static
  14648. */
  14649. public static function insert($values)
  14650. {
  14651. return \Illuminate\Database\Query\Builder::insert($values);
  14652. }
  14653. /**
  14654. * Insert a new record and get the value of the primary key.
  14655. *
  14656. * @param array $values
  14657. * @param string|null $sequence
  14658. * @return int
  14659. * @static
  14660. */
  14661. public static function insertGetId($values, $sequence = null)
  14662. {
  14663. return \Illuminate\Database\Query\Builder::insertGetId($values, $sequence);
  14664. }
  14665. /**
  14666. * Insert or update a record matching the attributes, and fill it with values.
  14667. *
  14668. * @param array $attributes
  14669. * @param array $values
  14670. * @return bool
  14671. * @static
  14672. */
  14673. public static function updateOrInsert($attributes, $values = array())
  14674. {
  14675. return \Illuminate\Database\Query\Builder::updateOrInsert($attributes, $values);
  14676. }
  14677. /**
  14678. * Run a truncate statement on the table.
  14679. *
  14680. * @return void
  14681. * @static
  14682. */
  14683. public static function truncate()
  14684. {
  14685. \Illuminate\Database\Query\Builder::truncate();
  14686. }
  14687. /**
  14688. * Create a raw database expression.
  14689. *
  14690. * @param mixed $value
  14691. * @return \Illuminate\Database\Query\Expression
  14692. * @static
  14693. */
  14694. public static function raw($value)
  14695. {
  14696. return \Illuminate\Database\Query\Builder::raw($value);
  14697. }
  14698. /**
  14699. * Get the current query value bindings in a flattened array.
  14700. *
  14701. * @return array
  14702. * @static
  14703. */
  14704. public static function getBindings()
  14705. {
  14706. return \Illuminate\Database\Query\Builder::getBindings();
  14707. }
  14708. /**
  14709. * Get the raw array of bindings.
  14710. *
  14711. * @return array
  14712. * @static
  14713. */
  14714. public static function getRawBindings()
  14715. {
  14716. return \Illuminate\Database\Query\Builder::getRawBindings();
  14717. }
  14718. /**
  14719. * Set the bindings on the query builder.
  14720. *
  14721. * @param array $bindings
  14722. * @param string $type
  14723. * @return $this
  14724. * @throws \InvalidArgumentException
  14725. * @static
  14726. */
  14727. public static function setBindings($bindings, $type = 'where')
  14728. {
  14729. return \Illuminate\Database\Query\Builder::setBindings($bindings, $type);
  14730. }
  14731. /**
  14732. * Add a binding to the query.
  14733. *
  14734. * @param mixed $value
  14735. * @param string $type
  14736. * @return $this
  14737. * @throws \InvalidArgumentException
  14738. * @static
  14739. */
  14740. public static function addBinding($value, $type = 'where')
  14741. {
  14742. return \Illuminate\Database\Query\Builder::addBinding($value, $type);
  14743. }
  14744. /**
  14745. * Merge an array of bindings into our bindings.
  14746. *
  14747. * @param \Illuminate\Database\Query\Builder $query
  14748. * @return $this
  14749. * @static
  14750. */
  14751. public static function mergeBindings($query)
  14752. {
  14753. return \Illuminate\Database\Query\Builder::mergeBindings($query);
  14754. }
  14755. /**
  14756. * Get the database query processor instance.
  14757. *
  14758. * @return \Illuminate\Database\Query\Processors\Processor
  14759. * @static
  14760. */
  14761. public static function getProcessor()
  14762. {
  14763. return \Illuminate\Database\Query\Builder::getProcessor();
  14764. }
  14765. /**
  14766. * Get the query grammar instance.
  14767. *
  14768. * @return \Illuminate\Database\Query\Grammars\Grammar
  14769. * @static
  14770. */
  14771. public static function getGrammar()
  14772. {
  14773. return \Illuminate\Database\Query\Builder::getGrammar();
  14774. }
  14775. /**
  14776. * Use the write pdo for query.
  14777. *
  14778. * @return $this
  14779. * @static
  14780. */
  14781. public static function useWritePdo()
  14782. {
  14783. return \Illuminate\Database\Query\Builder::useWritePdo();
  14784. }
  14785. /**
  14786. * Clone the query without the given properties.
  14787. *
  14788. * @param array $properties
  14789. * @return static
  14790. * @static
  14791. */
  14792. public static function cloneWithout($properties)
  14793. {
  14794. return \Illuminate\Database\Query\Builder::cloneWithout($properties);
  14795. }
  14796. /**
  14797. * Clone the query without the given bindings.
  14798. *
  14799. * @param array $except
  14800. * @return static
  14801. * @static
  14802. */
  14803. public static function cloneWithoutBindings($except)
  14804. {
  14805. return \Illuminate\Database\Query\Builder::cloneWithoutBindings($except);
  14806. }
  14807. /**
  14808. * Register a custom macro.
  14809. *
  14810. * @param string $name
  14811. * @param object|callable $macro
  14812. * @return void
  14813. * @static
  14814. */
  14815. public static function macro($name, $macro)
  14816. {
  14817. \Illuminate\Database\Query\Builder::macro($name, $macro);
  14818. }
  14819. /**
  14820. * Mix another object into the class.
  14821. *
  14822. * @param object $mixin
  14823. * @return void
  14824. * @throws \ReflectionException
  14825. * @static
  14826. */
  14827. public static function mixin($mixin)
  14828. {
  14829. \Illuminate\Database\Query\Builder::mixin($mixin);
  14830. }
  14831. /**
  14832. * Checks if macro is registered.
  14833. *
  14834. * @param string $name
  14835. * @return bool
  14836. * @static
  14837. */
  14838. public static function hasMacro($name)
  14839. {
  14840. return \Illuminate\Database\Query\Builder::hasMacro($name);
  14841. }
  14842. /**
  14843. * Dynamically handle calls to the class.
  14844. *
  14845. * @param string $method
  14846. * @param array $parameters
  14847. * @return mixed
  14848. * @throws \BadMethodCallException
  14849. * @static
  14850. */
  14851. public static function macroCall($method, $parameters)
  14852. {
  14853. return \Illuminate\Database\Query\Builder::macroCall($method, $parameters);
  14854. }
  14855. }
  14856. class Event extends \Illuminate\Support\Facades\Event {}
  14857. class File extends \Illuminate\Support\Facades\File {}
  14858. class Gate extends \Illuminate\Support\Facades\Gate {}
  14859. class Hash extends \Illuminate\Support\Facades\Hash {}
  14860. class Lang extends \Illuminate\Support\Facades\Lang {}
  14861. class Log extends \Illuminate\Support\Facades\Log {}
  14862. class Mail extends \Illuminate\Support\Facades\Mail {}
  14863. class Notification extends \Illuminate\Support\Facades\Notification {}
  14864. class Password extends \Illuminate\Support\Facades\Password {}
  14865. class Queue extends \Illuminate\Support\Facades\Queue {}
  14866. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  14867. class Redis extends \Illuminate\Support\Facades\Redis {}
  14868. class Request extends \Illuminate\Support\Facades\Request {}
  14869. class Response extends \Illuminate\Support\Facades\Response {}
  14870. class Route extends \Illuminate\Support\Facades\Route {}
  14871. class Schema extends \Illuminate\Support\Facades\Schema {}
  14872. class Session extends \Illuminate\Support\Facades\Session {}
  14873. class Storage extends \Illuminate\Support\Facades\Storage {}
  14874. class URL extends \Illuminate\Support\Facades\URL {}
  14875. class Validator extends \Illuminate\Support\Facades\Validator {}
  14876. class View extends \Illuminate\Support\Facades\View {}
  14877. class Captcha extends \Mews\Captcha\Facades\Captcha {}
  14878. class Agent extends \Jenssegers\Agent\Facades\Agent {}
  14879. class Purifier extends \Mews\Purifier\Facades\Purifier {}
  14880. class Image extends \Intervention\Image\Facades\Image {}
  14881. }