_ide_helper.php 425 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358
  1. <?php
  2. /**
  3. * A helper file for Laravel 5, to provide autocomplete information to your IDE
  4. * Generated for Laravel 5.4.36 on 2018-11-21 11:29:24.
  5. *
  6. * This file should not be included in your code, only analyzed by your IDE!
  7. *
  8. * @author Barry vd. Heuvel <[email protected]>
  9. * @see https://github.com/barryvdh/laravel-ide-helper
  10. */
  11. namespace Illuminate\Support\Facades {
  12. class App {
  13. /**
  14. * Get the version number of the application.
  15. *
  16. * @return string
  17. * @static
  18. */
  19. public static function version()
  20. {
  21. return \Illuminate\Foundation\Application::version();
  22. }
  23. /**
  24. * Run the given array of bootstrap classes.
  25. *
  26. * @param array $bootstrappers
  27. * @return void
  28. * @static
  29. */
  30. public static function bootstrapWith($bootstrappers)
  31. {
  32. \Illuminate\Foundation\Application::bootstrapWith($bootstrappers);
  33. }
  34. /**
  35. * Register a callback to run after loading the environment.
  36. *
  37. * @param \Closure $callback
  38. * @return void
  39. * @static
  40. */
  41. public static function afterLoadingEnvironment($callback)
  42. {
  43. \Illuminate\Foundation\Application::afterLoadingEnvironment($callback);
  44. }
  45. /**
  46. * Register a callback to run before a bootstrapper.
  47. *
  48. * @param string $bootstrapper
  49. * @param \Closure $callback
  50. * @return void
  51. * @static
  52. */
  53. public static function beforeBootstrapping($bootstrapper, $callback)
  54. {
  55. \Illuminate\Foundation\Application::beforeBootstrapping($bootstrapper, $callback);
  56. }
  57. /**
  58. * Register a callback to run after a bootstrapper.
  59. *
  60. * @param string $bootstrapper
  61. * @param \Closure $callback
  62. * @return void
  63. * @static
  64. */
  65. public static function afterBootstrapping($bootstrapper, $callback)
  66. {
  67. \Illuminate\Foundation\Application::afterBootstrapping($bootstrapper, $callback);
  68. }
  69. /**
  70. * Determine if the application has been bootstrapped before.
  71. *
  72. * @return bool
  73. * @static
  74. */
  75. public static function hasBeenBootstrapped()
  76. {
  77. return \Illuminate\Foundation\Application::hasBeenBootstrapped();
  78. }
  79. /**
  80. * Set the base path for the application.
  81. *
  82. * @param string $basePath
  83. * @return $this
  84. * @static
  85. */
  86. public static function setBasePath($basePath)
  87. {
  88. return \Illuminate\Foundation\Application::setBasePath($basePath);
  89. }
  90. /**
  91. * Get the path to the application "app" directory.
  92. *
  93. * @param string $path Optionally, a path to append to the app path
  94. * @return string
  95. * @static
  96. */
  97. public static function path($path = '')
  98. {
  99. return \Illuminate\Foundation\Application::path($path);
  100. }
  101. /**
  102. * Get the base path of the Laravel installation.
  103. *
  104. * @param string $path Optionally, a path to append to the base path
  105. * @return string
  106. * @static
  107. */
  108. public static function basePath($path = '')
  109. {
  110. return \Illuminate\Foundation\Application::basePath($path);
  111. }
  112. /**
  113. * Get the path to the bootstrap directory.
  114. *
  115. * @param string $path Optionally, a path to append to the bootstrap path
  116. * @return string
  117. * @static
  118. */
  119. public static function bootstrapPath($path = '')
  120. {
  121. return \Illuminate\Foundation\Application::bootstrapPath($path);
  122. }
  123. /**
  124. * Get the path to the application configuration files.
  125. *
  126. * @param string $path Optionally, a path to append to the config path
  127. * @return string
  128. * @static
  129. */
  130. public static function configPath($path = '')
  131. {
  132. return \Illuminate\Foundation\Application::configPath($path);
  133. }
  134. /**
  135. * Get the path to the database directory.
  136. *
  137. * @param string $path Optionally, a path to append to the database path
  138. * @return string
  139. * @static
  140. */
  141. public static function databasePath($path = '')
  142. {
  143. return \Illuminate\Foundation\Application::databasePath($path);
  144. }
  145. /**
  146. * Set the database directory.
  147. *
  148. * @param string $path
  149. * @return $this
  150. * @static
  151. */
  152. public static function useDatabasePath($path)
  153. {
  154. return \Illuminate\Foundation\Application::useDatabasePath($path);
  155. }
  156. /**
  157. * Get the path to the language files.
  158. *
  159. * @return string
  160. * @static
  161. */
  162. public static function langPath()
  163. {
  164. return \Illuminate\Foundation\Application::langPath();
  165. }
  166. /**
  167. * Get the path to the public / web directory.
  168. *
  169. * @return string
  170. * @static
  171. */
  172. public static function publicPath()
  173. {
  174. return \Illuminate\Foundation\Application::publicPath();
  175. }
  176. /**
  177. * Get the path to the storage directory.
  178. *
  179. * @return string
  180. * @static
  181. */
  182. public static function storagePath()
  183. {
  184. return \Illuminate\Foundation\Application::storagePath();
  185. }
  186. /**
  187. * Set the storage directory.
  188. *
  189. * @param string $path
  190. * @return $this
  191. * @static
  192. */
  193. public static function useStoragePath($path)
  194. {
  195. return \Illuminate\Foundation\Application::useStoragePath($path);
  196. }
  197. /**
  198. * Get the path to the resources directory.
  199. *
  200. * @param string $path
  201. * @return string
  202. * @static
  203. */
  204. public static function resourcePath($path = '')
  205. {
  206. return \Illuminate\Foundation\Application::resourcePath($path);
  207. }
  208. /**
  209. * Get the path to the environment file directory.
  210. *
  211. * @return string
  212. * @static
  213. */
  214. public static function environmentPath()
  215. {
  216. return \Illuminate\Foundation\Application::environmentPath();
  217. }
  218. /**
  219. * Set the directory for the environment file.
  220. *
  221. * @param string $path
  222. * @return $this
  223. * @static
  224. */
  225. public static function useEnvironmentPath($path)
  226. {
  227. return \Illuminate\Foundation\Application::useEnvironmentPath($path);
  228. }
  229. /**
  230. * Set the environment file to be loaded during bootstrapping.
  231. *
  232. * @param string $file
  233. * @return $this
  234. * @static
  235. */
  236. public static function loadEnvironmentFrom($file)
  237. {
  238. return \Illuminate\Foundation\Application::loadEnvironmentFrom($file);
  239. }
  240. /**
  241. * Get the environment file the application is using.
  242. *
  243. * @return string
  244. * @static
  245. */
  246. public static function environmentFile()
  247. {
  248. return \Illuminate\Foundation\Application::environmentFile();
  249. }
  250. /**
  251. * Get the fully qualified path to the environment file.
  252. *
  253. * @return string
  254. * @static
  255. */
  256. public static function environmentFilePath()
  257. {
  258. return \Illuminate\Foundation\Application::environmentFilePath();
  259. }
  260. /**
  261. * Get or check the current application environment.
  262. *
  263. * @return string|bool
  264. * @static
  265. */
  266. public static function environment()
  267. {
  268. return \Illuminate\Foundation\Application::environment();
  269. }
  270. /**
  271. * Determine if application is in local environment.
  272. *
  273. * @return bool
  274. * @static
  275. */
  276. public static function isLocal()
  277. {
  278. return \Illuminate\Foundation\Application::isLocal();
  279. }
  280. /**
  281. * Detect the application's current environment.
  282. *
  283. * @param \Closure $callback
  284. * @return string
  285. * @static
  286. */
  287. public static function detectEnvironment($callback)
  288. {
  289. return \Illuminate\Foundation\Application::detectEnvironment($callback);
  290. }
  291. /**
  292. * Determine if we are running in the console.
  293. *
  294. * @return bool
  295. * @static
  296. */
  297. public static function runningInConsole()
  298. {
  299. return \Illuminate\Foundation\Application::runningInConsole();
  300. }
  301. /**
  302. * Determine if we are running unit tests.
  303. *
  304. * @return bool
  305. * @static
  306. */
  307. public static function runningUnitTests()
  308. {
  309. return \Illuminate\Foundation\Application::runningUnitTests();
  310. }
  311. /**
  312. * Register all of the configured providers.
  313. *
  314. * @return void
  315. * @static
  316. */
  317. public static function registerConfiguredProviders()
  318. {
  319. \Illuminate\Foundation\Application::registerConfiguredProviders();
  320. }
  321. /**
  322. * Register a service provider with the application.
  323. *
  324. * @param \Illuminate\Support\ServiceProvider|string $provider
  325. * @param array $options
  326. * @param bool $force
  327. * @return \Illuminate\Support\ServiceProvider
  328. * @static
  329. */
  330. public static function register($provider, $options = array(), $force = false)
  331. {
  332. return \Illuminate\Foundation\Application::register($provider, $options, $force);
  333. }
  334. /**
  335. * Get the registered service provider instance if it exists.
  336. *
  337. * @param \Illuminate\Support\ServiceProvider|string $provider
  338. * @return \Illuminate\Support\ServiceProvider|null
  339. * @static
  340. */
  341. public static function getProvider($provider)
  342. {
  343. return \Illuminate\Foundation\Application::getProvider($provider);
  344. }
  345. /**
  346. * Resolve a service provider instance from the class name.
  347. *
  348. * @param string $provider
  349. * @return \Illuminate\Support\ServiceProvider
  350. * @static
  351. */
  352. public static function resolveProvider($provider)
  353. {
  354. return \Illuminate\Foundation\Application::resolveProvider($provider);
  355. }
  356. /**
  357. * Load and boot all of the remaining deferred providers.
  358. *
  359. * @return void
  360. * @static
  361. */
  362. public static function loadDeferredProviders()
  363. {
  364. \Illuminate\Foundation\Application::loadDeferredProviders();
  365. }
  366. /**
  367. * Load the provider for a deferred service.
  368. *
  369. * @param string $service
  370. * @return void
  371. * @static
  372. */
  373. public static function loadDeferredProvider($service)
  374. {
  375. \Illuminate\Foundation\Application::loadDeferredProvider($service);
  376. }
  377. /**
  378. * Register a deferred provider and service.
  379. *
  380. * @param string $provider
  381. * @param string|null $service
  382. * @return void
  383. * @static
  384. */
  385. public static function registerDeferredProvider($provider, $service = null)
  386. {
  387. \Illuminate\Foundation\Application::registerDeferredProvider($provider, $service);
  388. }
  389. /**
  390. * Resolve the given type from the container.
  391. *
  392. * (Overriding Container::makeWith)
  393. *
  394. * @param string $abstract
  395. * @param array $parameters
  396. * @return mixed
  397. * @static
  398. */
  399. public static function makeWith($abstract, $parameters)
  400. {
  401. return \Illuminate\Foundation\Application::makeWith($abstract, $parameters);
  402. }
  403. /**
  404. * Resolve the given type from the container.
  405. *
  406. * (Overriding Container::make)
  407. *
  408. * @param string $abstract
  409. * @return mixed
  410. * @static
  411. */
  412. public static function make($abstract)
  413. {
  414. return \Illuminate\Foundation\Application::make($abstract);
  415. }
  416. /**
  417. * Determine if the given abstract type has been bound.
  418. *
  419. * (Overriding Container::bound)
  420. *
  421. * @param string $abstract
  422. * @return bool
  423. * @static
  424. */
  425. public static function bound($abstract)
  426. {
  427. return \Illuminate\Foundation\Application::bound($abstract);
  428. }
  429. /**
  430. * Determine if the application has booted.
  431. *
  432. * @return bool
  433. * @static
  434. */
  435. public static function isBooted()
  436. {
  437. return \Illuminate\Foundation\Application::isBooted();
  438. }
  439. /**
  440. * Boot the application's service providers.
  441. *
  442. * @return void
  443. * @static
  444. */
  445. public static function boot()
  446. {
  447. \Illuminate\Foundation\Application::boot();
  448. }
  449. /**
  450. * Register a new boot listener.
  451. *
  452. * @param mixed $callback
  453. * @return void
  454. * @static
  455. */
  456. public static function booting($callback)
  457. {
  458. \Illuminate\Foundation\Application::booting($callback);
  459. }
  460. /**
  461. * Register a new "booted" listener.
  462. *
  463. * @param mixed $callback
  464. * @return void
  465. * @static
  466. */
  467. public static function booted($callback)
  468. {
  469. \Illuminate\Foundation\Application::booted($callback);
  470. }
  471. /**
  472. * {@inheritdoc}
  473. *
  474. * @static
  475. */
  476. public static function handle($request, $type = 1, $catch = true)
  477. {
  478. return \Illuminate\Foundation\Application::handle($request, $type, $catch);
  479. }
  480. /**
  481. * Determine if middleware has been disabled for the application.
  482. *
  483. * @return bool
  484. * @static
  485. */
  486. public static function shouldSkipMiddleware()
  487. {
  488. return \Illuminate\Foundation\Application::shouldSkipMiddleware();
  489. }
  490. /**
  491. * Get the path to the cached services.php file.
  492. *
  493. * @return string
  494. * @static
  495. */
  496. public static function getCachedServicesPath()
  497. {
  498. return \Illuminate\Foundation\Application::getCachedServicesPath();
  499. }
  500. /**
  501. * Determine if the application configuration is cached.
  502. *
  503. * @return bool
  504. * @static
  505. */
  506. public static function configurationIsCached()
  507. {
  508. return \Illuminate\Foundation\Application::configurationIsCached();
  509. }
  510. /**
  511. * Get the path to the configuration cache file.
  512. *
  513. * @return string
  514. * @static
  515. */
  516. public static function getCachedConfigPath()
  517. {
  518. return \Illuminate\Foundation\Application::getCachedConfigPath();
  519. }
  520. /**
  521. * Determine if the application routes are cached.
  522. *
  523. * @return bool
  524. * @static
  525. */
  526. public static function routesAreCached()
  527. {
  528. return \Illuminate\Foundation\Application::routesAreCached();
  529. }
  530. /**
  531. * Get the path to the routes cache file.
  532. *
  533. * @return string
  534. * @static
  535. */
  536. public static function getCachedRoutesPath()
  537. {
  538. return \Illuminate\Foundation\Application::getCachedRoutesPath();
  539. }
  540. /**
  541. * Determine if the application is currently down for maintenance.
  542. *
  543. * @return bool
  544. * @static
  545. */
  546. public static function isDownForMaintenance()
  547. {
  548. return \Illuminate\Foundation\Application::isDownForMaintenance();
  549. }
  550. /**
  551. * Throw an HttpException with the given data.
  552. *
  553. * @param int $code
  554. * @param string $message
  555. * @param array $headers
  556. * @return void
  557. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  558. * @static
  559. */
  560. public static function abort($code, $message = '', $headers = array())
  561. {
  562. \Illuminate\Foundation\Application::abort($code, $message, $headers);
  563. }
  564. /**
  565. * Register a terminating callback with the application.
  566. *
  567. * @param \Closure $callback
  568. * @return $this
  569. * @static
  570. */
  571. public static function terminating($callback)
  572. {
  573. return \Illuminate\Foundation\Application::terminating($callback);
  574. }
  575. /**
  576. * Terminate the application.
  577. *
  578. * @return void
  579. * @static
  580. */
  581. public static function terminate()
  582. {
  583. \Illuminate\Foundation\Application::terminate();
  584. }
  585. /**
  586. * Get the service providers that have been loaded.
  587. *
  588. * @return array
  589. * @static
  590. */
  591. public static function getLoadedProviders()
  592. {
  593. return \Illuminate\Foundation\Application::getLoadedProviders();
  594. }
  595. /**
  596. * Get the application's deferred services.
  597. *
  598. * @return array
  599. * @static
  600. */
  601. public static function getDeferredServices()
  602. {
  603. return \Illuminate\Foundation\Application::getDeferredServices();
  604. }
  605. /**
  606. * Set the application's deferred services.
  607. *
  608. * @param array $services
  609. * @return void
  610. * @static
  611. */
  612. public static function setDeferredServices($services)
  613. {
  614. \Illuminate\Foundation\Application::setDeferredServices($services);
  615. }
  616. /**
  617. * Add an array of services to the application's deferred services.
  618. *
  619. * @param array $services
  620. * @return void
  621. * @static
  622. */
  623. public static function addDeferredServices($services)
  624. {
  625. \Illuminate\Foundation\Application::addDeferredServices($services);
  626. }
  627. /**
  628. * Determine if the given service is a deferred service.
  629. *
  630. * @param string $service
  631. * @return bool
  632. * @static
  633. */
  634. public static function isDeferredService($service)
  635. {
  636. return \Illuminate\Foundation\Application::isDeferredService($service);
  637. }
  638. /**
  639. * Configure the real-time facade namespace.
  640. *
  641. * @param string $namespace
  642. * @return void
  643. * @static
  644. */
  645. public static function provideFacades($namespace)
  646. {
  647. \Illuminate\Foundation\Application::provideFacades($namespace);
  648. }
  649. /**
  650. * Define a callback to be used to configure Monolog.
  651. *
  652. * @param callable $callback
  653. * @return $this
  654. * @static
  655. */
  656. public static function configureMonologUsing($callback)
  657. {
  658. return \Illuminate\Foundation\Application::configureMonologUsing($callback);
  659. }
  660. /**
  661. * Determine if the application has a custom Monolog configurator.
  662. *
  663. * @return bool
  664. * @static
  665. */
  666. public static function hasMonologConfigurator()
  667. {
  668. return \Illuminate\Foundation\Application::hasMonologConfigurator();
  669. }
  670. /**
  671. * Get the custom Monolog configurator for the application.
  672. *
  673. * @return callable
  674. * @static
  675. */
  676. public static function getMonologConfigurator()
  677. {
  678. return \Illuminate\Foundation\Application::getMonologConfigurator();
  679. }
  680. /**
  681. * Get the current application locale.
  682. *
  683. * @return string
  684. * @static
  685. */
  686. public static function getLocale()
  687. {
  688. return \Illuminate\Foundation\Application::getLocale();
  689. }
  690. /**
  691. * Set the current application locale.
  692. *
  693. * @param string $locale
  694. * @return void
  695. * @static
  696. */
  697. public static function setLocale($locale)
  698. {
  699. \Illuminate\Foundation\Application::setLocale($locale);
  700. }
  701. /**
  702. * Determine if application locale is the given locale.
  703. *
  704. * @param string $locale
  705. * @return bool
  706. * @static
  707. */
  708. public static function isLocale($locale)
  709. {
  710. return \Illuminate\Foundation\Application::isLocale($locale);
  711. }
  712. /**
  713. * Register the core class aliases in the container.
  714. *
  715. * @return void
  716. * @static
  717. */
  718. public static function registerCoreContainerAliases()
  719. {
  720. \Illuminate\Foundation\Application::registerCoreContainerAliases();
  721. }
  722. /**
  723. * Flush the container of all bindings and resolved instances.
  724. *
  725. * @return void
  726. * @static
  727. */
  728. public static function flush()
  729. {
  730. \Illuminate\Foundation\Application::flush();
  731. }
  732. /**
  733. * Get the application namespace.
  734. *
  735. * @return string
  736. * @throws \RuntimeException
  737. * @static
  738. */
  739. public static function getNamespace()
  740. {
  741. return \Illuminate\Foundation\Application::getNamespace();
  742. }
  743. /**
  744. * Define a contextual binding.
  745. *
  746. * @param string $concrete
  747. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  748. * @static
  749. */
  750. public static function when($concrete)
  751. {
  752. //Method inherited from \Illuminate\Container\Container
  753. return \Illuminate\Foundation\Application::when($concrete);
  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|array $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 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|array $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 void
  904. * @static
  905. */
  906. public static function instance($abstract, $instance)
  907. {
  908. //Method inherited from \Illuminate\Container\Container
  909. \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. * Instantiate a concrete instance of the given type.
  1017. *
  1018. * @param string $concrete
  1019. * @return mixed
  1020. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1021. * @static
  1022. */
  1023. public static function build($concrete)
  1024. {
  1025. //Method inherited from \Illuminate\Container\Container
  1026. return \Illuminate\Foundation\Application::build($concrete);
  1027. }
  1028. /**
  1029. * Register a new resolving callback.
  1030. *
  1031. * @param string $abstract
  1032. * @param \Closure|null $callback
  1033. * @return void
  1034. * @static
  1035. */
  1036. public static function resolving($abstract, $callback = null)
  1037. {
  1038. //Method inherited from \Illuminate\Container\Container
  1039. \Illuminate\Foundation\Application::resolving($abstract, $callback);
  1040. }
  1041. /**
  1042. * Register a new after resolving callback for all types.
  1043. *
  1044. * @param string $abstract
  1045. * @param \Closure|null $callback
  1046. * @return void
  1047. * @static
  1048. */
  1049. public static function afterResolving($abstract, $callback = null)
  1050. {
  1051. //Method inherited from \Illuminate\Container\Container
  1052. \Illuminate\Foundation\Application::afterResolving($abstract, $callback);
  1053. }
  1054. /**
  1055. * Get the container's bindings.
  1056. *
  1057. * @return array
  1058. * @static
  1059. */
  1060. public static function getBindings()
  1061. {
  1062. //Method inherited from \Illuminate\Container\Container
  1063. return \Illuminate\Foundation\Application::getBindings();
  1064. }
  1065. /**
  1066. * Get the alias for an abstract if available.
  1067. *
  1068. * @param string $abstract
  1069. * @return string
  1070. * @throws \LogicException
  1071. * @static
  1072. */
  1073. public static function getAlias($abstract)
  1074. {
  1075. //Method inherited from \Illuminate\Container\Container
  1076. return \Illuminate\Foundation\Application::getAlias($abstract);
  1077. }
  1078. /**
  1079. * Remove all of the extender callbacks for a given type.
  1080. *
  1081. * @param string $abstract
  1082. * @return void
  1083. * @static
  1084. */
  1085. public static function forgetExtenders($abstract)
  1086. {
  1087. //Method inherited from \Illuminate\Container\Container
  1088. \Illuminate\Foundation\Application::forgetExtenders($abstract);
  1089. }
  1090. /**
  1091. * Remove a resolved instance from the instance cache.
  1092. *
  1093. * @param string $abstract
  1094. * @return void
  1095. * @static
  1096. */
  1097. public static function forgetInstance($abstract)
  1098. {
  1099. //Method inherited from \Illuminate\Container\Container
  1100. \Illuminate\Foundation\Application::forgetInstance($abstract);
  1101. }
  1102. /**
  1103. * Clear all of the instances from the container.
  1104. *
  1105. * @return void
  1106. * @static
  1107. */
  1108. public static function forgetInstances()
  1109. {
  1110. //Method inherited from \Illuminate\Container\Container
  1111. \Illuminate\Foundation\Application::forgetInstances();
  1112. }
  1113. /**
  1114. * Set the globally available instance of the container.
  1115. *
  1116. * @return static
  1117. * @static
  1118. */
  1119. public static function getInstance()
  1120. {
  1121. //Method inherited from \Illuminate\Container\Container
  1122. return \Illuminate\Foundation\Application::getInstance();
  1123. }
  1124. /**
  1125. * Set the shared instance of the container.
  1126. *
  1127. * @param \Illuminate\Contracts\Container\Container|null $container
  1128. * @return static
  1129. * @static
  1130. */
  1131. public static function setInstance($container = null)
  1132. {
  1133. //Method inherited from \Illuminate\Container\Container
  1134. return \Illuminate\Foundation\Application::setInstance($container);
  1135. }
  1136. /**
  1137. * Determine if a given offset exists.
  1138. *
  1139. * @param string $key
  1140. * @return bool
  1141. * @static
  1142. */
  1143. public static function offsetExists($key)
  1144. {
  1145. //Method inherited from \Illuminate\Container\Container
  1146. return \Illuminate\Foundation\Application::offsetExists($key);
  1147. }
  1148. /**
  1149. * Get the value at a given offset.
  1150. *
  1151. * @param string $key
  1152. * @return mixed
  1153. * @static
  1154. */
  1155. public static function offsetGet($key)
  1156. {
  1157. //Method inherited from \Illuminate\Container\Container
  1158. return \Illuminate\Foundation\Application::offsetGet($key);
  1159. }
  1160. /**
  1161. * Set the value at a given offset.
  1162. *
  1163. * @param string $key
  1164. * @param mixed $value
  1165. * @return void
  1166. * @static
  1167. */
  1168. public static function offsetSet($key, $value)
  1169. {
  1170. //Method inherited from \Illuminate\Container\Container
  1171. \Illuminate\Foundation\Application::offsetSet($key, $value);
  1172. }
  1173. /**
  1174. * Unset the value at a given offset.
  1175. *
  1176. * @param string $key
  1177. * @return void
  1178. * @static
  1179. */
  1180. public static function offsetUnset($key)
  1181. {
  1182. //Method inherited from \Illuminate\Container\Container
  1183. \Illuminate\Foundation\Application::offsetUnset($key);
  1184. }
  1185. }
  1186. class Artisan {
  1187. /**
  1188. * Run the console application.
  1189. *
  1190. * @param \Symfony\Component\Console\Input\InputInterface $input
  1191. * @param \Symfony\Component\Console\Output\OutputInterface $output
  1192. * @return int
  1193. * @static
  1194. */
  1195. public static function handle($input, $output = null)
  1196. {
  1197. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1198. return \App\Console\Kernel::handle($input, $output);
  1199. }
  1200. /**
  1201. * Terminate the application.
  1202. *
  1203. * @param \Symfony\Component\Console\Input\InputInterface $input
  1204. * @param int $status
  1205. * @return void
  1206. * @static
  1207. */
  1208. public static function terminate($input, $status)
  1209. {
  1210. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1211. \App\Console\Kernel::terminate($input, $status);
  1212. }
  1213. /**
  1214. * Register a Closure based command with the application.
  1215. *
  1216. * @param string $signature
  1217. * @param \Closure $callback
  1218. * @return \Illuminate\Foundation\Console\ClosureCommand
  1219. * @static
  1220. */
  1221. public static function command($signature, $callback)
  1222. {
  1223. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1224. return \App\Console\Kernel::command($signature, $callback);
  1225. }
  1226. /**
  1227. * Register the given command with the console application.
  1228. *
  1229. * @param \Symfony\Component\Console\Command\Command $command
  1230. * @return void
  1231. * @static
  1232. */
  1233. public static function registerCommand($command)
  1234. {
  1235. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1236. \App\Console\Kernel::registerCommand($command);
  1237. }
  1238. /**
  1239. * Run an Artisan console command by name.
  1240. *
  1241. * @param string $command
  1242. * @param array $parameters
  1243. * @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
  1244. * @return int
  1245. * @static
  1246. */
  1247. public static function call($command, $parameters = array(), $outputBuffer = null)
  1248. {
  1249. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1250. return \App\Console\Kernel::call($command, $parameters, $outputBuffer);
  1251. }
  1252. /**
  1253. * Queue the given console command.
  1254. *
  1255. * @param string $command
  1256. * @param array $parameters
  1257. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1258. * @static
  1259. */
  1260. public static function queue($command, $parameters = array())
  1261. {
  1262. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1263. return \App\Console\Kernel::queue($command, $parameters);
  1264. }
  1265. /**
  1266. * Get all of the commands registered with the console.
  1267. *
  1268. * @return array
  1269. * @static
  1270. */
  1271. public static function all()
  1272. {
  1273. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1274. return \App\Console\Kernel::all();
  1275. }
  1276. /**
  1277. * Get the output for the last run command.
  1278. *
  1279. * @return string
  1280. * @static
  1281. */
  1282. public static function output()
  1283. {
  1284. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1285. return \App\Console\Kernel::output();
  1286. }
  1287. /**
  1288. * Bootstrap the application for artisan commands.
  1289. *
  1290. * @return void
  1291. * @static
  1292. */
  1293. public static function bootstrap()
  1294. {
  1295. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1296. \App\Console\Kernel::bootstrap();
  1297. }
  1298. /**
  1299. * Set the Artisan application instance.
  1300. *
  1301. * @param \Illuminate\Console\Application $artisan
  1302. * @return void
  1303. * @static
  1304. */
  1305. public static function setArtisan($artisan)
  1306. {
  1307. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1308. \App\Console\Kernel::setArtisan($artisan);
  1309. }
  1310. }
  1311. class Auth {
  1312. /**
  1313. * Attempt to get the guard from the local cache.
  1314. *
  1315. * @param string $name
  1316. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1317. * @static
  1318. */
  1319. public static function guard($name = null)
  1320. {
  1321. return \Illuminate\Auth\AuthManager::guard($name);
  1322. }
  1323. /**
  1324. * Create a session based authentication guard.
  1325. *
  1326. * @param string $name
  1327. * @param array $config
  1328. * @return \Illuminate\Auth\SessionGuard
  1329. * @static
  1330. */
  1331. public static function createSessionDriver($name, $config)
  1332. {
  1333. return \Illuminate\Auth\AuthManager::createSessionDriver($name, $config);
  1334. }
  1335. /**
  1336. * Create a token based authentication guard.
  1337. *
  1338. * @param string $name
  1339. * @param array $config
  1340. * @return \Illuminate\Auth\TokenGuard
  1341. * @static
  1342. */
  1343. public static function createTokenDriver($name, $config)
  1344. {
  1345. return \Illuminate\Auth\AuthManager::createTokenDriver($name, $config);
  1346. }
  1347. /**
  1348. * Get the default authentication driver name.
  1349. *
  1350. * @return string
  1351. * @static
  1352. */
  1353. public static function getDefaultDriver()
  1354. {
  1355. return \Illuminate\Auth\AuthManager::getDefaultDriver();
  1356. }
  1357. /**
  1358. * Set the default guard driver the factory should serve.
  1359. *
  1360. * @param string $name
  1361. * @return void
  1362. * @static
  1363. */
  1364. public static function shouldUse($name)
  1365. {
  1366. \Illuminate\Auth\AuthManager::shouldUse($name);
  1367. }
  1368. /**
  1369. * Set the default authentication driver name.
  1370. *
  1371. * @param string $name
  1372. * @return void
  1373. * @static
  1374. */
  1375. public static function setDefaultDriver($name)
  1376. {
  1377. \Illuminate\Auth\AuthManager::setDefaultDriver($name);
  1378. }
  1379. /**
  1380. * Register a new callback based request guard.
  1381. *
  1382. * @param string $driver
  1383. * @param callable $callback
  1384. * @return $this
  1385. * @static
  1386. */
  1387. public static function viaRequest($driver, $callback)
  1388. {
  1389. return \Illuminate\Auth\AuthManager::viaRequest($driver, $callback);
  1390. }
  1391. /**
  1392. * Get the user resolver callback.
  1393. *
  1394. * @return \Closure
  1395. * @static
  1396. */
  1397. public static function userResolver()
  1398. {
  1399. return \Illuminate\Auth\AuthManager::userResolver();
  1400. }
  1401. /**
  1402. * Set the callback to be used to resolve users.
  1403. *
  1404. * @param \Closure $userResolver
  1405. * @return $this
  1406. * @static
  1407. */
  1408. public static function resolveUsersUsing($userResolver)
  1409. {
  1410. return \Illuminate\Auth\AuthManager::resolveUsersUsing($userResolver);
  1411. }
  1412. /**
  1413. * Register a custom driver creator Closure.
  1414. *
  1415. * @param string $driver
  1416. * @param \Closure $callback
  1417. * @return $this
  1418. * @static
  1419. */
  1420. public static function extend($driver, $callback)
  1421. {
  1422. return \Illuminate\Auth\AuthManager::extend($driver, $callback);
  1423. }
  1424. /**
  1425. * Register a custom provider creator Closure.
  1426. *
  1427. * @param string $name
  1428. * @param \Closure $callback
  1429. * @return $this
  1430. * @static
  1431. */
  1432. public static function provider($name, $callback)
  1433. {
  1434. return \Illuminate\Auth\AuthManager::provider($name, $callback);
  1435. }
  1436. /**
  1437. * Create the user provider implementation for the driver.
  1438. *
  1439. * @param string $provider
  1440. * @return \Illuminate\Contracts\Auth\UserProvider
  1441. * @throws \InvalidArgumentException
  1442. * @static
  1443. */
  1444. public static function createUserProvider($provider)
  1445. {
  1446. return \Illuminate\Auth\AuthManager::createUserProvider($provider);
  1447. }
  1448. /**
  1449. * Get the currently authenticated user.
  1450. *
  1451. * @return \App\Http\Models\User|null
  1452. * @static
  1453. */
  1454. public static function user()
  1455. {
  1456. return \Illuminate\Auth\SessionGuard::user();
  1457. }
  1458. /**
  1459. * Get the ID for the currently authenticated user.
  1460. *
  1461. * @return int|null
  1462. * @static
  1463. */
  1464. public static function id()
  1465. {
  1466. return \Illuminate\Auth\SessionGuard::id();
  1467. }
  1468. /**
  1469. * Log a user into the application without sessions or cookies.
  1470. *
  1471. * @param array $credentials
  1472. * @return bool
  1473. * @static
  1474. */
  1475. public static function once($credentials = array())
  1476. {
  1477. return \Illuminate\Auth\SessionGuard::once($credentials);
  1478. }
  1479. /**
  1480. * Log the given user ID into the application without sessions or cookies.
  1481. *
  1482. * @param mixed $id
  1483. * @return \App\Http\Models\User|false
  1484. * @static
  1485. */
  1486. public static function onceUsingId($id)
  1487. {
  1488. return \Illuminate\Auth\SessionGuard::onceUsingId($id);
  1489. }
  1490. /**
  1491. * Validate a user's credentials.
  1492. *
  1493. * @param array $credentials
  1494. * @return bool
  1495. * @static
  1496. */
  1497. public static function validate($credentials = array())
  1498. {
  1499. return \Illuminate\Auth\SessionGuard::validate($credentials);
  1500. }
  1501. /**
  1502. * Attempt to authenticate using HTTP Basic Auth.
  1503. *
  1504. * @param string $field
  1505. * @param array $extraConditions
  1506. * @return \Symfony\Component\HttpFoundation\Response|null
  1507. * @static
  1508. */
  1509. public static function basic($field = 'email', $extraConditions = array())
  1510. {
  1511. return \Illuminate\Auth\SessionGuard::basic($field, $extraConditions);
  1512. }
  1513. /**
  1514. * Perform a stateless HTTP Basic login attempt.
  1515. *
  1516. * @param string $field
  1517. * @param array $extraConditions
  1518. * @return \Symfony\Component\HttpFoundation\Response|null
  1519. * @static
  1520. */
  1521. public static function onceBasic($field = 'email', $extraConditions = array())
  1522. {
  1523. return \Illuminate\Auth\SessionGuard::onceBasic($field, $extraConditions);
  1524. }
  1525. /**
  1526. * Attempt to authenticate a user using the given credentials.
  1527. *
  1528. * @param array $credentials
  1529. * @param bool $remember
  1530. * @return bool
  1531. * @static
  1532. */
  1533. public static function attempt($credentials = array(), $remember = false)
  1534. {
  1535. return \Illuminate\Auth\SessionGuard::attempt($credentials, $remember);
  1536. }
  1537. /**
  1538. * Log the given user ID into the application.
  1539. *
  1540. * @param mixed $id
  1541. * @param bool $remember
  1542. * @return \App\Http\Models\User|false
  1543. * @static
  1544. */
  1545. public static function loginUsingId($id, $remember = false)
  1546. {
  1547. return \Illuminate\Auth\SessionGuard::loginUsingId($id, $remember);
  1548. }
  1549. /**
  1550. * Log a user into the application.
  1551. *
  1552. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1553. * @param bool $remember
  1554. * @return void
  1555. * @static
  1556. */
  1557. public static function login($user, $remember = false)
  1558. {
  1559. \Illuminate\Auth\SessionGuard::login($user, $remember);
  1560. }
  1561. /**
  1562. * Log the user out of the application.
  1563. *
  1564. * @return void
  1565. * @static
  1566. */
  1567. public static function logout()
  1568. {
  1569. \Illuminate\Auth\SessionGuard::logout();
  1570. }
  1571. /**
  1572. * Register an authentication attempt event listener.
  1573. *
  1574. * @param mixed $callback
  1575. * @return void
  1576. * @static
  1577. */
  1578. public static function attempting($callback)
  1579. {
  1580. \Illuminate\Auth\SessionGuard::attempting($callback);
  1581. }
  1582. /**
  1583. * Get the last user we attempted to authenticate.
  1584. *
  1585. * @return \App\Http\Models\User
  1586. * @static
  1587. */
  1588. public static function getLastAttempted()
  1589. {
  1590. return \Illuminate\Auth\SessionGuard::getLastAttempted();
  1591. }
  1592. /**
  1593. * Get a unique identifier for the auth session value.
  1594. *
  1595. * @return string
  1596. * @static
  1597. */
  1598. public static function getName()
  1599. {
  1600. return \Illuminate\Auth\SessionGuard::getName();
  1601. }
  1602. /**
  1603. * Get the name of the cookie used to store the "recaller".
  1604. *
  1605. * @return string
  1606. * @static
  1607. */
  1608. public static function getRecallerName()
  1609. {
  1610. return \Illuminate\Auth\SessionGuard::getRecallerName();
  1611. }
  1612. /**
  1613. * Determine if the user was authenticated via "remember me" cookie.
  1614. *
  1615. * @return bool
  1616. * @static
  1617. */
  1618. public static function viaRemember()
  1619. {
  1620. return \Illuminate\Auth\SessionGuard::viaRemember();
  1621. }
  1622. /**
  1623. * Get the cookie creator instance used by the guard.
  1624. *
  1625. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1626. * @throws \RuntimeException
  1627. * @static
  1628. */
  1629. public static function getCookieJar()
  1630. {
  1631. return \Illuminate\Auth\SessionGuard::getCookieJar();
  1632. }
  1633. /**
  1634. * Set the cookie creator instance used by the guard.
  1635. *
  1636. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1637. * @return void
  1638. * @static
  1639. */
  1640. public static function setCookieJar($cookie)
  1641. {
  1642. \Illuminate\Auth\SessionGuard::setCookieJar($cookie);
  1643. }
  1644. /**
  1645. * Get the event dispatcher instance.
  1646. *
  1647. * @return \Illuminate\Contracts\Events\Dispatcher
  1648. * @static
  1649. */
  1650. public static function getDispatcher()
  1651. {
  1652. return \Illuminate\Auth\SessionGuard::getDispatcher();
  1653. }
  1654. /**
  1655. * Set the event dispatcher instance.
  1656. *
  1657. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1658. * @return void
  1659. * @static
  1660. */
  1661. public static function setDispatcher($events)
  1662. {
  1663. \Illuminate\Auth\SessionGuard::setDispatcher($events);
  1664. }
  1665. /**
  1666. * Get the session store used by the guard.
  1667. *
  1668. * @return \Illuminate\Session\Store
  1669. * @static
  1670. */
  1671. public static function getSession()
  1672. {
  1673. return \Illuminate\Auth\SessionGuard::getSession();
  1674. }
  1675. /**
  1676. * Get the user provider used by the guard.
  1677. *
  1678. * @return \Illuminate\Contracts\Auth\UserProvider
  1679. * @static
  1680. */
  1681. public static function getProvider()
  1682. {
  1683. return \Illuminate\Auth\SessionGuard::getProvider();
  1684. }
  1685. /**
  1686. * Set the user provider used by the guard.
  1687. *
  1688. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  1689. * @return void
  1690. * @static
  1691. */
  1692. public static function setProvider($provider)
  1693. {
  1694. \Illuminate\Auth\SessionGuard::setProvider($provider);
  1695. }
  1696. /**
  1697. * Return the currently cached user.
  1698. *
  1699. * @return \App\Http\Models\User|null
  1700. * @static
  1701. */
  1702. public static function getUser()
  1703. {
  1704. return \Illuminate\Auth\SessionGuard::getUser();
  1705. }
  1706. /**
  1707. * Set the current user.
  1708. *
  1709. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1710. * @return $this
  1711. * @static
  1712. */
  1713. public static function setUser($user)
  1714. {
  1715. return \Illuminate\Auth\SessionGuard::setUser($user);
  1716. }
  1717. /**
  1718. * Get the current request instance.
  1719. *
  1720. * @return \Symfony\Component\HttpFoundation\Request
  1721. * @static
  1722. */
  1723. public static function getRequest()
  1724. {
  1725. return \Illuminate\Auth\SessionGuard::getRequest();
  1726. }
  1727. /**
  1728. * Set the current request instance.
  1729. *
  1730. * @param \Symfony\Component\HttpFoundation\Request $request
  1731. * @return $this
  1732. * @static
  1733. */
  1734. public static function setRequest($request)
  1735. {
  1736. return \Illuminate\Auth\SessionGuard::setRequest($request);
  1737. }
  1738. /**
  1739. * Determine if the current user is authenticated.
  1740. *
  1741. * @return \App\Http\Models\User
  1742. * @throws \Illuminate\Auth\AuthenticationException
  1743. * @static
  1744. */
  1745. public static function authenticate()
  1746. {
  1747. return \Illuminate\Auth\SessionGuard::authenticate();
  1748. }
  1749. /**
  1750. * Determine if the current user is authenticated.
  1751. *
  1752. * @return bool
  1753. * @static
  1754. */
  1755. public static function check()
  1756. {
  1757. return \Illuminate\Auth\SessionGuard::check();
  1758. }
  1759. /**
  1760. * Determine if the current user is a guest.
  1761. *
  1762. * @return bool
  1763. * @static
  1764. */
  1765. public static function guest()
  1766. {
  1767. return \Illuminate\Auth\SessionGuard::guest();
  1768. }
  1769. /**
  1770. * Register a custom macro.
  1771. *
  1772. * @param string $name
  1773. * @param callable $macro
  1774. * @return void
  1775. * @static
  1776. */
  1777. public static function macro($name, $macro)
  1778. {
  1779. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  1780. }
  1781. /**
  1782. * Checks if macro is registered.
  1783. *
  1784. * @param string $name
  1785. * @return bool
  1786. * @static
  1787. */
  1788. public static function hasMacro($name)
  1789. {
  1790. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  1791. }
  1792. }
  1793. class Blade {
  1794. /**
  1795. * Compile the view at the given path.
  1796. *
  1797. * @param string $path
  1798. * @return void
  1799. * @static
  1800. */
  1801. public static function compile($path = null)
  1802. {
  1803. \Illuminate\View\Compilers\BladeCompiler::compile($path);
  1804. }
  1805. /**
  1806. * Get the path currently being compiled.
  1807. *
  1808. * @return string
  1809. * @static
  1810. */
  1811. public static function getPath()
  1812. {
  1813. return \Illuminate\View\Compilers\BladeCompiler::getPath();
  1814. }
  1815. /**
  1816. * Set the path currently being compiled.
  1817. *
  1818. * @param string $path
  1819. * @return void
  1820. * @static
  1821. */
  1822. public static function setPath($path)
  1823. {
  1824. \Illuminate\View\Compilers\BladeCompiler::setPath($path);
  1825. }
  1826. /**
  1827. * Compile the given Blade template contents.
  1828. *
  1829. * @param string $value
  1830. * @return string
  1831. * @static
  1832. */
  1833. public static function compileString($value)
  1834. {
  1835. return \Illuminate\View\Compilers\BladeCompiler::compileString($value);
  1836. }
  1837. /**
  1838. * Strip the parentheses from the given expression.
  1839. *
  1840. * @param string $expression
  1841. * @return string
  1842. * @static
  1843. */
  1844. public static function stripParentheses($expression)
  1845. {
  1846. return \Illuminate\View\Compilers\BladeCompiler::stripParentheses($expression);
  1847. }
  1848. /**
  1849. * Register a custom Blade compiler.
  1850. *
  1851. * @param callable $compiler
  1852. * @return void
  1853. * @static
  1854. */
  1855. public static function extend($compiler)
  1856. {
  1857. \Illuminate\View\Compilers\BladeCompiler::extend($compiler);
  1858. }
  1859. /**
  1860. * Get the extensions used by the compiler.
  1861. *
  1862. * @return array
  1863. * @static
  1864. */
  1865. public static function getExtensions()
  1866. {
  1867. return \Illuminate\View\Compilers\BladeCompiler::getExtensions();
  1868. }
  1869. /**
  1870. * Register a handler for custom directives.
  1871. *
  1872. * @param string $name
  1873. * @param callable $handler
  1874. * @return void
  1875. * @static
  1876. */
  1877. public static function directive($name, $handler)
  1878. {
  1879. \Illuminate\View\Compilers\BladeCompiler::directive($name, $handler);
  1880. }
  1881. /**
  1882. * Get the list of custom directives.
  1883. *
  1884. * @return array
  1885. * @static
  1886. */
  1887. public static function getCustomDirectives()
  1888. {
  1889. return \Illuminate\View\Compilers\BladeCompiler::getCustomDirectives();
  1890. }
  1891. /**
  1892. * Set the echo format to be used by the compiler.
  1893. *
  1894. * @param string $format
  1895. * @return void
  1896. * @static
  1897. */
  1898. public static function setEchoFormat($format)
  1899. {
  1900. \Illuminate\View\Compilers\BladeCompiler::setEchoFormat($format);
  1901. }
  1902. /**
  1903. * Get the path to the compiled version of a view.
  1904. *
  1905. * @param string $path
  1906. * @return string
  1907. * @static
  1908. */
  1909. public static function getCompiledPath($path)
  1910. {
  1911. //Method inherited from \Illuminate\View\Compilers\Compiler
  1912. return \Illuminate\View\Compilers\BladeCompiler::getCompiledPath($path);
  1913. }
  1914. /**
  1915. * Determine if the view at the given path is expired.
  1916. *
  1917. * @param string $path
  1918. * @return bool
  1919. * @static
  1920. */
  1921. public static function isExpired($path)
  1922. {
  1923. //Method inherited from \Illuminate\View\Compilers\Compiler
  1924. return \Illuminate\View\Compilers\BladeCompiler::isExpired($path);
  1925. }
  1926. /**
  1927. * Compile the default values for the echo statement.
  1928. *
  1929. * @param string $value
  1930. * @return string
  1931. * @static
  1932. */
  1933. public static function compileEchoDefaults($value)
  1934. {
  1935. return \Illuminate\View\Compilers\BladeCompiler::compileEchoDefaults($value);
  1936. }
  1937. }
  1938. class Broadcast {
  1939. /**
  1940. * Register the routes for handling broadcast authentication and sockets.
  1941. *
  1942. * @param array|null $attributes
  1943. * @return void
  1944. * @static
  1945. */
  1946. public static function routes($attributes = null)
  1947. {
  1948. \Illuminate\Broadcasting\BroadcastManager::routes($attributes);
  1949. }
  1950. /**
  1951. * Get the socket ID for the given request.
  1952. *
  1953. * @param \Illuminate\Http\Request|null $request
  1954. * @return string|null
  1955. * @static
  1956. */
  1957. public static function socket($request = null)
  1958. {
  1959. return \Illuminate\Broadcasting\BroadcastManager::socket($request);
  1960. }
  1961. /**
  1962. * Begin broadcasting an event.
  1963. *
  1964. * @param mixed|null $event
  1965. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  1966. * @static
  1967. */
  1968. public static function event($event = null)
  1969. {
  1970. return \Illuminate\Broadcasting\BroadcastManager::event($event);
  1971. }
  1972. /**
  1973. * Queue the given event for broadcast.
  1974. *
  1975. * @param mixed $event
  1976. * @return void
  1977. * @static
  1978. */
  1979. public static function queue($event)
  1980. {
  1981. \Illuminate\Broadcasting\BroadcastManager::queue($event);
  1982. }
  1983. /**
  1984. * Get a driver instance.
  1985. *
  1986. * @param string $driver
  1987. * @return mixed
  1988. * @static
  1989. */
  1990. public static function connection($driver = null)
  1991. {
  1992. return \Illuminate\Broadcasting\BroadcastManager::connection($driver);
  1993. }
  1994. /**
  1995. * Get a driver instance.
  1996. *
  1997. * @param string $name
  1998. * @return mixed
  1999. * @static
  2000. */
  2001. public static function driver($name = null)
  2002. {
  2003. return \Illuminate\Broadcasting\BroadcastManager::driver($name);
  2004. }
  2005. /**
  2006. * Get the default driver name.
  2007. *
  2008. * @return string
  2009. * @static
  2010. */
  2011. public static function getDefaultDriver()
  2012. {
  2013. return \Illuminate\Broadcasting\BroadcastManager::getDefaultDriver();
  2014. }
  2015. /**
  2016. * Set the default driver name.
  2017. *
  2018. * @param string $name
  2019. * @return void
  2020. * @static
  2021. */
  2022. public static function setDefaultDriver($name)
  2023. {
  2024. \Illuminate\Broadcasting\BroadcastManager::setDefaultDriver($name);
  2025. }
  2026. /**
  2027. * Register a custom driver creator Closure.
  2028. *
  2029. * @param string $driver
  2030. * @param \Closure $callback
  2031. * @return $this
  2032. * @static
  2033. */
  2034. public static function extend($driver, $callback)
  2035. {
  2036. return \Illuminate\Broadcasting\BroadcastManager::extend($driver, $callback);
  2037. }
  2038. }
  2039. class Bus {
  2040. /**
  2041. * Dispatch a command to its appropriate handler.
  2042. *
  2043. * @param mixed $command
  2044. * @return mixed
  2045. * @static
  2046. */
  2047. public static function dispatch($command)
  2048. {
  2049. return \Illuminate\Bus\Dispatcher::dispatch($command);
  2050. }
  2051. /**
  2052. * Dispatch a command to its appropriate handler in the current process.
  2053. *
  2054. * @param mixed $command
  2055. * @param mixed $handler
  2056. * @return mixed
  2057. * @static
  2058. */
  2059. public static function dispatchNow($command, $handler = null)
  2060. {
  2061. return \Illuminate\Bus\Dispatcher::dispatchNow($command, $handler);
  2062. }
  2063. /**
  2064. * Determine if the given command has a handler.
  2065. *
  2066. * @param mixed $command
  2067. * @return bool
  2068. * @static
  2069. */
  2070. public static function hasCommandHandler($command)
  2071. {
  2072. return \Illuminate\Bus\Dispatcher::hasCommandHandler($command);
  2073. }
  2074. /**
  2075. * Retrieve the handler for a command.
  2076. *
  2077. * @param mixed $command
  2078. * @return bool|mixed
  2079. * @static
  2080. */
  2081. public static function getCommandHandler($command)
  2082. {
  2083. return \Illuminate\Bus\Dispatcher::getCommandHandler($command);
  2084. }
  2085. /**
  2086. * Dispatch a command to its appropriate handler behind a queue.
  2087. *
  2088. * @param mixed $command
  2089. * @return mixed
  2090. * @throws \RuntimeException
  2091. * @static
  2092. */
  2093. public static function dispatchToQueue($command)
  2094. {
  2095. return \Illuminate\Bus\Dispatcher::dispatchToQueue($command);
  2096. }
  2097. /**
  2098. * Set the pipes through which commands should be piped before dispatching.
  2099. *
  2100. * @param array $pipes
  2101. * @return $this
  2102. * @static
  2103. */
  2104. public static function pipeThrough($pipes)
  2105. {
  2106. return \Illuminate\Bus\Dispatcher::pipeThrough($pipes);
  2107. }
  2108. /**
  2109. * Map a command to a handler.
  2110. *
  2111. * @param array $map
  2112. * @return $this
  2113. * @static
  2114. */
  2115. public static function map($map)
  2116. {
  2117. return \Illuminate\Bus\Dispatcher::map($map);
  2118. }
  2119. }
  2120. class Cache {
  2121. /**
  2122. * Get a cache store instance by name.
  2123. *
  2124. * @param string|null $name
  2125. * @return mixed
  2126. * @static
  2127. */
  2128. public static function store($name = null)
  2129. {
  2130. return \Illuminate\Cache\CacheManager::store($name);
  2131. }
  2132. /**
  2133. * Get a cache driver instance.
  2134. *
  2135. * @param string $driver
  2136. * @return mixed
  2137. * @static
  2138. */
  2139. public static function driver($driver = null)
  2140. {
  2141. return \Illuminate\Cache\CacheManager::driver($driver);
  2142. }
  2143. /**
  2144. * Create a new cache repository with the given implementation.
  2145. *
  2146. * @param \Illuminate\Contracts\Cache\Store $store
  2147. * @return \Illuminate\Cache\Repository
  2148. * @static
  2149. */
  2150. public static function repository($store)
  2151. {
  2152. return \Illuminate\Cache\CacheManager::repository($store);
  2153. }
  2154. /**
  2155. * Get the default cache driver name.
  2156. *
  2157. * @return string
  2158. * @static
  2159. */
  2160. public static function getDefaultDriver()
  2161. {
  2162. return \Illuminate\Cache\CacheManager::getDefaultDriver();
  2163. }
  2164. /**
  2165. * Set the default cache driver name.
  2166. *
  2167. * @param string $name
  2168. * @return void
  2169. * @static
  2170. */
  2171. public static function setDefaultDriver($name)
  2172. {
  2173. \Illuminate\Cache\CacheManager::setDefaultDriver($name);
  2174. }
  2175. /**
  2176. * Register a custom driver creator Closure.
  2177. *
  2178. * @param string $driver
  2179. * @param \Closure $callback
  2180. * @return $this
  2181. * @static
  2182. */
  2183. public static function extend($driver, $callback)
  2184. {
  2185. return \Illuminate\Cache\CacheManager::extend($driver, $callback);
  2186. }
  2187. /**
  2188. * Determine if an item exists in the cache.
  2189. *
  2190. * @param string $key
  2191. * @return bool
  2192. * @static
  2193. */
  2194. public static function has($key)
  2195. {
  2196. return \Illuminate\Cache\Repository::has($key);
  2197. }
  2198. /**
  2199. * Retrieve an item from the cache by key.
  2200. *
  2201. * @param string $key
  2202. * @param mixed $default
  2203. * @return mixed
  2204. * @static
  2205. */
  2206. public static function get($key, $default = null)
  2207. {
  2208. return \Illuminate\Cache\Repository::get($key, $default);
  2209. }
  2210. /**
  2211. * Retrieve multiple items from the cache by key.
  2212. *
  2213. * Items not found in the cache will have a null value.
  2214. *
  2215. * @param array $keys
  2216. * @return array
  2217. * @static
  2218. */
  2219. public static function many($keys)
  2220. {
  2221. return \Illuminate\Cache\Repository::many($keys);
  2222. }
  2223. /**
  2224. * Retrieve an item from the cache and delete it.
  2225. *
  2226. * @param string $key
  2227. * @param mixed $default
  2228. * @return mixed
  2229. * @static
  2230. */
  2231. public static function pull($key, $default = null)
  2232. {
  2233. return \Illuminate\Cache\Repository::pull($key, $default);
  2234. }
  2235. /**
  2236. * Store an item in the cache.
  2237. *
  2238. * @param string $key
  2239. * @param mixed $value
  2240. * @param \DateTime|float|int $minutes
  2241. * @return void
  2242. * @static
  2243. */
  2244. public static function put($key, $value, $minutes = null)
  2245. {
  2246. \Illuminate\Cache\Repository::put($key, $value, $minutes);
  2247. }
  2248. /**
  2249. * Store multiple items in the cache for a given number of minutes.
  2250. *
  2251. * @param array $values
  2252. * @param float|int $minutes
  2253. * @return void
  2254. * @static
  2255. */
  2256. public static function putMany($values, $minutes)
  2257. {
  2258. \Illuminate\Cache\Repository::putMany($values, $minutes);
  2259. }
  2260. /**
  2261. * Store an item in the cache if the key does not exist.
  2262. *
  2263. * @param string $key
  2264. * @param mixed $value
  2265. * @param \DateTime|float|int $minutes
  2266. * @return bool
  2267. * @static
  2268. */
  2269. public static function add($key, $value, $minutes)
  2270. {
  2271. return \Illuminate\Cache\Repository::add($key, $value, $minutes);
  2272. }
  2273. /**
  2274. * Increment the value of an item in the cache.
  2275. *
  2276. * @param string $key
  2277. * @param mixed $value
  2278. * @return int|bool
  2279. * @static
  2280. */
  2281. public static function increment($key, $value = 1)
  2282. {
  2283. return \Illuminate\Cache\Repository::increment($key, $value);
  2284. }
  2285. /**
  2286. * Decrement the value of an item in the cache.
  2287. *
  2288. * @param string $key
  2289. * @param mixed $value
  2290. * @return int|bool
  2291. * @static
  2292. */
  2293. public static function decrement($key, $value = 1)
  2294. {
  2295. return \Illuminate\Cache\Repository::decrement($key, $value);
  2296. }
  2297. /**
  2298. * Store an item in the cache indefinitely.
  2299. *
  2300. * @param string $key
  2301. * @param mixed $value
  2302. * @return void
  2303. * @static
  2304. */
  2305. public static function forever($key, $value)
  2306. {
  2307. \Illuminate\Cache\Repository::forever($key, $value);
  2308. }
  2309. /**
  2310. * Get an item from the cache, or store the default value.
  2311. *
  2312. * @param string $key
  2313. * @param \DateTime|float|int $minutes
  2314. * @param \Closure $callback
  2315. * @return mixed
  2316. * @static
  2317. */
  2318. public static function remember($key, $minutes, $callback)
  2319. {
  2320. return \Illuminate\Cache\Repository::remember($key, $minutes, $callback);
  2321. }
  2322. /**
  2323. * Get an item from the cache, or store the default value forever.
  2324. *
  2325. * @param string $key
  2326. * @param \Closure $callback
  2327. * @return mixed
  2328. * @static
  2329. */
  2330. public static function sear($key, $callback)
  2331. {
  2332. return \Illuminate\Cache\Repository::sear($key, $callback);
  2333. }
  2334. /**
  2335. * Get an item from the cache, or store the default value forever.
  2336. *
  2337. * @param string $key
  2338. * @param \Closure $callback
  2339. * @return mixed
  2340. * @static
  2341. */
  2342. public static function rememberForever($key, $callback)
  2343. {
  2344. return \Illuminate\Cache\Repository::rememberForever($key, $callback);
  2345. }
  2346. /**
  2347. * Remove an item from the cache.
  2348. *
  2349. * @param string $key
  2350. * @return bool
  2351. * @static
  2352. */
  2353. public static function forget($key)
  2354. {
  2355. return \Illuminate\Cache\Repository::forget($key);
  2356. }
  2357. /**
  2358. * Begin executing a new tags operation if the store supports it.
  2359. *
  2360. * @param array|mixed $names
  2361. * @return \Illuminate\Cache\TaggedCache
  2362. * @throws \BadMethodCallException
  2363. * @static
  2364. */
  2365. public static function tags($names)
  2366. {
  2367. return \Illuminate\Cache\Repository::tags($names);
  2368. }
  2369. /**
  2370. * Get the default cache time.
  2371. *
  2372. * @return float|int
  2373. * @static
  2374. */
  2375. public static function getDefaultCacheTime()
  2376. {
  2377. return \Illuminate\Cache\Repository::getDefaultCacheTime();
  2378. }
  2379. /**
  2380. * Set the default cache time in minutes.
  2381. *
  2382. * @param float|int $minutes
  2383. * @return $this
  2384. * @static
  2385. */
  2386. public static function setDefaultCacheTime($minutes)
  2387. {
  2388. return \Illuminate\Cache\Repository::setDefaultCacheTime($minutes);
  2389. }
  2390. /**
  2391. * Get the cache store implementation.
  2392. *
  2393. * @return \Illuminate\Contracts\Cache\Store
  2394. * @static
  2395. */
  2396. public static function getStore()
  2397. {
  2398. return \Illuminate\Cache\Repository::getStore();
  2399. }
  2400. /**
  2401. * Set the event dispatcher instance.
  2402. *
  2403. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2404. * @return void
  2405. * @static
  2406. */
  2407. public static function setEventDispatcher($events)
  2408. {
  2409. \Illuminate\Cache\Repository::setEventDispatcher($events);
  2410. }
  2411. /**
  2412. * Determine if a cached value exists.
  2413. *
  2414. * @param string $key
  2415. * @return bool
  2416. * @static
  2417. */
  2418. public static function offsetExists($key)
  2419. {
  2420. return \Illuminate\Cache\Repository::offsetExists($key);
  2421. }
  2422. /**
  2423. * Retrieve an item from the cache by key.
  2424. *
  2425. * @param string $key
  2426. * @return mixed
  2427. * @static
  2428. */
  2429. public static function offsetGet($key)
  2430. {
  2431. return \Illuminate\Cache\Repository::offsetGet($key);
  2432. }
  2433. /**
  2434. * Store an item in the cache for the default time.
  2435. *
  2436. * @param string $key
  2437. * @param mixed $value
  2438. * @return void
  2439. * @static
  2440. */
  2441. public static function offsetSet($key, $value)
  2442. {
  2443. \Illuminate\Cache\Repository::offsetSet($key, $value);
  2444. }
  2445. /**
  2446. * Remove an item from the cache.
  2447. *
  2448. * @param string $key
  2449. * @return void
  2450. * @static
  2451. */
  2452. public static function offsetUnset($key)
  2453. {
  2454. \Illuminate\Cache\Repository::offsetUnset($key);
  2455. }
  2456. /**
  2457. * Register a custom macro.
  2458. *
  2459. * @param string $name
  2460. * @param callable $macro
  2461. * @return void
  2462. * @static
  2463. */
  2464. public static function macro($name, $macro)
  2465. {
  2466. \Illuminate\Cache\Repository::macro($name, $macro);
  2467. }
  2468. /**
  2469. * Checks if macro is registered.
  2470. *
  2471. * @param string $name
  2472. * @return bool
  2473. * @static
  2474. */
  2475. public static function hasMacro($name)
  2476. {
  2477. return \Illuminate\Cache\Repository::hasMacro($name);
  2478. }
  2479. /**
  2480. * Dynamically handle calls to the class.
  2481. *
  2482. * @param string $method
  2483. * @param array $parameters
  2484. * @return mixed
  2485. * @throws \BadMethodCallException
  2486. * @static
  2487. */
  2488. public static function macroCall($method, $parameters)
  2489. {
  2490. return \Illuminate\Cache\Repository::macroCall($method, $parameters);
  2491. }
  2492. /**
  2493. * Remove all items from the cache.
  2494. *
  2495. * @return bool
  2496. * @static
  2497. */
  2498. public static function flush()
  2499. {
  2500. return \Illuminate\Cache\FileStore::flush();
  2501. }
  2502. /**
  2503. * Get the Filesystem instance.
  2504. *
  2505. * @return \Illuminate\Filesystem\Filesystem
  2506. * @static
  2507. */
  2508. public static function getFilesystem()
  2509. {
  2510. return \Illuminate\Cache\FileStore::getFilesystem();
  2511. }
  2512. /**
  2513. * Get the working directory of the cache.
  2514. *
  2515. * @return string
  2516. * @static
  2517. */
  2518. public static function getDirectory()
  2519. {
  2520. return \Illuminate\Cache\FileStore::getDirectory();
  2521. }
  2522. /**
  2523. * Get the cache key prefix.
  2524. *
  2525. * @return string
  2526. * @static
  2527. */
  2528. public static function getPrefix()
  2529. {
  2530. return \Illuminate\Cache\FileStore::getPrefix();
  2531. }
  2532. }
  2533. class Config {
  2534. /**
  2535. * Determine if the given configuration value exists.
  2536. *
  2537. * @param string $key
  2538. * @return bool
  2539. * @static
  2540. */
  2541. public static function has($key)
  2542. {
  2543. return \Illuminate\Config\Repository::has($key);
  2544. }
  2545. /**
  2546. * Get the specified configuration value.
  2547. *
  2548. * @param string $key
  2549. * @param mixed $default
  2550. * @return mixed
  2551. * @static
  2552. */
  2553. public static function get($key, $default = null)
  2554. {
  2555. return \Illuminate\Config\Repository::get($key, $default);
  2556. }
  2557. /**
  2558. * Set a given configuration value.
  2559. *
  2560. * @param array|string $key
  2561. * @param mixed $value
  2562. * @return void
  2563. * @static
  2564. */
  2565. public static function set($key, $value = null)
  2566. {
  2567. \Illuminate\Config\Repository::set($key, $value);
  2568. }
  2569. /**
  2570. * Prepend a value onto an array configuration value.
  2571. *
  2572. * @param string $key
  2573. * @param mixed $value
  2574. * @return void
  2575. * @static
  2576. */
  2577. public static function prepend($key, $value)
  2578. {
  2579. \Illuminate\Config\Repository::prepend($key, $value);
  2580. }
  2581. /**
  2582. * Push a value onto an array configuration value.
  2583. *
  2584. * @param string $key
  2585. * @param mixed $value
  2586. * @return void
  2587. * @static
  2588. */
  2589. public static function push($key, $value)
  2590. {
  2591. \Illuminate\Config\Repository::push($key, $value);
  2592. }
  2593. /**
  2594. * Get all of the configuration items for the application.
  2595. *
  2596. * @return array
  2597. * @static
  2598. */
  2599. public static function all()
  2600. {
  2601. return \Illuminate\Config\Repository::all();
  2602. }
  2603. /**
  2604. * Determine if the given configuration option exists.
  2605. *
  2606. * @param string $key
  2607. * @return bool
  2608. * @static
  2609. */
  2610. public static function offsetExists($key)
  2611. {
  2612. return \Illuminate\Config\Repository::offsetExists($key);
  2613. }
  2614. /**
  2615. * Get a configuration option.
  2616. *
  2617. * @param string $key
  2618. * @return mixed
  2619. * @static
  2620. */
  2621. public static function offsetGet($key)
  2622. {
  2623. return \Illuminate\Config\Repository::offsetGet($key);
  2624. }
  2625. /**
  2626. * Set a configuration option.
  2627. *
  2628. * @param string $key
  2629. * @param mixed $value
  2630. * @return void
  2631. * @static
  2632. */
  2633. public static function offsetSet($key, $value)
  2634. {
  2635. \Illuminate\Config\Repository::offsetSet($key, $value);
  2636. }
  2637. /**
  2638. * Unset a configuration option.
  2639. *
  2640. * @param string $key
  2641. * @return void
  2642. * @static
  2643. */
  2644. public static function offsetUnset($key)
  2645. {
  2646. \Illuminate\Config\Repository::offsetUnset($key);
  2647. }
  2648. }
  2649. class Cookie {
  2650. /**
  2651. * Create a new cookie instance.
  2652. *
  2653. * @param string $name
  2654. * @param string $value
  2655. * @param int $minutes
  2656. * @param string $path
  2657. * @param string $domain
  2658. * @param bool $secure
  2659. * @param bool $httpOnly
  2660. * @return \Symfony\Component\HttpFoundation\Cookie
  2661. * @static
  2662. */
  2663. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true)
  2664. {
  2665. return \Illuminate\Cookie\CookieJar::make($name, $value, $minutes, $path, $domain, $secure, $httpOnly);
  2666. }
  2667. /**
  2668. * Create a cookie that lasts "forever" (five years).
  2669. *
  2670. * @param string $name
  2671. * @param string $value
  2672. * @param string $path
  2673. * @param string $domain
  2674. * @param bool $secure
  2675. * @param bool $httpOnly
  2676. * @return \Symfony\Component\HttpFoundation\Cookie
  2677. * @static
  2678. */
  2679. public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true)
  2680. {
  2681. return \Illuminate\Cookie\CookieJar::forever($name, $value, $path, $domain, $secure, $httpOnly);
  2682. }
  2683. /**
  2684. * Expire the given cookie.
  2685. *
  2686. * @param string $name
  2687. * @param string $path
  2688. * @param string $domain
  2689. * @return \Symfony\Component\HttpFoundation\Cookie
  2690. * @static
  2691. */
  2692. public static function forget($name, $path = null, $domain = null)
  2693. {
  2694. return \Illuminate\Cookie\CookieJar::forget($name, $path, $domain);
  2695. }
  2696. /**
  2697. * Determine if a cookie has been queued.
  2698. *
  2699. * @param string $key
  2700. * @return bool
  2701. * @static
  2702. */
  2703. public static function hasQueued($key)
  2704. {
  2705. return \Illuminate\Cookie\CookieJar::hasQueued($key);
  2706. }
  2707. /**
  2708. * Get a queued cookie instance.
  2709. *
  2710. * @param string $key
  2711. * @param mixed $default
  2712. * @return \Symfony\Component\HttpFoundation\Cookie
  2713. * @static
  2714. */
  2715. public static function queued($key, $default = null)
  2716. {
  2717. return \Illuminate\Cookie\CookieJar::queued($key, $default);
  2718. }
  2719. /**
  2720. * Queue a cookie to send with the next response.
  2721. *
  2722. * @param array $parameters
  2723. * @return void
  2724. * @static
  2725. */
  2726. public static function queue($parameters = null)
  2727. {
  2728. \Illuminate\Cookie\CookieJar::queue($parameters);
  2729. }
  2730. /**
  2731. * Remove a cookie from the queue.
  2732. *
  2733. * @param string $name
  2734. * @return void
  2735. * @static
  2736. */
  2737. public static function unqueue($name)
  2738. {
  2739. \Illuminate\Cookie\CookieJar::unqueue($name);
  2740. }
  2741. /**
  2742. * Set the default path and domain for the jar.
  2743. *
  2744. * @param string $path
  2745. * @param string $domain
  2746. * @param bool $secure
  2747. * @return $this
  2748. * @static
  2749. */
  2750. public static function setDefaultPathAndDomain($path, $domain, $secure = false)
  2751. {
  2752. return \Illuminate\Cookie\CookieJar::setDefaultPathAndDomain($path, $domain, $secure);
  2753. }
  2754. /**
  2755. * Get the cookies which have been queued for the next request.
  2756. *
  2757. * @return array
  2758. * @static
  2759. */
  2760. public static function getQueuedCookies()
  2761. {
  2762. return \Illuminate\Cookie\CookieJar::getQueuedCookies();
  2763. }
  2764. }
  2765. class Crypt {
  2766. /**
  2767. * Determine if the given key and cipher combination is valid.
  2768. *
  2769. * @param string $key
  2770. * @param string $cipher
  2771. * @return bool
  2772. * @static
  2773. */
  2774. public static function supported($key, $cipher)
  2775. {
  2776. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  2777. }
  2778. /**
  2779. * Encrypt the given value.
  2780. *
  2781. * @param mixed $value
  2782. * @param bool $serialize
  2783. * @return string
  2784. * @throws \Illuminate\Contracts\Encryption\EncryptException
  2785. * @static
  2786. */
  2787. public static function encrypt($value, $serialize = true)
  2788. {
  2789. return \Illuminate\Encryption\Encrypter::encrypt($value, $serialize);
  2790. }
  2791. /**
  2792. * Encrypt a string without serialization.
  2793. *
  2794. * @param string $value
  2795. * @return string
  2796. * @static
  2797. */
  2798. public static function encryptString($value)
  2799. {
  2800. return \Illuminate\Encryption\Encrypter::encryptString($value);
  2801. }
  2802. /**
  2803. * Decrypt the given value.
  2804. *
  2805. * @param mixed $payload
  2806. * @param bool $unserialize
  2807. * @return string
  2808. * @throws \Illuminate\Contracts\Encryption\DecryptException
  2809. * @static
  2810. */
  2811. public static function decrypt($payload, $unserialize = true)
  2812. {
  2813. return \Illuminate\Encryption\Encrypter::decrypt($payload, $unserialize);
  2814. }
  2815. /**
  2816. * Decrypt the given string without unserialization.
  2817. *
  2818. * @param string $payload
  2819. * @return string
  2820. * @static
  2821. */
  2822. public static function decryptString($payload)
  2823. {
  2824. return \Illuminate\Encryption\Encrypter::decryptString($payload);
  2825. }
  2826. /**
  2827. * Get the encryption key.
  2828. *
  2829. * @return string
  2830. * @static
  2831. */
  2832. public static function getKey()
  2833. {
  2834. return \Illuminate\Encryption\Encrypter::getKey();
  2835. }
  2836. }
  2837. class DB {
  2838. /**
  2839. * Get a database connection instance.
  2840. *
  2841. * @param string $name
  2842. * @return \Illuminate\Database\Connection
  2843. * @static
  2844. */
  2845. public static function connection($name = null)
  2846. {
  2847. return \Illuminate\Database\DatabaseManager::connection($name);
  2848. }
  2849. /**
  2850. * Disconnect from the given database and remove from local cache.
  2851. *
  2852. * @param string $name
  2853. * @return void
  2854. * @static
  2855. */
  2856. public static function purge($name = null)
  2857. {
  2858. \Illuminate\Database\DatabaseManager::purge($name);
  2859. }
  2860. /**
  2861. * Disconnect from the given database.
  2862. *
  2863. * @param string $name
  2864. * @return void
  2865. * @static
  2866. */
  2867. public static function disconnect($name = null)
  2868. {
  2869. \Illuminate\Database\DatabaseManager::disconnect($name);
  2870. }
  2871. /**
  2872. * Reconnect to the given database.
  2873. *
  2874. * @param string $name
  2875. * @return \Illuminate\Database\Connection
  2876. * @static
  2877. */
  2878. public static function reconnect($name = null)
  2879. {
  2880. return \Illuminate\Database\DatabaseManager::reconnect($name);
  2881. }
  2882. /**
  2883. * Get the default connection name.
  2884. *
  2885. * @return string
  2886. * @static
  2887. */
  2888. public static function getDefaultConnection()
  2889. {
  2890. return \Illuminate\Database\DatabaseManager::getDefaultConnection();
  2891. }
  2892. /**
  2893. * Set the default connection name.
  2894. *
  2895. * @param string $name
  2896. * @return void
  2897. * @static
  2898. */
  2899. public static function setDefaultConnection($name)
  2900. {
  2901. \Illuminate\Database\DatabaseManager::setDefaultConnection($name);
  2902. }
  2903. /**
  2904. * Get all of the support drivers.
  2905. *
  2906. * @return array
  2907. * @static
  2908. */
  2909. public static function supportedDrivers()
  2910. {
  2911. return \Illuminate\Database\DatabaseManager::supportedDrivers();
  2912. }
  2913. /**
  2914. * Get all of the drivers that are actually available.
  2915. *
  2916. * @return array
  2917. * @static
  2918. */
  2919. public static function availableDrivers()
  2920. {
  2921. return \Illuminate\Database\DatabaseManager::availableDrivers();
  2922. }
  2923. /**
  2924. * Register an extension connection resolver.
  2925. *
  2926. * @param string $name
  2927. * @param callable $resolver
  2928. * @return void
  2929. * @static
  2930. */
  2931. public static function extend($name, $resolver)
  2932. {
  2933. \Illuminate\Database\DatabaseManager::extend($name, $resolver);
  2934. }
  2935. /**
  2936. * Return all of the created connections.
  2937. *
  2938. * @return array
  2939. * @static
  2940. */
  2941. public static function getConnections()
  2942. {
  2943. return \Illuminate\Database\DatabaseManager::getConnections();
  2944. }
  2945. /**
  2946. * Get a schema builder instance for the connection.
  2947. *
  2948. * @return \Illuminate\Database\Schema\MySqlBuilder
  2949. * @static
  2950. */
  2951. public static function getSchemaBuilder()
  2952. {
  2953. return \Illuminate\Database\MySqlConnection::getSchemaBuilder();
  2954. }
  2955. /**
  2956. * Bind values to their parameters in the given statement.
  2957. *
  2958. * @param \PDOStatement $statement
  2959. * @param array $bindings
  2960. * @return void
  2961. * @static
  2962. */
  2963. public static function bindValues($statement, $bindings)
  2964. {
  2965. \Illuminate\Database\MySqlConnection::bindValues($statement, $bindings);
  2966. }
  2967. /**
  2968. * Set the query grammar to the default implementation.
  2969. *
  2970. * @return void
  2971. * @static
  2972. */
  2973. public static function useDefaultQueryGrammar()
  2974. {
  2975. //Method inherited from \Illuminate\Database\Connection
  2976. \Illuminate\Database\MySqlConnection::useDefaultQueryGrammar();
  2977. }
  2978. /**
  2979. * Set the schema grammar to the default implementation.
  2980. *
  2981. * @return void
  2982. * @static
  2983. */
  2984. public static function useDefaultSchemaGrammar()
  2985. {
  2986. //Method inherited from \Illuminate\Database\Connection
  2987. \Illuminate\Database\MySqlConnection::useDefaultSchemaGrammar();
  2988. }
  2989. /**
  2990. * Set the query post processor to the default implementation.
  2991. *
  2992. * @return void
  2993. * @static
  2994. */
  2995. public static function useDefaultPostProcessor()
  2996. {
  2997. //Method inherited from \Illuminate\Database\Connection
  2998. \Illuminate\Database\MySqlConnection::useDefaultPostProcessor();
  2999. }
  3000. /**
  3001. * Begin a fluent query against a database table.
  3002. *
  3003. * @param string $table
  3004. * @return \Illuminate\Database\Query\Builder
  3005. * @static
  3006. */
  3007. public static function table($table)
  3008. {
  3009. //Method inherited from \Illuminate\Database\Connection
  3010. return \Illuminate\Database\MySqlConnection::table($table);
  3011. }
  3012. /**
  3013. * Get a new query builder instance.
  3014. *
  3015. * @return \Illuminate\Database\Query\Builder
  3016. * @static
  3017. */
  3018. public static function query()
  3019. {
  3020. //Method inherited from \Illuminate\Database\Connection
  3021. return \Illuminate\Database\MySqlConnection::query();
  3022. }
  3023. /**
  3024. * Run a select statement and return a single result.
  3025. *
  3026. * @param string $query
  3027. * @param array $bindings
  3028. * @param bool $useReadPdo
  3029. * @return mixed
  3030. * @static
  3031. */
  3032. public static function selectOne($query, $bindings = array(), $useReadPdo = true)
  3033. {
  3034. //Method inherited from \Illuminate\Database\Connection
  3035. return \Illuminate\Database\MySqlConnection::selectOne($query, $bindings, $useReadPdo);
  3036. }
  3037. /**
  3038. * Run a select statement against the database.
  3039. *
  3040. * @param string $query
  3041. * @param array $bindings
  3042. * @return array
  3043. * @static
  3044. */
  3045. public static function selectFromWriteConnection($query, $bindings = array())
  3046. {
  3047. //Method inherited from \Illuminate\Database\Connection
  3048. return \Illuminate\Database\MySqlConnection::selectFromWriteConnection($query, $bindings);
  3049. }
  3050. /**
  3051. * Run a select statement against the database.
  3052. *
  3053. * @param string $query
  3054. * @param array $bindings
  3055. * @param bool $useReadPdo
  3056. * @return array
  3057. * @static
  3058. */
  3059. public static function select($query, $bindings = array(), $useReadPdo = true)
  3060. {
  3061. //Method inherited from \Illuminate\Database\Connection
  3062. return \Illuminate\Database\MySqlConnection::select($query, $bindings, $useReadPdo);
  3063. }
  3064. /**
  3065. * Run a select statement against the database and returns a generator.
  3066. *
  3067. * @param string $query
  3068. * @param array $bindings
  3069. * @param bool $useReadPdo
  3070. * @return \Generator
  3071. * @static
  3072. */
  3073. public static function cursor($query, $bindings = array(), $useReadPdo = true)
  3074. {
  3075. //Method inherited from \Illuminate\Database\Connection
  3076. return \Illuminate\Database\MySqlConnection::cursor($query, $bindings, $useReadPdo);
  3077. }
  3078. /**
  3079. * Run an insert statement against the database.
  3080. *
  3081. * @param string $query
  3082. * @param array $bindings
  3083. * @return bool
  3084. * @static
  3085. */
  3086. public static function insert($query, $bindings = array())
  3087. {
  3088. //Method inherited from \Illuminate\Database\Connection
  3089. return \Illuminate\Database\MySqlConnection::insert($query, $bindings);
  3090. }
  3091. /**
  3092. * Run an update statement against the database.
  3093. *
  3094. * @param string $query
  3095. * @param array $bindings
  3096. * @return int
  3097. * @static
  3098. */
  3099. public static function update($query, $bindings = array())
  3100. {
  3101. //Method inherited from \Illuminate\Database\Connection
  3102. return \Illuminate\Database\MySqlConnection::update($query, $bindings);
  3103. }
  3104. /**
  3105. * Run a delete statement against the database.
  3106. *
  3107. * @param string $query
  3108. * @param array $bindings
  3109. * @return int
  3110. * @static
  3111. */
  3112. public static function delete($query, $bindings = array())
  3113. {
  3114. //Method inherited from \Illuminate\Database\Connection
  3115. return \Illuminate\Database\MySqlConnection::delete($query, $bindings);
  3116. }
  3117. /**
  3118. * Execute an SQL statement and return the boolean result.
  3119. *
  3120. * @param string $query
  3121. * @param array $bindings
  3122. * @return bool
  3123. * @static
  3124. */
  3125. public static function statement($query, $bindings = array())
  3126. {
  3127. //Method inherited from \Illuminate\Database\Connection
  3128. return \Illuminate\Database\MySqlConnection::statement($query, $bindings);
  3129. }
  3130. /**
  3131. * Run an SQL statement and get the number of rows affected.
  3132. *
  3133. * @param string $query
  3134. * @param array $bindings
  3135. * @return int
  3136. * @static
  3137. */
  3138. public static function affectingStatement($query, $bindings = array())
  3139. {
  3140. //Method inherited from \Illuminate\Database\Connection
  3141. return \Illuminate\Database\MySqlConnection::affectingStatement($query, $bindings);
  3142. }
  3143. /**
  3144. * Run a raw, unprepared query against the PDO connection.
  3145. *
  3146. * @param string $query
  3147. * @return bool
  3148. * @static
  3149. */
  3150. public static function unprepared($query)
  3151. {
  3152. //Method inherited from \Illuminate\Database\Connection
  3153. return \Illuminate\Database\MySqlConnection::unprepared($query);
  3154. }
  3155. /**
  3156. * Execute the given callback in "dry run" mode.
  3157. *
  3158. * @param \Closure $callback
  3159. * @return array
  3160. * @static
  3161. */
  3162. public static function pretend($callback)
  3163. {
  3164. //Method inherited from \Illuminate\Database\Connection
  3165. return \Illuminate\Database\MySqlConnection::pretend($callback);
  3166. }
  3167. /**
  3168. * Prepare the query bindings for execution.
  3169. *
  3170. * @param array $bindings
  3171. * @return array
  3172. * @static
  3173. */
  3174. public static function prepareBindings($bindings)
  3175. {
  3176. //Method inherited from \Illuminate\Database\Connection
  3177. return \Illuminate\Database\MySqlConnection::prepareBindings($bindings);
  3178. }
  3179. /**
  3180. * Log a query in the connection's query log.
  3181. *
  3182. * @param string $query
  3183. * @param array $bindings
  3184. * @param float|null $time
  3185. * @return void
  3186. * @static
  3187. */
  3188. public static function logQuery($query, $bindings, $time = null)
  3189. {
  3190. //Method inherited from \Illuminate\Database\Connection
  3191. \Illuminate\Database\MySqlConnection::logQuery($query, $bindings, $time);
  3192. }
  3193. /**
  3194. * Register a database query listener with the connection.
  3195. *
  3196. * @param \Closure $callback
  3197. * @return void
  3198. * @static
  3199. */
  3200. public static function listen($callback)
  3201. {
  3202. //Method inherited from \Illuminate\Database\Connection
  3203. \Illuminate\Database\MySqlConnection::listen($callback);
  3204. }
  3205. /**
  3206. * Get a new raw query expression.
  3207. *
  3208. * @param mixed $value
  3209. * @return \Illuminate\Database\Query\Expression
  3210. * @static
  3211. */
  3212. public static function raw($value)
  3213. {
  3214. //Method inherited from \Illuminate\Database\Connection
  3215. return \Illuminate\Database\MySqlConnection::raw($value);
  3216. }
  3217. /**
  3218. * Is Doctrine available?
  3219. *
  3220. * @return bool
  3221. * @static
  3222. */
  3223. public static function isDoctrineAvailable()
  3224. {
  3225. //Method inherited from \Illuminate\Database\Connection
  3226. return \Illuminate\Database\MySqlConnection::isDoctrineAvailable();
  3227. }
  3228. /**
  3229. * Get a Doctrine Schema Column instance.
  3230. *
  3231. * @param string $table
  3232. * @param string $column
  3233. * @return \Doctrine\DBAL\Schema\Column
  3234. * @static
  3235. */
  3236. public static function getDoctrineColumn($table, $column)
  3237. {
  3238. //Method inherited from \Illuminate\Database\Connection
  3239. return \Illuminate\Database\MySqlConnection::getDoctrineColumn($table, $column);
  3240. }
  3241. /**
  3242. * Get the Doctrine DBAL schema manager for the connection.
  3243. *
  3244. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3245. * @static
  3246. */
  3247. public static function getDoctrineSchemaManager()
  3248. {
  3249. //Method inherited from \Illuminate\Database\Connection
  3250. return \Illuminate\Database\MySqlConnection::getDoctrineSchemaManager();
  3251. }
  3252. /**
  3253. * Get the Doctrine DBAL database connection instance.
  3254. *
  3255. * @return \Doctrine\DBAL\Connection
  3256. * @static
  3257. */
  3258. public static function getDoctrineConnection()
  3259. {
  3260. //Method inherited from \Illuminate\Database\Connection
  3261. return \Illuminate\Database\MySqlConnection::getDoctrineConnection();
  3262. }
  3263. /**
  3264. * Get the current PDO connection.
  3265. *
  3266. * @return \PDO
  3267. * @static
  3268. */
  3269. public static function getPdo()
  3270. {
  3271. //Method inherited from \Illuminate\Database\Connection
  3272. return \Illuminate\Database\MySqlConnection::getPdo();
  3273. }
  3274. /**
  3275. * Get the current PDO connection used for reading.
  3276. *
  3277. * @return \PDO
  3278. * @static
  3279. */
  3280. public static function getReadPdo()
  3281. {
  3282. //Method inherited from \Illuminate\Database\Connection
  3283. return \Illuminate\Database\MySqlConnection::getReadPdo();
  3284. }
  3285. /**
  3286. * Set the PDO connection.
  3287. *
  3288. * @param \PDO|\Closure|null $pdo
  3289. * @return $this
  3290. * @static
  3291. */
  3292. public static function setPdo($pdo)
  3293. {
  3294. //Method inherited from \Illuminate\Database\Connection
  3295. return \Illuminate\Database\MySqlConnection::setPdo($pdo);
  3296. }
  3297. /**
  3298. * Set the PDO connection used for reading.
  3299. *
  3300. * @param \PDO|\Closure|null $pdo
  3301. * @return $this
  3302. * @static
  3303. */
  3304. public static function setReadPdo($pdo)
  3305. {
  3306. //Method inherited from \Illuminate\Database\Connection
  3307. return \Illuminate\Database\MySqlConnection::setReadPdo($pdo);
  3308. }
  3309. /**
  3310. * Set the reconnect instance on the connection.
  3311. *
  3312. * @param callable $reconnector
  3313. * @return $this
  3314. * @static
  3315. */
  3316. public static function setReconnector($reconnector)
  3317. {
  3318. //Method inherited from \Illuminate\Database\Connection
  3319. return \Illuminate\Database\MySqlConnection::setReconnector($reconnector);
  3320. }
  3321. /**
  3322. * Get the database connection name.
  3323. *
  3324. * @return string|null
  3325. * @static
  3326. */
  3327. public static function getName()
  3328. {
  3329. //Method inherited from \Illuminate\Database\Connection
  3330. return \Illuminate\Database\MySqlConnection::getName();
  3331. }
  3332. /**
  3333. * Get an option from the configuration options.
  3334. *
  3335. * @param string|null $option
  3336. * @return mixed
  3337. * @static
  3338. */
  3339. public static function getConfig($option = null)
  3340. {
  3341. //Method inherited from \Illuminate\Database\Connection
  3342. return \Illuminate\Database\MySqlConnection::getConfig($option);
  3343. }
  3344. /**
  3345. * Get the PDO driver name.
  3346. *
  3347. * @return string
  3348. * @static
  3349. */
  3350. public static function getDriverName()
  3351. {
  3352. //Method inherited from \Illuminate\Database\Connection
  3353. return \Illuminate\Database\MySqlConnection::getDriverName();
  3354. }
  3355. /**
  3356. * Get the query grammar used by the connection.
  3357. *
  3358. * @return \Illuminate\Database\Query\Grammars\Grammar
  3359. * @static
  3360. */
  3361. public static function getQueryGrammar()
  3362. {
  3363. //Method inherited from \Illuminate\Database\Connection
  3364. return \Illuminate\Database\MySqlConnection::getQueryGrammar();
  3365. }
  3366. /**
  3367. * Set the query grammar used by the connection.
  3368. *
  3369. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  3370. * @return void
  3371. * @static
  3372. */
  3373. public static function setQueryGrammar($grammar)
  3374. {
  3375. //Method inherited from \Illuminate\Database\Connection
  3376. \Illuminate\Database\MySqlConnection::setQueryGrammar($grammar);
  3377. }
  3378. /**
  3379. * Get the schema grammar used by the connection.
  3380. *
  3381. * @return \Illuminate\Database\Schema\Grammars\Grammar
  3382. * @static
  3383. */
  3384. public static function getSchemaGrammar()
  3385. {
  3386. //Method inherited from \Illuminate\Database\Connection
  3387. return \Illuminate\Database\MySqlConnection::getSchemaGrammar();
  3388. }
  3389. /**
  3390. * Set the schema grammar used by the connection.
  3391. *
  3392. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  3393. * @return void
  3394. * @static
  3395. */
  3396. public static function setSchemaGrammar($grammar)
  3397. {
  3398. //Method inherited from \Illuminate\Database\Connection
  3399. \Illuminate\Database\MySqlConnection::setSchemaGrammar($grammar);
  3400. }
  3401. /**
  3402. * Get the query post processor used by the connection.
  3403. *
  3404. * @return \Illuminate\Database\Query\Processors\Processor
  3405. * @static
  3406. */
  3407. public static function getPostProcessor()
  3408. {
  3409. //Method inherited from \Illuminate\Database\Connection
  3410. return \Illuminate\Database\MySqlConnection::getPostProcessor();
  3411. }
  3412. /**
  3413. * Set the query post processor used by the connection.
  3414. *
  3415. * @param \Illuminate\Database\Query\Processors\Processor $processor
  3416. * @return void
  3417. * @static
  3418. */
  3419. public static function setPostProcessor($processor)
  3420. {
  3421. //Method inherited from \Illuminate\Database\Connection
  3422. \Illuminate\Database\MySqlConnection::setPostProcessor($processor);
  3423. }
  3424. /**
  3425. * Get the event dispatcher used by the connection.
  3426. *
  3427. * @return \Illuminate\Contracts\Events\Dispatcher
  3428. * @static
  3429. */
  3430. public static function getEventDispatcher()
  3431. {
  3432. //Method inherited from \Illuminate\Database\Connection
  3433. return \Illuminate\Database\MySqlConnection::getEventDispatcher();
  3434. }
  3435. /**
  3436. * Set the event dispatcher instance on the connection.
  3437. *
  3438. * @param \Illuminate\Contracts\Events\Dispatcher $events
  3439. * @return void
  3440. * @static
  3441. */
  3442. public static function setEventDispatcher($events)
  3443. {
  3444. //Method inherited from \Illuminate\Database\Connection
  3445. \Illuminate\Database\MySqlConnection::setEventDispatcher($events);
  3446. }
  3447. /**
  3448. * Determine if the connection in a "dry run".
  3449. *
  3450. * @return bool
  3451. * @static
  3452. */
  3453. public static function pretending()
  3454. {
  3455. //Method inherited from \Illuminate\Database\Connection
  3456. return \Illuminate\Database\MySqlConnection::pretending();
  3457. }
  3458. /**
  3459. * Get the connection query log.
  3460. *
  3461. * @return array
  3462. * @static
  3463. */
  3464. public static function getQueryLog()
  3465. {
  3466. //Method inherited from \Illuminate\Database\Connection
  3467. return \Illuminate\Database\MySqlConnection::getQueryLog();
  3468. }
  3469. /**
  3470. * Clear the query log.
  3471. *
  3472. * @return void
  3473. * @static
  3474. */
  3475. public static function flushQueryLog()
  3476. {
  3477. //Method inherited from \Illuminate\Database\Connection
  3478. \Illuminate\Database\MySqlConnection::flushQueryLog();
  3479. }
  3480. /**
  3481. * Enable the query log on the connection.
  3482. *
  3483. * @return void
  3484. * @static
  3485. */
  3486. public static function enableQueryLog()
  3487. {
  3488. //Method inherited from \Illuminate\Database\Connection
  3489. \Illuminate\Database\MySqlConnection::enableQueryLog();
  3490. }
  3491. /**
  3492. * Disable the query log on the connection.
  3493. *
  3494. * @return void
  3495. * @static
  3496. */
  3497. public static function disableQueryLog()
  3498. {
  3499. //Method inherited from \Illuminate\Database\Connection
  3500. \Illuminate\Database\MySqlConnection::disableQueryLog();
  3501. }
  3502. /**
  3503. * Determine whether we're logging queries.
  3504. *
  3505. * @return bool
  3506. * @static
  3507. */
  3508. public static function logging()
  3509. {
  3510. //Method inherited from \Illuminate\Database\Connection
  3511. return \Illuminate\Database\MySqlConnection::logging();
  3512. }
  3513. /**
  3514. * Get the name of the connected database.
  3515. *
  3516. * @return string
  3517. * @static
  3518. */
  3519. public static function getDatabaseName()
  3520. {
  3521. //Method inherited from \Illuminate\Database\Connection
  3522. return \Illuminate\Database\MySqlConnection::getDatabaseName();
  3523. }
  3524. /**
  3525. * Set the name of the connected database.
  3526. *
  3527. * @param string $database
  3528. * @return string
  3529. * @static
  3530. */
  3531. public static function setDatabaseName($database)
  3532. {
  3533. //Method inherited from \Illuminate\Database\Connection
  3534. return \Illuminate\Database\MySqlConnection::setDatabaseName($database);
  3535. }
  3536. /**
  3537. * Get the table prefix for the connection.
  3538. *
  3539. * @return string
  3540. * @static
  3541. */
  3542. public static function getTablePrefix()
  3543. {
  3544. //Method inherited from \Illuminate\Database\Connection
  3545. return \Illuminate\Database\MySqlConnection::getTablePrefix();
  3546. }
  3547. /**
  3548. * Set the table prefix in use by the connection.
  3549. *
  3550. * @param string $prefix
  3551. * @return void
  3552. * @static
  3553. */
  3554. public static function setTablePrefix($prefix)
  3555. {
  3556. //Method inherited from \Illuminate\Database\Connection
  3557. \Illuminate\Database\MySqlConnection::setTablePrefix($prefix);
  3558. }
  3559. /**
  3560. * Set the table prefix and return the grammar.
  3561. *
  3562. * @param \Illuminate\Database\Grammar $grammar
  3563. * @return \Illuminate\Database\Grammar
  3564. * @static
  3565. */
  3566. public static function withTablePrefix($grammar)
  3567. {
  3568. //Method inherited from \Illuminate\Database\Connection
  3569. return \Illuminate\Database\MySqlConnection::withTablePrefix($grammar);
  3570. }
  3571. /**
  3572. * Register a connection resolver.
  3573. *
  3574. * @param string $driver
  3575. * @param \Closure $callback
  3576. * @return void
  3577. * @static
  3578. */
  3579. public static function resolverFor($driver, $callback)
  3580. {
  3581. //Method inherited from \Illuminate\Database\Connection
  3582. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  3583. }
  3584. /**
  3585. * Get the connection resolver for the given driver.
  3586. *
  3587. * @param string $driver
  3588. * @return mixed
  3589. * @static
  3590. */
  3591. public static function getResolver($driver)
  3592. {
  3593. //Method inherited from \Illuminate\Database\Connection
  3594. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  3595. }
  3596. /**
  3597. * Execute a Closure within a transaction.
  3598. *
  3599. * @param \Closure $callback
  3600. * @param int $attempts
  3601. * @return mixed
  3602. * @throws \Exception|\Throwable
  3603. * @static
  3604. */
  3605. public static function transaction($callback, $attempts = 1)
  3606. {
  3607. //Method inherited from \Illuminate\Database\Connection
  3608. return \Illuminate\Database\MySqlConnection::transaction($callback, $attempts);
  3609. }
  3610. /**
  3611. * Start a new database transaction.
  3612. *
  3613. * @return void
  3614. * @throws \Exception
  3615. * @static
  3616. */
  3617. public static function beginTransaction()
  3618. {
  3619. //Method inherited from \Illuminate\Database\Connection
  3620. \Illuminate\Database\MySqlConnection::beginTransaction();
  3621. }
  3622. /**
  3623. * Commit the active database transaction.
  3624. *
  3625. * @return void
  3626. * @static
  3627. */
  3628. public static function commit()
  3629. {
  3630. //Method inherited from \Illuminate\Database\Connection
  3631. \Illuminate\Database\MySqlConnection::commit();
  3632. }
  3633. /**
  3634. * Rollback the active database transaction.
  3635. *
  3636. * @param int|null $toLevel
  3637. * @return void
  3638. * @static
  3639. */
  3640. public static function rollBack($toLevel = null)
  3641. {
  3642. //Method inherited from \Illuminate\Database\Connection
  3643. \Illuminate\Database\MySqlConnection::rollBack($toLevel);
  3644. }
  3645. /**
  3646. * Get the number of active transactions.
  3647. *
  3648. * @return int
  3649. * @static
  3650. */
  3651. public static function transactionLevel()
  3652. {
  3653. //Method inherited from \Illuminate\Database\Connection
  3654. return \Illuminate\Database\MySqlConnection::transactionLevel();
  3655. }
  3656. }
  3657. class Event {
  3658. /**
  3659. * Register an event listener with the dispatcher.
  3660. *
  3661. * @param string|array $events
  3662. * @param mixed $listener
  3663. * @return void
  3664. * @static
  3665. */
  3666. public static function listen($events, $listener)
  3667. {
  3668. \Illuminate\Events\Dispatcher::listen($events, $listener);
  3669. }
  3670. /**
  3671. * Determine if a given event has listeners.
  3672. *
  3673. * @param string $eventName
  3674. * @return bool
  3675. * @static
  3676. */
  3677. public static function hasListeners($eventName)
  3678. {
  3679. return \Illuminate\Events\Dispatcher::hasListeners($eventName);
  3680. }
  3681. /**
  3682. * Register an event and payload to be fired later.
  3683. *
  3684. * @param string $event
  3685. * @param array $payload
  3686. * @return void
  3687. * @static
  3688. */
  3689. public static function push($event, $payload = array())
  3690. {
  3691. \Illuminate\Events\Dispatcher::push($event, $payload);
  3692. }
  3693. /**
  3694. * Flush a set of pushed events.
  3695. *
  3696. * @param string $event
  3697. * @return void
  3698. * @static
  3699. */
  3700. public static function flush($event)
  3701. {
  3702. \Illuminate\Events\Dispatcher::flush($event);
  3703. }
  3704. /**
  3705. * Register an event subscriber with the dispatcher.
  3706. *
  3707. * @param object|string $subscriber
  3708. * @return void
  3709. * @static
  3710. */
  3711. public static function subscribe($subscriber)
  3712. {
  3713. \Illuminate\Events\Dispatcher::subscribe($subscriber);
  3714. }
  3715. /**
  3716. * Fire an event until the first non-null response is returned.
  3717. *
  3718. * @param string|object $event
  3719. * @param mixed $payload
  3720. * @return array|null
  3721. * @static
  3722. */
  3723. public static function until($event, $payload = array())
  3724. {
  3725. return \Illuminate\Events\Dispatcher::until($event, $payload);
  3726. }
  3727. /**
  3728. * Fire an event and call the listeners.
  3729. *
  3730. * @param string|object $event
  3731. * @param mixed $payload
  3732. * @param bool $halt
  3733. * @return array|null
  3734. * @static
  3735. */
  3736. public static function fire($event, $payload = array(), $halt = false)
  3737. {
  3738. return \Illuminate\Events\Dispatcher::fire($event, $payload, $halt);
  3739. }
  3740. /**
  3741. * Fire an event and call the listeners.
  3742. *
  3743. * @param string|object $event
  3744. * @param mixed $payload
  3745. * @param bool $halt
  3746. * @return array|null
  3747. * @static
  3748. */
  3749. public static function dispatch($event, $payload = array(), $halt = false)
  3750. {
  3751. return \Illuminate\Events\Dispatcher::dispatch($event, $payload, $halt);
  3752. }
  3753. /**
  3754. * Get all of the listeners for a given event name.
  3755. *
  3756. * @param string $eventName
  3757. * @return array
  3758. * @static
  3759. */
  3760. public static function getListeners($eventName)
  3761. {
  3762. return \Illuminate\Events\Dispatcher::getListeners($eventName);
  3763. }
  3764. /**
  3765. * Register an event listener with the dispatcher.
  3766. *
  3767. * @param string|\Closure $listener
  3768. * @param bool $wildcard
  3769. * @return \Closure
  3770. * @static
  3771. */
  3772. public static function makeListener($listener, $wildcard = false)
  3773. {
  3774. return \Illuminate\Events\Dispatcher::makeListener($listener, $wildcard);
  3775. }
  3776. /**
  3777. * Create a class based listener using the IoC container.
  3778. *
  3779. * @param string $listener
  3780. * @param bool $wildcard
  3781. * @return \Closure
  3782. * @static
  3783. */
  3784. public static function createClassListener($listener, $wildcard = false)
  3785. {
  3786. return \Illuminate\Events\Dispatcher::createClassListener($listener, $wildcard);
  3787. }
  3788. /**
  3789. * Remove a set of listeners from the dispatcher.
  3790. *
  3791. * @param string $event
  3792. * @return void
  3793. * @static
  3794. */
  3795. public static function forget($event)
  3796. {
  3797. \Illuminate\Events\Dispatcher::forget($event);
  3798. }
  3799. /**
  3800. * Forget all of the pushed listeners.
  3801. *
  3802. * @return void
  3803. * @static
  3804. */
  3805. public static function forgetPushed()
  3806. {
  3807. \Illuminate\Events\Dispatcher::forgetPushed();
  3808. }
  3809. /**
  3810. * Set the queue resolver implementation.
  3811. *
  3812. * @param callable $resolver
  3813. * @return $this
  3814. * @static
  3815. */
  3816. public static function setQueueResolver($resolver)
  3817. {
  3818. return \Illuminate\Events\Dispatcher::setQueueResolver($resolver);
  3819. }
  3820. }
  3821. class File {
  3822. /**
  3823. * Determine if a file or directory exists.
  3824. *
  3825. * @param string $path
  3826. * @return bool
  3827. * @static
  3828. */
  3829. public static function exists($path)
  3830. {
  3831. return \Illuminate\Filesystem\Filesystem::exists($path);
  3832. }
  3833. /**
  3834. * Get the contents of a file.
  3835. *
  3836. * @param string $path
  3837. * @param bool $lock
  3838. * @return string
  3839. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  3840. * @static
  3841. */
  3842. public static function get($path, $lock = false)
  3843. {
  3844. return \Illuminate\Filesystem\Filesystem::get($path, $lock);
  3845. }
  3846. /**
  3847. * Get contents of a file with shared access.
  3848. *
  3849. * @param string $path
  3850. * @return string
  3851. * @static
  3852. */
  3853. public static function sharedGet($path)
  3854. {
  3855. return \Illuminate\Filesystem\Filesystem::sharedGet($path);
  3856. }
  3857. /**
  3858. * Get the returned value of a file.
  3859. *
  3860. * @param string $path
  3861. * @return mixed
  3862. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  3863. * @static
  3864. */
  3865. public static function getRequire($path)
  3866. {
  3867. return \Illuminate\Filesystem\Filesystem::getRequire($path);
  3868. }
  3869. /**
  3870. * Require the given file once.
  3871. *
  3872. * @param string $file
  3873. * @return mixed
  3874. * @static
  3875. */
  3876. public static function requireOnce($file)
  3877. {
  3878. return \Illuminate\Filesystem\Filesystem::requireOnce($file);
  3879. }
  3880. /**
  3881. * Get the MD5 hash of the file at the given path.
  3882. *
  3883. * @param string $path
  3884. * @return string
  3885. * @static
  3886. */
  3887. public static function hash($path)
  3888. {
  3889. return \Illuminate\Filesystem\Filesystem::hash($path);
  3890. }
  3891. /**
  3892. * Write the contents of a file.
  3893. *
  3894. * @param string $path
  3895. * @param string $contents
  3896. * @param bool $lock
  3897. * @return int
  3898. * @static
  3899. */
  3900. public static function put($path, $contents, $lock = false)
  3901. {
  3902. return \Illuminate\Filesystem\Filesystem::put($path, $contents, $lock);
  3903. }
  3904. /**
  3905. * Prepend to a file.
  3906. *
  3907. * @param string $path
  3908. * @param string $data
  3909. * @return int
  3910. * @static
  3911. */
  3912. public static function prepend($path, $data)
  3913. {
  3914. return \Illuminate\Filesystem\Filesystem::prepend($path, $data);
  3915. }
  3916. /**
  3917. * Append to a file.
  3918. *
  3919. * @param string $path
  3920. * @param string $data
  3921. * @return int
  3922. * @static
  3923. */
  3924. public static function append($path, $data)
  3925. {
  3926. return \Illuminate\Filesystem\Filesystem::append($path, $data);
  3927. }
  3928. /**
  3929. * Get or set UNIX mode of a file or directory.
  3930. *
  3931. * @param string $path
  3932. * @param int $mode
  3933. * @return mixed
  3934. * @static
  3935. */
  3936. public static function chmod($path, $mode = null)
  3937. {
  3938. return \Illuminate\Filesystem\Filesystem::chmod($path, $mode);
  3939. }
  3940. /**
  3941. * Delete the file at a given path.
  3942. *
  3943. * @param string|array $paths
  3944. * @return bool
  3945. * @static
  3946. */
  3947. public static function delete($paths)
  3948. {
  3949. return \Illuminate\Filesystem\Filesystem::delete($paths);
  3950. }
  3951. /**
  3952. * Move a file to a new location.
  3953. *
  3954. * @param string $path
  3955. * @param string $target
  3956. * @return bool
  3957. * @static
  3958. */
  3959. public static function move($path, $target)
  3960. {
  3961. return \Illuminate\Filesystem\Filesystem::move($path, $target);
  3962. }
  3963. /**
  3964. * Copy a file to a new location.
  3965. *
  3966. * @param string $path
  3967. * @param string $target
  3968. * @return bool
  3969. * @static
  3970. */
  3971. public static function copy($path, $target)
  3972. {
  3973. return \Illuminate\Filesystem\Filesystem::copy($path, $target);
  3974. }
  3975. /**
  3976. * Create a hard link to the target file or directory.
  3977. *
  3978. * @param string $target
  3979. * @param string $link
  3980. * @return void
  3981. * @static
  3982. */
  3983. public static function link($target, $link)
  3984. {
  3985. \Illuminate\Filesystem\Filesystem::link($target, $link);
  3986. }
  3987. /**
  3988. * Extract the file name from a file path.
  3989. *
  3990. * @param string $path
  3991. * @return string
  3992. * @static
  3993. */
  3994. public static function name($path)
  3995. {
  3996. return \Illuminate\Filesystem\Filesystem::name($path);
  3997. }
  3998. /**
  3999. * Extract the trailing name component from a file path.
  4000. *
  4001. * @param string $path
  4002. * @return string
  4003. * @static
  4004. */
  4005. public static function basename($path)
  4006. {
  4007. return \Illuminate\Filesystem\Filesystem::basename($path);
  4008. }
  4009. /**
  4010. * Extract the parent directory from a file path.
  4011. *
  4012. * @param string $path
  4013. * @return string
  4014. * @static
  4015. */
  4016. public static function dirname($path)
  4017. {
  4018. return \Illuminate\Filesystem\Filesystem::dirname($path);
  4019. }
  4020. /**
  4021. * Extract the file extension from a file path.
  4022. *
  4023. * @param string $path
  4024. * @return string
  4025. * @static
  4026. */
  4027. public static function extension($path)
  4028. {
  4029. return \Illuminate\Filesystem\Filesystem::extension($path);
  4030. }
  4031. /**
  4032. * Get the file type of a given file.
  4033. *
  4034. * @param string $path
  4035. * @return string
  4036. * @static
  4037. */
  4038. public static function type($path)
  4039. {
  4040. return \Illuminate\Filesystem\Filesystem::type($path);
  4041. }
  4042. /**
  4043. * Get the mime-type of a given file.
  4044. *
  4045. * @param string $path
  4046. * @return string|false
  4047. * @static
  4048. */
  4049. public static function mimeType($path)
  4050. {
  4051. return \Illuminate\Filesystem\Filesystem::mimeType($path);
  4052. }
  4053. /**
  4054. * Get the file size of a given file.
  4055. *
  4056. * @param string $path
  4057. * @return int
  4058. * @static
  4059. */
  4060. public static function size($path)
  4061. {
  4062. return \Illuminate\Filesystem\Filesystem::size($path);
  4063. }
  4064. /**
  4065. * Get the file's last modification time.
  4066. *
  4067. * @param string $path
  4068. * @return int
  4069. * @static
  4070. */
  4071. public static function lastModified($path)
  4072. {
  4073. return \Illuminate\Filesystem\Filesystem::lastModified($path);
  4074. }
  4075. /**
  4076. * Determine if the given path is a directory.
  4077. *
  4078. * @param string $directory
  4079. * @return bool
  4080. * @static
  4081. */
  4082. public static function isDirectory($directory)
  4083. {
  4084. return \Illuminate\Filesystem\Filesystem::isDirectory($directory);
  4085. }
  4086. /**
  4087. * Determine if the given path is readable.
  4088. *
  4089. * @param string $path
  4090. * @return bool
  4091. * @static
  4092. */
  4093. public static function isReadable($path)
  4094. {
  4095. return \Illuminate\Filesystem\Filesystem::isReadable($path);
  4096. }
  4097. /**
  4098. * Determine if the given path is writable.
  4099. *
  4100. * @param string $path
  4101. * @return bool
  4102. * @static
  4103. */
  4104. public static function isWritable($path)
  4105. {
  4106. return \Illuminate\Filesystem\Filesystem::isWritable($path);
  4107. }
  4108. /**
  4109. * Determine if the given path is a file.
  4110. *
  4111. * @param string $file
  4112. * @return bool
  4113. * @static
  4114. */
  4115. public static function isFile($file)
  4116. {
  4117. return \Illuminate\Filesystem\Filesystem::isFile($file);
  4118. }
  4119. /**
  4120. * Find path names matching a given pattern.
  4121. *
  4122. * @param string $pattern
  4123. * @param int $flags
  4124. * @return array
  4125. * @static
  4126. */
  4127. public static function glob($pattern, $flags = 0)
  4128. {
  4129. return \Illuminate\Filesystem\Filesystem::glob($pattern, $flags);
  4130. }
  4131. /**
  4132. * Get an array of all files in a directory.
  4133. *
  4134. * @param string $directory
  4135. * @return array
  4136. * @static
  4137. */
  4138. public static function files($directory)
  4139. {
  4140. return \Illuminate\Filesystem\Filesystem::files($directory);
  4141. }
  4142. /**
  4143. * Get all of the files from the given directory (recursive).
  4144. *
  4145. * @param string $directory
  4146. * @param bool $hidden
  4147. * @return array
  4148. * @static
  4149. */
  4150. public static function allFiles($directory, $hidden = false)
  4151. {
  4152. return \Illuminate\Filesystem\Filesystem::allFiles($directory, $hidden);
  4153. }
  4154. /**
  4155. * Get all of the directories within a given directory.
  4156. *
  4157. * @param string $directory
  4158. * @return array
  4159. * @static
  4160. */
  4161. public static function directories($directory)
  4162. {
  4163. return \Illuminate\Filesystem\Filesystem::directories($directory);
  4164. }
  4165. /**
  4166. * Create a directory.
  4167. *
  4168. * @param string $path
  4169. * @param int $mode
  4170. * @param bool $recursive
  4171. * @param bool $force
  4172. * @return bool
  4173. * @static
  4174. */
  4175. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  4176. {
  4177. return \Illuminate\Filesystem\Filesystem::makeDirectory($path, $mode, $recursive, $force);
  4178. }
  4179. /**
  4180. * Move a directory.
  4181. *
  4182. * @param string $from
  4183. * @param string $to
  4184. * @param bool $overwrite
  4185. * @return bool
  4186. * @static
  4187. */
  4188. public static function moveDirectory($from, $to, $overwrite = false)
  4189. {
  4190. return \Illuminate\Filesystem\Filesystem::moveDirectory($from, $to, $overwrite);
  4191. }
  4192. /**
  4193. * Copy a directory from one location to another.
  4194. *
  4195. * @param string $directory
  4196. * @param string $destination
  4197. * @param int $options
  4198. * @return bool
  4199. * @static
  4200. */
  4201. public static function copyDirectory($directory, $destination, $options = null)
  4202. {
  4203. return \Illuminate\Filesystem\Filesystem::copyDirectory($directory, $destination, $options);
  4204. }
  4205. /**
  4206. * Recursively delete a directory.
  4207. *
  4208. * The directory itself may be optionally preserved.
  4209. *
  4210. * @param string $directory
  4211. * @param bool $preserve
  4212. * @return bool
  4213. * @static
  4214. */
  4215. public static function deleteDirectory($directory, $preserve = false)
  4216. {
  4217. return \Illuminate\Filesystem\Filesystem::deleteDirectory($directory, $preserve);
  4218. }
  4219. /**
  4220. * Empty the specified directory of all files and folders.
  4221. *
  4222. * @param string $directory
  4223. * @return bool
  4224. * @static
  4225. */
  4226. public static function cleanDirectory($directory)
  4227. {
  4228. return \Illuminate\Filesystem\Filesystem::cleanDirectory($directory);
  4229. }
  4230. /**
  4231. * Register a custom macro.
  4232. *
  4233. * @param string $name
  4234. * @param callable $macro
  4235. * @return void
  4236. * @static
  4237. */
  4238. public static function macro($name, $macro)
  4239. {
  4240. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  4241. }
  4242. /**
  4243. * Checks if macro is registered.
  4244. *
  4245. * @param string $name
  4246. * @return bool
  4247. * @static
  4248. */
  4249. public static function hasMacro($name)
  4250. {
  4251. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  4252. }
  4253. }
  4254. class Gate {
  4255. /**
  4256. * Determine if a given ability has been defined.
  4257. *
  4258. * @param string $ability
  4259. * @return bool
  4260. * @static
  4261. */
  4262. public static function has($ability)
  4263. {
  4264. return \Illuminate\Auth\Access\Gate::has($ability);
  4265. }
  4266. /**
  4267. * Define a new ability.
  4268. *
  4269. * @param string $ability
  4270. * @param callable|string $callback
  4271. * @return $this
  4272. * @throws \InvalidArgumentException
  4273. * @static
  4274. */
  4275. public static function define($ability, $callback)
  4276. {
  4277. return \Illuminate\Auth\Access\Gate::define($ability, $callback);
  4278. }
  4279. /**
  4280. * Define abilities for a resource.
  4281. *
  4282. * @param string $name
  4283. * @param string $class
  4284. * @param array $abilities
  4285. * @return $this
  4286. * @static
  4287. */
  4288. public static function resource($name, $class, $abilities = null)
  4289. {
  4290. return \Illuminate\Auth\Access\Gate::resource($name, $class, $abilities);
  4291. }
  4292. /**
  4293. * Define a policy class for a given class type.
  4294. *
  4295. * @param string $class
  4296. * @param string $policy
  4297. * @return $this
  4298. * @static
  4299. */
  4300. public static function policy($class, $policy)
  4301. {
  4302. return \Illuminate\Auth\Access\Gate::policy($class, $policy);
  4303. }
  4304. /**
  4305. * Register a callback to run before all Gate checks.
  4306. *
  4307. * @param callable $callback
  4308. * @return $this
  4309. * @static
  4310. */
  4311. public static function before($callback)
  4312. {
  4313. return \Illuminate\Auth\Access\Gate::before($callback);
  4314. }
  4315. /**
  4316. * Register a callback to run after all Gate checks.
  4317. *
  4318. * @param callable $callback
  4319. * @return $this
  4320. * @static
  4321. */
  4322. public static function after($callback)
  4323. {
  4324. return \Illuminate\Auth\Access\Gate::after($callback);
  4325. }
  4326. /**
  4327. * Determine if the given ability should be granted for the current user.
  4328. *
  4329. * @param string $ability
  4330. * @param array|mixed $arguments
  4331. * @return bool
  4332. * @static
  4333. */
  4334. public static function allows($ability, $arguments = array())
  4335. {
  4336. return \Illuminate\Auth\Access\Gate::allows($ability, $arguments);
  4337. }
  4338. /**
  4339. * Determine if the given ability should be denied for the current user.
  4340. *
  4341. * @param string $ability
  4342. * @param array|mixed $arguments
  4343. * @return bool
  4344. * @static
  4345. */
  4346. public static function denies($ability, $arguments = array())
  4347. {
  4348. return \Illuminate\Auth\Access\Gate::denies($ability, $arguments);
  4349. }
  4350. /**
  4351. * Determine if the given ability should be granted for the current user.
  4352. *
  4353. * @param string $ability
  4354. * @param array|mixed $arguments
  4355. * @return bool
  4356. * @static
  4357. */
  4358. public static function check($ability, $arguments = array())
  4359. {
  4360. return \Illuminate\Auth\Access\Gate::check($ability, $arguments);
  4361. }
  4362. /**
  4363. * Determine if the given ability should be granted for the current user.
  4364. *
  4365. * @param string $ability
  4366. * @param array|mixed $arguments
  4367. * @return \Illuminate\Auth\Access\Response
  4368. * @throws \Illuminate\Auth\Access\AuthorizationException
  4369. * @static
  4370. */
  4371. public static function authorize($ability, $arguments = array())
  4372. {
  4373. return \Illuminate\Auth\Access\Gate::authorize($ability, $arguments);
  4374. }
  4375. /**
  4376. * Get a policy instance for a given class.
  4377. *
  4378. * @param object|string $class
  4379. * @return mixed
  4380. * @static
  4381. */
  4382. public static function getPolicyFor($class)
  4383. {
  4384. return \Illuminate\Auth\Access\Gate::getPolicyFor($class);
  4385. }
  4386. /**
  4387. * Build a policy class instance of the given type.
  4388. *
  4389. * @param object|string $class
  4390. * @return mixed
  4391. * @static
  4392. */
  4393. public static function resolvePolicy($class)
  4394. {
  4395. return \Illuminate\Auth\Access\Gate::resolvePolicy($class);
  4396. }
  4397. /**
  4398. * Get a gate instance for the given user.
  4399. *
  4400. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  4401. * @return static
  4402. * @static
  4403. */
  4404. public static function forUser($user)
  4405. {
  4406. return \Illuminate\Auth\Access\Gate::forUser($user);
  4407. }
  4408. /**
  4409. * Get all of the defined abilities.
  4410. *
  4411. * @return array
  4412. * @static
  4413. */
  4414. public static function abilities()
  4415. {
  4416. return \Illuminate\Auth\Access\Gate::abilities();
  4417. }
  4418. }
  4419. class Hash {
  4420. /**
  4421. * Hash the given value.
  4422. *
  4423. * @param string $value
  4424. * @param array $options
  4425. * @return string
  4426. * @throws \RuntimeException
  4427. * @static
  4428. */
  4429. public static function make($value, $options = array())
  4430. {
  4431. return \Illuminate\Hashing\BcryptHasher::make($value, $options);
  4432. }
  4433. /**
  4434. * Check the given plain value against a hash.
  4435. *
  4436. * @param string $value
  4437. * @param string $hashedValue
  4438. * @param array $options
  4439. * @return bool
  4440. * @static
  4441. */
  4442. public static function check($value, $hashedValue, $options = array())
  4443. {
  4444. return \Illuminate\Hashing\BcryptHasher::check($value, $hashedValue, $options);
  4445. }
  4446. /**
  4447. * Check if the given hash has been hashed using the given options.
  4448. *
  4449. * @param string $hashedValue
  4450. * @param array $options
  4451. * @return bool
  4452. * @static
  4453. */
  4454. public static function needsRehash($hashedValue, $options = array())
  4455. {
  4456. return \Illuminate\Hashing\BcryptHasher::needsRehash($hashedValue, $options);
  4457. }
  4458. /**
  4459. * Set the default password work factor.
  4460. *
  4461. * @param int $rounds
  4462. * @return $this
  4463. * @static
  4464. */
  4465. public static function setRounds($rounds)
  4466. {
  4467. return \Illuminate\Hashing\BcryptHasher::setRounds($rounds);
  4468. }
  4469. }
  4470. class Lang {
  4471. /**
  4472. * Determine if a translation exists for a given locale.
  4473. *
  4474. * @param string $key
  4475. * @param string|null $locale
  4476. * @return bool
  4477. * @static
  4478. */
  4479. public static function hasForLocale($key, $locale = null)
  4480. {
  4481. return \Illuminate\Translation\Translator::hasForLocale($key, $locale);
  4482. }
  4483. /**
  4484. * Determine if a translation exists.
  4485. *
  4486. * @param string $key
  4487. * @param string|null $locale
  4488. * @param bool $fallback
  4489. * @return bool
  4490. * @static
  4491. */
  4492. public static function has($key, $locale = null, $fallback = true)
  4493. {
  4494. return \Illuminate\Translation\Translator::has($key, $locale, $fallback);
  4495. }
  4496. /**
  4497. * Get the translation for a given key.
  4498. *
  4499. * @param string $key
  4500. * @param array $replace
  4501. * @param string $locale
  4502. * @return string|array|null
  4503. * @static
  4504. */
  4505. public static function trans($key, $replace = array(), $locale = null)
  4506. {
  4507. return \Illuminate\Translation\Translator::trans($key, $replace, $locale);
  4508. }
  4509. /**
  4510. * Get the translation for the given key.
  4511. *
  4512. * @param string $key
  4513. * @param array $replace
  4514. * @param string|null $locale
  4515. * @param bool $fallback
  4516. * @return string|array|null
  4517. * @static
  4518. */
  4519. public static function get($key, $replace = array(), $locale = null, $fallback = true)
  4520. {
  4521. return \Illuminate\Translation\Translator::get($key, $replace, $locale, $fallback);
  4522. }
  4523. /**
  4524. * Get the translation for a given key from the JSON translation files.
  4525. *
  4526. * @param string $key
  4527. * @param array $replace
  4528. * @param string $locale
  4529. * @return string
  4530. * @static
  4531. */
  4532. public static function getFromJson($key, $replace = array(), $locale = null)
  4533. {
  4534. return \Illuminate\Translation\Translator::getFromJson($key, $replace, $locale);
  4535. }
  4536. /**
  4537. * Get a translation according to an integer value.
  4538. *
  4539. * @param string $key
  4540. * @param int|array|\Countable $number
  4541. * @param array $replace
  4542. * @param string $locale
  4543. * @return string
  4544. * @static
  4545. */
  4546. public static function transChoice($key, $number, $replace = array(), $locale = null)
  4547. {
  4548. return \Illuminate\Translation\Translator::transChoice($key, $number, $replace, $locale);
  4549. }
  4550. /**
  4551. * Get a translation according to an integer value.
  4552. *
  4553. * @param string $key
  4554. * @param int|array|\Countable $number
  4555. * @param array $replace
  4556. * @param string $locale
  4557. * @return string
  4558. * @static
  4559. */
  4560. public static function choice($key, $number, $replace = array(), $locale = null)
  4561. {
  4562. return \Illuminate\Translation\Translator::choice($key, $number, $replace, $locale);
  4563. }
  4564. /**
  4565. * Add translation lines to the given locale.
  4566. *
  4567. * @param array $lines
  4568. * @param string $locale
  4569. * @param string $namespace
  4570. * @return void
  4571. * @static
  4572. */
  4573. public static function addLines($lines, $locale, $namespace = '*')
  4574. {
  4575. \Illuminate\Translation\Translator::addLines($lines, $locale, $namespace);
  4576. }
  4577. /**
  4578. * Load the specified language group.
  4579. *
  4580. * @param string $namespace
  4581. * @param string $group
  4582. * @param string $locale
  4583. * @return void
  4584. * @static
  4585. */
  4586. public static function load($namespace, $group, $locale)
  4587. {
  4588. \Illuminate\Translation\Translator::load($namespace, $group, $locale);
  4589. }
  4590. /**
  4591. * Add a new namespace to the loader.
  4592. *
  4593. * @param string $namespace
  4594. * @param string $hint
  4595. * @return void
  4596. * @static
  4597. */
  4598. public static function addNamespace($namespace, $hint)
  4599. {
  4600. \Illuminate\Translation\Translator::addNamespace($namespace, $hint);
  4601. }
  4602. /**
  4603. * Parse a key into namespace, group, and item.
  4604. *
  4605. * @param string $key
  4606. * @return array
  4607. * @static
  4608. */
  4609. public static function parseKey($key)
  4610. {
  4611. return \Illuminate\Translation\Translator::parseKey($key);
  4612. }
  4613. /**
  4614. * Get the message selector instance.
  4615. *
  4616. * @return \Illuminate\Translation\MessageSelector
  4617. * @static
  4618. */
  4619. public static function getSelector()
  4620. {
  4621. return \Illuminate\Translation\Translator::getSelector();
  4622. }
  4623. /**
  4624. * Set the message selector instance.
  4625. *
  4626. * @param \Illuminate\Translation\MessageSelector $selector
  4627. * @return void
  4628. * @static
  4629. */
  4630. public static function setSelector($selector)
  4631. {
  4632. \Illuminate\Translation\Translator::setSelector($selector);
  4633. }
  4634. /**
  4635. * Get the language line loader implementation.
  4636. *
  4637. * @return \Illuminate\Translation\LoaderInterface
  4638. * @static
  4639. */
  4640. public static function getLoader()
  4641. {
  4642. return \Illuminate\Translation\Translator::getLoader();
  4643. }
  4644. /**
  4645. * Get the default locale being used.
  4646. *
  4647. * @return string
  4648. * @static
  4649. */
  4650. public static function locale()
  4651. {
  4652. return \Illuminate\Translation\Translator::locale();
  4653. }
  4654. /**
  4655. * Get the default locale being used.
  4656. *
  4657. * @return string
  4658. * @static
  4659. */
  4660. public static function getLocale()
  4661. {
  4662. return \Illuminate\Translation\Translator::getLocale();
  4663. }
  4664. /**
  4665. * Set the default locale.
  4666. *
  4667. * @param string $locale
  4668. * @return void
  4669. * @static
  4670. */
  4671. public static function setLocale($locale)
  4672. {
  4673. \Illuminate\Translation\Translator::setLocale($locale);
  4674. }
  4675. /**
  4676. * Get the fallback locale being used.
  4677. *
  4678. * @return string
  4679. * @static
  4680. */
  4681. public static function getFallback()
  4682. {
  4683. return \Illuminate\Translation\Translator::getFallback();
  4684. }
  4685. /**
  4686. * Set the fallback locale being used.
  4687. *
  4688. * @param string $fallback
  4689. * @return void
  4690. * @static
  4691. */
  4692. public static function setFallback($fallback)
  4693. {
  4694. \Illuminate\Translation\Translator::setFallback($fallback);
  4695. }
  4696. /**
  4697. * Set the parsed value of a key.
  4698. *
  4699. * @param string $key
  4700. * @param array $parsed
  4701. * @return void
  4702. * @static
  4703. */
  4704. public static function setParsedKey($key, $parsed)
  4705. {
  4706. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  4707. \Illuminate\Translation\Translator::setParsedKey($key, $parsed);
  4708. }
  4709. /**
  4710. * Register a custom macro.
  4711. *
  4712. * @param string $name
  4713. * @param callable $macro
  4714. * @return void
  4715. * @static
  4716. */
  4717. public static function macro($name, $macro)
  4718. {
  4719. \Illuminate\Translation\Translator::macro($name, $macro);
  4720. }
  4721. /**
  4722. * Checks if macro is registered.
  4723. *
  4724. * @param string $name
  4725. * @return bool
  4726. * @static
  4727. */
  4728. public static function hasMacro($name)
  4729. {
  4730. return \Illuminate\Translation\Translator::hasMacro($name);
  4731. }
  4732. }
  4733. class Log {
  4734. /**
  4735. * Adds a log record at the DEBUG level.
  4736. *
  4737. * @param string $message The log message
  4738. * @param array $context The log context
  4739. * @return bool Whether the record has been processed
  4740. * @static
  4741. */
  4742. public static function debug($message, $context = array())
  4743. {
  4744. return \Monolog\Logger::debug($message, $context);
  4745. }
  4746. /**
  4747. * Adds a log record at the INFO level.
  4748. *
  4749. * @param string $message The log message
  4750. * @param array $context The log context
  4751. * @return bool Whether the record has been processed
  4752. * @static
  4753. */
  4754. public static function info($message, $context = array())
  4755. {
  4756. return \Monolog\Logger::info($message, $context);
  4757. }
  4758. /**
  4759. * Adds a log record at the NOTICE level.
  4760. *
  4761. * @param string $message The log message
  4762. * @param array $context The log context
  4763. * @return bool Whether the record has been processed
  4764. * @static
  4765. */
  4766. public static function notice($message, $context = array())
  4767. {
  4768. return \Monolog\Logger::notice($message, $context);
  4769. }
  4770. /**
  4771. * Adds a log record at the WARNING level.
  4772. *
  4773. * @param string $message The log message
  4774. * @param array $context The log context
  4775. * @return bool Whether the record has been processed
  4776. * @static
  4777. */
  4778. public static function warning($message, $context = array())
  4779. {
  4780. return \Monolog\Logger::warning($message, $context);
  4781. }
  4782. /**
  4783. * Adds a log record at the ERROR level.
  4784. *
  4785. * @param string $message The log message
  4786. * @param array $context The log context
  4787. * @return bool Whether the record has been processed
  4788. * @static
  4789. */
  4790. public static function error($message, $context = array())
  4791. {
  4792. return \Monolog\Logger::error($message, $context);
  4793. }
  4794. /**
  4795. * Adds a log record at the CRITICAL level.
  4796. *
  4797. * @param string $message The log message
  4798. * @param array $context The log context
  4799. * @return bool Whether the record has been processed
  4800. * @static
  4801. */
  4802. public static function critical($message, $context = array())
  4803. {
  4804. return \Monolog\Logger::critical($message, $context);
  4805. }
  4806. /**
  4807. * Adds a log record at the ALERT level.
  4808. *
  4809. * @param string $message The log message
  4810. * @param array $context The log context
  4811. * @return bool Whether the record has been processed
  4812. * @static
  4813. */
  4814. public static function alert($message, $context = array())
  4815. {
  4816. return \Monolog\Logger::alert($message, $context);
  4817. }
  4818. /**
  4819. * Adds a log record at the EMERGENCY level.
  4820. *
  4821. * @param string $message The log message
  4822. * @param array $context The log context
  4823. * @return bool Whether the record has been processed
  4824. * @static
  4825. */
  4826. public static function emergency($message, $context = array())
  4827. {
  4828. return \Monolog\Logger::emergency($message, $context);
  4829. }
  4830. /**
  4831. * Log a message to the logs.
  4832. *
  4833. * @param string $level
  4834. * @param string $message
  4835. * @param array $context
  4836. * @return void
  4837. * @static
  4838. */
  4839. public static function log($level, $message, $context = array())
  4840. {
  4841. \Illuminate\Log\Writer::log($level, $message, $context);
  4842. }
  4843. /**
  4844. * Dynamically pass log calls into the writer.
  4845. *
  4846. * @param string $level
  4847. * @param string $message
  4848. * @param array $context
  4849. * @return void
  4850. * @static
  4851. */
  4852. public static function write($level, $message, $context = array())
  4853. {
  4854. \Illuminate\Log\Writer::write($level, $message, $context);
  4855. }
  4856. /**
  4857. * Register a file log handler.
  4858. *
  4859. * @param string $path
  4860. * @param string $level
  4861. * @return void
  4862. * @static
  4863. */
  4864. public static function useFiles($path, $level = 'debug')
  4865. {
  4866. \Illuminate\Log\Writer::useFiles($path, $level);
  4867. }
  4868. /**
  4869. * Register a daily file log handler.
  4870. *
  4871. * @param string $path
  4872. * @param int $days
  4873. * @param string $level
  4874. * @return void
  4875. * @static
  4876. */
  4877. public static function useDailyFiles($path, $days = 0, $level = 'debug')
  4878. {
  4879. \Illuminate\Log\Writer::useDailyFiles($path, $days, $level);
  4880. }
  4881. /**
  4882. * Register a Syslog handler.
  4883. *
  4884. * @param string $name
  4885. * @param string $level
  4886. * @param mixed $facility
  4887. * @return \Psr\Log\LoggerInterface
  4888. * @static
  4889. */
  4890. public static function useSyslog($name = 'laravel', $level = 'debug', $facility = 8)
  4891. {
  4892. return \Illuminate\Log\Writer::useSyslog($name, $level, $facility);
  4893. }
  4894. /**
  4895. * Register an error_log handler.
  4896. *
  4897. * @param string $level
  4898. * @param int $messageType
  4899. * @return void
  4900. * @static
  4901. */
  4902. public static function useErrorLog($level = 'debug', $messageType = 0)
  4903. {
  4904. \Illuminate\Log\Writer::useErrorLog($level, $messageType);
  4905. }
  4906. /**
  4907. * Register a new callback handler for when a log event is triggered.
  4908. *
  4909. * @param \Closure $callback
  4910. * @return void
  4911. * @throws \RuntimeException
  4912. * @static
  4913. */
  4914. public static function listen($callback)
  4915. {
  4916. \Illuminate\Log\Writer::listen($callback);
  4917. }
  4918. /**
  4919. * Get the underlying Monolog instance.
  4920. *
  4921. * @return \Monolog\Logger
  4922. * @static
  4923. */
  4924. public static function getMonolog()
  4925. {
  4926. return \Illuminate\Log\Writer::getMonolog();
  4927. }
  4928. /**
  4929. * Get the event dispatcher instance.
  4930. *
  4931. * @return \Illuminate\Contracts\Events\Dispatcher
  4932. * @static
  4933. */
  4934. public static function getEventDispatcher()
  4935. {
  4936. return \Illuminate\Log\Writer::getEventDispatcher();
  4937. }
  4938. /**
  4939. * Set the event dispatcher instance.
  4940. *
  4941. * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher
  4942. * @return void
  4943. * @static
  4944. */
  4945. public static function setEventDispatcher($dispatcher)
  4946. {
  4947. \Illuminate\Log\Writer::setEventDispatcher($dispatcher);
  4948. }
  4949. }
  4950. class Mail {
  4951. /**
  4952. * Set the global from address and name.
  4953. *
  4954. * @param string $address
  4955. * @param string|null $name
  4956. * @return void
  4957. * @static
  4958. */
  4959. public static function alwaysFrom($address, $name = null)
  4960. {
  4961. \Illuminate\Mail\Mailer::alwaysFrom($address, $name);
  4962. }
  4963. /**
  4964. * Set the global reply-to address and name.
  4965. *
  4966. * @param string $address
  4967. * @param string|null $name
  4968. * @return void
  4969. * @static
  4970. */
  4971. public static function alwaysReplyTo($address, $name = null)
  4972. {
  4973. \Illuminate\Mail\Mailer::alwaysReplyTo($address, $name);
  4974. }
  4975. /**
  4976. * Set the global to address and name.
  4977. *
  4978. * @param string $address
  4979. * @param string|null $name
  4980. * @return void
  4981. * @static
  4982. */
  4983. public static function alwaysTo($address, $name = null)
  4984. {
  4985. \Illuminate\Mail\Mailer::alwaysTo($address, $name);
  4986. }
  4987. /**
  4988. * Begin the process of mailing a mailable class instance.
  4989. *
  4990. * @param mixed $users
  4991. * @return \Illuminate\Mail\PendingMail
  4992. * @static
  4993. */
  4994. public static function to($users)
  4995. {
  4996. return \Illuminate\Mail\Mailer::to($users);
  4997. }
  4998. /**
  4999. * Begin the process of mailing a mailable class instance.
  5000. *
  5001. * @param mixed $users
  5002. * @return \Illuminate\Mail\PendingMail
  5003. * @static
  5004. */
  5005. public static function bcc($users)
  5006. {
  5007. return \Illuminate\Mail\Mailer::bcc($users);
  5008. }
  5009. /**
  5010. * Send a new message when only a raw text part.
  5011. *
  5012. * @param string $text
  5013. * @param mixed $callback
  5014. * @return void
  5015. * @static
  5016. */
  5017. public static function raw($text, $callback)
  5018. {
  5019. \Illuminate\Mail\Mailer::raw($text, $callback);
  5020. }
  5021. /**
  5022. * Send a new message when only a plain part.
  5023. *
  5024. * @param string $view
  5025. * @param array $data
  5026. * @param mixed $callback
  5027. * @return void
  5028. * @static
  5029. */
  5030. public static function plain($view, $data, $callback)
  5031. {
  5032. \Illuminate\Mail\Mailer::plain($view, $data, $callback);
  5033. }
  5034. /**
  5035. * Send a new message using a view.
  5036. *
  5037. * @param string|array $view
  5038. * @param array $data
  5039. * @param \Closure|string $callback
  5040. * @return void
  5041. * @static
  5042. */
  5043. public static function send($view, $data = array(), $callback = null)
  5044. {
  5045. \Illuminate\Mail\Mailer::send($view, $data, $callback);
  5046. }
  5047. /**
  5048. * Queue a new e-mail message for sending.
  5049. *
  5050. * @param string|array $view
  5051. * @param array $data
  5052. * @param \Closure|string $callback
  5053. * @param string|null $queue
  5054. * @return mixed
  5055. * @static
  5056. */
  5057. public static function queue($view, $data = array(), $callback = null, $queue = null)
  5058. {
  5059. return \Illuminate\Mail\Mailer::queue($view, $data, $callback, $queue);
  5060. }
  5061. /**
  5062. * Queue a new e-mail message for sending on the given queue.
  5063. *
  5064. * @param string $queue
  5065. * @param string|array $view
  5066. * @param array $data
  5067. * @param \Closure|string $callback
  5068. * @return mixed
  5069. * @static
  5070. */
  5071. public static function onQueue($queue, $view, $data, $callback)
  5072. {
  5073. return \Illuminate\Mail\Mailer::onQueue($queue, $view, $data, $callback);
  5074. }
  5075. /**
  5076. * Queue a new e-mail message for sending on the given queue.
  5077. *
  5078. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  5079. *
  5080. * @param string $queue
  5081. * @param string|array $view
  5082. * @param array $data
  5083. * @param \Closure|string $callback
  5084. * @return mixed
  5085. * @static
  5086. */
  5087. public static function queueOn($queue, $view, $data, $callback)
  5088. {
  5089. return \Illuminate\Mail\Mailer::queueOn($queue, $view, $data, $callback);
  5090. }
  5091. /**
  5092. * Queue a new e-mail message for sending after (n) seconds.
  5093. *
  5094. * @param int $delay
  5095. * @param string|array $view
  5096. * @param array $data
  5097. * @param \Closure|string $callback
  5098. * @param string|null $queue
  5099. * @return mixed
  5100. * @static
  5101. */
  5102. public static function later($delay, $view, $data = array(), $callback = null, $queue = null)
  5103. {
  5104. return \Illuminate\Mail\Mailer::later($delay, $view, $data, $callback, $queue);
  5105. }
  5106. /**
  5107. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  5108. *
  5109. * @param string $queue
  5110. * @param int $delay
  5111. * @param string|array $view
  5112. * @param array $data
  5113. * @param \Closure|string $callback
  5114. * @return mixed
  5115. * @static
  5116. */
  5117. public static function laterOn($queue, $delay, $view, $data, $callback)
  5118. {
  5119. return \Illuminate\Mail\Mailer::laterOn($queue, $delay, $view, $data, $callback);
  5120. }
  5121. /**
  5122. * Get the view factory instance.
  5123. *
  5124. * @return \Illuminate\Contracts\View\Factory
  5125. * @static
  5126. */
  5127. public static function getViewFactory()
  5128. {
  5129. return \Illuminate\Mail\Mailer::getViewFactory();
  5130. }
  5131. /**
  5132. * Get the Swift Mailer instance.
  5133. *
  5134. * @return \Swift_Mailer
  5135. * @static
  5136. */
  5137. public static function getSwiftMailer()
  5138. {
  5139. return \Illuminate\Mail\Mailer::getSwiftMailer();
  5140. }
  5141. /**
  5142. * Get the array of failed recipients.
  5143. *
  5144. * @return array
  5145. * @static
  5146. */
  5147. public static function failures()
  5148. {
  5149. return \Illuminate\Mail\Mailer::failures();
  5150. }
  5151. /**
  5152. * Set the Swift Mailer instance.
  5153. *
  5154. * @param \Swift_Mailer $swift
  5155. * @return void
  5156. * @static
  5157. */
  5158. public static function setSwiftMailer($swift)
  5159. {
  5160. \Illuminate\Mail\Mailer::setSwiftMailer($swift);
  5161. }
  5162. /**
  5163. * Set the queue manager instance.
  5164. *
  5165. * @param \Illuminate\Contracts\Queue\Factory $queue
  5166. * @return $this
  5167. * @static
  5168. */
  5169. public static function setQueue($queue)
  5170. {
  5171. return \Illuminate\Mail\Mailer::setQueue($queue);
  5172. }
  5173. /**
  5174. * Register a custom macro.
  5175. *
  5176. * @param string $name
  5177. * @param callable $macro
  5178. * @return void
  5179. * @static
  5180. */
  5181. public static function macro($name, $macro)
  5182. {
  5183. \Illuminate\Mail\Mailer::macro($name, $macro);
  5184. }
  5185. /**
  5186. * Checks if macro is registered.
  5187. *
  5188. * @param string $name
  5189. * @return bool
  5190. * @static
  5191. */
  5192. public static function hasMacro($name)
  5193. {
  5194. return \Illuminate\Mail\Mailer::hasMacro($name);
  5195. }
  5196. }
  5197. class Notification {
  5198. /**
  5199. * Send the given notification to the given notifiable entities.
  5200. *
  5201. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  5202. * @param mixed $notification
  5203. * @return void
  5204. * @static
  5205. */
  5206. public static function send($notifiables, $notification)
  5207. {
  5208. \Illuminate\Notifications\ChannelManager::send($notifiables, $notification);
  5209. }
  5210. /**
  5211. * Send the given notification immediately.
  5212. *
  5213. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  5214. * @param mixed $notification
  5215. * @param array|null $channels
  5216. * @return void
  5217. * @static
  5218. */
  5219. public static function sendNow($notifiables, $notification, $channels = null)
  5220. {
  5221. \Illuminate\Notifications\ChannelManager::sendNow($notifiables, $notification, $channels);
  5222. }
  5223. /**
  5224. * Get a channel instance.
  5225. *
  5226. * @param string|null $name
  5227. * @return mixed
  5228. * @static
  5229. */
  5230. public static function channel($name = null)
  5231. {
  5232. return \Illuminate\Notifications\ChannelManager::channel($name);
  5233. }
  5234. /**
  5235. * Get the default channel driver name.
  5236. *
  5237. * @return string
  5238. * @static
  5239. */
  5240. public static function getDefaultDriver()
  5241. {
  5242. return \Illuminate\Notifications\ChannelManager::getDefaultDriver();
  5243. }
  5244. /**
  5245. * Get the default channel driver name.
  5246. *
  5247. * @return string
  5248. * @static
  5249. */
  5250. public static function deliversVia()
  5251. {
  5252. return \Illuminate\Notifications\ChannelManager::deliversVia();
  5253. }
  5254. /**
  5255. * Set the default channel driver name.
  5256. *
  5257. * @param string $channel
  5258. * @return void
  5259. * @static
  5260. */
  5261. public static function deliverVia($channel)
  5262. {
  5263. \Illuminate\Notifications\ChannelManager::deliverVia($channel);
  5264. }
  5265. /**
  5266. * Get a driver instance.
  5267. *
  5268. * @param string $driver
  5269. * @return mixed
  5270. * @static
  5271. */
  5272. public static function driver($driver = null)
  5273. {
  5274. //Method inherited from \Illuminate\Support\Manager
  5275. return \Illuminate\Notifications\ChannelManager::driver($driver);
  5276. }
  5277. /**
  5278. * Register a custom driver creator Closure.
  5279. *
  5280. * @param string $driver
  5281. * @param \Closure $callback
  5282. * @return $this
  5283. * @static
  5284. */
  5285. public static function extend($driver, $callback)
  5286. {
  5287. //Method inherited from \Illuminate\Support\Manager
  5288. return \Illuminate\Notifications\ChannelManager::extend($driver, $callback);
  5289. }
  5290. /**
  5291. * Get all of the created "drivers".
  5292. *
  5293. * @return array
  5294. * @static
  5295. */
  5296. public static function getDrivers()
  5297. {
  5298. //Method inherited from \Illuminate\Support\Manager
  5299. return \Illuminate\Notifications\ChannelManager::getDrivers();
  5300. }
  5301. }
  5302. class Password {
  5303. /**
  5304. * Attempt to get the broker from the local cache.
  5305. *
  5306. * @param string $name
  5307. * @return \Illuminate\Contracts\Auth\PasswordBroker
  5308. * @static
  5309. */
  5310. public static function broker($name = null)
  5311. {
  5312. return \Illuminate\Auth\Passwords\PasswordBrokerManager::broker($name);
  5313. }
  5314. /**
  5315. * Get the default password broker name.
  5316. *
  5317. * @return string
  5318. * @static
  5319. */
  5320. public static function getDefaultDriver()
  5321. {
  5322. return \Illuminate\Auth\Passwords\PasswordBrokerManager::getDefaultDriver();
  5323. }
  5324. /**
  5325. * Set the default password broker name.
  5326. *
  5327. * @param string $name
  5328. * @return void
  5329. * @static
  5330. */
  5331. public static function setDefaultDriver($name)
  5332. {
  5333. \Illuminate\Auth\Passwords\PasswordBrokerManager::setDefaultDriver($name);
  5334. }
  5335. }
  5336. class Queue {
  5337. /**
  5338. * Register an event listener for the before job event.
  5339. *
  5340. * @param mixed $callback
  5341. * @return void
  5342. * @static
  5343. */
  5344. public static function before($callback)
  5345. {
  5346. \Illuminate\Queue\QueueManager::before($callback);
  5347. }
  5348. /**
  5349. * Register an event listener for the after job event.
  5350. *
  5351. * @param mixed $callback
  5352. * @return void
  5353. * @static
  5354. */
  5355. public static function after($callback)
  5356. {
  5357. \Illuminate\Queue\QueueManager::after($callback);
  5358. }
  5359. /**
  5360. * Register an event listener for the exception occurred job event.
  5361. *
  5362. * @param mixed $callback
  5363. * @return void
  5364. * @static
  5365. */
  5366. public static function exceptionOccurred($callback)
  5367. {
  5368. \Illuminate\Queue\QueueManager::exceptionOccurred($callback);
  5369. }
  5370. /**
  5371. * Register an event listener for the daemon queue loop.
  5372. *
  5373. * @param mixed $callback
  5374. * @return void
  5375. * @static
  5376. */
  5377. public static function looping($callback)
  5378. {
  5379. \Illuminate\Queue\QueueManager::looping($callback);
  5380. }
  5381. /**
  5382. * Register an event listener for the failed job event.
  5383. *
  5384. * @param mixed $callback
  5385. * @return void
  5386. * @static
  5387. */
  5388. public static function failing($callback)
  5389. {
  5390. \Illuminate\Queue\QueueManager::failing($callback);
  5391. }
  5392. /**
  5393. * Register an event listener for the daemon queue stopping.
  5394. *
  5395. * @param mixed $callback
  5396. * @return void
  5397. * @static
  5398. */
  5399. public static function stopping($callback)
  5400. {
  5401. \Illuminate\Queue\QueueManager::stopping($callback);
  5402. }
  5403. /**
  5404. * Determine if the driver is connected.
  5405. *
  5406. * @param string $name
  5407. * @return bool
  5408. * @static
  5409. */
  5410. public static function connected($name = null)
  5411. {
  5412. return \Illuminate\Queue\QueueManager::connected($name);
  5413. }
  5414. /**
  5415. * Resolve a queue connection instance.
  5416. *
  5417. * @param string $name
  5418. * @return \Illuminate\Contracts\Queue\Queue
  5419. * @static
  5420. */
  5421. public static function connection($name = null)
  5422. {
  5423. return \Illuminate\Queue\QueueManager::connection($name);
  5424. }
  5425. /**
  5426. * Add a queue connection resolver.
  5427. *
  5428. * @param string $driver
  5429. * @param \Closure $resolver
  5430. * @return void
  5431. * @static
  5432. */
  5433. public static function extend($driver, $resolver)
  5434. {
  5435. \Illuminate\Queue\QueueManager::extend($driver, $resolver);
  5436. }
  5437. /**
  5438. * Add a queue connection resolver.
  5439. *
  5440. * @param string $driver
  5441. * @param \Closure $resolver
  5442. * @return void
  5443. * @static
  5444. */
  5445. public static function addConnector($driver, $resolver)
  5446. {
  5447. \Illuminate\Queue\QueueManager::addConnector($driver, $resolver);
  5448. }
  5449. /**
  5450. * Get the name of the default queue connection.
  5451. *
  5452. * @return string
  5453. * @static
  5454. */
  5455. public static function getDefaultDriver()
  5456. {
  5457. return \Illuminate\Queue\QueueManager::getDefaultDriver();
  5458. }
  5459. /**
  5460. * Set the name of the default queue connection.
  5461. *
  5462. * @param string $name
  5463. * @return void
  5464. * @static
  5465. */
  5466. public static function setDefaultDriver($name)
  5467. {
  5468. \Illuminate\Queue\QueueManager::setDefaultDriver($name);
  5469. }
  5470. /**
  5471. * Get the full name for the given connection.
  5472. *
  5473. * @param string $connection
  5474. * @return string
  5475. * @static
  5476. */
  5477. public static function getName($connection = null)
  5478. {
  5479. return \Illuminate\Queue\QueueManager::getName($connection);
  5480. }
  5481. /**
  5482. * Determine if the application is in maintenance mode.
  5483. *
  5484. * @return bool
  5485. * @static
  5486. */
  5487. public static function isDownForMaintenance()
  5488. {
  5489. return \Illuminate\Queue\QueueManager::isDownForMaintenance();
  5490. }
  5491. /**
  5492. * Get the size of the queue.
  5493. *
  5494. * @param string $queue
  5495. * @return int
  5496. * @static
  5497. */
  5498. public static function size($queue = null)
  5499. {
  5500. return \Illuminate\Queue\SyncQueue::size($queue);
  5501. }
  5502. /**
  5503. * Push a new job onto the queue.
  5504. *
  5505. * @param string $job
  5506. * @param mixed $data
  5507. * @param string $queue
  5508. * @return mixed
  5509. * @throws \Exception|\Throwable
  5510. * @static
  5511. */
  5512. public static function push($job, $data = '', $queue = null)
  5513. {
  5514. return \Illuminate\Queue\SyncQueue::push($job, $data, $queue);
  5515. }
  5516. /**
  5517. * Push a raw payload onto the queue.
  5518. *
  5519. * @param string $payload
  5520. * @param string $queue
  5521. * @param array $options
  5522. * @return mixed
  5523. * @static
  5524. */
  5525. public static function pushRaw($payload, $queue = null, $options = array())
  5526. {
  5527. return \Illuminate\Queue\SyncQueue::pushRaw($payload, $queue, $options);
  5528. }
  5529. /**
  5530. * Push a new job onto the queue after a delay.
  5531. *
  5532. * @param \DateTime|int $delay
  5533. * @param string $job
  5534. * @param mixed $data
  5535. * @param string $queue
  5536. * @return mixed
  5537. * @static
  5538. */
  5539. public static function later($delay, $job, $data = '', $queue = null)
  5540. {
  5541. return \Illuminate\Queue\SyncQueue::later($delay, $job, $data, $queue);
  5542. }
  5543. /**
  5544. * Pop the next job off of the queue.
  5545. *
  5546. * @param string $queue
  5547. * @return \Illuminate\Contracts\Queue\Job|null
  5548. * @static
  5549. */
  5550. public static function pop($queue = null)
  5551. {
  5552. return \Illuminate\Queue\SyncQueue::pop($queue);
  5553. }
  5554. /**
  5555. * Push a new job onto the queue.
  5556. *
  5557. * @param string $queue
  5558. * @param string $job
  5559. * @param mixed $data
  5560. * @return mixed
  5561. * @static
  5562. */
  5563. public static function pushOn($queue, $job, $data = '')
  5564. {
  5565. //Method inherited from \Illuminate\Queue\Queue
  5566. return \Illuminate\Queue\SyncQueue::pushOn($queue, $job, $data);
  5567. }
  5568. /**
  5569. * Push a new job onto the queue after a delay.
  5570. *
  5571. * @param string $queue
  5572. * @param \DateTime|int $delay
  5573. * @param string $job
  5574. * @param mixed $data
  5575. * @return mixed
  5576. * @static
  5577. */
  5578. public static function laterOn($queue, $delay, $job, $data = '')
  5579. {
  5580. //Method inherited from \Illuminate\Queue\Queue
  5581. return \Illuminate\Queue\SyncQueue::laterOn($queue, $delay, $job, $data);
  5582. }
  5583. /**
  5584. * Push an array of jobs onto the queue.
  5585. *
  5586. * @param array $jobs
  5587. * @param mixed $data
  5588. * @param string $queue
  5589. * @return mixed
  5590. * @static
  5591. */
  5592. public static function bulk($jobs, $data = '', $queue = null)
  5593. {
  5594. //Method inherited from \Illuminate\Queue\Queue
  5595. return \Illuminate\Queue\SyncQueue::bulk($jobs, $data, $queue);
  5596. }
  5597. /**
  5598. * Get the connection name for the queue.
  5599. *
  5600. * @return string
  5601. * @static
  5602. */
  5603. public static function getConnectionName()
  5604. {
  5605. //Method inherited from \Illuminate\Queue\Queue
  5606. return \Illuminate\Queue\SyncQueue::getConnectionName();
  5607. }
  5608. /**
  5609. * Set the connection name for the queue.
  5610. *
  5611. * @param string $name
  5612. * @return $this
  5613. * @static
  5614. */
  5615. public static function setConnectionName($name)
  5616. {
  5617. //Method inherited from \Illuminate\Queue\Queue
  5618. return \Illuminate\Queue\SyncQueue::setConnectionName($name);
  5619. }
  5620. /**
  5621. * Set the IoC container instance.
  5622. *
  5623. * @param \Illuminate\Container\Container $container
  5624. * @return void
  5625. * @static
  5626. */
  5627. public static function setContainer($container)
  5628. {
  5629. //Method inherited from \Illuminate\Queue\Queue
  5630. \Illuminate\Queue\SyncQueue::setContainer($container);
  5631. }
  5632. }
  5633. class Redirect {
  5634. /**
  5635. * Create a new redirect response to the "home" route.
  5636. *
  5637. * @param int $status
  5638. * @return \Illuminate\Http\RedirectResponse
  5639. * @static
  5640. */
  5641. public static function home($status = 302)
  5642. {
  5643. return \Illuminate\Routing\Redirector::home($status);
  5644. }
  5645. /**
  5646. * Create a new redirect response to the previous location.
  5647. *
  5648. * @param int $status
  5649. * @param array $headers
  5650. * @param mixed $fallback
  5651. * @return \Illuminate\Http\RedirectResponse
  5652. * @static
  5653. */
  5654. public static function back($status = 302, $headers = array(), $fallback = false)
  5655. {
  5656. return \Illuminate\Routing\Redirector::back($status, $headers, $fallback);
  5657. }
  5658. /**
  5659. * Create a new redirect response to the current URI.
  5660. *
  5661. * @param int $status
  5662. * @param array $headers
  5663. * @return \Illuminate\Http\RedirectResponse
  5664. * @static
  5665. */
  5666. public static function refresh($status = 302, $headers = array())
  5667. {
  5668. return \Illuminate\Routing\Redirector::refresh($status, $headers);
  5669. }
  5670. /**
  5671. * Create a new redirect response, while putting the current URL in the session.
  5672. *
  5673. * @param string $path
  5674. * @param int $status
  5675. * @param array $headers
  5676. * @param bool $secure
  5677. * @return \Illuminate\Http\RedirectResponse
  5678. * @static
  5679. */
  5680. public static function guest($path, $status = 302, $headers = array(), $secure = null)
  5681. {
  5682. return \Illuminate\Routing\Redirector::guest($path, $status, $headers, $secure);
  5683. }
  5684. /**
  5685. * Create a new redirect response to the previously intended location.
  5686. *
  5687. * @param string $default
  5688. * @param int $status
  5689. * @param array $headers
  5690. * @param bool $secure
  5691. * @return \Illuminate\Http\RedirectResponse
  5692. * @static
  5693. */
  5694. public static function intended($default = '/', $status = 302, $headers = array(), $secure = null)
  5695. {
  5696. return \Illuminate\Routing\Redirector::intended($default, $status, $headers, $secure);
  5697. }
  5698. /**
  5699. * Create a new redirect response to the given path.
  5700. *
  5701. * @param string $path
  5702. * @param int $status
  5703. * @param array $headers
  5704. * @param bool $secure
  5705. * @return \Illuminate\Http\RedirectResponse
  5706. * @static
  5707. */
  5708. public static function to($path, $status = 302, $headers = array(), $secure = null)
  5709. {
  5710. return \Illuminate\Routing\Redirector::to($path, $status, $headers, $secure);
  5711. }
  5712. /**
  5713. * Create a new redirect response to an external URL (no validation).
  5714. *
  5715. * @param string $path
  5716. * @param int $status
  5717. * @param array $headers
  5718. * @return \Illuminate\Http\RedirectResponse
  5719. * @static
  5720. */
  5721. public static function away($path, $status = 302, $headers = array())
  5722. {
  5723. return \Illuminate\Routing\Redirector::away($path, $status, $headers);
  5724. }
  5725. /**
  5726. * Create a new redirect response to the given HTTPS path.
  5727. *
  5728. * @param string $path
  5729. * @param int $status
  5730. * @param array $headers
  5731. * @return \Illuminate\Http\RedirectResponse
  5732. * @static
  5733. */
  5734. public static function secure($path, $status = 302, $headers = array())
  5735. {
  5736. return \Illuminate\Routing\Redirector::secure($path, $status, $headers);
  5737. }
  5738. /**
  5739. * Create a new redirect response to a named route.
  5740. *
  5741. * @param string $route
  5742. * @param array $parameters
  5743. * @param int $status
  5744. * @param array $headers
  5745. * @return \Illuminate\Http\RedirectResponse
  5746. * @static
  5747. */
  5748. public static function route($route, $parameters = array(), $status = 302, $headers = array())
  5749. {
  5750. return \Illuminate\Routing\Redirector::route($route, $parameters, $status, $headers);
  5751. }
  5752. /**
  5753. * Create a new redirect response to a controller action.
  5754. *
  5755. * @param string $action
  5756. * @param array $parameters
  5757. * @param int $status
  5758. * @param array $headers
  5759. * @return \Illuminate\Http\RedirectResponse
  5760. * @static
  5761. */
  5762. public static function action($action, $parameters = array(), $status = 302, $headers = array())
  5763. {
  5764. return \Illuminate\Routing\Redirector::action($action, $parameters, $status, $headers);
  5765. }
  5766. /**
  5767. * Get the URL generator instance.
  5768. *
  5769. * @return \Illuminate\Routing\UrlGenerator
  5770. * @static
  5771. */
  5772. public static function getUrlGenerator()
  5773. {
  5774. return \Illuminate\Routing\Redirector::getUrlGenerator();
  5775. }
  5776. /**
  5777. * Set the active session store.
  5778. *
  5779. * @param \Illuminate\Session\Store $session
  5780. * @return void
  5781. * @static
  5782. */
  5783. public static function setSession($session)
  5784. {
  5785. \Illuminate\Routing\Redirector::setSession($session);
  5786. }
  5787. }
  5788. class Request {
  5789. /**
  5790. * Create a new Illuminate HTTP request from server variables.
  5791. *
  5792. * @return static
  5793. * @static
  5794. */
  5795. public static function capture()
  5796. {
  5797. return \Illuminate\Http\Request::capture();
  5798. }
  5799. /**
  5800. * Return the Request instance.
  5801. *
  5802. * @return $this
  5803. * @static
  5804. */
  5805. public static function instance()
  5806. {
  5807. return \Illuminate\Http\Request::instance();
  5808. }
  5809. /**
  5810. * Get the request method.
  5811. *
  5812. * @return string
  5813. * @static
  5814. */
  5815. public static function method()
  5816. {
  5817. return \Illuminate\Http\Request::method();
  5818. }
  5819. /**
  5820. * Get the root URL for the application.
  5821. *
  5822. * @return string
  5823. * @static
  5824. */
  5825. public static function root()
  5826. {
  5827. return \Illuminate\Http\Request::root();
  5828. }
  5829. /**
  5830. * Get the URL (no query string) for the request.
  5831. *
  5832. * @return string
  5833. * @static
  5834. */
  5835. public static function url()
  5836. {
  5837. return \Illuminate\Http\Request::url();
  5838. }
  5839. /**
  5840. * Get the full URL for the request.
  5841. *
  5842. * @return string
  5843. * @static
  5844. */
  5845. public static function fullUrl()
  5846. {
  5847. return \Illuminate\Http\Request::fullUrl();
  5848. }
  5849. /**
  5850. * Get the full URL for the request with the added query string parameters.
  5851. *
  5852. * @param array $query
  5853. * @return string
  5854. * @static
  5855. */
  5856. public static function fullUrlWithQuery($query)
  5857. {
  5858. return \Illuminate\Http\Request::fullUrlWithQuery($query);
  5859. }
  5860. /**
  5861. * Get the current path info for the request.
  5862. *
  5863. * @return string
  5864. * @static
  5865. */
  5866. public static function path()
  5867. {
  5868. return \Illuminate\Http\Request::path();
  5869. }
  5870. /**
  5871. * Get the current encoded path info for the request.
  5872. *
  5873. * @return string
  5874. * @static
  5875. */
  5876. public static function decodedPath()
  5877. {
  5878. return \Illuminate\Http\Request::decodedPath();
  5879. }
  5880. /**
  5881. * Get a segment from the URI (1 based index).
  5882. *
  5883. * @param int $index
  5884. * @param string|null $default
  5885. * @return string|null
  5886. * @static
  5887. */
  5888. public static function segment($index, $default = null)
  5889. {
  5890. return \Illuminate\Http\Request::segment($index, $default);
  5891. }
  5892. /**
  5893. * Get all of the segments for the request path.
  5894. *
  5895. * @return array
  5896. * @static
  5897. */
  5898. public static function segments()
  5899. {
  5900. return \Illuminate\Http\Request::segments();
  5901. }
  5902. /**
  5903. * Determine if the current request URI matches a pattern.
  5904. *
  5905. * @return bool
  5906. * @static
  5907. */
  5908. public static function is()
  5909. {
  5910. return \Illuminate\Http\Request::is();
  5911. }
  5912. /**
  5913. * Check if the route name matches the given string.
  5914. *
  5915. * @param string $name
  5916. * @return bool
  5917. * @static
  5918. */
  5919. public static function routeIs($name)
  5920. {
  5921. return \Illuminate\Http\Request::routeIs($name);
  5922. }
  5923. /**
  5924. * Determine if the current request URL and query string matches a pattern.
  5925. *
  5926. * @return bool
  5927. * @static
  5928. */
  5929. public static function fullUrlIs()
  5930. {
  5931. return \Illuminate\Http\Request::fullUrlIs();
  5932. }
  5933. /**
  5934. * Determine if the request is the result of an AJAX call.
  5935. *
  5936. * @return bool
  5937. * @static
  5938. */
  5939. public static function ajax()
  5940. {
  5941. return \Illuminate\Http\Request::ajax();
  5942. }
  5943. /**
  5944. * Determine if the request is the result of an PJAX call.
  5945. *
  5946. * @return bool
  5947. * @static
  5948. */
  5949. public static function pjax()
  5950. {
  5951. return \Illuminate\Http\Request::pjax();
  5952. }
  5953. /**
  5954. * Determine if the request is over HTTPS.
  5955. *
  5956. * @return bool
  5957. * @static
  5958. */
  5959. public static function secure()
  5960. {
  5961. return \Illuminate\Http\Request::secure();
  5962. }
  5963. /**
  5964. * Get the client IP address.
  5965. *
  5966. * @return string
  5967. * @static
  5968. */
  5969. public static function ip()
  5970. {
  5971. return \Illuminate\Http\Request::ip();
  5972. }
  5973. /**
  5974. * Get the client IP addresses.
  5975. *
  5976. * @return array
  5977. * @static
  5978. */
  5979. public static function ips()
  5980. {
  5981. return \Illuminate\Http\Request::ips();
  5982. }
  5983. /**
  5984. * Get the client user agent.
  5985. *
  5986. * @return string
  5987. * @static
  5988. */
  5989. public static function userAgent()
  5990. {
  5991. return \Illuminate\Http\Request::userAgent();
  5992. }
  5993. /**
  5994. * Merge new input into the current request's input array.
  5995. *
  5996. * @param array $input
  5997. * @return void
  5998. * @static
  5999. */
  6000. public static function merge($input)
  6001. {
  6002. \Illuminate\Http\Request::merge($input);
  6003. }
  6004. /**
  6005. * Replace the input for the current request.
  6006. *
  6007. * @param array $input
  6008. * @return void
  6009. * @static
  6010. */
  6011. public static function replace($input)
  6012. {
  6013. \Illuminate\Http\Request::replace($input);
  6014. }
  6015. /**
  6016. * Get the JSON payload for the request.
  6017. *
  6018. * @param string $key
  6019. * @param mixed $default
  6020. * @return mixed
  6021. * @static
  6022. */
  6023. public static function json($key = null, $default = null)
  6024. {
  6025. return \Illuminate\Http\Request::json($key, $default);
  6026. }
  6027. /**
  6028. * Create an Illuminate request from a Symfony instance.
  6029. *
  6030. * @param \Symfony\Component\HttpFoundation\Request $request
  6031. * @return \Illuminate\Http\Request
  6032. * @static
  6033. */
  6034. public static function createFromBase($request)
  6035. {
  6036. return \Illuminate\Http\Request::createFromBase($request);
  6037. }
  6038. /**
  6039. * Clones a request and overrides some of its parameters.
  6040. *
  6041. * @param array $query The GET parameters
  6042. * @param array $request The POST parameters
  6043. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  6044. * @param array $cookies The COOKIE parameters
  6045. * @param array $files The FILES parameters
  6046. * @param array $server The SERVER parameters
  6047. * @return static
  6048. * @static
  6049. */
  6050. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  6051. {
  6052. return \Illuminate\Http\Request::duplicate($query, $request, $attributes, $cookies, $files, $server);
  6053. }
  6054. /**
  6055. * Get the session associated with the request.
  6056. *
  6057. * @return \Illuminate\Session\Store
  6058. * @throws \RuntimeException
  6059. * @static
  6060. */
  6061. public static function session()
  6062. {
  6063. return \Illuminate\Http\Request::session();
  6064. }
  6065. /**
  6066. * Set the session instance on the request.
  6067. *
  6068. * @param \Illuminate\Contracts\Session\Session $session
  6069. * @return void
  6070. * @static
  6071. */
  6072. public static function setLaravelSession($session)
  6073. {
  6074. \Illuminate\Http\Request::setLaravelSession($session);
  6075. }
  6076. /**
  6077. * Get the user making the request.
  6078. *
  6079. * @param string|null $guard
  6080. * @return mixed
  6081. * @static
  6082. */
  6083. public static function user($guard = null)
  6084. {
  6085. return \Illuminate\Http\Request::user($guard);
  6086. }
  6087. /**
  6088. * Get the route handling the request.
  6089. *
  6090. * @param string|null $param
  6091. * @return \Illuminate\Routing\Route|object|string
  6092. * @static
  6093. */
  6094. public static function route($param = null)
  6095. {
  6096. return \Illuminate\Http\Request::route($param);
  6097. }
  6098. /**
  6099. * Get a unique fingerprint for the request / route / IP address.
  6100. *
  6101. * @return string
  6102. * @throws \RuntimeException
  6103. * @static
  6104. */
  6105. public static function fingerprint()
  6106. {
  6107. return \Illuminate\Http\Request::fingerprint();
  6108. }
  6109. /**
  6110. * Set the JSON payload for the request.
  6111. *
  6112. * @param array $json
  6113. * @return $this
  6114. * @static
  6115. */
  6116. public static function setJson($json)
  6117. {
  6118. return \Illuminate\Http\Request::setJson($json);
  6119. }
  6120. /**
  6121. * Get the user resolver callback.
  6122. *
  6123. * @return \Closure
  6124. * @static
  6125. */
  6126. public static function getUserResolver()
  6127. {
  6128. return \Illuminate\Http\Request::getUserResolver();
  6129. }
  6130. /**
  6131. * Set the user resolver callback.
  6132. *
  6133. * @param \Closure $callback
  6134. * @return $this
  6135. * @static
  6136. */
  6137. public static function setUserResolver($callback)
  6138. {
  6139. return \Illuminate\Http\Request::setUserResolver($callback);
  6140. }
  6141. /**
  6142. * Get the route resolver callback.
  6143. *
  6144. * @return \Closure
  6145. * @static
  6146. */
  6147. public static function getRouteResolver()
  6148. {
  6149. return \Illuminate\Http\Request::getRouteResolver();
  6150. }
  6151. /**
  6152. * Set the route resolver callback.
  6153. *
  6154. * @param \Closure $callback
  6155. * @return $this
  6156. * @static
  6157. */
  6158. public static function setRouteResolver($callback)
  6159. {
  6160. return \Illuminate\Http\Request::setRouteResolver($callback);
  6161. }
  6162. /**
  6163. * Get all of the input and files for the request.
  6164. *
  6165. * @return array
  6166. * @static
  6167. */
  6168. public static function toArray()
  6169. {
  6170. return \Illuminate\Http\Request::toArray();
  6171. }
  6172. /**
  6173. * Determine if the given offset exists.
  6174. *
  6175. * @param string $offset
  6176. * @return bool
  6177. * @static
  6178. */
  6179. public static function offsetExists($offset)
  6180. {
  6181. return \Illuminate\Http\Request::offsetExists($offset);
  6182. }
  6183. /**
  6184. * Get the value at the given offset.
  6185. *
  6186. * @param string $offset
  6187. * @return mixed
  6188. * @static
  6189. */
  6190. public static function offsetGet($offset)
  6191. {
  6192. return \Illuminate\Http\Request::offsetGet($offset);
  6193. }
  6194. /**
  6195. * Set the value at the given offset.
  6196. *
  6197. * @param string $offset
  6198. * @param mixed $value
  6199. * @return void
  6200. * @static
  6201. */
  6202. public static function offsetSet($offset, $value)
  6203. {
  6204. \Illuminate\Http\Request::offsetSet($offset, $value);
  6205. }
  6206. /**
  6207. * Remove the value at the given offset.
  6208. *
  6209. * @param string $offset
  6210. * @return void
  6211. * @static
  6212. */
  6213. public static function offsetUnset($offset)
  6214. {
  6215. \Illuminate\Http\Request::offsetUnset($offset);
  6216. }
  6217. /**
  6218. * Sets the parameters for this request.
  6219. *
  6220. * This method also re-initializes all properties.
  6221. *
  6222. * @param array $query The GET parameters
  6223. * @param array $request The POST parameters
  6224. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  6225. * @param array $cookies The COOKIE parameters
  6226. * @param array $files The FILES parameters
  6227. * @param array $server The SERVER parameters
  6228. * @param string|resource|null $content The raw body data
  6229. * @static
  6230. */
  6231. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  6232. {
  6233. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6234. return \Illuminate\Http\Request::initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  6235. }
  6236. /**
  6237. * Creates a new request with values from PHP's super globals.
  6238. *
  6239. * @return static
  6240. * @static
  6241. */
  6242. public static function createFromGlobals()
  6243. {
  6244. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6245. return \Illuminate\Http\Request::createFromGlobals();
  6246. }
  6247. /**
  6248. * Creates a Request based on a given URI and configuration.
  6249. *
  6250. * The information contained in the URI always take precedence
  6251. * over the other information (server and parameters).
  6252. *
  6253. * @param string $uri The URI
  6254. * @param string $method The HTTP method
  6255. * @param array $parameters The query (GET) or request (POST) parameters
  6256. * @param array $cookies The request cookies ($_COOKIE)
  6257. * @param array $files The request files ($_FILES)
  6258. * @param array $server The server parameters ($_SERVER)
  6259. * @param string|resource|null $content The raw body data
  6260. * @return static
  6261. * @static
  6262. */
  6263. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  6264. {
  6265. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6266. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  6267. }
  6268. /**
  6269. * Sets a callable able to create a Request instance.
  6270. *
  6271. * This is mainly useful when you need to override the Request class
  6272. * to keep BC with an existing system. It should not be used for any
  6273. * other purpose.
  6274. *
  6275. * @param callable|null $callable A PHP callable
  6276. * @static
  6277. */
  6278. public static function setFactory($callable)
  6279. {
  6280. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6281. return \Illuminate\Http\Request::setFactory($callable);
  6282. }
  6283. /**
  6284. * Overrides the PHP global variables according to this request instance.
  6285. *
  6286. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  6287. * $_FILES is never overridden, see rfc1867
  6288. *
  6289. * @static
  6290. */
  6291. public static function overrideGlobals()
  6292. {
  6293. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6294. return \Illuminate\Http\Request::overrideGlobals();
  6295. }
  6296. /**
  6297. * Sets a list of trusted proxies.
  6298. *
  6299. * You should only list the reverse proxies that you manage directly.
  6300. *
  6301. * @param array $proxies A list of trusted proxies
  6302. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  6303. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  6304. * @static
  6305. */
  6306. public static function setTrustedProxies($proxies)
  6307. {
  6308. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6309. return \Illuminate\Http\Request::setTrustedProxies($proxies);
  6310. }
  6311. /**
  6312. * Gets the list of trusted proxies.
  6313. *
  6314. * @return array An array of trusted proxies
  6315. * @static
  6316. */
  6317. public static function getTrustedProxies()
  6318. {
  6319. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6320. return \Illuminate\Http\Request::getTrustedProxies();
  6321. }
  6322. /**
  6323. * Gets the set of trusted headers from trusted proxies.
  6324. *
  6325. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  6326. * @static
  6327. */
  6328. public static function getTrustedHeaderSet()
  6329. {
  6330. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6331. return \Illuminate\Http\Request::getTrustedHeaderSet();
  6332. }
  6333. /**
  6334. * Sets a list of trusted host patterns.
  6335. *
  6336. * You should only list the hosts you manage using regexs.
  6337. *
  6338. * @param array $hostPatterns A list of trusted host patterns
  6339. * @static
  6340. */
  6341. public static function setTrustedHosts($hostPatterns)
  6342. {
  6343. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6344. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  6345. }
  6346. /**
  6347. * Gets the list of trusted host patterns.
  6348. *
  6349. * @return array An array of trusted host patterns
  6350. * @static
  6351. */
  6352. public static function getTrustedHosts()
  6353. {
  6354. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6355. return \Illuminate\Http\Request::getTrustedHosts();
  6356. }
  6357. /**
  6358. * Sets the name for trusted headers.
  6359. *
  6360. * The following header keys are supported:
  6361. *
  6362. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  6363. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getHost())
  6364. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getPort())
  6365. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  6366. * * Request::HEADER_FORWARDED: defaults to Forwarded (see RFC 7239)
  6367. *
  6368. * Setting an empty value allows to disable the trusted header for the given key.
  6369. *
  6370. * @param string $key The header key
  6371. * @param string $value The header name
  6372. * @throws \InvalidArgumentException
  6373. * @deprecated since version 3.3, to be removed in 4.0. Use the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.
  6374. * @static
  6375. */
  6376. public static function setTrustedHeaderName($key, $value)
  6377. {
  6378. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6379. return \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  6380. }
  6381. /**
  6382. * Gets the trusted proxy header name.
  6383. *
  6384. * @param string $key The header key
  6385. * @return string The header name
  6386. * @throws \InvalidArgumentException
  6387. * @deprecated since version 3.3, to be removed in 4.0. Use the Request::getTrustedHeaderSet() method instead.
  6388. * @static
  6389. */
  6390. public static function getTrustedHeaderName($key)
  6391. {
  6392. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6393. return \Illuminate\Http\Request::getTrustedHeaderName($key);
  6394. }
  6395. /**
  6396. * Normalizes a query string.
  6397. *
  6398. * It builds a normalized query string, where keys/value pairs are alphabetized,
  6399. * have consistent escaping and unneeded delimiters are removed.
  6400. *
  6401. * @param string $qs Query string
  6402. * @return string A normalized query string for the Request
  6403. * @static
  6404. */
  6405. public static function normalizeQueryString($qs)
  6406. {
  6407. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6408. return \Illuminate\Http\Request::normalizeQueryString($qs);
  6409. }
  6410. /**
  6411. * Enables support for the _method request parameter to determine the intended HTTP method.
  6412. *
  6413. * Be warned that enabling this feature might lead to CSRF issues in your code.
  6414. * Check that you are using CSRF tokens when required.
  6415. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  6416. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  6417. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  6418. *
  6419. * The HTTP method can only be overridden when the real HTTP method is POST.
  6420. *
  6421. * @static
  6422. */
  6423. public static function enableHttpMethodParameterOverride()
  6424. {
  6425. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6426. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  6427. }
  6428. /**
  6429. * Checks whether support for the _method request parameter is enabled.
  6430. *
  6431. * @return bool True when the _method request parameter is enabled, false otherwise
  6432. * @static
  6433. */
  6434. public static function getHttpMethodParameterOverride()
  6435. {
  6436. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6437. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  6438. }
  6439. /**
  6440. * Gets a "parameter" value from any bag.
  6441. *
  6442. * This method is mainly useful for libraries that want to provide some flexibility. If you don't need the
  6443. * flexibility in controllers, it is better to explicitly get request parameters from the appropriate
  6444. * public property instead (attributes, query, request).
  6445. *
  6446. * Order of precedence: PATH (routing placeholders or custom attributes), GET, BODY
  6447. *
  6448. * @param string $key The key
  6449. * @param mixed $default The default value if the parameter key does not exist
  6450. * @return mixed
  6451. * @static
  6452. */
  6453. public static function get($key, $default = null)
  6454. {
  6455. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6456. return \Illuminate\Http\Request::get($key, $default);
  6457. }
  6458. /**
  6459. * Gets the Session.
  6460. *
  6461. * @return \Symfony\Component\HttpFoundation\SessionInterface|null The session
  6462. * @static
  6463. */
  6464. public static function getSession()
  6465. {
  6466. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6467. return \Illuminate\Http\Request::getSession();
  6468. }
  6469. /**
  6470. * Whether the request contains a Session which was started in one of the
  6471. * previous requests.
  6472. *
  6473. * @return bool
  6474. * @static
  6475. */
  6476. public static function hasPreviousSession()
  6477. {
  6478. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6479. return \Illuminate\Http\Request::hasPreviousSession();
  6480. }
  6481. /**
  6482. * Whether the request contains a Session object.
  6483. *
  6484. * This method does not give any information about the state of the session object,
  6485. * like whether the session is started or not. It is just a way to check if this Request
  6486. * is associated with a Session instance.
  6487. *
  6488. * @return bool true when the Request contains a Session object, false otherwise
  6489. * @static
  6490. */
  6491. public static function hasSession()
  6492. {
  6493. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6494. return \Illuminate\Http\Request::hasSession();
  6495. }
  6496. /**
  6497. * Sets the Session.
  6498. *
  6499. * @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
  6500. * @static
  6501. */
  6502. public static function setSession($session)
  6503. {
  6504. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6505. return \Illuminate\Http\Request::setSession($session);
  6506. }
  6507. /**
  6508. * Returns the client IP addresses.
  6509. *
  6510. * In the returned array the most trusted IP address is first, and the
  6511. * least trusted one last. The "real" client IP address is the last one,
  6512. * but this is also the least trusted one. Trusted proxies are stripped.
  6513. *
  6514. * Use this method carefully; you should use getClientIp() instead.
  6515. *
  6516. * @return array The client IP addresses
  6517. * @see getClientIp()
  6518. * @static
  6519. */
  6520. public static function getClientIps()
  6521. {
  6522. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6523. return \Illuminate\Http\Request::getClientIps();
  6524. }
  6525. /**
  6526. * Returns the client IP address.
  6527. *
  6528. * This method can read the client IP address from the "X-Forwarded-For" header
  6529. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  6530. * header value is a comma+space separated list of IP addresses, the left-most
  6531. * being the original client, and each successive proxy that passed the request
  6532. * adding the IP address where it received the request from.
  6533. *
  6534. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  6535. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  6536. * argument of the Request::setTrustedProxies() method instead.
  6537. *
  6538. * @return string|null The client IP address
  6539. * @see getClientIps()
  6540. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  6541. * @static
  6542. */
  6543. public static function getClientIp()
  6544. {
  6545. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6546. return \Illuminate\Http\Request::getClientIp();
  6547. }
  6548. /**
  6549. * Returns current script name.
  6550. *
  6551. * @return string
  6552. * @static
  6553. */
  6554. public static function getScriptName()
  6555. {
  6556. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6557. return \Illuminate\Http\Request::getScriptName();
  6558. }
  6559. /**
  6560. * Returns the path being requested relative to the executed script.
  6561. *
  6562. * The path info always starts with a /.
  6563. *
  6564. * Suppose this request is instantiated from /mysite on localhost:
  6565. *
  6566. * * http://localhost/mysite returns an empty string
  6567. * * http://localhost/mysite/about returns '/about'
  6568. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  6569. * * http://localhost/mysite/about?var=1 returns '/about'
  6570. *
  6571. * @return string The raw path (i.e. not urldecoded)
  6572. * @static
  6573. */
  6574. public static function getPathInfo()
  6575. {
  6576. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6577. return \Illuminate\Http\Request::getPathInfo();
  6578. }
  6579. /**
  6580. * Returns the root path from which this request is executed.
  6581. *
  6582. * Suppose that an index.php file instantiates this request object:
  6583. *
  6584. * * http://localhost/index.php returns an empty string
  6585. * * http://localhost/index.php/page returns an empty string
  6586. * * http://localhost/web/index.php returns '/web'
  6587. * * http://localhost/we%20b/index.php returns '/we%20b'
  6588. *
  6589. * @return string The raw path (i.e. not urldecoded)
  6590. * @static
  6591. */
  6592. public static function getBasePath()
  6593. {
  6594. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6595. return \Illuminate\Http\Request::getBasePath();
  6596. }
  6597. /**
  6598. * Returns the root URL from which this request is executed.
  6599. *
  6600. * The base URL never ends with a /.
  6601. *
  6602. * This is similar to getBasePath(), except that it also includes the
  6603. * script filename (e.g. index.php) if one exists.
  6604. *
  6605. * @return string The raw URL (i.e. not urldecoded)
  6606. * @static
  6607. */
  6608. public static function getBaseUrl()
  6609. {
  6610. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6611. return \Illuminate\Http\Request::getBaseUrl();
  6612. }
  6613. /**
  6614. * Gets the request's scheme.
  6615. *
  6616. * @return string
  6617. * @static
  6618. */
  6619. public static function getScheme()
  6620. {
  6621. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6622. return \Illuminate\Http\Request::getScheme();
  6623. }
  6624. /**
  6625. * Returns the port on which the request is made.
  6626. *
  6627. * This method can read the client port from the "X-Forwarded-Port" header
  6628. * when trusted proxies were set via "setTrustedProxies()".
  6629. *
  6630. * The "X-Forwarded-Port" header must contain the client port.
  6631. *
  6632. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  6633. * configure it via via the $trustedHeaderSet argument of the
  6634. * Request::setTrustedProxies() method instead.
  6635. *
  6636. * @return int|string can be a string if fetched from the server bag
  6637. * @static
  6638. */
  6639. public static function getPort()
  6640. {
  6641. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6642. return \Illuminate\Http\Request::getPort();
  6643. }
  6644. /**
  6645. * Returns the user.
  6646. *
  6647. * @return string|null
  6648. * @static
  6649. */
  6650. public static function getUser()
  6651. {
  6652. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6653. return \Illuminate\Http\Request::getUser();
  6654. }
  6655. /**
  6656. * Returns the password.
  6657. *
  6658. * @return string|null
  6659. * @static
  6660. */
  6661. public static function getPassword()
  6662. {
  6663. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6664. return \Illuminate\Http\Request::getPassword();
  6665. }
  6666. /**
  6667. * Gets the user info.
  6668. *
  6669. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  6670. * @static
  6671. */
  6672. public static function getUserInfo()
  6673. {
  6674. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6675. return \Illuminate\Http\Request::getUserInfo();
  6676. }
  6677. /**
  6678. * Returns the HTTP host being requested.
  6679. *
  6680. * The port name will be appended to the host if it's non-standard.
  6681. *
  6682. * @return string
  6683. * @static
  6684. */
  6685. public static function getHttpHost()
  6686. {
  6687. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6688. return \Illuminate\Http\Request::getHttpHost();
  6689. }
  6690. /**
  6691. * Returns the requested URI (path and query string).
  6692. *
  6693. * @return string The raw URI (i.e. not URI decoded)
  6694. * @static
  6695. */
  6696. public static function getRequestUri()
  6697. {
  6698. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6699. return \Illuminate\Http\Request::getRequestUri();
  6700. }
  6701. /**
  6702. * Gets the scheme and HTTP host.
  6703. *
  6704. * If the URL was called with basic authentication, the user
  6705. * and the password are not added to the generated string.
  6706. *
  6707. * @return string The scheme and HTTP host
  6708. * @static
  6709. */
  6710. public static function getSchemeAndHttpHost()
  6711. {
  6712. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6713. return \Illuminate\Http\Request::getSchemeAndHttpHost();
  6714. }
  6715. /**
  6716. * Generates a normalized URI (URL) for the Request.
  6717. *
  6718. * @return string A normalized URI (URL) for the Request
  6719. * @see getQueryString()
  6720. * @static
  6721. */
  6722. public static function getUri()
  6723. {
  6724. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6725. return \Illuminate\Http\Request::getUri();
  6726. }
  6727. /**
  6728. * Generates a normalized URI for the given path.
  6729. *
  6730. * @param string $path A path to use instead of the current one
  6731. * @return string The normalized URI for the path
  6732. * @static
  6733. */
  6734. public static function getUriForPath($path)
  6735. {
  6736. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6737. return \Illuminate\Http\Request::getUriForPath($path);
  6738. }
  6739. /**
  6740. * Returns the path as relative reference from the current Request path.
  6741. *
  6742. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  6743. * Both paths must be absolute and not contain relative parts.
  6744. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  6745. * Furthermore, they can be used to reduce the link size in documents.
  6746. *
  6747. * Example target paths, given a base path of "/a/b/c/d":
  6748. * - "/a/b/c/d" -> ""
  6749. * - "/a/b/c/" -> "./"
  6750. * - "/a/b/" -> "../"
  6751. * - "/a/b/c/other" -> "other"
  6752. * - "/a/x/y" -> "../../x/y"
  6753. *
  6754. * @param string $path The target path
  6755. * @return string The relative target path
  6756. * @static
  6757. */
  6758. public static function getRelativeUriForPath($path)
  6759. {
  6760. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6761. return \Illuminate\Http\Request::getRelativeUriForPath($path);
  6762. }
  6763. /**
  6764. * Generates the normalized query string for the Request.
  6765. *
  6766. * It builds a normalized query string, where keys/value pairs are alphabetized
  6767. * and have consistent escaping.
  6768. *
  6769. * @return string|null A normalized query string for the Request
  6770. * @static
  6771. */
  6772. public static function getQueryString()
  6773. {
  6774. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6775. return \Illuminate\Http\Request::getQueryString();
  6776. }
  6777. /**
  6778. * Checks whether the request is secure or not.
  6779. *
  6780. * This method can read the client protocol from the "X-Forwarded-Proto" header
  6781. * when trusted proxies were set via "setTrustedProxies()".
  6782. *
  6783. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  6784. *
  6785. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  6786. * ("SSL_HTTPS" for instance), configure it via the $trustedHeaderSet
  6787. * argument of the Request::setTrustedProxies() method instead.
  6788. *
  6789. * @return bool
  6790. * @static
  6791. */
  6792. public static function isSecure()
  6793. {
  6794. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6795. return \Illuminate\Http\Request::isSecure();
  6796. }
  6797. /**
  6798. * Returns the host name.
  6799. *
  6800. * This method can read the client host name from the "X-Forwarded-Host" header
  6801. * when trusted proxies were set via "setTrustedProxies()".
  6802. *
  6803. * The "X-Forwarded-Host" header must contain the client host name.
  6804. *
  6805. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  6806. * configure it via the $trustedHeaderSet argument of the
  6807. * Request::setTrustedProxies() method instead.
  6808. *
  6809. * @return string
  6810. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  6811. * @static
  6812. */
  6813. public static function getHost()
  6814. {
  6815. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6816. return \Illuminate\Http\Request::getHost();
  6817. }
  6818. /**
  6819. * Sets the request method.
  6820. *
  6821. * @param string $method
  6822. * @static
  6823. */
  6824. public static function setMethod($method)
  6825. {
  6826. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6827. return \Illuminate\Http\Request::setMethod($method);
  6828. }
  6829. /**
  6830. * Gets the request "intended" method.
  6831. *
  6832. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  6833. * then it is used to determine the "real" intended HTTP method.
  6834. *
  6835. * The _method request parameter can also be used to determine the HTTP method,
  6836. * but only if enableHttpMethodParameterOverride() has been called.
  6837. *
  6838. * The method is always an uppercased string.
  6839. *
  6840. * @return string The request method
  6841. * @see getRealMethod()
  6842. * @static
  6843. */
  6844. public static function getMethod()
  6845. {
  6846. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6847. return \Illuminate\Http\Request::getMethod();
  6848. }
  6849. /**
  6850. * Gets the "real" request method.
  6851. *
  6852. * @return string The request method
  6853. * @see getMethod()
  6854. * @static
  6855. */
  6856. public static function getRealMethod()
  6857. {
  6858. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6859. return \Illuminate\Http\Request::getRealMethod();
  6860. }
  6861. /**
  6862. * Gets the mime type associated with the format.
  6863. *
  6864. * @param string $format The format
  6865. * @return string|null The associated mime type (null if not found)
  6866. * @static
  6867. */
  6868. public static function getMimeType($format)
  6869. {
  6870. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6871. return \Illuminate\Http\Request::getMimeType($format);
  6872. }
  6873. /**
  6874. * Gets the mime types associated with the format.
  6875. *
  6876. * @param string $format The format
  6877. * @return array The associated mime types
  6878. * @static
  6879. */
  6880. public static function getMimeTypes($format)
  6881. {
  6882. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6883. return \Illuminate\Http\Request::getMimeTypes($format);
  6884. }
  6885. /**
  6886. * Gets the format associated with the mime type.
  6887. *
  6888. * @param string $mimeType The associated mime type
  6889. * @return string|null The format (null if not found)
  6890. * @static
  6891. */
  6892. public static function getFormat($mimeType)
  6893. {
  6894. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6895. return \Illuminate\Http\Request::getFormat($mimeType);
  6896. }
  6897. /**
  6898. * Associates a format with mime types.
  6899. *
  6900. * @param string $format The format
  6901. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  6902. * @static
  6903. */
  6904. public static function setFormat($format, $mimeTypes)
  6905. {
  6906. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6907. return \Illuminate\Http\Request::setFormat($format, $mimeTypes);
  6908. }
  6909. /**
  6910. * Gets the request format.
  6911. *
  6912. * Here is the process to determine the format:
  6913. *
  6914. * * format defined by the user (with setRequestFormat())
  6915. * * _format request attribute
  6916. * * $default
  6917. *
  6918. * @param string|null $default The default format
  6919. * @return string The request format
  6920. * @static
  6921. */
  6922. public static function getRequestFormat($default = 'html')
  6923. {
  6924. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6925. return \Illuminate\Http\Request::getRequestFormat($default);
  6926. }
  6927. /**
  6928. * Sets the request format.
  6929. *
  6930. * @param string $format The request format
  6931. * @static
  6932. */
  6933. public static function setRequestFormat($format)
  6934. {
  6935. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6936. return \Illuminate\Http\Request::setRequestFormat($format);
  6937. }
  6938. /**
  6939. * Gets the format associated with the request.
  6940. *
  6941. * @return string|null The format (null if no content type is present)
  6942. * @static
  6943. */
  6944. public static function getContentType()
  6945. {
  6946. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6947. return \Illuminate\Http\Request::getContentType();
  6948. }
  6949. /**
  6950. * Sets the default locale.
  6951. *
  6952. * @param string $locale
  6953. * @static
  6954. */
  6955. public static function setDefaultLocale($locale)
  6956. {
  6957. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6958. return \Illuminate\Http\Request::setDefaultLocale($locale);
  6959. }
  6960. /**
  6961. * Get the default locale.
  6962. *
  6963. * @return string
  6964. * @static
  6965. */
  6966. public static function getDefaultLocale()
  6967. {
  6968. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6969. return \Illuminate\Http\Request::getDefaultLocale();
  6970. }
  6971. /**
  6972. * Sets the locale.
  6973. *
  6974. * @param string $locale
  6975. * @static
  6976. */
  6977. public static function setLocale($locale)
  6978. {
  6979. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6980. return \Illuminate\Http\Request::setLocale($locale);
  6981. }
  6982. /**
  6983. * Get the locale.
  6984. *
  6985. * @return string
  6986. * @static
  6987. */
  6988. public static function getLocale()
  6989. {
  6990. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6991. return \Illuminate\Http\Request::getLocale();
  6992. }
  6993. /**
  6994. * Checks if the request method is of specified type.
  6995. *
  6996. * @param string $method Uppercase request method (GET, POST etc)
  6997. * @return bool
  6998. * @static
  6999. */
  7000. public static function isMethod($method)
  7001. {
  7002. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7003. return \Illuminate\Http\Request::isMethod($method);
  7004. }
  7005. /**
  7006. * Checks whether or not the method is safe.
  7007. *
  7008. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  7009. * @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default.
  7010. * @return bool
  7011. * @static
  7012. */
  7013. public static function isMethodSafe()
  7014. {
  7015. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7016. return \Illuminate\Http\Request::isMethodSafe();
  7017. }
  7018. /**
  7019. * Checks whether or not the method is idempotent.
  7020. *
  7021. * @return bool
  7022. * @static
  7023. */
  7024. public static function isMethodIdempotent()
  7025. {
  7026. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7027. return \Illuminate\Http\Request::isMethodIdempotent();
  7028. }
  7029. /**
  7030. * Checks whether the method is cacheable or not.
  7031. *
  7032. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  7033. * @return bool
  7034. * @static
  7035. */
  7036. public static function isMethodCacheable()
  7037. {
  7038. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7039. return \Illuminate\Http\Request::isMethodCacheable();
  7040. }
  7041. /**
  7042. * Returns the protocol version.
  7043. *
  7044. * If the application is behind a proxy, the protocol version used in the
  7045. * requests between the client and the proxy and between the proxy and the
  7046. * server might be different. This returns the former (from the "Via" header)
  7047. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  7048. * the latter (from the "SERVER_PROTOCOL" server parameter).
  7049. *
  7050. * @return string
  7051. * @static
  7052. */
  7053. public static function getProtocolVersion()
  7054. {
  7055. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7056. return \Illuminate\Http\Request::getProtocolVersion();
  7057. }
  7058. /**
  7059. * Returns the request body content.
  7060. *
  7061. * @param bool $asResource If true, a resource will be returned
  7062. * @return string|resource The request body content or a resource to read the body stream
  7063. * @throws \LogicException
  7064. * @static
  7065. */
  7066. public static function getContent($asResource = false)
  7067. {
  7068. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7069. return \Illuminate\Http\Request::getContent($asResource);
  7070. }
  7071. /**
  7072. * Gets the Etags.
  7073. *
  7074. * @return array The entity tags
  7075. * @static
  7076. */
  7077. public static function getETags()
  7078. {
  7079. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7080. return \Illuminate\Http\Request::getETags();
  7081. }
  7082. /**
  7083. *
  7084. *
  7085. * @return bool
  7086. * @static
  7087. */
  7088. public static function isNoCache()
  7089. {
  7090. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7091. return \Illuminate\Http\Request::isNoCache();
  7092. }
  7093. /**
  7094. * Returns the preferred language.
  7095. *
  7096. * @param array $locales An array of ordered available locales
  7097. * @return string|null The preferred locale
  7098. * @static
  7099. */
  7100. public static function getPreferredLanguage($locales = null)
  7101. {
  7102. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7103. return \Illuminate\Http\Request::getPreferredLanguage($locales);
  7104. }
  7105. /**
  7106. * Gets a list of languages acceptable by the client browser.
  7107. *
  7108. * @return array Languages ordered in the user browser preferences
  7109. * @static
  7110. */
  7111. public static function getLanguages()
  7112. {
  7113. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7114. return \Illuminate\Http\Request::getLanguages();
  7115. }
  7116. /**
  7117. * Gets a list of charsets acceptable by the client browser.
  7118. *
  7119. * @return array List of charsets in preferable order
  7120. * @static
  7121. */
  7122. public static function getCharsets()
  7123. {
  7124. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7125. return \Illuminate\Http\Request::getCharsets();
  7126. }
  7127. /**
  7128. * Gets a list of encodings acceptable by the client browser.
  7129. *
  7130. * @return array List of encodings in preferable order
  7131. * @static
  7132. */
  7133. public static function getEncodings()
  7134. {
  7135. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7136. return \Illuminate\Http\Request::getEncodings();
  7137. }
  7138. /**
  7139. * Gets a list of content types acceptable by the client browser.
  7140. *
  7141. * @return array List of content types in preferable order
  7142. * @static
  7143. */
  7144. public static function getAcceptableContentTypes()
  7145. {
  7146. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7147. return \Illuminate\Http\Request::getAcceptableContentTypes();
  7148. }
  7149. /**
  7150. * Returns true if the request is a XMLHttpRequest.
  7151. *
  7152. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  7153. * It is known to work with common JavaScript frameworks:
  7154. *
  7155. * @see http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  7156. * @return bool true if the request is an XMLHttpRequest, false otherwise
  7157. * @static
  7158. */
  7159. public static function isXmlHttpRequest()
  7160. {
  7161. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7162. return \Illuminate\Http\Request::isXmlHttpRequest();
  7163. }
  7164. /**
  7165. * Indicates whether this request originated from a trusted proxy.
  7166. *
  7167. * This can be useful to determine whether or not to trust the
  7168. * contents of a proxy-specific header.
  7169. *
  7170. * @return bool true if the request came from a trusted proxy, false otherwise
  7171. * @static
  7172. */
  7173. public static function isFromTrustedProxy()
  7174. {
  7175. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7176. return \Illuminate\Http\Request::isFromTrustedProxy();
  7177. }
  7178. /**
  7179. * Determine if the given content types match.
  7180. *
  7181. * @param string $actual
  7182. * @param string $type
  7183. * @return bool
  7184. * @static
  7185. */
  7186. public static function matchesType($actual, $type)
  7187. {
  7188. return \Illuminate\Http\Request::matchesType($actual, $type);
  7189. }
  7190. /**
  7191. * Determine if the request is sending JSON.
  7192. *
  7193. * @return bool
  7194. * @static
  7195. */
  7196. public static function isJson()
  7197. {
  7198. return \Illuminate\Http\Request::isJson();
  7199. }
  7200. /**
  7201. * Determine if the current request probably expects a JSON response.
  7202. *
  7203. * @return bool
  7204. * @static
  7205. */
  7206. public static function expectsJson()
  7207. {
  7208. return \Illuminate\Http\Request::expectsJson();
  7209. }
  7210. /**
  7211. * Determine if the current request is asking for JSON in return.
  7212. *
  7213. * @return bool
  7214. * @static
  7215. */
  7216. public static function wantsJson()
  7217. {
  7218. return \Illuminate\Http\Request::wantsJson();
  7219. }
  7220. /**
  7221. * Determines whether the current requests accepts a given content type.
  7222. *
  7223. * @param string|array $contentTypes
  7224. * @return bool
  7225. * @static
  7226. */
  7227. public static function accepts($contentTypes)
  7228. {
  7229. return \Illuminate\Http\Request::accepts($contentTypes);
  7230. }
  7231. /**
  7232. * Return the most suitable content type from the given array based on content negotiation.
  7233. *
  7234. * @param string|array $contentTypes
  7235. * @return string|null
  7236. * @static
  7237. */
  7238. public static function prefers($contentTypes)
  7239. {
  7240. return \Illuminate\Http\Request::prefers($contentTypes);
  7241. }
  7242. /**
  7243. * Determines whether a request accepts JSON.
  7244. *
  7245. * @return bool
  7246. * @static
  7247. */
  7248. public static function acceptsJson()
  7249. {
  7250. return \Illuminate\Http\Request::acceptsJson();
  7251. }
  7252. /**
  7253. * Determines whether a request accepts HTML.
  7254. *
  7255. * @return bool
  7256. * @static
  7257. */
  7258. public static function acceptsHtml()
  7259. {
  7260. return \Illuminate\Http\Request::acceptsHtml();
  7261. }
  7262. /**
  7263. * Get the data format expected in the response.
  7264. *
  7265. * @param string $default
  7266. * @return string
  7267. * @static
  7268. */
  7269. public static function format($default = 'html')
  7270. {
  7271. return \Illuminate\Http\Request::format($default);
  7272. }
  7273. /**
  7274. * Retrieve an old input item.
  7275. *
  7276. * @param string $key
  7277. * @param string|array|null $default
  7278. * @return string|array
  7279. * @static
  7280. */
  7281. public static function old($key = null, $default = null)
  7282. {
  7283. return \Illuminate\Http\Request::old($key, $default);
  7284. }
  7285. /**
  7286. * Flash the input for the current request to the session.
  7287. *
  7288. * @return void
  7289. * @static
  7290. */
  7291. public static function flash()
  7292. {
  7293. \Illuminate\Http\Request::flash();
  7294. }
  7295. /**
  7296. * Flash only some of the input to the session.
  7297. *
  7298. * @param array|mixed $keys
  7299. * @return void
  7300. * @static
  7301. */
  7302. public static function flashOnly($keys)
  7303. {
  7304. \Illuminate\Http\Request::flashOnly($keys);
  7305. }
  7306. /**
  7307. * Flash only some of the input to the session.
  7308. *
  7309. * @param array|mixed $keys
  7310. * @return void
  7311. * @static
  7312. */
  7313. public static function flashExcept($keys)
  7314. {
  7315. \Illuminate\Http\Request::flashExcept($keys);
  7316. }
  7317. /**
  7318. * Flush all of the old input from the session.
  7319. *
  7320. * @return void
  7321. * @static
  7322. */
  7323. public static function flush()
  7324. {
  7325. \Illuminate\Http\Request::flush();
  7326. }
  7327. /**
  7328. * Retrieve a server variable from the request.
  7329. *
  7330. * @param string $key
  7331. * @param string|array|null $default
  7332. * @return string|array
  7333. * @static
  7334. */
  7335. public static function server($key = null, $default = null)
  7336. {
  7337. return \Illuminate\Http\Request::server($key, $default);
  7338. }
  7339. /**
  7340. * Determine if a header is set on the request.
  7341. *
  7342. * @param string $key
  7343. * @return bool
  7344. * @static
  7345. */
  7346. public static function hasHeader($key)
  7347. {
  7348. return \Illuminate\Http\Request::hasHeader($key);
  7349. }
  7350. /**
  7351. * Retrieve a header from the request.
  7352. *
  7353. * @param string $key
  7354. * @param string|array|null $default
  7355. * @return string|array
  7356. * @static
  7357. */
  7358. public static function header($key = null, $default = null)
  7359. {
  7360. return \Illuminate\Http\Request::header($key, $default);
  7361. }
  7362. /**
  7363. * Get the bearer token from the request headers.
  7364. *
  7365. * @return string|null
  7366. * @static
  7367. */
  7368. public static function bearerToken()
  7369. {
  7370. return \Illuminate\Http\Request::bearerToken();
  7371. }
  7372. /**
  7373. * Determine if the request contains a given input item key.
  7374. *
  7375. * @param string|array $key
  7376. * @return bool
  7377. * @static
  7378. */
  7379. public static function exists($key)
  7380. {
  7381. return \Illuminate\Http\Request::exists($key);
  7382. }
  7383. /**
  7384. * Determine if the request contains a non-empty value for an input item.
  7385. *
  7386. * @param string|array $key
  7387. * @return bool
  7388. * @static
  7389. */
  7390. public static function has($key)
  7391. {
  7392. return \Illuminate\Http\Request::has($key);
  7393. }
  7394. /**
  7395. * Get all of the input and files for the request.
  7396. *
  7397. * @return array
  7398. * @static
  7399. */
  7400. public static function all()
  7401. {
  7402. return \Illuminate\Http\Request::all();
  7403. }
  7404. /**
  7405. * Retrieve an input item from the request.
  7406. *
  7407. * @param string $key
  7408. * @param string|array|null $default
  7409. * @return string|array
  7410. * @static
  7411. */
  7412. public static function input($key = null, $default = null)
  7413. {
  7414. return \Illuminate\Http\Request::input($key, $default);
  7415. }
  7416. /**
  7417. * Get a subset containing the provided keys with values from the input data.
  7418. *
  7419. * @param array|mixed $keys
  7420. * @return array
  7421. * @static
  7422. */
  7423. public static function only($keys)
  7424. {
  7425. return \Illuminate\Http\Request::only($keys);
  7426. }
  7427. /**
  7428. * Get all of the input except for a specified array of items.
  7429. *
  7430. * @param array|mixed $keys
  7431. * @return array
  7432. * @static
  7433. */
  7434. public static function except($keys)
  7435. {
  7436. return \Illuminate\Http\Request::except($keys);
  7437. }
  7438. /**
  7439. * Intersect an array of items with the input data.
  7440. *
  7441. * @param array|mixed $keys
  7442. * @return array
  7443. * @static
  7444. */
  7445. public static function intersect($keys)
  7446. {
  7447. return \Illuminate\Http\Request::intersect($keys);
  7448. }
  7449. /**
  7450. * Retrieve a query string item from the request.
  7451. *
  7452. * @param string $key
  7453. * @param string|array|null $default
  7454. * @return string|array
  7455. * @static
  7456. */
  7457. public static function query($key = null, $default = null)
  7458. {
  7459. return \Illuminate\Http\Request::query($key, $default);
  7460. }
  7461. /**
  7462. * Determine if a cookie is set on the request.
  7463. *
  7464. * @param string $key
  7465. * @return bool
  7466. * @static
  7467. */
  7468. public static function hasCookie($key)
  7469. {
  7470. return \Illuminate\Http\Request::hasCookie($key);
  7471. }
  7472. /**
  7473. * Retrieve a cookie from the request.
  7474. *
  7475. * @param string $key
  7476. * @param string|array|null $default
  7477. * @return string|array
  7478. * @static
  7479. */
  7480. public static function cookie($key = null, $default = null)
  7481. {
  7482. return \Illuminate\Http\Request::cookie($key, $default);
  7483. }
  7484. /**
  7485. * Get an array of all of the files on the request.
  7486. *
  7487. * @return array
  7488. * @static
  7489. */
  7490. public static function allFiles()
  7491. {
  7492. return \Illuminate\Http\Request::allFiles();
  7493. }
  7494. /**
  7495. * Determine if the uploaded data contains a file.
  7496. *
  7497. * @param string $key
  7498. * @return bool
  7499. * @static
  7500. */
  7501. public static function hasFile($key)
  7502. {
  7503. return \Illuminate\Http\Request::hasFile($key);
  7504. }
  7505. /**
  7506. * Retrieve a file from the request.
  7507. *
  7508. * @param string $key
  7509. * @param mixed $default
  7510. * @return \Illuminate\Http\UploadedFile|array|null
  7511. * @static
  7512. */
  7513. public static function file($key = null, $default = null)
  7514. {
  7515. return \Illuminate\Http\Request::file($key, $default);
  7516. }
  7517. /**
  7518. * Register a custom macro.
  7519. *
  7520. * @param string $name
  7521. * @param callable $macro
  7522. * @return void
  7523. * @static
  7524. */
  7525. public static function macro($name, $macro)
  7526. {
  7527. \Illuminate\Http\Request::macro($name, $macro);
  7528. }
  7529. /**
  7530. * Checks if macro is registered.
  7531. *
  7532. * @param string $name
  7533. * @return bool
  7534. * @static
  7535. */
  7536. public static function hasMacro($name)
  7537. {
  7538. return \Illuminate\Http\Request::hasMacro($name);
  7539. }
  7540. }
  7541. class Response {
  7542. /**
  7543. * Return a new response from the application.
  7544. *
  7545. * @param string $content
  7546. * @param int $status
  7547. * @param array $headers
  7548. * @return \Illuminate\Http\Response
  7549. * @static
  7550. */
  7551. public static function make($content = '', $status = 200, $headers = array())
  7552. {
  7553. return \Illuminate\Routing\ResponseFactory::make($content, $status, $headers);
  7554. }
  7555. /**
  7556. * Return a new view response from the application.
  7557. *
  7558. * @param string $view
  7559. * @param array $data
  7560. * @param int $status
  7561. * @param array $headers
  7562. * @return \Illuminate\Http\Response
  7563. * @static
  7564. */
  7565. public static function view($view, $data = array(), $status = 200, $headers = array())
  7566. {
  7567. return \Illuminate\Routing\ResponseFactory::view($view, $data, $status, $headers);
  7568. }
  7569. /**
  7570. * Return a new JSON response from the application.
  7571. *
  7572. * @param mixed $data
  7573. * @param int $status
  7574. * @param array $headers
  7575. * @param int $options
  7576. * @return \Illuminate\Http\JsonResponse
  7577. * @static
  7578. */
  7579. public static function json($data = array(), $status = 200, $headers = array(), $options = 0)
  7580. {
  7581. return \Illuminate\Routing\ResponseFactory::json($data, $status, $headers, $options);
  7582. }
  7583. /**
  7584. * Return a new JSONP response from the application.
  7585. *
  7586. * @param string $callback
  7587. * @param mixed $data
  7588. * @param int $status
  7589. * @param array $headers
  7590. * @param int $options
  7591. * @return \Illuminate\Http\JsonResponse
  7592. * @static
  7593. */
  7594. public static function jsonp($callback, $data = array(), $status = 200, $headers = array(), $options = 0)
  7595. {
  7596. return \Illuminate\Routing\ResponseFactory::jsonp($callback, $data, $status, $headers, $options);
  7597. }
  7598. /**
  7599. * Return a new streamed response from the application.
  7600. *
  7601. * @param \Closure $callback
  7602. * @param int $status
  7603. * @param array $headers
  7604. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  7605. * @static
  7606. */
  7607. public static function stream($callback, $status = 200, $headers = array())
  7608. {
  7609. return \Illuminate\Routing\ResponseFactory::stream($callback, $status, $headers);
  7610. }
  7611. /**
  7612. * Create a new file download response.
  7613. *
  7614. * @param \SplFileInfo|string $file
  7615. * @param string $name
  7616. * @param array $headers
  7617. * @param string|null $disposition
  7618. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  7619. * @static
  7620. */
  7621. public static function download($file, $name = null, $headers = array(), $disposition = 'attachment')
  7622. {
  7623. return \Illuminate\Routing\ResponseFactory::download($file, $name, $headers, $disposition);
  7624. }
  7625. /**
  7626. * Return the raw contents of a binary file.
  7627. *
  7628. * @param \SplFileInfo|string $file
  7629. * @param array $headers
  7630. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  7631. * @static
  7632. */
  7633. public static function file($file, $headers = array())
  7634. {
  7635. return \Illuminate\Routing\ResponseFactory::file($file, $headers);
  7636. }
  7637. /**
  7638. * Create a new redirect response to the given path.
  7639. *
  7640. * @param string $path
  7641. * @param int $status
  7642. * @param array $headers
  7643. * @param bool|null $secure
  7644. * @return \Illuminate\Http\RedirectResponse
  7645. * @static
  7646. */
  7647. public static function redirectTo($path, $status = 302, $headers = array(), $secure = null)
  7648. {
  7649. return \Illuminate\Routing\ResponseFactory::redirectTo($path, $status, $headers, $secure);
  7650. }
  7651. /**
  7652. * Create a new redirect response to a named route.
  7653. *
  7654. * @param string $route
  7655. * @param array $parameters
  7656. * @param int $status
  7657. * @param array $headers
  7658. * @return \Illuminate\Http\RedirectResponse
  7659. * @static
  7660. */
  7661. public static function redirectToRoute($route, $parameters = array(), $status = 302, $headers = array())
  7662. {
  7663. return \Illuminate\Routing\ResponseFactory::redirectToRoute($route, $parameters, $status, $headers);
  7664. }
  7665. /**
  7666. * Create a new redirect response to a controller action.
  7667. *
  7668. * @param string $action
  7669. * @param array $parameters
  7670. * @param int $status
  7671. * @param array $headers
  7672. * @return \Illuminate\Http\RedirectResponse
  7673. * @static
  7674. */
  7675. public static function redirectToAction($action, $parameters = array(), $status = 302, $headers = array())
  7676. {
  7677. return \Illuminate\Routing\ResponseFactory::redirectToAction($action, $parameters, $status, $headers);
  7678. }
  7679. /**
  7680. * Create a new redirect response, while putting the current URL in the session.
  7681. *
  7682. * @param string $path
  7683. * @param int $status
  7684. * @param array $headers
  7685. * @param bool|null $secure
  7686. * @return \Illuminate\Http\RedirectResponse
  7687. * @static
  7688. */
  7689. public static function redirectGuest($path, $status = 302, $headers = array(), $secure = null)
  7690. {
  7691. return \Illuminate\Routing\ResponseFactory::redirectGuest($path, $status, $headers, $secure);
  7692. }
  7693. /**
  7694. * Create a new redirect response to the previously intended location.
  7695. *
  7696. * @param string $default
  7697. * @param int $status
  7698. * @param array $headers
  7699. * @param bool|null $secure
  7700. * @return \Illuminate\Http\RedirectResponse
  7701. * @static
  7702. */
  7703. public static function redirectToIntended($default = '/', $status = 302, $headers = array(), $secure = null)
  7704. {
  7705. return \Illuminate\Routing\ResponseFactory::redirectToIntended($default, $status, $headers, $secure);
  7706. }
  7707. /**
  7708. * Register a custom macro.
  7709. *
  7710. * @param string $name
  7711. * @param callable $macro
  7712. * @return void
  7713. * @static
  7714. */
  7715. public static function macro($name, $macro)
  7716. {
  7717. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  7718. }
  7719. /**
  7720. * Checks if macro is registered.
  7721. *
  7722. * @param string $name
  7723. * @return bool
  7724. * @static
  7725. */
  7726. public static function hasMacro($name)
  7727. {
  7728. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  7729. }
  7730. }
  7731. class Route {
  7732. /**
  7733. * Register a new GET route with the router.
  7734. *
  7735. * @param string $uri
  7736. * @param \Closure|array|string|null $action
  7737. * @return \Illuminate\Routing\Route
  7738. * @static
  7739. */
  7740. public static function get($uri, $action = null)
  7741. {
  7742. return \Illuminate\Routing\Router::get($uri, $action);
  7743. }
  7744. /**
  7745. * Register a new POST route with the router.
  7746. *
  7747. * @param string $uri
  7748. * @param \Closure|array|string|null $action
  7749. * @return \Illuminate\Routing\Route
  7750. * @static
  7751. */
  7752. public static function post($uri, $action = null)
  7753. {
  7754. return \Illuminate\Routing\Router::post($uri, $action);
  7755. }
  7756. /**
  7757. * Register a new PUT route with the router.
  7758. *
  7759. * @param string $uri
  7760. * @param \Closure|array|string|null $action
  7761. * @return \Illuminate\Routing\Route
  7762. * @static
  7763. */
  7764. public static function put($uri, $action = null)
  7765. {
  7766. return \Illuminate\Routing\Router::put($uri, $action);
  7767. }
  7768. /**
  7769. * Register a new PATCH route with the router.
  7770. *
  7771. * @param string $uri
  7772. * @param \Closure|array|string|null $action
  7773. * @return \Illuminate\Routing\Route
  7774. * @static
  7775. */
  7776. public static function patch($uri, $action = null)
  7777. {
  7778. return \Illuminate\Routing\Router::patch($uri, $action);
  7779. }
  7780. /**
  7781. * Register a new DELETE route with the router.
  7782. *
  7783. * @param string $uri
  7784. * @param \Closure|array|string|null $action
  7785. * @return \Illuminate\Routing\Route
  7786. * @static
  7787. */
  7788. public static function delete($uri, $action = null)
  7789. {
  7790. return \Illuminate\Routing\Router::delete($uri, $action);
  7791. }
  7792. /**
  7793. * Register a new OPTIONS route with the router.
  7794. *
  7795. * @param string $uri
  7796. * @param \Closure|array|string|null $action
  7797. * @return \Illuminate\Routing\Route
  7798. * @static
  7799. */
  7800. public static function options($uri, $action = null)
  7801. {
  7802. return \Illuminate\Routing\Router::options($uri, $action);
  7803. }
  7804. /**
  7805. * Register a new route responding to all verbs.
  7806. *
  7807. * @param string $uri
  7808. * @param \Closure|array|string|null $action
  7809. * @return \Illuminate\Routing\Route
  7810. * @static
  7811. */
  7812. public static function any($uri, $action = null)
  7813. {
  7814. return \Illuminate\Routing\Router::any($uri, $action);
  7815. }
  7816. /**
  7817. * Register a new route with the given verbs.
  7818. *
  7819. * @param array|string $methods
  7820. * @param string $uri
  7821. * @param \Closure|array|string|null $action
  7822. * @return \Illuminate\Routing\Route
  7823. * @static
  7824. */
  7825. public static function match($methods, $uri, $action = null)
  7826. {
  7827. return \Illuminate\Routing\Router::match($methods, $uri, $action);
  7828. }
  7829. /**
  7830. * Register an array of resource controllers.
  7831. *
  7832. * @param array $resources
  7833. * @return void
  7834. * @static
  7835. */
  7836. public static function resources($resources)
  7837. {
  7838. \Illuminate\Routing\Router::resources($resources);
  7839. }
  7840. /**
  7841. * Route a resource to a controller.
  7842. *
  7843. * @param string $name
  7844. * @param string $controller
  7845. * @param array $options
  7846. * @return void
  7847. * @static
  7848. */
  7849. public static function resource($name, $controller, $options = array())
  7850. {
  7851. \Illuminate\Routing\Router::resource($name, $controller, $options);
  7852. }
  7853. /**
  7854. * Route an api resource to a controller.
  7855. *
  7856. * @param string $name
  7857. * @param string $controller
  7858. * @param array $options
  7859. * @return void
  7860. * @static
  7861. */
  7862. public static function apiResource($name, $controller, $options = array())
  7863. {
  7864. \Illuminate\Routing\Router::apiResource($name, $controller, $options);
  7865. }
  7866. /**
  7867. * Create a route group with shared attributes.
  7868. *
  7869. * @param array $attributes
  7870. * @param \Closure|string $routes
  7871. * @return void
  7872. * @static
  7873. */
  7874. public static function group($attributes, $routes)
  7875. {
  7876. \Illuminate\Routing\Router::group($attributes, $routes);
  7877. }
  7878. /**
  7879. * Merge the given array with the last group stack.
  7880. *
  7881. * @param array $new
  7882. * @return array
  7883. * @static
  7884. */
  7885. public static function mergeWithLastGroup($new)
  7886. {
  7887. return \Illuminate\Routing\Router::mergeWithLastGroup($new);
  7888. }
  7889. /**
  7890. * Get the prefix from the last group on the stack.
  7891. *
  7892. * @return string
  7893. * @static
  7894. */
  7895. public static function getLastGroupPrefix()
  7896. {
  7897. return \Illuminate\Routing\Router::getLastGroupPrefix();
  7898. }
  7899. /**
  7900. * Dispatch the request to the application.
  7901. *
  7902. * @param \Illuminate\Http\Request $request
  7903. * @return \Illuminate\Http\Response
  7904. * @static
  7905. */
  7906. public static function dispatch($request)
  7907. {
  7908. return \Illuminate\Routing\Router::dispatch($request);
  7909. }
  7910. /**
  7911. * Dispatch the request to a route and return the response.
  7912. *
  7913. * @param \Illuminate\Http\Request $request
  7914. * @return mixed
  7915. * @static
  7916. */
  7917. public static function dispatchToRoute($request)
  7918. {
  7919. return \Illuminate\Routing\Router::dispatchToRoute($request);
  7920. }
  7921. /**
  7922. * Gather the middleware for the given route with resolved class names.
  7923. *
  7924. * @param \Illuminate\Routing\Route $route
  7925. * @return array
  7926. * @static
  7927. */
  7928. public static function gatherRouteMiddleware($route)
  7929. {
  7930. return \Illuminate\Routing\Router::gatherRouteMiddleware($route);
  7931. }
  7932. /**
  7933. * Create a response instance from the given value.
  7934. *
  7935. * @param \Symfony\Component\HttpFoundation\Request $request
  7936. * @param mixed $response
  7937. * @return \Illuminate\Http\Response
  7938. * @static
  7939. */
  7940. public static function prepareResponse($request, $response)
  7941. {
  7942. return \Illuminate\Routing\Router::prepareResponse($request, $response);
  7943. }
  7944. /**
  7945. * Substitute the route bindings onto the route.
  7946. *
  7947. * @param \Illuminate\Routing\Route $route
  7948. * @return \Illuminate\Routing\Route
  7949. * @static
  7950. */
  7951. public static function substituteBindings($route)
  7952. {
  7953. return \Illuminate\Routing\Router::substituteBindings($route);
  7954. }
  7955. /**
  7956. * Substitute the implicit Eloquent model bindings for the route.
  7957. *
  7958. * @param \Illuminate\Routing\Route $route
  7959. * @return void
  7960. * @static
  7961. */
  7962. public static function substituteImplicitBindings($route)
  7963. {
  7964. \Illuminate\Routing\Router::substituteImplicitBindings($route);
  7965. }
  7966. /**
  7967. * Register a route matched event listener.
  7968. *
  7969. * @param string|callable $callback
  7970. * @return void
  7971. * @static
  7972. */
  7973. public static function matched($callback)
  7974. {
  7975. \Illuminate\Routing\Router::matched($callback);
  7976. }
  7977. /**
  7978. * Get all of the defined middleware short-hand names.
  7979. *
  7980. * @return array
  7981. * @static
  7982. */
  7983. public static function getMiddleware()
  7984. {
  7985. return \Illuminate\Routing\Router::getMiddleware();
  7986. }
  7987. /**
  7988. * Register a short-hand name for a middleware.
  7989. *
  7990. * @param string $name
  7991. * @param string $class
  7992. * @return $this
  7993. * @static
  7994. */
  7995. public static function aliasMiddleware($name, $class)
  7996. {
  7997. return \Illuminate\Routing\Router::aliasMiddleware($name, $class);
  7998. }
  7999. /**
  8000. * Check if a middlewareGroup with the given name exists.
  8001. *
  8002. * @param string $name
  8003. * @return bool
  8004. * @static
  8005. */
  8006. public static function hasMiddlewareGroup($name)
  8007. {
  8008. return \Illuminate\Routing\Router::hasMiddlewareGroup($name);
  8009. }
  8010. /**
  8011. * Get all of the defined middleware groups.
  8012. *
  8013. * @return array
  8014. * @static
  8015. */
  8016. public static function getMiddlewareGroups()
  8017. {
  8018. return \Illuminate\Routing\Router::getMiddlewareGroups();
  8019. }
  8020. /**
  8021. * Register a group of middleware.
  8022. *
  8023. * @param string $name
  8024. * @param array $middleware
  8025. * @return $this
  8026. * @static
  8027. */
  8028. public static function middlewareGroup($name, $middleware)
  8029. {
  8030. return \Illuminate\Routing\Router::middlewareGroup($name, $middleware);
  8031. }
  8032. /**
  8033. * Add a middleware to the beginning of a middleware group.
  8034. *
  8035. * If the middleware is already in the group, it will not be added again.
  8036. *
  8037. * @param string $group
  8038. * @param string $middleware
  8039. * @return $this
  8040. * @static
  8041. */
  8042. public static function prependMiddlewareToGroup($group, $middleware)
  8043. {
  8044. return \Illuminate\Routing\Router::prependMiddlewareToGroup($group, $middleware);
  8045. }
  8046. /**
  8047. * Add a middleware to the end of a middleware group.
  8048. *
  8049. * If the middleware is already in the group, it will not be added again.
  8050. *
  8051. * @param string $group
  8052. * @param string $middleware
  8053. * @return $this
  8054. * @static
  8055. */
  8056. public static function pushMiddlewareToGroup($group, $middleware)
  8057. {
  8058. return \Illuminate\Routing\Router::pushMiddlewareToGroup($group, $middleware);
  8059. }
  8060. /**
  8061. * Add a new route parameter binder.
  8062. *
  8063. * @param string $key
  8064. * @param string|callable $binder
  8065. * @return void
  8066. * @static
  8067. */
  8068. public static function bind($key, $binder)
  8069. {
  8070. \Illuminate\Routing\Router::bind($key, $binder);
  8071. }
  8072. /**
  8073. * Register a model binder for a wildcard.
  8074. *
  8075. * @param string $key
  8076. * @param string $class
  8077. * @param \Closure|null $callback
  8078. * @return void
  8079. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  8080. * @static
  8081. */
  8082. public static function model($key, $class, $callback = null)
  8083. {
  8084. \Illuminate\Routing\Router::model($key, $class, $callback);
  8085. }
  8086. /**
  8087. * Get the binding callback for a given binding.
  8088. *
  8089. * @param string $key
  8090. * @return \Closure|null
  8091. * @static
  8092. */
  8093. public static function getBindingCallback($key)
  8094. {
  8095. return \Illuminate\Routing\Router::getBindingCallback($key);
  8096. }
  8097. /**
  8098. * Get the global "where" patterns.
  8099. *
  8100. * @return array
  8101. * @static
  8102. */
  8103. public static function getPatterns()
  8104. {
  8105. return \Illuminate\Routing\Router::getPatterns();
  8106. }
  8107. /**
  8108. * Set a global where pattern on all routes.
  8109. *
  8110. * @param string $key
  8111. * @param string $pattern
  8112. * @return void
  8113. * @static
  8114. */
  8115. public static function pattern($key, $pattern)
  8116. {
  8117. \Illuminate\Routing\Router::pattern($key, $pattern);
  8118. }
  8119. /**
  8120. * Set a group of global where patterns on all routes.
  8121. *
  8122. * @param array $patterns
  8123. * @return void
  8124. * @static
  8125. */
  8126. public static function patterns($patterns)
  8127. {
  8128. \Illuminate\Routing\Router::patterns($patterns);
  8129. }
  8130. /**
  8131. * Determine if the router currently has a group stack.
  8132. *
  8133. * @return bool
  8134. * @static
  8135. */
  8136. public static function hasGroupStack()
  8137. {
  8138. return \Illuminate\Routing\Router::hasGroupStack();
  8139. }
  8140. /**
  8141. * Get the current group stack for the router.
  8142. *
  8143. * @return array
  8144. * @static
  8145. */
  8146. public static function getGroupStack()
  8147. {
  8148. return \Illuminate\Routing\Router::getGroupStack();
  8149. }
  8150. /**
  8151. * Get a route parameter for the current route.
  8152. *
  8153. * @param string $key
  8154. * @param string $default
  8155. * @return mixed
  8156. * @static
  8157. */
  8158. public static function input($key, $default = null)
  8159. {
  8160. return \Illuminate\Routing\Router::input($key, $default);
  8161. }
  8162. /**
  8163. * Get the request currently being dispatched.
  8164. *
  8165. * @return \Illuminate\Http\Request
  8166. * @static
  8167. */
  8168. public static function getCurrentRequest()
  8169. {
  8170. return \Illuminate\Routing\Router::getCurrentRequest();
  8171. }
  8172. /**
  8173. * Get the currently dispatched route instance.
  8174. *
  8175. * @return \Illuminate\Routing\Route
  8176. * @static
  8177. */
  8178. public static function getCurrentRoute()
  8179. {
  8180. return \Illuminate\Routing\Router::getCurrentRoute();
  8181. }
  8182. /**
  8183. * Get the currently dispatched route instance.
  8184. *
  8185. * @return \Illuminate\Routing\Route
  8186. * @static
  8187. */
  8188. public static function current()
  8189. {
  8190. return \Illuminate\Routing\Router::current();
  8191. }
  8192. /**
  8193. * Check if a route with the given name exists.
  8194. *
  8195. * @param string $name
  8196. * @return bool
  8197. * @static
  8198. */
  8199. public static function has($name)
  8200. {
  8201. return \Illuminate\Routing\Router::has($name);
  8202. }
  8203. /**
  8204. * Get the current route name.
  8205. *
  8206. * @return string|null
  8207. * @static
  8208. */
  8209. public static function currentRouteName()
  8210. {
  8211. return \Illuminate\Routing\Router::currentRouteName();
  8212. }
  8213. /**
  8214. * Alias for the "currentRouteNamed" method.
  8215. *
  8216. * @return bool
  8217. * @static
  8218. */
  8219. public static function is()
  8220. {
  8221. return \Illuminate\Routing\Router::is();
  8222. }
  8223. /**
  8224. * Determine if the current route matches a given name.
  8225. *
  8226. * @param string $name
  8227. * @return bool
  8228. * @static
  8229. */
  8230. public static function currentRouteNamed($name)
  8231. {
  8232. return \Illuminate\Routing\Router::currentRouteNamed($name);
  8233. }
  8234. /**
  8235. * Get the current route action.
  8236. *
  8237. * @return string|null
  8238. * @static
  8239. */
  8240. public static function currentRouteAction()
  8241. {
  8242. return \Illuminate\Routing\Router::currentRouteAction();
  8243. }
  8244. /**
  8245. * Alias for the "currentRouteUses" method.
  8246. *
  8247. * @return bool
  8248. * @static
  8249. */
  8250. public static function uses()
  8251. {
  8252. return \Illuminate\Routing\Router::uses();
  8253. }
  8254. /**
  8255. * Determine if the current route action matches a given action.
  8256. *
  8257. * @param string $action
  8258. * @return bool
  8259. * @static
  8260. */
  8261. public static function currentRouteUses($action)
  8262. {
  8263. return \Illuminate\Routing\Router::currentRouteUses($action);
  8264. }
  8265. /**
  8266. * Register the typical authentication routes for an application.
  8267. *
  8268. * @return void
  8269. * @static
  8270. */
  8271. public static function auth()
  8272. {
  8273. \Illuminate\Routing\Router::auth();
  8274. }
  8275. /**
  8276. * Set the unmapped global resource parameters to singular.
  8277. *
  8278. * @param bool $singular
  8279. * @return void
  8280. * @static
  8281. */
  8282. public static function singularResourceParameters($singular = true)
  8283. {
  8284. \Illuminate\Routing\Router::singularResourceParameters($singular);
  8285. }
  8286. /**
  8287. * Set the global resource parameter mapping.
  8288. *
  8289. * @param array $parameters
  8290. * @return void
  8291. * @static
  8292. */
  8293. public static function resourceParameters($parameters = array())
  8294. {
  8295. \Illuminate\Routing\Router::resourceParameters($parameters);
  8296. }
  8297. /**
  8298. * Get or set the verbs used in the resource URIs.
  8299. *
  8300. * @param array $verbs
  8301. * @return array|null
  8302. * @static
  8303. */
  8304. public static function resourceVerbs($verbs = array())
  8305. {
  8306. return \Illuminate\Routing\Router::resourceVerbs($verbs);
  8307. }
  8308. /**
  8309. * Get the underlying route collection.
  8310. *
  8311. * @return \Illuminate\Routing\RouteCollection
  8312. * @static
  8313. */
  8314. public static function getRoutes()
  8315. {
  8316. return \Illuminate\Routing\Router::getRoutes();
  8317. }
  8318. /**
  8319. * Set the route collection instance.
  8320. *
  8321. * @param \Illuminate\Routing\RouteCollection $routes
  8322. * @return void
  8323. * @static
  8324. */
  8325. public static function setRoutes($routes)
  8326. {
  8327. \Illuminate\Routing\Router::setRoutes($routes);
  8328. }
  8329. /**
  8330. * Register a custom macro.
  8331. *
  8332. * @param string $name
  8333. * @param callable $macro
  8334. * @return void
  8335. * @static
  8336. */
  8337. public static function macro($name, $macro)
  8338. {
  8339. \Illuminate\Routing\Router::macro($name, $macro);
  8340. }
  8341. /**
  8342. * Checks if macro is registered.
  8343. *
  8344. * @param string $name
  8345. * @return bool
  8346. * @static
  8347. */
  8348. public static function hasMacro($name)
  8349. {
  8350. return \Illuminate\Routing\Router::hasMacro($name);
  8351. }
  8352. /**
  8353. * Dynamically handle calls to the class.
  8354. *
  8355. * @param string $method
  8356. * @param array $parameters
  8357. * @return mixed
  8358. * @throws \BadMethodCallException
  8359. * @static
  8360. */
  8361. public static function macroCall($method, $parameters)
  8362. {
  8363. return \Illuminate\Routing\Router::macroCall($method, $parameters);
  8364. }
  8365. }
  8366. class Schema {
  8367. /**
  8368. * Determine if the given table exists.
  8369. *
  8370. * @param string $table
  8371. * @return bool
  8372. * @static
  8373. */
  8374. public static function hasTable($table)
  8375. {
  8376. return \Illuminate\Database\Schema\MySqlBuilder::hasTable($table);
  8377. }
  8378. /**
  8379. * Get the column listing for a given table.
  8380. *
  8381. * @param string $table
  8382. * @return array
  8383. * @static
  8384. */
  8385. public static function getColumnListing($table)
  8386. {
  8387. return \Illuminate\Database\Schema\MySqlBuilder::getColumnListing($table);
  8388. }
  8389. /**
  8390. * Set the default string length for migrations.
  8391. *
  8392. * @param int $length
  8393. * @return void
  8394. * @static
  8395. */
  8396. public static function defaultStringLength($length)
  8397. {
  8398. //Method inherited from \Illuminate\Database\Schema\Builder
  8399. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  8400. }
  8401. /**
  8402. * Determine if the given table has a given column.
  8403. *
  8404. * @param string $table
  8405. * @param string $column
  8406. * @return bool
  8407. * @static
  8408. */
  8409. public static function hasColumn($table, $column)
  8410. {
  8411. //Method inherited from \Illuminate\Database\Schema\Builder
  8412. return \Illuminate\Database\Schema\MySqlBuilder::hasColumn($table, $column);
  8413. }
  8414. /**
  8415. * Determine if the given table has given columns.
  8416. *
  8417. * @param string $table
  8418. * @param array $columns
  8419. * @return bool
  8420. * @static
  8421. */
  8422. public static function hasColumns($table, $columns)
  8423. {
  8424. //Method inherited from \Illuminate\Database\Schema\Builder
  8425. return \Illuminate\Database\Schema\MySqlBuilder::hasColumns($table, $columns);
  8426. }
  8427. /**
  8428. * Get the data type for the given column name.
  8429. *
  8430. * @param string $table
  8431. * @param string $column
  8432. * @return string
  8433. * @static
  8434. */
  8435. public static function getColumnType($table, $column)
  8436. {
  8437. //Method inherited from \Illuminate\Database\Schema\Builder
  8438. return \Illuminate\Database\Schema\MySqlBuilder::getColumnType($table, $column);
  8439. }
  8440. /**
  8441. * Modify a table on the schema.
  8442. *
  8443. * @param string $table
  8444. * @param \Closure $callback
  8445. * @return void
  8446. * @static
  8447. */
  8448. public static function table($table, $callback)
  8449. {
  8450. //Method inherited from \Illuminate\Database\Schema\Builder
  8451. \Illuminate\Database\Schema\MySqlBuilder::table($table, $callback);
  8452. }
  8453. /**
  8454. * Create a new table on the schema.
  8455. *
  8456. * @param string $table
  8457. * @param \Closure $callback
  8458. * @return void
  8459. * @static
  8460. */
  8461. public static function create($table, $callback)
  8462. {
  8463. //Method inherited from \Illuminate\Database\Schema\Builder
  8464. \Illuminate\Database\Schema\MySqlBuilder::create($table, $callback);
  8465. }
  8466. /**
  8467. * Drop a table from the schema.
  8468. *
  8469. * @param string $table
  8470. * @return void
  8471. * @static
  8472. */
  8473. public static function drop($table)
  8474. {
  8475. //Method inherited from \Illuminate\Database\Schema\Builder
  8476. \Illuminate\Database\Schema\MySqlBuilder::drop($table);
  8477. }
  8478. /**
  8479. * Drop a table from the schema if it exists.
  8480. *
  8481. * @param string $table
  8482. * @return void
  8483. * @static
  8484. */
  8485. public static function dropIfExists($table)
  8486. {
  8487. //Method inherited from \Illuminate\Database\Schema\Builder
  8488. \Illuminate\Database\Schema\MySqlBuilder::dropIfExists($table);
  8489. }
  8490. /**
  8491. * Rename a table on the schema.
  8492. *
  8493. * @param string $from
  8494. * @param string $to
  8495. * @return void
  8496. * @static
  8497. */
  8498. public static function rename($from, $to)
  8499. {
  8500. //Method inherited from \Illuminate\Database\Schema\Builder
  8501. \Illuminate\Database\Schema\MySqlBuilder::rename($from, $to);
  8502. }
  8503. /**
  8504. * Enable foreign key constraints.
  8505. *
  8506. * @return bool
  8507. * @static
  8508. */
  8509. public static function enableForeignKeyConstraints()
  8510. {
  8511. //Method inherited from \Illuminate\Database\Schema\Builder
  8512. return \Illuminate\Database\Schema\MySqlBuilder::enableForeignKeyConstraints();
  8513. }
  8514. /**
  8515. * Disable foreign key constraints.
  8516. *
  8517. * @return bool
  8518. * @static
  8519. */
  8520. public static function disableForeignKeyConstraints()
  8521. {
  8522. //Method inherited from \Illuminate\Database\Schema\Builder
  8523. return \Illuminate\Database\Schema\MySqlBuilder::disableForeignKeyConstraints();
  8524. }
  8525. /**
  8526. * Get the database connection instance.
  8527. *
  8528. * @return \Illuminate\Database\Connection
  8529. * @static
  8530. */
  8531. public static function getConnection()
  8532. {
  8533. //Method inherited from \Illuminate\Database\Schema\Builder
  8534. return \Illuminate\Database\Schema\MySqlBuilder::getConnection();
  8535. }
  8536. /**
  8537. * Set the database connection instance.
  8538. *
  8539. * @param \Illuminate\Database\Connection $connection
  8540. * @return $this
  8541. * @static
  8542. */
  8543. public static function setConnection($connection)
  8544. {
  8545. //Method inherited from \Illuminate\Database\Schema\Builder
  8546. return \Illuminate\Database\Schema\MySqlBuilder::setConnection($connection);
  8547. }
  8548. /**
  8549. * Set the Schema Blueprint resolver callback.
  8550. *
  8551. * @param \Closure $resolver
  8552. * @return void
  8553. * @static
  8554. */
  8555. public static function blueprintResolver($resolver)
  8556. {
  8557. //Method inherited from \Illuminate\Database\Schema\Builder
  8558. \Illuminate\Database\Schema\MySqlBuilder::blueprintResolver($resolver);
  8559. }
  8560. }
  8561. class Session {
  8562. /**
  8563. * Get the session configuration.
  8564. *
  8565. * @return array
  8566. * @static
  8567. */
  8568. public static function getSessionConfig()
  8569. {
  8570. return \Illuminate\Session\SessionManager::getSessionConfig();
  8571. }
  8572. /**
  8573. * Get the default session driver name.
  8574. *
  8575. * @return string
  8576. * @static
  8577. */
  8578. public static function getDefaultDriver()
  8579. {
  8580. return \Illuminate\Session\SessionManager::getDefaultDriver();
  8581. }
  8582. /**
  8583. * Set the default session driver name.
  8584. *
  8585. * @param string $name
  8586. * @return void
  8587. * @static
  8588. */
  8589. public static function setDefaultDriver($name)
  8590. {
  8591. \Illuminate\Session\SessionManager::setDefaultDriver($name);
  8592. }
  8593. /**
  8594. * Get a driver instance.
  8595. *
  8596. * @param string $driver
  8597. * @return mixed
  8598. * @static
  8599. */
  8600. public static function driver($driver = null)
  8601. {
  8602. //Method inherited from \Illuminate\Support\Manager
  8603. return \Illuminate\Session\SessionManager::driver($driver);
  8604. }
  8605. /**
  8606. * Register a custom driver creator Closure.
  8607. *
  8608. * @param string $driver
  8609. * @param \Closure $callback
  8610. * @return $this
  8611. * @static
  8612. */
  8613. public static function extend($driver, $callback)
  8614. {
  8615. //Method inherited from \Illuminate\Support\Manager
  8616. return \Illuminate\Session\SessionManager::extend($driver, $callback);
  8617. }
  8618. /**
  8619. * Get all of the created "drivers".
  8620. *
  8621. * @return array
  8622. * @static
  8623. */
  8624. public static function getDrivers()
  8625. {
  8626. //Method inherited from \Illuminate\Support\Manager
  8627. return \Illuminate\Session\SessionManager::getDrivers();
  8628. }
  8629. /**
  8630. * Start the session, reading the data from a handler.
  8631. *
  8632. * @return bool
  8633. * @static
  8634. */
  8635. public static function start()
  8636. {
  8637. return \Illuminate\Session\Store::start();
  8638. }
  8639. /**
  8640. * Save the session data to storage.
  8641. *
  8642. * @return bool
  8643. * @static
  8644. */
  8645. public static function save()
  8646. {
  8647. return \Illuminate\Session\Store::save();
  8648. }
  8649. /**
  8650. * Age the flash data for the session.
  8651. *
  8652. * @return void
  8653. * @static
  8654. */
  8655. public static function ageFlashData()
  8656. {
  8657. \Illuminate\Session\Store::ageFlashData();
  8658. }
  8659. /**
  8660. * Get all of the session data.
  8661. *
  8662. * @return array
  8663. * @static
  8664. */
  8665. public static function all()
  8666. {
  8667. return \Illuminate\Session\Store::all();
  8668. }
  8669. /**
  8670. * Checks if a key exists.
  8671. *
  8672. * @param string|array $key
  8673. * @return bool
  8674. * @static
  8675. */
  8676. public static function exists($key)
  8677. {
  8678. return \Illuminate\Session\Store::exists($key);
  8679. }
  8680. /**
  8681. * Checks if a key is present and not null.
  8682. *
  8683. * @param string|array $key
  8684. * @return bool
  8685. * @static
  8686. */
  8687. public static function has($key)
  8688. {
  8689. return \Illuminate\Session\Store::has($key);
  8690. }
  8691. /**
  8692. * Get an item from the session.
  8693. *
  8694. * @param string $key
  8695. * @param mixed $default
  8696. * @return mixed
  8697. * @static
  8698. */
  8699. public static function get($key, $default = null)
  8700. {
  8701. return \Illuminate\Session\Store::get($key, $default);
  8702. }
  8703. /**
  8704. * Get the value of a given key and then forget it.
  8705. *
  8706. * @param string $key
  8707. * @param string $default
  8708. * @return mixed
  8709. * @static
  8710. */
  8711. public static function pull($key, $default = null)
  8712. {
  8713. return \Illuminate\Session\Store::pull($key, $default);
  8714. }
  8715. /**
  8716. * Determine if the session contains old input.
  8717. *
  8718. * @param string $key
  8719. * @return bool
  8720. * @static
  8721. */
  8722. public static function hasOldInput($key = null)
  8723. {
  8724. return \Illuminate\Session\Store::hasOldInput($key);
  8725. }
  8726. /**
  8727. * Get the requested item from the flashed input array.
  8728. *
  8729. * @param string $key
  8730. * @param mixed $default
  8731. * @return mixed
  8732. * @static
  8733. */
  8734. public static function getOldInput($key = null, $default = null)
  8735. {
  8736. return \Illuminate\Session\Store::getOldInput($key, $default);
  8737. }
  8738. /**
  8739. * Replace the given session attributes entirely.
  8740. *
  8741. * @param array $attributes
  8742. * @return void
  8743. * @static
  8744. */
  8745. public static function replace($attributes)
  8746. {
  8747. \Illuminate\Session\Store::replace($attributes);
  8748. }
  8749. /**
  8750. * Put a key / value pair or array of key / value pairs in the session.
  8751. *
  8752. * @param string|array $key
  8753. * @param mixed $value
  8754. * @return void
  8755. * @static
  8756. */
  8757. public static function put($key, $value = null)
  8758. {
  8759. \Illuminate\Session\Store::put($key, $value);
  8760. }
  8761. /**
  8762. * Get an item from the session, or store the default value.
  8763. *
  8764. * @param string $key
  8765. * @param \Closure $callback
  8766. * @return mixed
  8767. * @static
  8768. */
  8769. public static function remember($key, $callback)
  8770. {
  8771. return \Illuminate\Session\Store::remember($key, $callback);
  8772. }
  8773. /**
  8774. * Push a value onto a session array.
  8775. *
  8776. * @param string $key
  8777. * @param mixed $value
  8778. * @return void
  8779. * @static
  8780. */
  8781. public static function push($key, $value)
  8782. {
  8783. \Illuminate\Session\Store::push($key, $value);
  8784. }
  8785. /**
  8786. * Increment the value of an item in the session.
  8787. *
  8788. * @param string $key
  8789. * @param int $amount
  8790. * @return mixed
  8791. * @static
  8792. */
  8793. public static function increment($key, $amount = 1)
  8794. {
  8795. return \Illuminate\Session\Store::increment($key, $amount);
  8796. }
  8797. /**
  8798. * Decrement the value of an item in the session.
  8799. *
  8800. * @param string $key
  8801. * @param int $amount
  8802. * @return int
  8803. * @static
  8804. */
  8805. public static function decrement($key, $amount = 1)
  8806. {
  8807. return \Illuminate\Session\Store::decrement($key, $amount);
  8808. }
  8809. /**
  8810. * Flash a key / value pair to the session.
  8811. *
  8812. * @param string $key
  8813. * @param mixed $value
  8814. * @return void
  8815. * @static
  8816. */
  8817. public static function flash($key, $value)
  8818. {
  8819. \Illuminate\Session\Store::flash($key, $value);
  8820. }
  8821. /**
  8822. * Flash a key / value pair to the session for immediate use.
  8823. *
  8824. * @param string $key
  8825. * @param mixed $value
  8826. * @return void
  8827. * @static
  8828. */
  8829. public static function now($key, $value)
  8830. {
  8831. \Illuminate\Session\Store::now($key, $value);
  8832. }
  8833. /**
  8834. * Reflash all of the session flash data.
  8835. *
  8836. * @return void
  8837. * @static
  8838. */
  8839. public static function reflash()
  8840. {
  8841. \Illuminate\Session\Store::reflash();
  8842. }
  8843. /**
  8844. * Reflash a subset of the current flash data.
  8845. *
  8846. * @param array|mixed $keys
  8847. * @return void
  8848. * @static
  8849. */
  8850. public static function keep($keys = null)
  8851. {
  8852. \Illuminate\Session\Store::keep($keys);
  8853. }
  8854. /**
  8855. * Flash an input array to the session.
  8856. *
  8857. * @param array $value
  8858. * @return void
  8859. * @static
  8860. */
  8861. public static function flashInput($value)
  8862. {
  8863. \Illuminate\Session\Store::flashInput($value);
  8864. }
  8865. /**
  8866. * Remove an item from the session, returning its value.
  8867. *
  8868. * @param string $key
  8869. * @return mixed
  8870. * @static
  8871. */
  8872. public static function remove($key)
  8873. {
  8874. return \Illuminate\Session\Store::remove($key);
  8875. }
  8876. /**
  8877. * Remove one or many items from the session.
  8878. *
  8879. * @param string|array $keys
  8880. * @return void
  8881. * @static
  8882. */
  8883. public static function forget($keys)
  8884. {
  8885. \Illuminate\Session\Store::forget($keys);
  8886. }
  8887. /**
  8888. * Remove all of the items from the session.
  8889. *
  8890. * @return void
  8891. * @static
  8892. */
  8893. public static function flush()
  8894. {
  8895. \Illuminate\Session\Store::flush();
  8896. }
  8897. /**
  8898. * Flush the session data and regenerate the ID.
  8899. *
  8900. * @return bool
  8901. * @static
  8902. */
  8903. public static function invalidate()
  8904. {
  8905. return \Illuminate\Session\Store::invalidate();
  8906. }
  8907. /**
  8908. * Generate a new session identifier.
  8909. *
  8910. * @param bool $destroy
  8911. * @return bool
  8912. * @static
  8913. */
  8914. public static function regenerate($destroy = false)
  8915. {
  8916. return \Illuminate\Session\Store::regenerate($destroy);
  8917. }
  8918. /**
  8919. * Generate a new session ID for the session.
  8920. *
  8921. * @param bool $destroy
  8922. * @return bool
  8923. * @static
  8924. */
  8925. public static function migrate($destroy = false)
  8926. {
  8927. return \Illuminate\Session\Store::migrate($destroy);
  8928. }
  8929. /**
  8930. * Determine if the session has been started.
  8931. *
  8932. * @return bool
  8933. * @static
  8934. */
  8935. public static function isStarted()
  8936. {
  8937. return \Illuminate\Session\Store::isStarted();
  8938. }
  8939. /**
  8940. * Get the name of the session.
  8941. *
  8942. * @return string
  8943. * @static
  8944. */
  8945. public static function getName()
  8946. {
  8947. return \Illuminate\Session\Store::getName();
  8948. }
  8949. /**
  8950. * Set the name of the session.
  8951. *
  8952. * @param string $name
  8953. * @return void
  8954. * @static
  8955. */
  8956. public static function setName($name)
  8957. {
  8958. \Illuminate\Session\Store::setName($name);
  8959. }
  8960. /**
  8961. * Get the current session ID.
  8962. *
  8963. * @return string
  8964. * @static
  8965. */
  8966. public static function getId()
  8967. {
  8968. return \Illuminate\Session\Store::getId();
  8969. }
  8970. /**
  8971. * Set the session ID.
  8972. *
  8973. * @param string $id
  8974. * @return void
  8975. * @static
  8976. */
  8977. public static function setId($id)
  8978. {
  8979. \Illuminate\Session\Store::setId($id);
  8980. }
  8981. /**
  8982. * Determine if this is a valid session ID.
  8983. *
  8984. * @param string $id
  8985. * @return bool
  8986. * @static
  8987. */
  8988. public static function isValidId($id)
  8989. {
  8990. return \Illuminate\Session\Store::isValidId($id);
  8991. }
  8992. /**
  8993. * Set the existence of the session on the handler if applicable.
  8994. *
  8995. * @param bool $value
  8996. * @return void
  8997. * @static
  8998. */
  8999. public static function setExists($value)
  9000. {
  9001. \Illuminate\Session\Store::setExists($value);
  9002. }
  9003. /**
  9004. * Get the CSRF token value.
  9005. *
  9006. * @return string
  9007. * @static
  9008. */
  9009. public static function token()
  9010. {
  9011. return \Illuminate\Session\Store::token();
  9012. }
  9013. /**
  9014. * Regenerate the CSRF token value.
  9015. *
  9016. * @return void
  9017. * @static
  9018. */
  9019. public static function regenerateToken()
  9020. {
  9021. \Illuminate\Session\Store::regenerateToken();
  9022. }
  9023. /**
  9024. * Get the previous URL from the session.
  9025. *
  9026. * @return string|null
  9027. * @static
  9028. */
  9029. public static function previousUrl()
  9030. {
  9031. return \Illuminate\Session\Store::previousUrl();
  9032. }
  9033. /**
  9034. * Set the "previous" URL in the session.
  9035. *
  9036. * @param string $url
  9037. * @return void
  9038. * @static
  9039. */
  9040. public static function setPreviousUrl($url)
  9041. {
  9042. \Illuminate\Session\Store::setPreviousUrl($url);
  9043. }
  9044. /**
  9045. * Get the underlying session handler implementation.
  9046. *
  9047. * @return \SessionHandlerInterface
  9048. * @static
  9049. */
  9050. public static function getHandler()
  9051. {
  9052. return \Illuminate\Session\Store::getHandler();
  9053. }
  9054. /**
  9055. * Determine if the session handler needs a request.
  9056. *
  9057. * @return bool
  9058. * @static
  9059. */
  9060. public static function handlerNeedsRequest()
  9061. {
  9062. return \Illuminate\Session\Store::handlerNeedsRequest();
  9063. }
  9064. /**
  9065. * Set the request on the handler instance.
  9066. *
  9067. * @param \Illuminate\Http\Request $request
  9068. * @return void
  9069. * @static
  9070. */
  9071. public static function setRequestOnHandler($request)
  9072. {
  9073. \Illuminate\Session\Store::setRequestOnHandler($request);
  9074. }
  9075. }
  9076. class Storage {
  9077. /**
  9078. * Get a filesystem instance.
  9079. *
  9080. * @param string $name
  9081. * @return \Illuminate\Filesystem\FilesystemAdapter
  9082. * @static
  9083. */
  9084. public static function drive($name = null)
  9085. {
  9086. return \Illuminate\Filesystem\FilesystemManager::drive($name);
  9087. }
  9088. /**
  9089. * Get a filesystem instance.
  9090. *
  9091. * @param string $name
  9092. * @return \Illuminate\Filesystem\FilesystemAdapter
  9093. * @static
  9094. */
  9095. public static function disk($name = null)
  9096. {
  9097. return \Illuminate\Filesystem\FilesystemManager::disk($name);
  9098. }
  9099. /**
  9100. * Get a default cloud filesystem instance.
  9101. *
  9102. * @return \Illuminate\Filesystem\FilesystemAdapter
  9103. * @static
  9104. */
  9105. public static function cloud()
  9106. {
  9107. return \Illuminate\Filesystem\FilesystemManager::cloud();
  9108. }
  9109. /**
  9110. * Create an instance of the local driver.
  9111. *
  9112. * @param array $config
  9113. * @return \Illuminate\Filesystem\FilesystemAdapter
  9114. * @static
  9115. */
  9116. public static function createLocalDriver($config)
  9117. {
  9118. return \Illuminate\Filesystem\FilesystemManager::createLocalDriver($config);
  9119. }
  9120. /**
  9121. * Create an instance of the ftp driver.
  9122. *
  9123. * @param array $config
  9124. * @return \Illuminate\Filesystem\FilesystemAdapter
  9125. * @static
  9126. */
  9127. public static function createFtpDriver($config)
  9128. {
  9129. return \Illuminate\Filesystem\FilesystemManager::createFtpDriver($config);
  9130. }
  9131. /**
  9132. * Create an instance of the Amazon S3 driver.
  9133. *
  9134. * @param array $config
  9135. * @return \Illuminate\Contracts\Filesystem\Cloud
  9136. * @static
  9137. */
  9138. public static function createS3Driver($config)
  9139. {
  9140. return \Illuminate\Filesystem\FilesystemManager::createS3Driver($config);
  9141. }
  9142. /**
  9143. * Create an instance of the Rackspace driver.
  9144. *
  9145. * @param array $config
  9146. * @return \Illuminate\Contracts\Filesystem\Cloud
  9147. * @static
  9148. */
  9149. public static function createRackspaceDriver($config)
  9150. {
  9151. return \Illuminate\Filesystem\FilesystemManager::createRackspaceDriver($config);
  9152. }
  9153. /**
  9154. * Set the given disk instance.
  9155. *
  9156. * @param string $name
  9157. * @param mixed $disk
  9158. * @return void
  9159. * @static
  9160. */
  9161. public static function set($name, $disk)
  9162. {
  9163. \Illuminate\Filesystem\FilesystemManager::set($name, $disk);
  9164. }
  9165. /**
  9166. * Get the default driver name.
  9167. *
  9168. * @return string
  9169. * @static
  9170. */
  9171. public static function getDefaultDriver()
  9172. {
  9173. return \Illuminate\Filesystem\FilesystemManager::getDefaultDriver();
  9174. }
  9175. /**
  9176. * Get the default cloud driver name.
  9177. *
  9178. * @return string
  9179. * @static
  9180. */
  9181. public static function getDefaultCloudDriver()
  9182. {
  9183. return \Illuminate\Filesystem\FilesystemManager::getDefaultCloudDriver();
  9184. }
  9185. /**
  9186. * Register a custom driver creator Closure.
  9187. *
  9188. * @param string $driver
  9189. * @param \Closure $callback
  9190. * @return $this
  9191. * @static
  9192. */
  9193. public static function extend($driver, $callback)
  9194. {
  9195. return \Illuminate\Filesystem\FilesystemManager::extend($driver, $callback);
  9196. }
  9197. /**
  9198. * Assert that the given file exists.
  9199. *
  9200. * @param string $path
  9201. * @return void
  9202. * @static
  9203. */
  9204. public static function assertExists($path)
  9205. {
  9206. \Illuminate\Filesystem\FilesystemAdapter::assertExists($path);
  9207. }
  9208. /**
  9209. * Assert that the given file does not exist.
  9210. *
  9211. * @param string $path
  9212. * @return void
  9213. * @static
  9214. */
  9215. public static function assertMissing($path)
  9216. {
  9217. \Illuminate\Filesystem\FilesystemAdapter::assertMissing($path);
  9218. }
  9219. /**
  9220. * Determine if a file exists.
  9221. *
  9222. * @param string $path
  9223. * @return bool
  9224. * @static
  9225. */
  9226. public static function exists($path)
  9227. {
  9228. return \Illuminate\Filesystem\FilesystemAdapter::exists($path);
  9229. }
  9230. /**
  9231. * Get the full path for the file at the given "short" path.
  9232. *
  9233. * @param string $path
  9234. * @return string
  9235. * @static
  9236. */
  9237. public static function path($path)
  9238. {
  9239. return \Illuminate\Filesystem\FilesystemAdapter::path($path);
  9240. }
  9241. /**
  9242. * Get the contents of a file.
  9243. *
  9244. * @param string $path
  9245. * @return string
  9246. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  9247. * @static
  9248. */
  9249. public static function get($path)
  9250. {
  9251. return \Illuminate\Filesystem\FilesystemAdapter::get($path);
  9252. }
  9253. /**
  9254. * Write the contents of a file.
  9255. *
  9256. * @param string $path
  9257. * @param string|resource $contents
  9258. * @param array $options
  9259. * @return bool
  9260. * @static
  9261. */
  9262. public static function put($path, $contents, $options = array())
  9263. {
  9264. return \Illuminate\Filesystem\FilesystemAdapter::put($path, $contents, $options);
  9265. }
  9266. /**
  9267. * Store the uploaded file on the disk.
  9268. *
  9269. * @param string $path
  9270. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  9271. * @param array $options
  9272. * @return string|false
  9273. * @static
  9274. */
  9275. public static function putFile($path, $file, $options = array())
  9276. {
  9277. return \Illuminate\Filesystem\FilesystemAdapter::putFile($path, $file, $options);
  9278. }
  9279. /**
  9280. * Store the uploaded file on the disk with a given name.
  9281. *
  9282. * @param string $path
  9283. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  9284. * @param string $name
  9285. * @param array $options
  9286. * @return string|false
  9287. * @static
  9288. */
  9289. public static function putFileAs($path, $file, $name, $options = array())
  9290. {
  9291. return \Illuminate\Filesystem\FilesystemAdapter::putFileAs($path, $file, $name, $options);
  9292. }
  9293. /**
  9294. * Get the visibility for the given path.
  9295. *
  9296. * @param string $path
  9297. * @return string
  9298. * @static
  9299. */
  9300. public static function getVisibility($path)
  9301. {
  9302. return \Illuminate\Filesystem\FilesystemAdapter::getVisibility($path);
  9303. }
  9304. /**
  9305. * Set the visibility for the given path.
  9306. *
  9307. * @param string $path
  9308. * @param string $visibility
  9309. * @return void
  9310. * @static
  9311. */
  9312. public static function setVisibility($path, $visibility)
  9313. {
  9314. \Illuminate\Filesystem\FilesystemAdapter::setVisibility($path, $visibility);
  9315. }
  9316. /**
  9317. * Prepend to a file.
  9318. *
  9319. * @param string $path
  9320. * @param string $data
  9321. * @param string $separator
  9322. * @return int
  9323. * @static
  9324. */
  9325. public static function prepend($path, $data, $separator = '')
  9326. {
  9327. return \Illuminate\Filesystem\FilesystemAdapter::prepend($path, $data, $separator);
  9328. }
  9329. /**
  9330. * Append to a file.
  9331. *
  9332. * @param string $path
  9333. * @param string $data
  9334. * @param string $separator
  9335. * @return int
  9336. * @static
  9337. */
  9338. public static function append($path, $data, $separator = '')
  9339. {
  9340. return \Illuminate\Filesystem\FilesystemAdapter::append($path, $data, $separator);
  9341. }
  9342. /**
  9343. * Delete the file at a given path.
  9344. *
  9345. * @param string|array $paths
  9346. * @return bool
  9347. * @static
  9348. */
  9349. public static function delete($paths)
  9350. {
  9351. return \Illuminate\Filesystem\FilesystemAdapter::delete($paths);
  9352. }
  9353. /**
  9354. * Copy a file to a new location.
  9355. *
  9356. * @param string $from
  9357. * @param string $to
  9358. * @return bool
  9359. * @static
  9360. */
  9361. public static function copy($from, $to)
  9362. {
  9363. return \Illuminate\Filesystem\FilesystemAdapter::copy($from, $to);
  9364. }
  9365. /**
  9366. * Move a file to a new location.
  9367. *
  9368. * @param string $from
  9369. * @param string $to
  9370. * @return bool
  9371. * @static
  9372. */
  9373. public static function move($from, $to)
  9374. {
  9375. return \Illuminate\Filesystem\FilesystemAdapter::move($from, $to);
  9376. }
  9377. /**
  9378. * Get the file size of a given file.
  9379. *
  9380. * @param string $path
  9381. * @return int
  9382. * @static
  9383. */
  9384. public static function size($path)
  9385. {
  9386. return \Illuminate\Filesystem\FilesystemAdapter::size($path);
  9387. }
  9388. /**
  9389. * Get the mime-type of a given file.
  9390. *
  9391. * @param string $path
  9392. * @return string|false
  9393. * @static
  9394. */
  9395. public static function mimeType($path)
  9396. {
  9397. return \Illuminate\Filesystem\FilesystemAdapter::mimeType($path);
  9398. }
  9399. /**
  9400. * Get the file's last modification time.
  9401. *
  9402. * @param string $path
  9403. * @return int
  9404. * @static
  9405. */
  9406. public static function lastModified($path)
  9407. {
  9408. return \Illuminate\Filesystem\FilesystemAdapter::lastModified($path);
  9409. }
  9410. /**
  9411. * Get the URL for the file at the given path.
  9412. *
  9413. * @param string $path
  9414. * @return string
  9415. * @static
  9416. */
  9417. public static function url($path)
  9418. {
  9419. return \Illuminate\Filesystem\FilesystemAdapter::url($path);
  9420. }
  9421. /**
  9422. * Get a temporary URL for the file at the given path.
  9423. *
  9424. * @param string $path
  9425. * @param \DateTimeInterface $expiration
  9426. * @param array $options
  9427. * @return string
  9428. * @static
  9429. */
  9430. public static function temporaryUrl($path, $expiration, $options = array())
  9431. {
  9432. return \Illuminate\Filesystem\FilesystemAdapter::temporaryUrl($path, $expiration, $options);
  9433. }
  9434. /**
  9435. * Get an array of all files in a directory.
  9436. *
  9437. * @param string|null $directory
  9438. * @param bool $recursive
  9439. * @return array
  9440. * @static
  9441. */
  9442. public static function files($directory = null, $recursive = false)
  9443. {
  9444. return \Illuminate\Filesystem\FilesystemAdapter::files($directory, $recursive);
  9445. }
  9446. /**
  9447. * Get all of the files from the given directory (recursive).
  9448. *
  9449. * @param string|null $directory
  9450. * @return array
  9451. * @static
  9452. */
  9453. public static function allFiles($directory = null)
  9454. {
  9455. return \Illuminate\Filesystem\FilesystemAdapter::allFiles($directory);
  9456. }
  9457. /**
  9458. * Get all of the directories within a given directory.
  9459. *
  9460. * @param string|null $directory
  9461. * @param bool $recursive
  9462. * @return array
  9463. * @static
  9464. */
  9465. public static function directories($directory = null, $recursive = false)
  9466. {
  9467. return \Illuminate\Filesystem\FilesystemAdapter::directories($directory, $recursive);
  9468. }
  9469. /**
  9470. * Get all (recursive) of the directories within a given directory.
  9471. *
  9472. * @param string|null $directory
  9473. * @return array
  9474. * @static
  9475. */
  9476. public static function allDirectories($directory = null)
  9477. {
  9478. return \Illuminate\Filesystem\FilesystemAdapter::allDirectories($directory);
  9479. }
  9480. /**
  9481. * Create a directory.
  9482. *
  9483. * @param string $path
  9484. * @return bool
  9485. * @static
  9486. */
  9487. public static function makeDirectory($path)
  9488. {
  9489. return \Illuminate\Filesystem\FilesystemAdapter::makeDirectory($path);
  9490. }
  9491. /**
  9492. * Recursively delete a directory.
  9493. *
  9494. * @param string $directory
  9495. * @return bool
  9496. * @static
  9497. */
  9498. public static function deleteDirectory($directory)
  9499. {
  9500. return \Illuminate\Filesystem\FilesystemAdapter::deleteDirectory($directory);
  9501. }
  9502. /**
  9503. * Get the Flysystem driver.
  9504. *
  9505. * @return \League\Flysystem\FilesystemInterface
  9506. * @static
  9507. */
  9508. public static function getDriver()
  9509. {
  9510. return \Illuminate\Filesystem\FilesystemAdapter::getDriver();
  9511. }
  9512. }
  9513. class URL {
  9514. /**
  9515. * Get the full URL for the current request.
  9516. *
  9517. * @return string
  9518. * @static
  9519. */
  9520. public static function full()
  9521. {
  9522. return \Illuminate\Routing\UrlGenerator::full();
  9523. }
  9524. /**
  9525. * Get the current URL for the request.
  9526. *
  9527. * @return string
  9528. * @static
  9529. */
  9530. public static function current()
  9531. {
  9532. return \Illuminate\Routing\UrlGenerator::current();
  9533. }
  9534. /**
  9535. * Get the URL for the previous request.
  9536. *
  9537. * @param mixed $fallback
  9538. * @return string
  9539. * @static
  9540. */
  9541. public static function previous($fallback = false)
  9542. {
  9543. return \Illuminate\Routing\UrlGenerator::previous($fallback);
  9544. }
  9545. /**
  9546. * Generate an absolute URL to the given path.
  9547. *
  9548. * @param string $path
  9549. * @param mixed $extra
  9550. * @param bool|null $secure
  9551. * @return string
  9552. * @static
  9553. */
  9554. public static function to($path, $extra = array(), $secure = null)
  9555. {
  9556. return \Illuminate\Routing\UrlGenerator::to($path, $extra, $secure);
  9557. }
  9558. /**
  9559. * Generate a secure, absolute URL to the given path.
  9560. *
  9561. * @param string $path
  9562. * @param array $parameters
  9563. * @return string
  9564. * @static
  9565. */
  9566. public static function secure($path, $parameters = array())
  9567. {
  9568. return \Illuminate\Routing\UrlGenerator::secure($path, $parameters);
  9569. }
  9570. /**
  9571. * Generate the URL to an application asset.
  9572. *
  9573. * @param string $path
  9574. * @param bool|null $secure
  9575. * @return string
  9576. * @static
  9577. */
  9578. public static function asset($path, $secure = null)
  9579. {
  9580. return \Illuminate\Routing\UrlGenerator::asset($path, $secure);
  9581. }
  9582. /**
  9583. * Generate the URL to a secure asset.
  9584. *
  9585. * @param string $path
  9586. * @return string
  9587. * @static
  9588. */
  9589. public static function secureAsset($path)
  9590. {
  9591. return \Illuminate\Routing\UrlGenerator::secureAsset($path);
  9592. }
  9593. /**
  9594. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  9595. *
  9596. * @param string $root
  9597. * @param string $path
  9598. * @param bool|null $secure
  9599. * @return string
  9600. * @static
  9601. */
  9602. public static function assetFrom($root, $path, $secure = null)
  9603. {
  9604. return \Illuminate\Routing\UrlGenerator::assetFrom($root, $path, $secure);
  9605. }
  9606. /**
  9607. * Get the default scheme for a raw URL.
  9608. *
  9609. * @param bool|null $secure
  9610. * @return string
  9611. * @static
  9612. */
  9613. public static function formatScheme($secure)
  9614. {
  9615. return \Illuminate\Routing\UrlGenerator::formatScheme($secure);
  9616. }
  9617. /**
  9618. * Get the URL to a named route.
  9619. *
  9620. * @param string $name
  9621. * @param mixed $parameters
  9622. * @param bool $absolute
  9623. * @return string
  9624. * @throws \InvalidArgumentException
  9625. * @static
  9626. */
  9627. public static function route($name, $parameters = array(), $absolute = true)
  9628. {
  9629. return \Illuminate\Routing\UrlGenerator::route($name, $parameters, $absolute);
  9630. }
  9631. /**
  9632. * Get the URL to a controller action.
  9633. *
  9634. * @param string $action
  9635. * @param mixed $parameters
  9636. * @param bool $absolute
  9637. * @return string
  9638. * @throws \InvalidArgumentException
  9639. * @static
  9640. */
  9641. public static function action($action, $parameters = array(), $absolute = true)
  9642. {
  9643. return \Illuminate\Routing\UrlGenerator::action($action, $parameters, $absolute);
  9644. }
  9645. /**
  9646. * Format the array of URL parameters.
  9647. *
  9648. * @param mixed|array $parameters
  9649. * @return array
  9650. * @static
  9651. */
  9652. public static function formatParameters($parameters)
  9653. {
  9654. return \Illuminate\Routing\UrlGenerator::formatParameters($parameters);
  9655. }
  9656. /**
  9657. * Get the base URL for the request.
  9658. *
  9659. * @param string $scheme
  9660. * @param string $root
  9661. * @return string
  9662. * @static
  9663. */
  9664. public static function formatRoot($scheme, $root = null)
  9665. {
  9666. return \Illuminate\Routing\UrlGenerator::formatRoot($scheme, $root);
  9667. }
  9668. /**
  9669. * Format the given URL segments into a single URL.
  9670. *
  9671. * @param string $root
  9672. * @param string $path
  9673. * @return string
  9674. * @static
  9675. */
  9676. public static function format($root, $path)
  9677. {
  9678. return \Illuminate\Routing\UrlGenerator::format($root, $path);
  9679. }
  9680. /**
  9681. * Determine if the given path is a valid URL.
  9682. *
  9683. * @param string $path
  9684. * @return bool
  9685. * @static
  9686. */
  9687. public static function isValidUrl($path)
  9688. {
  9689. return \Illuminate\Routing\UrlGenerator::isValidUrl($path);
  9690. }
  9691. /**
  9692. * Set the default named parameters used by the URL generator.
  9693. *
  9694. * @param array $defaults
  9695. * @return void
  9696. * @static
  9697. */
  9698. public static function defaults($defaults)
  9699. {
  9700. \Illuminate\Routing\UrlGenerator::defaults($defaults);
  9701. }
  9702. /**
  9703. * Force the scheme for URLs.
  9704. *
  9705. * @param string $schema
  9706. * @return void
  9707. * @static
  9708. */
  9709. public static function forceScheme($schema)
  9710. {
  9711. \Illuminate\Routing\UrlGenerator::forceScheme($schema);
  9712. }
  9713. /**
  9714. * Set the forced root URL.
  9715. *
  9716. * @param string $root
  9717. * @return void
  9718. * @static
  9719. */
  9720. public static function forceRootUrl($root)
  9721. {
  9722. \Illuminate\Routing\UrlGenerator::forceRootUrl($root);
  9723. }
  9724. /**
  9725. * Set a callback to be used to format the host of generated URLs.
  9726. *
  9727. * @param \Closure $callback
  9728. * @return $this
  9729. * @static
  9730. */
  9731. public static function formatHostUsing($callback)
  9732. {
  9733. return \Illuminate\Routing\UrlGenerator::formatHostUsing($callback);
  9734. }
  9735. /**
  9736. * Set a callback to be used to format the path of generated URLs.
  9737. *
  9738. * @param \Closure $callback
  9739. * @return $this
  9740. * @static
  9741. */
  9742. public static function formatPathUsing($callback)
  9743. {
  9744. return \Illuminate\Routing\UrlGenerator::formatPathUsing($callback);
  9745. }
  9746. /**
  9747. * Get the path formatter being used by the URL generator.
  9748. *
  9749. * @return \Closure
  9750. * @static
  9751. */
  9752. public static function pathFormatter()
  9753. {
  9754. return \Illuminate\Routing\UrlGenerator::pathFormatter();
  9755. }
  9756. /**
  9757. * Get the request instance.
  9758. *
  9759. * @return \Illuminate\Http\Request
  9760. * @static
  9761. */
  9762. public static function getRequest()
  9763. {
  9764. return \Illuminate\Routing\UrlGenerator::getRequest();
  9765. }
  9766. /**
  9767. * Set the current request instance.
  9768. *
  9769. * @param \Illuminate\Http\Request $request
  9770. * @return void
  9771. * @static
  9772. */
  9773. public static function setRequest($request)
  9774. {
  9775. \Illuminate\Routing\UrlGenerator::setRequest($request);
  9776. }
  9777. /**
  9778. * Set the route collection.
  9779. *
  9780. * @param \Illuminate\Routing\RouteCollection $routes
  9781. * @return $this
  9782. * @static
  9783. */
  9784. public static function setRoutes($routes)
  9785. {
  9786. return \Illuminate\Routing\UrlGenerator::setRoutes($routes);
  9787. }
  9788. /**
  9789. * Set the session resolver for the generator.
  9790. *
  9791. * @param callable $sessionResolver
  9792. * @return $this
  9793. * @static
  9794. */
  9795. public static function setSessionResolver($sessionResolver)
  9796. {
  9797. return \Illuminate\Routing\UrlGenerator::setSessionResolver($sessionResolver);
  9798. }
  9799. /**
  9800. * Set the root controller namespace.
  9801. *
  9802. * @param string $rootNamespace
  9803. * @return $this
  9804. * @static
  9805. */
  9806. public static function setRootControllerNamespace($rootNamespace)
  9807. {
  9808. return \Illuminate\Routing\UrlGenerator::setRootControllerNamespace($rootNamespace);
  9809. }
  9810. /**
  9811. * Register a custom macro.
  9812. *
  9813. * @param string $name
  9814. * @param callable $macro
  9815. * @return void
  9816. * @static
  9817. */
  9818. public static function macro($name, $macro)
  9819. {
  9820. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  9821. }
  9822. /**
  9823. * Checks if macro is registered.
  9824. *
  9825. * @param string $name
  9826. * @return bool
  9827. * @static
  9828. */
  9829. public static function hasMacro($name)
  9830. {
  9831. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  9832. }
  9833. }
  9834. class Validator {
  9835. /**
  9836. * Create a new Validator instance.
  9837. *
  9838. * @param array $data
  9839. * @param array $rules
  9840. * @param array $messages
  9841. * @param array $customAttributes
  9842. * @return \Illuminate\Validation\Validator
  9843. * @static
  9844. */
  9845. public static function make($data, $rules, $messages = array(), $customAttributes = array())
  9846. {
  9847. return \Illuminate\Validation\Factory::make($data, $rules, $messages, $customAttributes);
  9848. }
  9849. /**
  9850. * Validate the given data against the provided rules.
  9851. *
  9852. * @param array $data
  9853. * @param array $rules
  9854. * @param array $messages
  9855. * @param array $customAttributes
  9856. * @return void
  9857. * @throws \Illuminate\Validation\ValidationException
  9858. * @static
  9859. */
  9860. public static function validate($data, $rules, $messages = array(), $customAttributes = array())
  9861. {
  9862. \Illuminate\Validation\Factory::validate($data, $rules, $messages, $customAttributes);
  9863. }
  9864. /**
  9865. * Register a custom validator extension.
  9866. *
  9867. * @param string $rule
  9868. * @param \Closure|string $extension
  9869. * @param string $message
  9870. * @return void
  9871. * @static
  9872. */
  9873. public static function extend($rule, $extension, $message = null)
  9874. {
  9875. \Illuminate\Validation\Factory::extend($rule, $extension, $message);
  9876. }
  9877. /**
  9878. * Register a custom implicit validator extension.
  9879. *
  9880. * @param string $rule
  9881. * @param \Closure|string $extension
  9882. * @param string $message
  9883. * @return void
  9884. * @static
  9885. */
  9886. public static function extendImplicit($rule, $extension, $message = null)
  9887. {
  9888. \Illuminate\Validation\Factory::extendImplicit($rule, $extension, $message);
  9889. }
  9890. /**
  9891. * Register a custom dependent validator extension.
  9892. *
  9893. * @param string $rule
  9894. * @param \Closure|string $extension
  9895. * @param string $message
  9896. * @return void
  9897. * @static
  9898. */
  9899. public static function extendDependent($rule, $extension, $message = null)
  9900. {
  9901. \Illuminate\Validation\Factory::extendDependent($rule, $extension, $message);
  9902. }
  9903. /**
  9904. * Register a custom validator message replacer.
  9905. *
  9906. * @param string $rule
  9907. * @param \Closure|string $replacer
  9908. * @return void
  9909. * @static
  9910. */
  9911. public static function replacer($rule, $replacer)
  9912. {
  9913. \Illuminate\Validation\Factory::replacer($rule, $replacer);
  9914. }
  9915. /**
  9916. * Set the Validator instance resolver.
  9917. *
  9918. * @param \Closure $resolver
  9919. * @return void
  9920. * @static
  9921. */
  9922. public static function resolver($resolver)
  9923. {
  9924. \Illuminate\Validation\Factory::resolver($resolver);
  9925. }
  9926. /**
  9927. * Get the Translator implementation.
  9928. *
  9929. * @return \Illuminate\Contracts\Translation\Translator
  9930. * @static
  9931. */
  9932. public static function getTranslator()
  9933. {
  9934. return \Illuminate\Validation\Factory::getTranslator();
  9935. }
  9936. /**
  9937. * Get the Presence Verifier implementation.
  9938. *
  9939. * @return \Illuminate\Validation\PresenceVerifierInterface
  9940. * @static
  9941. */
  9942. public static function getPresenceVerifier()
  9943. {
  9944. return \Illuminate\Validation\Factory::getPresenceVerifier();
  9945. }
  9946. /**
  9947. * Set the Presence Verifier implementation.
  9948. *
  9949. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  9950. * @return void
  9951. * @static
  9952. */
  9953. public static function setPresenceVerifier($presenceVerifier)
  9954. {
  9955. \Illuminate\Validation\Factory::setPresenceVerifier($presenceVerifier);
  9956. }
  9957. }
  9958. class View {
  9959. /**
  9960. * Get the evaluated view contents for the given view.
  9961. *
  9962. * @param string $path
  9963. * @param array $data
  9964. * @param array $mergeData
  9965. * @return \Illuminate\Contracts\View\View
  9966. * @static
  9967. */
  9968. public static function file($path, $data = array(), $mergeData = array())
  9969. {
  9970. return \Illuminate\View\Factory::file($path, $data, $mergeData);
  9971. }
  9972. /**
  9973. * Get the evaluated view contents for the given view.
  9974. *
  9975. * @param string $view
  9976. * @param array $data
  9977. * @param array $mergeData
  9978. * @return \Illuminate\Contracts\View\View
  9979. * @static
  9980. */
  9981. public static function make($view, $data = array(), $mergeData = array())
  9982. {
  9983. return \Illuminate\View\Factory::make($view, $data, $mergeData);
  9984. }
  9985. /**
  9986. * Get the rendered content of the view based on a given condition.
  9987. *
  9988. * @param bool $condition
  9989. * @param string $view
  9990. * @param array $data
  9991. * @param array $mergeData
  9992. * @return string
  9993. * @static
  9994. */
  9995. public static function renderWhen($condition, $view, $data = array(), $mergeData = array())
  9996. {
  9997. return \Illuminate\View\Factory::renderWhen($condition, $view, $data, $mergeData);
  9998. }
  9999. /**
  10000. * Get the rendered contents of a partial from a loop.
  10001. *
  10002. * @param string $view
  10003. * @param array $data
  10004. * @param string $iterator
  10005. * @param string $empty
  10006. * @return string
  10007. * @static
  10008. */
  10009. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  10010. {
  10011. return \Illuminate\View\Factory::renderEach($view, $data, $iterator, $empty);
  10012. }
  10013. /**
  10014. * Determine if a given view exists.
  10015. *
  10016. * @param string $view
  10017. * @return bool
  10018. * @static
  10019. */
  10020. public static function exists($view)
  10021. {
  10022. return \Illuminate\View\Factory::exists($view);
  10023. }
  10024. /**
  10025. * Get the appropriate view engine for the given path.
  10026. *
  10027. * @param string $path
  10028. * @return \Illuminate\View\Engines\EngineInterface
  10029. * @throws \InvalidArgumentException
  10030. * @static
  10031. */
  10032. public static function getEngineFromPath($path)
  10033. {
  10034. return \Illuminate\View\Factory::getEngineFromPath($path);
  10035. }
  10036. /**
  10037. * Add a piece of shared data to the environment.
  10038. *
  10039. * @param array|string $key
  10040. * @param mixed $value
  10041. * @return mixed
  10042. * @static
  10043. */
  10044. public static function share($key, $value = null)
  10045. {
  10046. return \Illuminate\View\Factory::share($key, $value);
  10047. }
  10048. /**
  10049. * Increment the rendering counter.
  10050. *
  10051. * @return void
  10052. * @static
  10053. */
  10054. public static function incrementRender()
  10055. {
  10056. \Illuminate\View\Factory::incrementRender();
  10057. }
  10058. /**
  10059. * Decrement the rendering counter.
  10060. *
  10061. * @return void
  10062. * @static
  10063. */
  10064. public static function decrementRender()
  10065. {
  10066. \Illuminate\View\Factory::decrementRender();
  10067. }
  10068. /**
  10069. * Check if there are no active render operations.
  10070. *
  10071. * @return bool
  10072. * @static
  10073. */
  10074. public static function doneRendering()
  10075. {
  10076. return \Illuminate\View\Factory::doneRendering();
  10077. }
  10078. /**
  10079. * Add a location to the array of view locations.
  10080. *
  10081. * @param string $location
  10082. * @return void
  10083. * @static
  10084. */
  10085. public static function addLocation($location)
  10086. {
  10087. \Illuminate\View\Factory::addLocation($location);
  10088. }
  10089. /**
  10090. * Add a new namespace to the loader.
  10091. *
  10092. * @param string $namespace
  10093. * @param string|array $hints
  10094. * @return $this
  10095. * @static
  10096. */
  10097. public static function addNamespace($namespace, $hints)
  10098. {
  10099. return \Illuminate\View\Factory::addNamespace($namespace, $hints);
  10100. }
  10101. /**
  10102. * Prepend a new namespace to the loader.
  10103. *
  10104. * @param string $namespace
  10105. * @param string|array $hints
  10106. * @return $this
  10107. * @static
  10108. */
  10109. public static function prependNamespace($namespace, $hints)
  10110. {
  10111. return \Illuminate\View\Factory::prependNamespace($namespace, $hints);
  10112. }
  10113. /**
  10114. * Replace the namespace hints for the given namespace.
  10115. *
  10116. * @param string $namespace
  10117. * @param string|array $hints
  10118. * @return $this
  10119. * @static
  10120. */
  10121. public static function replaceNamespace($namespace, $hints)
  10122. {
  10123. return \Illuminate\View\Factory::replaceNamespace($namespace, $hints);
  10124. }
  10125. /**
  10126. * Register a valid view extension and its engine.
  10127. *
  10128. * @param string $extension
  10129. * @param string $engine
  10130. * @param \Closure $resolver
  10131. * @return void
  10132. * @static
  10133. */
  10134. public static function addExtension($extension, $engine, $resolver = null)
  10135. {
  10136. \Illuminate\View\Factory::addExtension($extension, $engine, $resolver);
  10137. }
  10138. /**
  10139. * Flush all of the factory state like sections and stacks.
  10140. *
  10141. * @return void
  10142. * @static
  10143. */
  10144. public static function flushState()
  10145. {
  10146. \Illuminate\View\Factory::flushState();
  10147. }
  10148. /**
  10149. * Flush all of the section contents if done rendering.
  10150. *
  10151. * @return void
  10152. * @static
  10153. */
  10154. public static function flushStateIfDoneRendering()
  10155. {
  10156. \Illuminate\View\Factory::flushStateIfDoneRendering();
  10157. }
  10158. /**
  10159. * Get the extension to engine bindings.
  10160. *
  10161. * @return array
  10162. * @static
  10163. */
  10164. public static function getExtensions()
  10165. {
  10166. return \Illuminate\View\Factory::getExtensions();
  10167. }
  10168. /**
  10169. * Get the engine resolver instance.
  10170. *
  10171. * @return \Illuminate\View\Engines\EngineResolver
  10172. * @static
  10173. */
  10174. public static function getEngineResolver()
  10175. {
  10176. return \Illuminate\View\Factory::getEngineResolver();
  10177. }
  10178. /**
  10179. * Get the view finder instance.
  10180. *
  10181. * @return \Illuminate\View\ViewFinderInterface
  10182. * @static
  10183. */
  10184. public static function getFinder()
  10185. {
  10186. return \Illuminate\View\Factory::getFinder();
  10187. }
  10188. /**
  10189. * Set the view finder instance.
  10190. *
  10191. * @param \Illuminate\View\ViewFinderInterface $finder
  10192. * @return void
  10193. * @static
  10194. */
  10195. public static function setFinder($finder)
  10196. {
  10197. \Illuminate\View\Factory::setFinder($finder);
  10198. }
  10199. /**
  10200. * Flush the cache of views located by the finder.
  10201. *
  10202. * @return void
  10203. * @static
  10204. */
  10205. public static function flushFinderCache()
  10206. {
  10207. \Illuminate\View\Factory::flushFinderCache();
  10208. }
  10209. /**
  10210. * Get the event dispatcher instance.
  10211. *
  10212. * @return \Illuminate\Contracts\Events\Dispatcher
  10213. * @static
  10214. */
  10215. public static function getDispatcher()
  10216. {
  10217. return \Illuminate\View\Factory::getDispatcher();
  10218. }
  10219. /**
  10220. * Set the event dispatcher instance.
  10221. *
  10222. * @param \Illuminate\Contracts\Events\Dispatcher $events
  10223. * @return void
  10224. * @static
  10225. */
  10226. public static function setDispatcher($events)
  10227. {
  10228. \Illuminate\View\Factory::setDispatcher($events);
  10229. }
  10230. /**
  10231. * Get the IoC container instance.
  10232. *
  10233. * @return \Illuminate\Contracts\Container\Container
  10234. * @static
  10235. */
  10236. public static function getContainer()
  10237. {
  10238. return \Illuminate\View\Factory::getContainer();
  10239. }
  10240. /**
  10241. * Set the IoC container instance.
  10242. *
  10243. * @param \Illuminate\Contracts\Container\Container $container
  10244. * @return void
  10245. * @static
  10246. */
  10247. public static function setContainer($container)
  10248. {
  10249. \Illuminate\View\Factory::setContainer($container);
  10250. }
  10251. /**
  10252. * Get an item from the shared data.
  10253. *
  10254. * @param string $key
  10255. * @param mixed $default
  10256. * @return mixed
  10257. * @static
  10258. */
  10259. public static function shared($key, $default = null)
  10260. {
  10261. return \Illuminate\View\Factory::shared($key, $default);
  10262. }
  10263. /**
  10264. * Get all of the shared data for the environment.
  10265. *
  10266. * @return array
  10267. * @static
  10268. */
  10269. public static function getShared()
  10270. {
  10271. return \Illuminate\View\Factory::getShared();
  10272. }
  10273. /**
  10274. * Start a component rendering process.
  10275. *
  10276. * @param string $name
  10277. * @param array $data
  10278. * @return void
  10279. * @static
  10280. */
  10281. public static function startComponent($name, $data = array())
  10282. {
  10283. \Illuminate\View\Factory::startComponent($name, $data);
  10284. }
  10285. /**
  10286. * Render the current component.
  10287. *
  10288. * @return string
  10289. * @static
  10290. */
  10291. public static function renderComponent()
  10292. {
  10293. return \Illuminate\View\Factory::renderComponent();
  10294. }
  10295. /**
  10296. * Start the slot rendering process.
  10297. *
  10298. * @param string $name
  10299. * @param string|null $content
  10300. * @return void
  10301. * @static
  10302. */
  10303. public static function slot($name, $content = null)
  10304. {
  10305. \Illuminate\View\Factory::slot($name, $content);
  10306. }
  10307. /**
  10308. * Save the slot content for rendering.
  10309. *
  10310. * @return void
  10311. * @static
  10312. */
  10313. public static function endSlot()
  10314. {
  10315. \Illuminate\View\Factory::endSlot();
  10316. }
  10317. /**
  10318. * Register a view creator event.
  10319. *
  10320. * @param array|string $views
  10321. * @param \Closure|string $callback
  10322. * @return array
  10323. * @static
  10324. */
  10325. public static function creator($views, $callback)
  10326. {
  10327. return \Illuminate\View\Factory::creator($views, $callback);
  10328. }
  10329. /**
  10330. * Register multiple view composers via an array.
  10331. *
  10332. * @param array $composers
  10333. * @return array
  10334. * @static
  10335. */
  10336. public static function composers($composers)
  10337. {
  10338. return \Illuminate\View\Factory::composers($composers);
  10339. }
  10340. /**
  10341. * Register a view composer event.
  10342. *
  10343. * @param array|string $views
  10344. * @param \Closure|string $callback
  10345. * @return array
  10346. * @static
  10347. */
  10348. public static function composer($views, $callback)
  10349. {
  10350. return \Illuminate\View\Factory::composer($views, $callback);
  10351. }
  10352. /**
  10353. * Call the composer for a given view.
  10354. *
  10355. * @param \Illuminate\Contracts\View\View $view
  10356. * @return void
  10357. * @static
  10358. */
  10359. public static function callComposer($view)
  10360. {
  10361. \Illuminate\View\Factory::callComposer($view);
  10362. }
  10363. /**
  10364. * Call the creator for a given view.
  10365. *
  10366. * @param \Illuminate\Contracts\View\View $view
  10367. * @return void
  10368. * @static
  10369. */
  10370. public static function callCreator($view)
  10371. {
  10372. \Illuminate\View\Factory::callCreator($view);
  10373. }
  10374. /**
  10375. * Start injecting content into a section.
  10376. *
  10377. * @param string $section
  10378. * @param string|null $content
  10379. * @return void
  10380. * @static
  10381. */
  10382. public static function startSection($section, $content = null)
  10383. {
  10384. \Illuminate\View\Factory::startSection($section, $content);
  10385. }
  10386. /**
  10387. * Inject inline content into a section.
  10388. *
  10389. * @param string $section
  10390. * @param string $content
  10391. * @return void
  10392. * @static
  10393. */
  10394. public static function inject($section, $content)
  10395. {
  10396. \Illuminate\View\Factory::inject($section, $content);
  10397. }
  10398. /**
  10399. * Stop injecting content into a section and return its contents.
  10400. *
  10401. * @return string
  10402. * @static
  10403. */
  10404. public static function yieldSection()
  10405. {
  10406. return \Illuminate\View\Factory::yieldSection();
  10407. }
  10408. /**
  10409. * Stop injecting content into a section.
  10410. *
  10411. * @param bool $overwrite
  10412. * @return string
  10413. * @throws \InvalidArgumentException
  10414. * @static
  10415. */
  10416. public static function stopSection($overwrite = false)
  10417. {
  10418. return \Illuminate\View\Factory::stopSection($overwrite);
  10419. }
  10420. /**
  10421. * Stop injecting content into a section and append it.
  10422. *
  10423. * @return string
  10424. * @throws \InvalidArgumentException
  10425. * @static
  10426. */
  10427. public static function appendSection()
  10428. {
  10429. return \Illuminate\View\Factory::appendSection();
  10430. }
  10431. /**
  10432. * Get the string contents of a section.
  10433. *
  10434. * @param string $section
  10435. * @param string $default
  10436. * @return string
  10437. * @static
  10438. */
  10439. public static function yieldContent($section, $default = '')
  10440. {
  10441. return \Illuminate\View\Factory::yieldContent($section, $default);
  10442. }
  10443. /**
  10444. * Get the parent placeholder for the current request.
  10445. *
  10446. * @param string $section
  10447. * @return string
  10448. * @static
  10449. */
  10450. public static function parentPlaceholder($section = '')
  10451. {
  10452. return \Illuminate\View\Factory::parentPlaceholder($section);
  10453. }
  10454. /**
  10455. * Check if section exists.
  10456. *
  10457. * @param string $name
  10458. * @return bool
  10459. * @static
  10460. */
  10461. public static function hasSection($name)
  10462. {
  10463. return \Illuminate\View\Factory::hasSection($name);
  10464. }
  10465. /**
  10466. * Get the contents of a section.
  10467. *
  10468. * @param string $name
  10469. * @param string $default
  10470. * @return mixed
  10471. * @static
  10472. */
  10473. public static function getSection($name, $default = null)
  10474. {
  10475. return \Illuminate\View\Factory::getSection($name, $default);
  10476. }
  10477. /**
  10478. * Get the entire array of sections.
  10479. *
  10480. * @return array
  10481. * @static
  10482. */
  10483. public static function getSections()
  10484. {
  10485. return \Illuminate\View\Factory::getSections();
  10486. }
  10487. /**
  10488. * Flush all of the sections.
  10489. *
  10490. * @return void
  10491. * @static
  10492. */
  10493. public static function flushSections()
  10494. {
  10495. \Illuminate\View\Factory::flushSections();
  10496. }
  10497. /**
  10498. * Add new loop to the stack.
  10499. *
  10500. * @param \Countable|array $data
  10501. * @return void
  10502. * @static
  10503. */
  10504. public static function addLoop($data)
  10505. {
  10506. \Illuminate\View\Factory::addLoop($data);
  10507. }
  10508. /**
  10509. * Increment the top loop's indices.
  10510. *
  10511. * @return void
  10512. * @static
  10513. */
  10514. public static function incrementLoopIndices()
  10515. {
  10516. \Illuminate\View\Factory::incrementLoopIndices();
  10517. }
  10518. /**
  10519. * Pop a loop from the top of the loop stack.
  10520. *
  10521. * @return void
  10522. * @static
  10523. */
  10524. public static function popLoop()
  10525. {
  10526. \Illuminate\View\Factory::popLoop();
  10527. }
  10528. /**
  10529. * Get an instance of the last loop in the stack.
  10530. *
  10531. * @return \stdClass|null
  10532. * @static
  10533. */
  10534. public static function getLastLoop()
  10535. {
  10536. return \Illuminate\View\Factory::getLastLoop();
  10537. }
  10538. /**
  10539. * Get the entire loop stack.
  10540. *
  10541. * @return array
  10542. * @static
  10543. */
  10544. public static function getLoopStack()
  10545. {
  10546. return \Illuminate\View\Factory::getLoopStack();
  10547. }
  10548. /**
  10549. * Start injecting content into a push section.
  10550. *
  10551. * @param string $section
  10552. * @param string $content
  10553. * @return void
  10554. * @static
  10555. */
  10556. public static function startPush($section, $content = '')
  10557. {
  10558. \Illuminate\View\Factory::startPush($section, $content);
  10559. }
  10560. /**
  10561. * Stop injecting content into a push section.
  10562. *
  10563. * @return string
  10564. * @throws \InvalidArgumentException
  10565. * @static
  10566. */
  10567. public static function stopPush()
  10568. {
  10569. return \Illuminate\View\Factory::stopPush();
  10570. }
  10571. /**
  10572. * Start prepending content into a push section.
  10573. *
  10574. * @param string $section
  10575. * @param string $content
  10576. * @return void
  10577. * @static
  10578. */
  10579. public static function startPrepend($section, $content = '')
  10580. {
  10581. \Illuminate\View\Factory::startPrepend($section, $content);
  10582. }
  10583. /**
  10584. * Stop prepending content into a push section.
  10585. *
  10586. * @return string
  10587. * @throws \InvalidArgumentException
  10588. * @static
  10589. */
  10590. public static function stopPrepend()
  10591. {
  10592. return \Illuminate\View\Factory::stopPrepend();
  10593. }
  10594. /**
  10595. * Get the string contents of a push section.
  10596. *
  10597. * @param string $section
  10598. * @param string $default
  10599. * @return string
  10600. * @static
  10601. */
  10602. public static function yieldPushContent($section, $default = '')
  10603. {
  10604. return \Illuminate\View\Factory::yieldPushContent($section, $default);
  10605. }
  10606. /**
  10607. * Flush all of the stacks.
  10608. *
  10609. * @return void
  10610. * @static
  10611. */
  10612. public static function flushStacks()
  10613. {
  10614. \Illuminate\View\Factory::flushStacks();
  10615. }
  10616. /**
  10617. * Start a translation block.
  10618. *
  10619. * @param array $replacements
  10620. * @return void
  10621. * @static
  10622. */
  10623. public static function startTranslation($replacements = array())
  10624. {
  10625. \Illuminate\View\Factory::startTranslation($replacements);
  10626. }
  10627. /**
  10628. * Render the current translation.
  10629. *
  10630. * @return string
  10631. * @static
  10632. */
  10633. public static function renderTranslation()
  10634. {
  10635. return \Illuminate\View\Factory::renderTranslation();
  10636. }
  10637. }
  10638. }
  10639. namespace Mews\Captcha\Facades {
  10640. class Captcha {
  10641. /**
  10642. * Create captcha image
  10643. *
  10644. * @param string $config
  10645. * @param boolean $api
  10646. * @return \Mews\Captcha\ImageManager->response
  10647. * @static
  10648. */
  10649. public static function create($config = 'default', $api = false)
  10650. {
  10651. return \Mews\Captcha\Captcha::create($config, $api);
  10652. }
  10653. /**
  10654. * Captcha check
  10655. *
  10656. * @param $value
  10657. * @return bool
  10658. * @static
  10659. */
  10660. public static function check($value)
  10661. {
  10662. return \Mews\Captcha\Captcha::check($value);
  10663. }
  10664. /**
  10665. * Captcha check
  10666. *
  10667. * @param $value
  10668. * @return bool
  10669. * @static
  10670. */
  10671. public static function check_api($value, $key)
  10672. {
  10673. return \Mews\Captcha\Captcha::check_api($value, $key);
  10674. }
  10675. /**
  10676. * Generate captcha image source
  10677. *
  10678. * @param null $config
  10679. * @return string
  10680. * @static
  10681. */
  10682. public static function src($config = null)
  10683. {
  10684. return \Mews\Captcha\Captcha::src($config);
  10685. }
  10686. /**
  10687. * Generate captcha image html tag
  10688. *
  10689. * @param null $config
  10690. * @param array $attrs HTML attributes supplied to the image tag where key is the attribute
  10691. * and the value is the attribute value
  10692. * @return string
  10693. * @static
  10694. */
  10695. public static function img($config = null, $attrs = array())
  10696. {
  10697. return \Mews\Captcha\Captcha::img($config, $attrs);
  10698. }
  10699. }
  10700. }
  10701. namespace Jenssegers\Agent\Facades {
  10702. class Agent {
  10703. /**
  10704. * Get all detection rules. These rules include the additional
  10705. * platforms and browsers.
  10706. *
  10707. * @return array
  10708. * @static
  10709. */
  10710. public static function getDetectionRulesExtended()
  10711. {
  10712. return \Jenssegers\Agent\Agent::getDetectionRulesExtended();
  10713. }
  10714. /**
  10715. *
  10716. *
  10717. * @inheritdoc
  10718. * @static
  10719. */
  10720. public static function getRules()
  10721. {
  10722. return \Jenssegers\Agent\Agent::getRules();
  10723. }
  10724. /**
  10725. *
  10726. *
  10727. * @return \Jenssegers\Agent\CrawlerDetect
  10728. * @static
  10729. */
  10730. public static function getCrawlerDetect()
  10731. {
  10732. return \Jenssegers\Agent\Agent::getCrawlerDetect();
  10733. }
  10734. /**
  10735. * Get accept languages.
  10736. *
  10737. * @param string $acceptLanguage
  10738. * @return array
  10739. * @static
  10740. */
  10741. public static function languages($acceptLanguage = null)
  10742. {
  10743. return \Jenssegers\Agent\Agent::languages($acceptLanguage);
  10744. }
  10745. /**
  10746. * Get the browser name.
  10747. *
  10748. * @param null $userAgent
  10749. * @return string
  10750. * @static
  10751. */
  10752. public static function browser($userAgent = null)
  10753. {
  10754. return \Jenssegers\Agent\Agent::browser($userAgent);
  10755. }
  10756. /**
  10757. * Get the platform name.
  10758. *
  10759. * @param string $userAgent
  10760. * @return string
  10761. * @static
  10762. */
  10763. public static function platform($userAgent = null)
  10764. {
  10765. return \Jenssegers\Agent\Agent::platform($userAgent);
  10766. }
  10767. /**
  10768. * Get the device name.
  10769. *
  10770. * @param string $userAgent
  10771. * @return string
  10772. * @static
  10773. */
  10774. public static function device($userAgent = null)
  10775. {
  10776. return \Jenssegers\Agent\Agent::device($userAgent);
  10777. }
  10778. /**
  10779. * Check if the device is a desktop computer.
  10780. *
  10781. * @param string $userAgent deprecated
  10782. * @param array $httpHeaders deprecated
  10783. * @return bool
  10784. * @static
  10785. */
  10786. public static function isDesktop($userAgent = null, $httpHeaders = null)
  10787. {
  10788. return \Jenssegers\Agent\Agent::isDesktop($userAgent, $httpHeaders);
  10789. }
  10790. /**
  10791. * Check if the device is a mobile phone.
  10792. *
  10793. * @param string $userAgent deprecated
  10794. * @param array $httpHeaders deprecated
  10795. * @return bool
  10796. * @static
  10797. */
  10798. public static function isPhone($userAgent = null, $httpHeaders = null)
  10799. {
  10800. return \Jenssegers\Agent\Agent::isPhone($userAgent, $httpHeaders);
  10801. }
  10802. /**
  10803. * Get the robot name.
  10804. *
  10805. * @param string $userAgent
  10806. * @return string|bool
  10807. * @static
  10808. */
  10809. public static function robot($userAgent = null)
  10810. {
  10811. return \Jenssegers\Agent\Agent::robot($userAgent);
  10812. }
  10813. /**
  10814. * Check if device is a robot.
  10815. *
  10816. * @param string $userAgent
  10817. * @return bool
  10818. * @static
  10819. */
  10820. public static function isRobot($userAgent = null)
  10821. {
  10822. return \Jenssegers\Agent\Agent::isRobot($userAgent);
  10823. }
  10824. /**
  10825. *
  10826. *
  10827. * @inheritdoc
  10828. * @static
  10829. */
  10830. public static function version($propertyName, $type = 'text')
  10831. {
  10832. return \Jenssegers\Agent\Agent::version($propertyName, $type);
  10833. }
  10834. /**
  10835. * Get the current script version.
  10836. *
  10837. * This is useful for the demo.php file,
  10838. * so people can check on what version they are testing
  10839. * for mobile devices.
  10840. *
  10841. * @return string The version number in semantic version format.
  10842. * @static
  10843. */
  10844. public static function getScriptVersion()
  10845. {
  10846. //Method inherited from \Mobile_Detect
  10847. return \Jenssegers\Agent\Agent::getScriptVersion();
  10848. }
  10849. /**
  10850. * Set the HTTP Headers. Must be PHP-flavored. This method will reset existing headers.
  10851. *
  10852. * @param array $httpHeaders The headers to set. If null, then using PHP's _SERVER to extract
  10853. * the headers. The default null is left for backwards compatibility.
  10854. * @static
  10855. */
  10856. public static function setHttpHeaders($httpHeaders = null)
  10857. {
  10858. //Method inherited from \Mobile_Detect
  10859. return \Jenssegers\Agent\Agent::setHttpHeaders($httpHeaders);
  10860. }
  10861. /**
  10862. * Retrieves the HTTP headers.
  10863. *
  10864. * @return array
  10865. * @static
  10866. */
  10867. public static function getHttpHeaders()
  10868. {
  10869. //Method inherited from \Mobile_Detect
  10870. return \Jenssegers\Agent\Agent::getHttpHeaders();
  10871. }
  10872. /**
  10873. * Retrieves a particular header. If it doesn't exist, no exception/error is caused.
  10874. *
  10875. * Simply null is returned.
  10876. *
  10877. * @param string $header The name of the header to retrieve. Can be HTTP compliant such as
  10878. * "User-Agent" or "X-Device-User-Agent" or can be php-esque with the
  10879. * all-caps, HTTP_ prefixed, underscore seperated awesomeness.
  10880. * @return string|null The value of the header.
  10881. * @static
  10882. */
  10883. public static function getHttpHeader($header)
  10884. {
  10885. //Method inherited from \Mobile_Detect
  10886. return \Jenssegers\Agent\Agent::getHttpHeader($header);
  10887. }
  10888. /**
  10889. *
  10890. *
  10891. * @static
  10892. */
  10893. public static function getMobileHeaders()
  10894. {
  10895. //Method inherited from \Mobile_Detect
  10896. return \Jenssegers\Agent\Agent::getMobileHeaders();
  10897. }
  10898. /**
  10899. * Get all possible HTTP headers that
  10900. * can contain the User-Agent string.
  10901. *
  10902. * @return array List of HTTP headers.
  10903. * @static
  10904. */
  10905. public static function getUaHttpHeaders()
  10906. {
  10907. //Method inherited from \Mobile_Detect
  10908. return \Jenssegers\Agent\Agent::getUaHttpHeaders();
  10909. }
  10910. /**
  10911. * Set CloudFront headers
  10912. * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
  10913. *
  10914. * @param array $cfHeaders List of HTTP headers
  10915. * @return boolean If there were CloudFront headers to be set
  10916. * @static
  10917. */
  10918. public static function setCfHeaders($cfHeaders = null)
  10919. {
  10920. //Method inherited from \Mobile_Detect
  10921. return \Jenssegers\Agent\Agent::setCfHeaders($cfHeaders);
  10922. }
  10923. /**
  10924. * Retrieves the cloudfront headers.
  10925. *
  10926. * @return array
  10927. * @static
  10928. */
  10929. public static function getCfHeaders()
  10930. {
  10931. //Method inherited from \Mobile_Detect
  10932. return \Jenssegers\Agent\Agent::getCfHeaders();
  10933. }
  10934. /**
  10935. * Set the User-Agent to be used.
  10936. *
  10937. * @param string $userAgent The user agent string to set.
  10938. * @return string|null
  10939. * @static
  10940. */
  10941. public static function setUserAgent($userAgent = null)
  10942. {
  10943. //Method inherited from \Mobile_Detect
  10944. return \Jenssegers\Agent\Agent::setUserAgent($userAgent);
  10945. }
  10946. /**
  10947. * Retrieve the User-Agent.
  10948. *
  10949. * @return string|null The user agent if it's set.
  10950. * @static
  10951. */
  10952. public static function getUserAgent()
  10953. {
  10954. //Method inherited from \Mobile_Detect
  10955. return \Jenssegers\Agent\Agent::getUserAgent();
  10956. }
  10957. /**
  10958. * Set the detection type. Must be one of self::DETECTION_TYPE_MOBILE or
  10959. * self::DETECTION_TYPE_EXTENDED. Otherwise, nothing is set.
  10960. *
  10961. * @deprecated since version 2.6.9
  10962. * @param string $type The type. Must be a self::DETECTION_TYPE_* constant. The default
  10963. * parameter is null which will default to self::DETECTION_TYPE_MOBILE.
  10964. * @static
  10965. */
  10966. public static function setDetectionType($type = null)
  10967. {
  10968. //Method inherited from \Mobile_Detect
  10969. return \Jenssegers\Agent\Agent::setDetectionType($type);
  10970. }
  10971. /**
  10972. *
  10973. *
  10974. * @static
  10975. */
  10976. public static function getMatchingRegex()
  10977. {
  10978. //Method inherited from \Mobile_Detect
  10979. return \Jenssegers\Agent\Agent::getMatchingRegex();
  10980. }
  10981. /**
  10982. *
  10983. *
  10984. * @static
  10985. */
  10986. public static function getMatchesArray()
  10987. {
  10988. //Method inherited from \Mobile_Detect
  10989. return \Jenssegers\Agent\Agent::getMatchesArray();
  10990. }
  10991. /**
  10992. * Retrieve the list of known phone devices.
  10993. *
  10994. * @return array List of phone devices.
  10995. * @static
  10996. */
  10997. public static function getPhoneDevices()
  10998. {
  10999. //Method inherited from \Mobile_Detect
  11000. return \Jenssegers\Agent\Agent::getPhoneDevices();
  11001. }
  11002. /**
  11003. * Retrieve the list of known tablet devices.
  11004. *
  11005. * @return array List of tablet devices.
  11006. * @static
  11007. */
  11008. public static function getTabletDevices()
  11009. {
  11010. //Method inherited from \Mobile_Detect
  11011. return \Jenssegers\Agent\Agent::getTabletDevices();
  11012. }
  11013. /**
  11014. * Alias for getBrowsers() method.
  11015. *
  11016. * @return array List of user agents.
  11017. * @static
  11018. */
  11019. public static function getUserAgents()
  11020. {
  11021. //Method inherited from \Mobile_Detect
  11022. return \Jenssegers\Agent\Agent::getUserAgents();
  11023. }
  11024. /**
  11025. * Retrieve the list of known browsers. Specifically, the user agents.
  11026. *
  11027. * @return array List of browsers / user agents.
  11028. * @static
  11029. */
  11030. public static function getBrowsers()
  11031. {
  11032. //Method inherited from \Mobile_Detect
  11033. return \Jenssegers\Agent\Agent::getBrowsers();
  11034. }
  11035. /**
  11036. * Retrieve the list of known utilities.
  11037. *
  11038. * @return array List of utilities.
  11039. * @static
  11040. */
  11041. public static function getUtilities()
  11042. {
  11043. //Method inherited from \Mobile_Detect
  11044. return \Jenssegers\Agent\Agent::getUtilities();
  11045. }
  11046. /**
  11047. * Method gets the mobile detection rules. This method is used for the magic methods $detect->is*().
  11048. *
  11049. * @deprecated since version 2.6.9
  11050. * @return array All the rules (but not extended).
  11051. * @static
  11052. */
  11053. public static function getMobileDetectionRules()
  11054. {
  11055. //Method inherited from \Mobile_Detect
  11056. return \Jenssegers\Agent\Agent::getMobileDetectionRules();
  11057. }
  11058. /**
  11059. * Method gets the mobile detection rules + utilities.
  11060. *
  11061. * The reason this is separate is because utilities rules
  11062. * don't necessary imply mobile. This method is used inside
  11063. * the new $detect->is('stuff') method.
  11064. *
  11065. * @deprecated since version 2.6.9
  11066. * @return array All the rules + extended.
  11067. * @static
  11068. */
  11069. public static function getMobileDetectionRulesExtended()
  11070. {
  11071. //Method inherited from \Mobile_Detect
  11072. return \Jenssegers\Agent\Agent::getMobileDetectionRulesExtended();
  11073. }
  11074. /**
  11075. * Retrieve the list of mobile operating systems.
  11076. *
  11077. * @return array The list of mobile operating systems.
  11078. * @static
  11079. */
  11080. public static function getOperatingSystems()
  11081. {
  11082. //Method inherited from \Mobile_Detect
  11083. return \Jenssegers\Agent\Agent::getOperatingSystems();
  11084. }
  11085. /**
  11086. * Check the HTTP headers for signs of mobile.
  11087. *
  11088. * This is the fastest mobile check possible; it's used
  11089. * inside isMobile() method.
  11090. *
  11091. * @return bool
  11092. * @static
  11093. */
  11094. public static function checkHttpHeadersForMobile()
  11095. {
  11096. //Method inherited from \Mobile_Detect
  11097. return \Jenssegers\Agent\Agent::checkHttpHeadersForMobile();
  11098. }
  11099. /**
  11100. * Check if the device is mobile.
  11101. *
  11102. * Returns true if any type of mobile device detected, including special ones
  11103. *
  11104. * @param null $userAgent deprecated
  11105. * @param null $httpHeaders deprecated
  11106. * @return bool
  11107. * @static
  11108. */
  11109. public static function isMobile($userAgent = null, $httpHeaders = null)
  11110. {
  11111. //Method inherited from \Mobile_Detect
  11112. return \Jenssegers\Agent\Agent::isMobile($userAgent, $httpHeaders);
  11113. }
  11114. /**
  11115. * Check if the device is a tablet.
  11116. *
  11117. * Return true if any type of tablet device is detected.
  11118. *
  11119. * @param string $userAgent deprecated
  11120. * @param array $httpHeaders deprecated
  11121. * @return bool
  11122. * @static
  11123. */
  11124. public static function isTablet($userAgent = null, $httpHeaders = null)
  11125. {
  11126. //Method inherited from \Mobile_Detect
  11127. return \Jenssegers\Agent\Agent::isTablet($userAgent, $httpHeaders);
  11128. }
  11129. /**
  11130. * This method checks for a certain property in the
  11131. * userAgent.
  11132. *
  11133. * @todo : The httpHeaders part is not yet used.
  11134. * @param string $key
  11135. * @param string $userAgent deprecated
  11136. * @param string $httpHeaders deprecated
  11137. * @return bool|int|null
  11138. * @static
  11139. */
  11140. public static function is($key, $userAgent = null, $httpHeaders = null)
  11141. {
  11142. //Method inherited from \Mobile_Detect
  11143. return \Jenssegers\Agent\Agent::is($key, $userAgent, $httpHeaders);
  11144. }
  11145. /**
  11146. * Some detection rules are relative (not standard),
  11147. * because of the diversity of devices, vendors and
  11148. * their conventions in representing the User-Agent or
  11149. * the HTTP headers.
  11150. *
  11151. * This method will be used to check custom regexes against
  11152. * the User-Agent string.
  11153. *
  11154. * @param $regex
  11155. * @param string $userAgent
  11156. * @return bool
  11157. * @todo : search in the HTTP headers too.
  11158. * @static
  11159. */
  11160. public static function match($regex, $userAgent = null)
  11161. {
  11162. //Method inherited from \Mobile_Detect
  11163. return \Jenssegers\Agent\Agent::match($regex, $userAgent);
  11164. }
  11165. /**
  11166. * Get the properties array.
  11167. *
  11168. * @return array
  11169. * @static
  11170. */
  11171. public static function getProperties()
  11172. {
  11173. //Method inherited from \Mobile_Detect
  11174. return \Jenssegers\Agent\Agent::getProperties();
  11175. }
  11176. /**
  11177. * Prepare the version number.
  11178. *
  11179. * @todo Remove the error supression from str_replace() call.
  11180. * @param string $ver The string version, like "2.6.21.2152";
  11181. * @return float
  11182. * @static
  11183. */
  11184. public static function prepareVersionNo($ver)
  11185. {
  11186. //Method inherited from \Mobile_Detect
  11187. return \Jenssegers\Agent\Agent::prepareVersionNo($ver);
  11188. }
  11189. /**
  11190. * Retrieve the mobile grading, using self::MOBILE_GRADE_* constants.
  11191. *
  11192. * @return string One of the self::MOBILE_GRADE_* constants.
  11193. * @static
  11194. */
  11195. public static function mobileGrade()
  11196. {
  11197. //Method inherited from \Mobile_Detect
  11198. return \Jenssegers\Agent\Agent::mobileGrade();
  11199. }
  11200. }
  11201. }
  11202. namespace Mews\Purifier\Facades {
  11203. class Purifier {
  11204. /**
  11205. *
  11206. *
  11207. * @param $dirty
  11208. * @param null $config
  11209. * @return mixed
  11210. * @static
  11211. */
  11212. public static function clean($dirty, $config = null)
  11213. {
  11214. return \Mews\Purifier\Purifier::clean($dirty, $config);
  11215. }
  11216. /**
  11217. * Get HTMLPurifier instance.
  11218. *
  11219. * @return \HTMLPurifier
  11220. * @static
  11221. */
  11222. public static function getInstance()
  11223. {
  11224. return \Mews\Purifier\Purifier::getInstance();
  11225. }
  11226. }
  11227. }
  11228. namespace {
  11229. class App extends \Illuminate\Support\Facades\App {}
  11230. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  11231. class Auth extends \Illuminate\Support\Facades\Auth {}
  11232. class Blade extends \Illuminate\Support\Facades\Blade {}
  11233. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  11234. class Bus extends \Illuminate\Support\Facades\Bus {}
  11235. class Cache extends \Illuminate\Support\Facades\Cache {}
  11236. class Config extends \Illuminate\Support\Facades\Config {}
  11237. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  11238. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  11239. class DB extends \Illuminate\Support\Facades\DB {}
  11240. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  11241. /**
  11242. * Create and return an un-saved model instance.
  11243. *
  11244. * @param array $attributes
  11245. * @return \Illuminate\Database\Eloquent\Model
  11246. * @static
  11247. */
  11248. public static function make($attributes = array())
  11249. {
  11250. return \Illuminate\Database\Eloquent\Builder::make($attributes);
  11251. }
  11252. /**
  11253. * Register a new global scope.
  11254. *
  11255. * @param string $identifier
  11256. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  11257. * @return $this
  11258. * @static
  11259. */
  11260. public static function withGlobalScope($identifier, $scope)
  11261. {
  11262. return \Illuminate\Database\Eloquent\Builder::withGlobalScope($identifier, $scope);
  11263. }
  11264. /**
  11265. * Remove a registered global scope.
  11266. *
  11267. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  11268. * @return $this
  11269. * @static
  11270. */
  11271. public static function withoutGlobalScope($scope)
  11272. {
  11273. return \Illuminate\Database\Eloquent\Builder::withoutGlobalScope($scope);
  11274. }
  11275. /**
  11276. * Remove all or passed registered global scopes.
  11277. *
  11278. * @param array|null $scopes
  11279. * @return $this
  11280. * @static
  11281. */
  11282. public static function withoutGlobalScopes($scopes = null)
  11283. {
  11284. return \Illuminate\Database\Eloquent\Builder::withoutGlobalScopes($scopes);
  11285. }
  11286. /**
  11287. * Get an array of global scopes that were removed from the query.
  11288. *
  11289. * @return array
  11290. * @static
  11291. */
  11292. public static function removedScopes()
  11293. {
  11294. return \Illuminate\Database\Eloquent\Builder::removedScopes();
  11295. }
  11296. /**
  11297. * Add a where clause on the primary key to the query.
  11298. *
  11299. * @param mixed $id
  11300. * @return $this
  11301. * @static
  11302. */
  11303. public static function whereKey($id)
  11304. {
  11305. return \Illuminate\Database\Eloquent\Builder::whereKey($id);
  11306. }
  11307. /**
  11308. * Add a basic where clause to the query.
  11309. *
  11310. * @param string|array|\Closure $column
  11311. * @param string $operator
  11312. * @param mixed $value
  11313. * @param string $boolean
  11314. * @return $this
  11315. * @static
  11316. */
  11317. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  11318. {
  11319. return \Illuminate\Database\Eloquent\Builder::where($column, $operator, $value, $boolean);
  11320. }
  11321. /**
  11322. * Add an "or where" clause to the query.
  11323. *
  11324. * @param string|array|\Closure $column
  11325. * @param string $operator
  11326. * @param mixed $value
  11327. * @return \Illuminate\Database\Eloquent\Builder|static
  11328. * @static
  11329. */
  11330. public static function orWhere($column, $operator = null, $value = null)
  11331. {
  11332. return \Illuminate\Database\Eloquent\Builder::orWhere($column, $operator, $value);
  11333. }
  11334. /**
  11335. * Create a collection of models from plain arrays.
  11336. *
  11337. * @param array $items
  11338. * @return \Illuminate\Database\Eloquent\Collection
  11339. * @static
  11340. */
  11341. public static function hydrate($items)
  11342. {
  11343. return \Illuminate\Database\Eloquent\Builder::hydrate($items);
  11344. }
  11345. /**
  11346. * Create a collection of models from a raw query.
  11347. *
  11348. * @param string $query
  11349. * @param array $bindings
  11350. * @return \Illuminate\Database\Eloquent\Collection
  11351. * @static
  11352. */
  11353. public static function fromQuery($query, $bindings = array())
  11354. {
  11355. return \Illuminate\Database\Eloquent\Builder::fromQuery($query, $bindings);
  11356. }
  11357. /**
  11358. * Find a model by its primary key.
  11359. *
  11360. * @param mixed $id
  11361. * @param array $columns
  11362. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  11363. * @static
  11364. */
  11365. public static function find($id, $columns = array())
  11366. {
  11367. return \Illuminate\Database\Eloquent\Builder::find($id, $columns);
  11368. }
  11369. /**
  11370. * Find multiple models by their primary keys.
  11371. *
  11372. * @param array $ids
  11373. * @param array $columns
  11374. * @return \Illuminate\Database\Eloquent\Collection
  11375. * @static
  11376. */
  11377. public static function findMany($ids, $columns = array())
  11378. {
  11379. return \Illuminate\Database\Eloquent\Builder::findMany($ids, $columns);
  11380. }
  11381. /**
  11382. * Find a model by its primary key or throw an exception.
  11383. *
  11384. * @param mixed $id
  11385. * @param array $columns
  11386. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
  11387. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  11388. * @static
  11389. */
  11390. public static function findOrFail($id, $columns = array())
  11391. {
  11392. return \Illuminate\Database\Eloquent\Builder::findOrFail($id, $columns);
  11393. }
  11394. /**
  11395. * Find a model by its primary key or return fresh model instance.
  11396. *
  11397. * @param mixed $id
  11398. * @param array $columns
  11399. * @return \Illuminate\Database\Eloquent\Model
  11400. * @static
  11401. */
  11402. public static function findOrNew($id, $columns = array())
  11403. {
  11404. return \Illuminate\Database\Eloquent\Builder::findOrNew($id, $columns);
  11405. }
  11406. /**
  11407. * Get the first record matching the attributes or instantiate it.
  11408. *
  11409. * @param array $attributes
  11410. * @param array $values
  11411. * @return \Illuminate\Database\Eloquent\Model
  11412. * @static
  11413. */
  11414. public static function firstOrNew($attributes, $values = array())
  11415. {
  11416. return \Illuminate\Database\Eloquent\Builder::firstOrNew($attributes, $values);
  11417. }
  11418. /**
  11419. * Get the first record matching the attributes or create it.
  11420. *
  11421. * @param array $attributes
  11422. * @param array $values
  11423. * @return \Illuminate\Database\Eloquent\Model
  11424. * @static
  11425. */
  11426. public static function firstOrCreate($attributes, $values = array())
  11427. {
  11428. return \Illuminate\Database\Eloquent\Builder::firstOrCreate($attributes, $values);
  11429. }
  11430. /**
  11431. * Create or update a record matching the attributes, and fill it with values.
  11432. *
  11433. * @param array $attributes
  11434. * @param array $values
  11435. * @return \Illuminate\Database\Eloquent\Model
  11436. * @static
  11437. */
  11438. public static function updateOrCreate($attributes, $values = array())
  11439. {
  11440. return \Illuminate\Database\Eloquent\Builder::updateOrCreate($attributes, $values);
  11441. }
  11442. /**
  11443. * Execute the query and get the first result or throw an exception.
  11444. *
  11445. * @param array $columns
  11446. * @return \Illuminate\Database\Eloquent\Model|static
  11447. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  11448. * @static
  11449. */
  11450. public static function firstOrFail($columns = array())
  11451. {
  11452. return \Illuminate\Database\Eloquent\Builder::firstOrFail($columns);
  11453. }
  11454. /**
  11455. * Execute the query and get the first result or call a callback.
  11456. *
  11457. * @param \Closure|array $columns
  11458. * @param \Closure|null $callback
  11459. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  11460. * @static
  11461. */
  11462. public static function firstOr($columns = array(), $callback = null)
  11463. {
  11464. return \Illuminate\Database\Eloquent\Builder::firstOr($columns, $callback);
  11465. }
  11466. /**
  11467. * Get a single column's value from the first result of a query.
  11468. *
  11469. * @param string $column
  11470. * @return mixed
  11471. * @static
  11472. */
  11473. public static function value($column)
  11474. {
  11475. return \Illuminate\Database\Eloquent\Builder::value($column);
  11476. }
  11477. /**
  11478. * Execute the query as a "select" statement.
  11479. *
  11480. * @param array $columns
  11481. * @return \Illuminate\Database\Eloquent\Collection|static[]
  11482. * @static
  11483. */
  11484. public static function get($columns = array())
  11485. {
  11486. return \Illuminate\Database\Eloquent\Builder::get($columns);
  11487. }
  11488. /**
  11489. * Get the hydrated models without eager loading.
  11490. *
  11491. * @param array $columns
  11492. * @return \Illuminate\Database\Eloquent\Model[]
  11493. * @static
  11494. */
  11495. public static function getModels($columns = array())
  11496. {
  11497. return \Illuminate\Database\Eloquent\Builder::getModels($columns);
  11498. }
  11499. /**
  11500. * Eager load the relationships for the models.
  11501. *
  11502. * @param array $models
  11503. * @return array
  11504. * @static
  11505. */
  11506. public static function eagerLoadRelations($models)
  11507. {
  11508. return \Illuminate\Database\Eloquent\Builder::eagerLoadRelations($models);
  11509. }
  11510. /**
  11511. * Get a generator for the given query.
  11512. *
  11513. * @return \Generator
  11514. * @static
  11515. */
  11516. public static function cursor()
  11517. {
  11518. return \Illuminate\Database\Eloquent\Builder::cursor();
  11519. }
  11520. /**
  11521. * Chunk the results of a query by comparing numeric IDs.
  11522. *
  11523. * @param int $count
  11524. * @param callable $callback
  11525. * @param string $column
  11526. * @param string|null $alias
  11527. * @return bool
  11528. * @static
  11529. */
  11530. public static function chunkById($count, $callback, $column = null, $alias = null)
  11531. {
  11532. return \Illuminate\Database\Eloquent\Builder::chunkById($count, $callback, $column, $alias);
  11533. }
  11534. /**
  11535. * Get an array with the values of a given column.
  11536. *
  11537. * @param string $column
  11538. * @param string|null $key
  11539. * @return \Illuminate\Support\Collection
  11540. * @static
  11541. */
  11542. public static function pluck($column, $key = null)
  11543. {
  11544. return \Illuminate\Database\Eloquent\Builder::pluck($column, $key);
  11545. }
  11546. /**
  11547. * Paginate the given query.
  11548. *
  11549. * @param int $perPage
  11550. * @param array $columns
  11551. * @param string $pageName
  11552. * @param int|null $page
  11553. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  11554. * @throws \InvalidArgumentException
  11555. * @static
  11556. */
  11557. public static function paginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  11558. {
  11559. return \Illuminate\Database\Eloquent\Builder::paginate($perPage, $columns, $pageName, $page);
  11560. }
  11561. /**
  11562. * Paginate the given query into a simple paginator.
  11563. *
  11564. * @param int $perPage
  11565. * @param array $columns
  11566. * @param string $pageName
  11567. * @param int|null $page
  11568. * @return \Illuminate\Contracts\Pagination\Paginator
  11569. * @static
  11570. */
  11571. public static function simplePaginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  11572. {
  11573. return \Illuminate\Database\Eloquent\Builder::simplePaginate($perPage, $columns, $pageName, $page);
  11574. }
  11575. /**
  11576. * Save a new model and return the instance.
  11577. *
  11578. * @param array $attributes
  11579. * @return \Illuminate\Database\Eloquent\Model|$this
  11580. * @static
  11581. */
  11582. public static function create($attributes = array())
  11583. {
  11584. return \Illuminate\Database\Eloquent\Builder::create($attributes);
  11585. }
  11586. /**
  11587. * Save a new model and return the instance. Allow mass-assignment.
  11588. *
  11589. * @param array $attributes
  11590. * @return \Illuminate\Database\Eloquent\Model|$this
  11591. * @static
  11592. */
  11593. public static function forceCreate($attributes)
  11594. {
  11595. return \Illuminate\Database\Eloquent\Builder::forceCreate($attributes);
  11596. }
  11597. /**
  11598. * Register a replacement for the default delete function.
  11599. *
  11600. * @param \Closure $callback
  11601. * @return void
  11602. * @static
  11603. */
  11604. public static function onDelete($callback)
  11605. {
  11606. \Illuminate\Database\Eloquent\Builder::onDelete($callback);
  11607. }
  11608. /**
  11609. * Call the given local model scopes.
  11610. *
  11611. * @param array $scopes
  11612. * @return mixed
  11613. * @static
  11614. */
  11615. public static function scopes($scopes)
  11616. {
  11617. return \Illuminate\Database\Eloquent\Builder::scopes($scopes);
  11618. }
  11619. /**
  11620. * Apply the scopes to the Eloquent builder instance and return it.
  11621. *
  11622. * @return \Illuminate\Database\Eloquent\Builder|static
  11623. * @static
  11624. */
  11625. public static function applyScopes()
  11626. {
  11627. return \Illuminate\Database\Eloquent\Builder::applyScopes();
  11628. }
  11629. /**
  11630. * Prevent the specified relations from being eager loaded.
  11631. *
  11632. * @param mixed $relations
  11633. * @return $this
  11634. * @static
  11635. */
  11636. public static function without($relations)
  11637. {
  11638. return \Illuminate\Database\Eloquent\Builder::without($relations);
  11639. }
  11640. /**
  11641. * Create a new instance of the model being queried.
  11642. *
  11643. * @param array $attributes
  11644. * @return \Illuminate\Database\Eloquent\Model
  11645. * @static
  11646. */
  11647. public static function newModelInstance($attributes = array())
  11648. {
  11649. return \Illuminate\Database\Eloquent\Builder::newModelInstance($attributes);
  11650. }
  11651. /**
  11652. * Get the underlying query builder instance.
  11653. *
  11654. * @return \Illuminate\Database\Query\Builder
  11655. * @static
  11656. */
  11657. public static function getQuery()
  11658. {
  11659. return \Illuminate\Database\Eloquent\Builder::getQuery();
  11660. }
  11661. /**
  11662. * Set the underlying query builder instance.
  11663. *
  11664. * @param \Illuminate\Database\Query\Builder $query
  11665. * @return $this
  11666. * @static
  11667. */
  11668. public static function setQuery($query)
  11669. {
  11670. return \Illuminate\Database\Eloquent\Builder::setQuery($query);
  11671. }
  11672. /**
  11673. * Get a base query builder instance.
  11674. *
  11675. * @return \Illuminate\Database\Query\Builder
  11676. * @static
  11677. */
  11678. public static function toBase()
  11679. {
  11680. return \Illuminate\Database\Eloquent\Builder::toBase();
  11681. }
  11682. /**
  11683. * Get the relationships being eagerly loaded.
  11684. *
  11685. * @return array
  11686. * @static
  11687. */
  11688. public static function getEagerLoads()
  11689. {
  11690. return \Illuminate\Database\Eloquent\Builder::getEagerLoads();
  11691. }
  11692. /**
  11693. * Set the relationships being eagerly loaded.
  11694. *
  11695. * @param array $eagerLoad
  11696. * @return $this
  11697. * @static
  11698. */
  11699. public static function setEagerLoads($eagerLoad)
  11700. {
  11701. return \Illuminate\Database\Eloquent\Builder::setEagerLoads($eagerLoad);
  11702. }
  11703. /**
  11704. * Get the model instance being queried.
  11705. *
  11706. * @return \Illuminate\Database\Eloquent\Model
  11707. * @static
  11708. */
  11709. public static function getModel()
  11710. {
  11711. return \Illuminate\Database\Eloquent\Builder::getModel();
  11712. }
  11713. /**
  11714. * Set a model instance for the model being queried.
  11715. *
  11716. * @param \Illuminate\Database\Eloquent\Model $model
  11717. * @return $this
  11718. * @static
  11719. */
  11720. public static function setModel($model)
  11721. {
  11722. return \Illuminate\Database\Eloquent\Builder::setModel($model);
  11723. }
  11724. /**
  11725. * Get the given macro by name.
  11726. *
  11727. * @param string $name
  11728. * @return \Closure
  11729. * @static
  11730. */
  11731. public static function getMacro($name)
  11732. {
  11733. return \Illuminate\Database\Eloquent\Builder::getMacro($name);
  11734. }
  11735. /**
  11736. * Chunk the results of the query.
  11737. *
  11738. * @param int $count
  11739. * @param callable $callback
  11740. * @return bool
  11741. * @static
  11742. */
  11743. public static function chunk($count, $callback)
  11744. {
  11745. return \Illuminate\Database\Eloquent\Builder::chunk($count, $callback);
  11746. }
  11747. /**
  11748. * Execute a callback over each item while chunking.
  11749. *
  11750. * @param callable $callback
  11751. * @param int $count
  11752. * @return bool
  11753. * @static
  11754. */
  11755. public static function each($callback, $count = 1000)
  11756. {
  11757. return \Illuminate\Database\Eloquent\Builder::each($callback, $count);
  11758. }
  11759. /**
  11760. * Execute the query and get the first result.
  11761. *
  11762. * @param array $columns
  11763. * @return \Illuminate\Database\Eloquent\Model|static|null
  11764. * @static
  11765. */
  11766. public static function first($columns = array())
  11767. {
  11768. return \Illuminate\Database\Eloquent\Builder::first($columns);
  11769. }
  11770. /**
  11771. * Apply the callback's query changes if the given "value" is true.
  11772. *
  11773. * @param mixed $value
  11774. * @param callable $callback
  11775. * @param callable $default
  11776. * @return mixed
  11777. * @static
  11778. */
  11779. public static function when($value, $callback, $default = null)
  11780. {
  11781. return \Illuminate\Database\Eloquent\Builder::when($value, $callback, $default);
  11782. }
  11783. /**
  11784. * Pass the query to a given callback.
  11785. *
  11786. * @param \Closure $callback
  11787. * @return \Illuminate\Database\Query\Builder
  11788. * @static
  11789. */
  11790. public static function tap($callback)
  11791. {
  11792. return \Illuminate\Database\Eloquent\Builder::tap($callback);
  11793. }
  11794. /**
  11795. * Apply the callback's query changes if the given "value" is false.
  11796. *
  11797. * @param mixed $value
  11798. * @param callable $callback
  11799. * @param callable $default
  11800. * @return mixed
  11801. * @static
  11802. */
  11803. public static function unless($value, $callback, $default = null)
  11804. {
  11805. return \Illuminate\Database\Eloquent\Builder::unless($value, $callback, $default);
  11806. }
  11807. /**
  11808. * Add a relationship count / exists condition to the query.
  11809. *
  11810. * @param string $relation
  11811. * @param string $operator
  11812. * @param int $count
  11813. * @param string $boolean
  11814. * @param \Closure|null $callback
  11815. * @return \Illuminate\Database\Eloquent\Builder|static
  11816. * @static
  11817. */
  11818. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  11819. {
  11820. return \Illuminate\Database\Eloquent\Builder::has($relation, $operator, $count, $boolean, $callback);
  11821. }
  11822. /**
  11823. * Add a relationship count / exists condition to the query with an "or".
  11824. *
  11825. * @param string $relation
  11826. * @param string $operator
  11827. * @param int $count
  11828. * @return \Illuminate\Database\Eloquent\Builder|static
  11829. * @static
  11830. */
  11831. public static function orHas($relation, $operator = '>=', $count = 1)
  11832. {
  11833. return \Illuminate\Database\Eloquent\Builder::orHas($relation, $operator, $count);
  11834. }
  11835. /**
  11836. * Add a relationship count / exists condition to the query.
  11837. *
  11838. * @param string $relation
  11839. * @param string $boolean
  11840. * @param \Closure|null $callback
  11841. * @return \Illuminate\Database\Eloquent\Builder|static
  11842. * @static
  11843. */
  11844. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  11845. {
  11846. return \Illuminate\Database\Eloquent\Builder::doesntHave($relation, $boolean, $callback);
  11847. }
  11848. /**
  11849. * Add a relationship count / exists condition to the query with an "or".
  11850. *
  11851. * @param string $relation
  11852. * @return \Illuminate\Database\Eloquent\Builder|static
  11853. * @static
  11854. */
  11855. public static function orDoesntHave($relation)
  11856. {
  11857. return \Illuminate\Database\Eloquent\Builder::orDoesntHave($relation);
  11858. }
  11859. /**
  11860. * Add a relationship count / exists condition to the query with where clauses.
  11861. *
  11862. * @param string $relation
  11863. * @param \Closure|null $callback
  11864. * @param string $operator
  11865. * @param int $count
  11866. * @return \Illuminate\Database\Eloquent\Builder|static
  11867. * @static
  11868. */
  11869. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  11870. {
  11871. return \Illuminate\Database\Eloquent\Builder::whereHas($relation, $callback, $operator, $count);
  11872. }
  11873. /**
  11874. * Add a relationship count / exists condition to the query with where clauses and an "or".
  11875. *
  11876. * @param string $relation
  11877. * @param \Closure $callback
  11878. * @param string $operator
  11879. * @param int $count
  11880. * @return \Illuminate\Database\Eloquent\Builder|static
  11881. * @static
  11882. */
  11883. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  11884. {
  11885. return \Illuminate\Database\Eloquent\Builder::orWhereHas($relation, $callback, $operator, $count);
  11886. }
  11887. /**
  11888. * Add a relationship count / exists condition to the query with where clauses.
  11889. *
  11890. * @param string $relation
  11891. * @param \Closure|null $callback
  11892. * @return \Illuminate\Database\Eloquent\Builder|static
  11893. * @static
  11894. */
  11895. public static function whereDoesntHave($relation, $callback = null)
  11896. {
  11897. return \Illuminate\Database\Eloquent\Builder::whereDoesntHave($relation, $callback);
  11898. }
  11899. /**
  11900. * Add a relationship count / exists condition to the query with where clauses and an "or".
  11901. *
  11902. * @param string $relation
  11903. * @param \Closure $callback
  11904. * @return \Illuminate\Database\Eloquent\Builder|static
  11905. * @static
  11906. */
  11907. public static function orWhereDoesntHave($relation, $callback = null)
  11908. {
  11909. return \Illuminate\Database\Eloquent\Builder::orWhereDoesntHave($relation, $callback);
  11910. }
  11911. /**
  11912. * Add subselect queries to count the relations.
  11913. *
  11914. * @param mixed $relations
  11915. * @return $this
  11916. * @static
  11917. */
  11918. public static function withCount($relations)
  11919. {
  11920. return \Illuminate\Database\Eloquent\Builder::withCount($relations);
  11921. }
  11922. /**
  11923. * Merge the where constraints from another query to the current query.
  11924. *
  11925. * @param \Illuminate\Database\Eloquent\Builder $from
  11926. * @return \Illuminate\Database\Eloquent\Builder|static
  11927. * @static
  11928. */
  11929. public static function mergeConstraintsFrom($from)
  11930. {
  11931. return \Illuminate\Database\Eloquent\Builder::mergeConstraintsFrom($from);
  11932. }
  11933. /**
  11934. * Set the columns to be selected.
  11935. *
  11936. * @param array|mixed $columns
  11937. * @return $this
  11938. * @static
  11939. */
  11940. public static function select($columns = array())
  11941. {
  11942. return \Illuminate\Database\Query\Builder::select($columns);
  11943. }
  11944. /**
  11945. * Add a new "raw" select expression to the query.
  11946. *
  11947. * @param string $expression
  11948. * @param array $bindings
  11949. * @return \Illuminate\Database\Query\Builder|static
  11950. * @static
  11951. */
  11952. public static function selectRaw($expression, $bindings = array())
  11953. {
  11954. return \Illuminate\Database\Query\Builder::selectRaw($expression, $bindings);
  11955. }
  11956. /**
  11957. * Add a subselect expression to the query.
  11958. *
  11959. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  11960. * @param string $as
  11961. * @return \Illuminate\Database\Query\Builder|static
  11962. * @throws \InvalidArgumentException
  11963. * @static
  11964. */
  11965. public static function selectSub($query, $as)
  11966. {
  11967. return \Illuminate\Database\Query\Builder::selectSub($query, $as);
  11968. }
  11969. /**
  11970. * Add a new select column to the query.
  11971. *
  11972. * @param array|mixed $column
  11973. * @return $this
  11974. * @static
  11975. */
  11976. public static function addSelect($column)
  11977. {
  11978. return \Illuminate\Database\Query\Builder::addSelect($column);
  11979. }
  11980. /**
  11981. * Force the query to only return distinct results.
  11982. *
  11983. * @return $this
  11984. * @static
  11985. */
  11986. public static function distinct()
  11987. {
  11988. return \Illuminate\Database\Query\Builder::distinct();
  11989. }
  11990. /**
  11991. * Set the table which the query is targeting.
  11992. *
  11993. * @param string $table
  11994. * @return $this
  11995. * @static
  11996. */
  11997. public static function from($table)
  11998. {
  11999. return \Illuminate\Database\Query\Builder::from($table);
  12000. }
  12001. /**
  12002. * Add a join clause to the query.
  12003. *
  12004. * @param string $table
  12005. * @param string $first
  12006. * @param string $operator
  12007. * @param string $second
  12008. * @param string $type
  12009. * @param bool $where
  12010. * @return $this
  12011. * @static
  12012. */
  12013. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  12014. {
  12015. return \Illuminate\Database\Query\Builder::join($table, $first, $operator, $second, $type, $where);
  12016. }
  12017. /**
  12018. * Add a "join where" clause to the query.
  12019. *
  12020. * @param string $table
  12021. * @param string $first
  12022. * @param string $operator
  12023. * @param string $second
  12024. * @param string $type
  12025. * @return \Illuminate\Database\Query\Builder|static
  12026. * @static
  12027. */
  12028. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  12029. {
  12030. return \Illuminate\Database\Query\Builder::joinWhere($table, $first, $operator, $second, $type);
  12031. }
  12032. /**
  12033. * Add a left join to the query.
  12034. *
  12035. * @param string $table
  12036. * @param string $first
  12037. * @param string $operator
  12038. * @param string $second
  12039. * @return \Illuminate\Database\Query\Builder|static
  12040. * @static
  12041. */
  12042. public static function leftJoin($table, $first, $operator = null, $second = null)
  12043. {
  12044. return \Illuminate\Database\Query\Builder::leftJoin($table, $first, $operator, $second);
  12045. }
  12046. /**
  12047. * Add a "join where" clause to the query.
  12048. *
  12049. * @param string $table
  12050. * @param string $first
  12051. * @param string $operator
  12052. * @param string $second
  12053. * @return \Illuminate\Database\Query\Builder|static
  12054. * @static
  12055. */
  12056. public static function leftJoinWhere($table, $first, $operator, $second)
  12057. {
  12058. return \Illuminate\Database\Query\Builder::leftJoinWhere($table, $first, $operator, $second);
  12059. }
  12060. /**
  12061. * Add a right join to the query.
  12062. *
  12063. * @param string $table
  12064. * @param string $first
  12065. * @param string $operator
  12066. * @param string $second
  12067. * @return \Illuminate\Database\Query\Builder|static
  12068. * @static
  12069. */
  12070. public static function rightJoin($table, $first, $operator = null, $second = null)
  12071. {
  12072. return \Illuminate\Database\Query\Builder::rightJoin($table, $first, $operator, $second);
  12073. }
  12074. /**
  12075. * Add a "right join where" clause to the query.
  12076. *
  12077. * @param string $table
  12078. * @param string $first
  12079. * @param string $operator
  12080. * @param string $second
  12081. * @return \Illuminate\Database\Query\Builder|static
  12082. * @static
  12083. */
  12084. public static function rightJoinWhere($table, $first, $operator, $second)
  12085. {
  12086. return \Illuminate\Database\Query\Builder::rightJoinWhere($table, $first, $operator, $second);
  12087. }
  12088. /**
  12089. * Add a "cross join" clause to the query.
  12090. *
  12091. * @param string $table
  12092. * @param string $first
  12093. * @param string $operator
  12094. * @param string $second
  12095. * @return \Illuminate\Database\Query\Builder|static
  12096. * @static
  12097. */
  12098. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  12099. {
  12100. return \Illuminate\Database\Query\Builder::crossJoin($table, $first, $operator, $second);
  12101. }
  12102. /**
  12103. * Merge an array of where clauses and bindings.
  12104. *
  12105. * @param array $wheres
  12106. * @param array $bindings
  12107. * @return void
  12108. * @static
  12109. */
  12110. public static function mergeWheres($wheres, $bindings)
  12111. {
  12112. \Illuminate\Database\Query\Builder::mergeWheres($wheres, $bindings);
  12113. }
  12114. /**
  12115. * Add a "where" clause comparing two columns to the query.
  12116. *
  12117. * @param string|array $first
  12118. * @param string|null $operator
  12119. * @param string|null $second
  12120. * @param string|null $boolean
  12121. * @return \Illuminate\Database\Query\Builder|static
  12122. * @static
  12123. */
  12124. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  12125. {
  12126. return \Illuminate\Database\Query\Builder::whereColumn($first, $operator, $second, $boolean);
  12127. }
  12128. /**
  12129. * Add an "or where" clause comparing two columns to the query.
  12130. *
  12131. * @param string|array $first
  12132. * @param string|null $operator
  12133. * @param string|null $second
  12134. * @return \Illuminate\Database\Query\Builder|static
  12135. * @static
  12136. */
  12137. public static function orWhereColumn($first, $operator = null, $second = null)
  12138. {
  12139. return \Illuminate\Database\Query\Builder::orWhereColumn($first, $operator, $second);
  12140. }
  12141. /**
  12142. * Add a raw where clause to the query.
  12143. *
  12144. * @param string $sql
  12145. * @param mixed $bindings
  12146. * @param string $boolean
  12147. * @return $this
  12148. * @static
  12149. */
  12150. public static function whereRaw($sql, $bindings = array(), $boolean = 'and')
  12151. {
  12152. return \Illuminate\Database\Query\Builder::whereRaw($sql, $bindings, $boolean);
  12153. }
  12154. /**
  12155. * Add a raw or where clause to the query.
  12156. *
  12157. * @param string $sql
  12158. * @param mixed $bindings
  12159. * @return \Illuminate\Database\Query\Builder|static
  12160. * @static
  12161. */
  12162. public static function orWhereRaw($sql, $bindings = array())
  12163. {
  12164. return \Illuminate\Database\Query\Builder::orWhereRaw($sql, $bindings);
  12165. }
  12166. /**
  12167. * Add a "where in" clause to the query.
  12168. *
  12169. * @param string $column
  12170. * @param mixed $values
  12171. * @param string $boolean
  12172. * @param bool $not
  12173. * @return $this
  12174. * @static
  12175. */
  12176. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  12177. {
  12178. return \Illuminate\Database\Query\Builder::whereIn($column, $values, $boolean, $not);
  12179. }
  12180. /**
  12181. * Add an "or where in" clause to the query.
  12182. *
  12183. * @param string $column
  12184. * @param mixed $values
  12185. * @return \Illuminate\Database\Query\Builder|static
  12186. * @static
  12187. */
  12188. public static function orWhereIn($column, $values)
  12189. {
  12190. return \Illuminate\Database\Query\Builder::orWhereIn($column, $values);
  12191. }
  12192. /**
  12193. * Add a "where not in" clause to the query.
  12194. *
  12195. * @param string $column
  12196. * @param mixed $values
  12197. * @param string $boolean
  12198. * @return \Illuminate\Database\Query\Builder|static
  12199. * @static
  12200. */
  12201. public static function whereNotIn($column, $values, $boolean = 'and')
  12202. {
  12203. return \Illuminate\Database\Query\Builder::whereNotIn($column, $values, $boolean);
  12204. }
  12205. /**
  12206. * Add an "or where not in" clause to the query.
  12207. *
  12208. * @param string $column
  12209. * @param mixed $values
  12210. * @return \Illuminate\Database\Query\Builder|static
  12211. * @static
  12212. */
  12213. public static function orWhereNotIn($column, $values)
  12214. {
  12215. return \Illuminate\Database\Query\Builder::orWhereNotIn($column, $values);
  12216. }
  12217. /**
  12218. * Add a "where null" clause to the query.
  12219. *
  12220. * @param string $column
  12221. * @param string $boolean
  12222. * @param bool $not
  12223. * @return $this
  12224. * @static
  12225. */
  12226. public static function whereNull($column, $boolean = 'and', $not = false)
  12227. {
  12228. return \Illuminate\Database\Query\Builder::whereNull($column, $boolean, $not);
  12229. }
  12230. /**
  12231. * Add an "or where null" clause to the query.
  12232. *
  12233. * @param string $column
  12234. * @return \Illuminate\Database\Query\Builder|static
  12235. * @static
  12236. */
  12237. public static function orWhereNull($column)
  12238. {
  12239. return \Illuminate\Database\Query\Builder::orWhereNull($column);
  12240. }
  12241. /**
  12242. * Add a "where not null" clause to the query.
  12243. *
  12244. * @param string $column
  12245. * @param string $boolean
  12246. * @return \Illuminate\Database\Query\Builder|static
  12247. * @static
  12248. */
  12249. public static function whereNotNull($column, $boolean = 'and')
  12250. {
  12251. return \Illuminate\Database\Query\Builder::whereNotNull($column, $boolean);
  12252. }
  12253. /**
  12254. * Add a where between statement to the query.
  12255. *
  12256. * @param string $column
  12257. * @param array $values
  12258. * @param string $boolean
  12259. * @param bool $not
  12260. * @return $this
  12261. * @static
  12262. */
  12263. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  12264. {
  12265. return \Illuminate\Database\Query\Builder::whereBetween($column, $values, $boolean, $not);
  12266. }
  12267. /**
  12268. * Add an or where between statement to the query.
  12269. *
  12270. * @param string $column
  12271. * @param array $values
  12272. * @return \Illuminate\Database\Query\Builder|static
  12273. * @static
  12274. */
  12275. public static function orWhereBetween($column, $values)
  12276. {
  12277. return \Illuminate\Database\Query\Builder::orWhereBetween($column, $values);
  12278. }
  12279. /**
  12280. * Add a where not between statement to the query.
  12281. *
  12282. * @param string $column
  12283. * @param array $values
  12284. * @param string $boolean
  12285. * @return \Illuminate\Database\Query\Builder|static
  12286. * @static
  12287. */
  12288. public static function whereNotBetween($column, $values, $boolean = 'and')
  12289. {
  12290. return \Illuminate\Database\Query\Builder::whereNotBetween($column, $values, $boolean);
  12291. }
  12292. /**
  12293. * Add an or where not between statement to the query.
  12294. *
  12295. * @param string $column
  12296. * @param array $values
  12297. * @return \Illuminate\Database\Query\Builder|static
  12298. * @static
  12299. */
  12300. public static function orWhereNotBetween($column, $values)
  12301. {
  12302. return \Illuminate\Database\Query\Builder::orWhereNotBetween($column, $values);
  12303. }
  12304. /**
  12305. * Add an "or where not null" clause to the query.
  12306. *
  12307. * @param string $column
  12308. * @return \Illuminate\Database\Query\Builder|static
  12309. * @static
  12310. */
  12311. public static function orWhereNotNull($column)
  12312. {
  12313. return \Illuminate\Database\Query\Builder::orWhereNotNull($column);
  12314. }
  12315. /**
  12316. * Add a "where date" statement to the query.
  12317. *
  12318. * @param string $column
  12319. * @param string $operator
  12320. * @param mixed $value
  12321. * @param string $boolean
  12322. * @return \Illuminate\Database\Query\Builder|static
  12323. * @static
  12324. */
  12325. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  12326. {
  12327. return \Illuminate\Database\Query\Builder::whereDate($column, $operator, $value, $boolean);
  12328. }
  12329. /**
  12330. * Add an "or where date" statement to the query.
  12331. *
  12332. * @param string $column
  12333. * @param string $operator
  12334. * @param string $value
  12335. * @return \Illuminate\Database\Query\Builder|static
  12336. * @static
  12337. */
  12338. public static function orWhereDate($column, $operator, $value)
  12339. {
  12340. return \Illuminate\Database\Query\Builder::orWhereDate($column, $operator, $value);
  12341. }
  12342. /**
  12343. * Add a "where time" statement to the query.
  12344. *
  12345. * @param string $column
  12346. * @param string $operator
  12347. * @param int $value
  12348. * @param string $boolean
  12349. * @return \Illuminate\Database\Query\Builder|static
  12350. * @static
  12351. */
  12352. public static function whereTime($column, $operator, $value, $boolean = 'and')
  12353. {
  12354. return \Illuminate\Database\Query\Builder::whereTime($column, $operator, $value, $boolean);
  12355. }
  12356. /**
  12357. * Add an "or where time" statement to the query.
  12358. *
  12359. * @param string $column
  12360. * @param string $operator
  12361. * @param int $value
  12362. * @return \Illuminate\Database\Query\Builder|static
  12363. * @static
  12364. */
  12365. public static function orWhereTime($column, $operator, $value)
  12366. {
  12367. return \Illuminate\Database\Query\Builder::orWhereTime($column, $operator, $value);
  12368. }
  12369. /**
  12370. * Add a "where day" statement to the query.
  12371. *
  12372. * @param string $column
  12373. * @param string $operator
  12374. * @param mixed $value
  12375. * @param string $boolean
  12376. * @return \Illuminate\Database\Query\Builder|static
  12377. * @static
  12378. */
  12379. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  12380. {
  12381. return \Illuminate\Database\Query\Builder::whereDay($column, $operator, $value, $boolean);
  12382. }
  12383. /**
  12384. * Add a "where month" statement to the query.
  12385. *
  12386. * @param string $column
  12387. * @param string $operator
  12388. * @param mixed $value
  12389. * @param string $boolean
  12390. * @return \Illuminate\Database\Query\Builder|static
  12391. * @static
  12392. */
  12393. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  12394. {
  12395. return \Illuminate\Database\Query\Builder::whereMonth($column, $operator, $value, $boolean);
  12396. }
  12397. /**
  12398. * Add a "where year" statement to the query.
  12399. *
  12400. * @param string $column
  12401. * @param string $operator
  12402. * @param mixed $value
  12403. * @param string $boolean
  12404. * @return \Illuminate\Database\Query\Builder|static
  12405. * @static
  12406. */
  12407. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  12408. {
  12409. return \Illuminate\Database\Query\Builder::whereYear($column, $operator, $value, $boolean);
  12410. }
  12411. /**
  12412. * Add a nested where statement to the query.
  12413. *
  12414. * @param \Closure $callback
  12415. * @param string $boolean
  12416. * @return \Illuminate\Database\Query\Builder|static
  12417. * @static
  12418. */
  12419. public static function whereNested($callback, $boolean = 'and')
  12420. {
  12421. return \Illuminate\Database\Query\Builder::whereNested($callback, $boolean);
  12422. }
  12423. /**
  12424. * Create a new query instance for nested where condition.
  12425. *
  12426. * @return \Illuminate\Database\Query\Builder
  12427. * @static
  12428. */
  12429. public static function forNestedWhere()
  12430. {
  12431. return \Illuminate\Database\Query\Builder::forNestedWhere();
  12432. }
  12433. /**
  12434. * Add another query builder as a nested where to the query builder.
  12435. *
  12436. * @param \Illuminate\Database\Query\Builder|static $query
  12437. * @param string $boolean
  12438. * @return $this
  12439. * @static
  12440. */
  12441. public static function addNestedWhereQuery($query, $boolean = 'and')
  12442. {
  12443. return \Illuminate\Database\Query\Builder::addNestedWhereQuery($query, $boolean);
  12444. }
  12445. /**
  12446. * Add an exists clause to the query.
  12447. *
  12448. * @param \Closure $callback
  12449. * @param string $boolean
  12450. * @param bool $not
  12451. * @return $this
  12452. * @static
  12453. */
  12454. public static function whereExists($callback, $boolean = 'and', $not = false)
  12455. {
  12456. return \Illuminate\Database\Query\Builder::whereExists($callback, $boolean, $not);
  12457. }
  12458. /**
  12459. * Add an or exists clause to the query.
  12460. *
  12461. * @param \Closure $callback
  12462. * @param bool $not
  12463. * @return \Illuminate\Database\Query\Builder|static
  12464. * @static
  12465. */
  12466. public static function orWhereExists($callback, $not = false)
  12467. {
  12468. return \Illuminate\Database\Query\Builder::orWhereExists($callback, $not);
  12469. }
  12470. /**
  12471. * Add a where not exists clause to the query.
  12472. *
  12473. * @param \Closure $callback
  12474. * @param string $boolean
  12475. * @return \Illuminate\Database\Query\Builder|static
  12476. * @static
  12477. */
  12478. public static function whereNotExists($callback, $boolean = 'and')
  12479. {
  12480. return \Illuminate\Database\Query\Builder::whereNotExists($callback, $boolean);
  12481. }
  12482. /**
  12483. * Add a where not exists clause to the query.
  12484. *
  12485. * @param \Closure $callback
  12486. * @return \Illuminate\Database\Query\Builder|static
  12487. * @static
  12488. */
  12489. public static function orWhereNotExists($callback)
  12490. {
  12491. return \Illuminate\Database\Query\Builder::orWhereNotExists($callback);
  12492. }
  12493. /**
  12494. * Add an exists clause to the query.
  12495. *
  12496. * @param \Illuminate\Database\Query\Builder $query
  12497. * @param string $boolean
  12498. * @param bool $not
  12499. * @return $this
  12500. * @static
  12501. */
  12502. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  12503. {
  12504. return \Illuminate\Database\Query\Builder::addWhereExistsQuery($query, $boolean, $not);
  12505. }
  12506. /**
  12507. * Handles dynamic "where" clauses to the query.
  12508. *
  12509. * @param string $method
  12510. * @param string $parameters
  12511. * @return $this
  12512. * @static
  12513. */
  12514. public static function dynamicWhere($method, $parameters)
  12515. {
  12516. return \Illuminate\Database\Query\Builder::dynamicWhere($method, $parameters);
  12517. }
  12518. /**
  12519. * Add a "group by" clause to the query.
  12520. *
  12521. * @param array $groups
  12522. * @return $this
  12523. * @static
  12524. */
  12525. public static function groupBy($groups = null)
  12526. {
  12527. return \Illuminate\Database\Query\Builder::groupBy($groups);
  12528. }
  12529. /**
  12530. * Add a "having" clause to the query.
  12531. *
  12532. * @param string $column
  12533. * @param string $operator
  12534. * @param string $value
  12535. * @param string $boolean
  12536. * @return $this
  12537. * @static
  12538. */
  12539. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  12540. {
  12541. return \Illuminate\Database\Query\Builder::having($column, $operator, $value, $boolean);
  12542. }
  12543. /**
  12544. * Add a "or having" clause to the query.
  12545. *
  12546. * @param string $column
  12547. * @param string $operator
  12548. * @param string $value
  12549. * @return \Illuminate\Database\Query\Builder|static
  12550. * @static
  12551. */
  12552. public static function orHaving($column, $operator = null, $value = null)
  12553. {
  12554. return \Illuminate\Database\Query\Builder::orHaving($column, $operator, $value);
  12555. }
  12556. /**
  12557. * Add a raw having clause to the query.
  12558. *
  12559. * @param string $sql
  12560. * @param array $bindings
  12561. * @param string $boolean
  12562. * @return $this
  12563. * @static
  12564. */
  12565. public static function havingRaw($sql, $bindings = array(), $boolean = 'and')
  12566. {
  12567. return \Illuminate\Database\Query\Builder::havingRaw($sql, $bindings, $boolean);
  12568. }
  12569. /**
  12570. * Add a raw or having clause to the query.
  12571. *
  12572. * @param string $sql
  12573. * @param array $bindings
  12574. * @return \Illuminate\Database\Query\Builder|static
  12575. * @static
  12576. */
  12577. public static function orHavingRaw($sql, $bindings = array())
  12578. {
  12579. return \Illuminate\Database\Query\Builder::orHavingRaw($sql, $bindings);
  12580. }
  12581. /**
  12582. * Add an "order by" clause to the query.
  12583. *
  12584. * @param string $column
  12585. * @param string $direction
  12586. * @return $this
  12587. * @static
  12588. */
  12589. public static function orderBy($column, $direction = 'asc')
  12590. {
  12591. return \Illuminate\Database\Query\Builder::orderBy($column, $direction);
  12592. }
  12593. /**
  12594. * Add a descending "order by" clause to the query.
  12595. *
  12596. * @param string $column
  12597. * @return $this
  12598. * @static
  12599. */
  12600. public static function orderByDesc($column)
  12601. {
  12602. return \Illuminate\Database\Query\Builder::orderByDesc($column);
  12603. }
  12604. /**
  12605. * Add an "order by" clause for a timestamp to the query.
  12606. *
  12607. * @param string $column
  12608. * @return \Illuminate\Database\Query\Builder|static
  12609. * @static
  12610. */
  12611. public static function latest($column = 'created_at')
  12612. {
  12613. return \Illuminate\Database\Query\Builder::latest($column);
  12614. }
  12615. /**
  12616. * Add an "order by" clause for a timestamp to the query.
  12617. *
  12618. * @param string $column
  12619. * @return \Illuminate\Database\Query\Builder|static
  12620. * @static
  12621. */
  12622. public static function oldest($column = 'created_at')
  12623. {
  12624. return \Illuminate\Database\Query\Builder::oldest($column);
  12625. }
  12626. /**
  12627. * Put the query's results in random order.
  12628. *
  12629. * @param string $seed
  12630. * @return $this
  12631. * @static
  12632. */
  12633. public static function inRandomOrder($seed = '')
  12634. {
  12635. return \Illuminate\Database\Query\Builder::inRandomOrder($seed);
  12636. }
  12637. /**
  12638. * Add a raw "order by" clause to the query.
  12639. *
  12640. * @param string $sql
  12641. * @param array $bindings
  12642. * @return $this
  12643. * @static
  12644. */
  12645. public static function orderByRaw($sql, $bindings = array())
  12646. {
  12647. return \Illuminate\Database\Query\Builder::orderByRaw($sql, $bindings);
  12648. }
  12649. /**
  12650. * Alias to set the "offset" value of the query.
  12651. *
  12652. * @param int $value
  12653. * @return \Illuminate\Database\Query\Builder|static
  12654. * @static
  12655. */
  12656. public static function skip($value)
  12657. {
  12658. return \Illuminate\Database\Query\Builder::skip($value);
  12659. }
  12660. /**
  12661. * Set the "offset" value of the query.
  12662. *
  12663. * @param int $value
  12664. * @return $this
  12665. * @static
  12666. */
  12667. public static function offset($value)
  12668. {
  12669. return \Illuminate\Database\Query\Builder::offset($value);
  12670. }
  12671. /**
  12672. * Alias to set the "limit" value of the query.
  12673. *
  12674. * @param int $value
  12675. * @return \Illuminate\Database\Query\Builder|static
  12676. * @static
  12677. */
  12678. public static function take($value)
  12679. {
  12680. return \Illuminate\Database\Query\Builder::take($value);
  12681. }
  12682. /**
  12683. * Set the "limit" value of the query.
  12684. *
  12685. * @param int $value
  12686. * @return $this
  12687. * @static
  12688. */
  12689. public static function limit($value)
  12690. {
  12691. return \Illuminate\Database\Query\Builder::limit($value);
  12692. }
  12693. /**
  12694. * Set the limit and offset for a given page.
  12695. *
  12696. * @param int $page
  12697. * @param int $perPage
  12698. * @return \Illuminate\Database\Query\Builder|static
  12699. * @static
  12700. */
  12701. public static function forPage($page, $perPage = 15)
  12702. {
  12703. return \Illuminate\Database\Query\Builder::forPage($page, $perPage);
  12704. }
  12705. /**
  12706. * Constrain the query to the next "page" of results after a given ID.
  12707. *
  12708. * @param int $perPage
  12709. * @param int $lastId
  12710. * @param string $column
  12711. * @return \Illuminate\Database\Query\Builder|static
  12712. * @static
  12713. */
  12714. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  12715. {
  12716. return \Illuminate\Database\Query\Builder::forPageAfterId($perPage, $lastId, $column);
  12717. }
  12718. /**
  12719. * Add a union statement to the query.
  12720. *
  12721. * @param \Illuminate\Database\Query\Builder|\Closure $query
  12722. * @param bool $all
  12723. * @return \Illuminate\Database\Query\Builder|static
  12724. * @static
  12725. */
  12726. public static function union($query, $all = false)
  12727. {
  12728. return \Illuminate\Database\Query\Builder::union($query, $all);
  12729. }
  12730. /**
  12731. * Add a union all statement to the query.
  12732. *
  12733. * @param \Illuminate\Database\Query\Builder|\Closure $query
  12734. * @return \Illuminate\Database\Query\Builder|static
  12735. * @static
  12736. */
  12737. public static function unionAll($query)
  12738. {
  12739. return \Illuminate\Database\Query\Builder::unionAll($query);
  12740. }
  12741. /**
  12742. * Lock the selected rows in the table.
  12743. *
  12744. * @param string|bool $value
  12745. * @return $this
  12746. * @static
  12747. */
  12748. public static function lock($value = true)
  12749. {
  12750. return \Illuminate\Database\Query\Builder::lock($value);
  12751. }
  12752. /**
  12753. * Lock the selected rows in the table for updating.
  12754. *
  12755. * @return \Illuminate\Database\Query\Builder
  12756. * @static
  12757. */
  12758. public static function lockForUpdate()
  12759. {
  12760. return \Illuminate\Database\Query\Builder::lockForUpdate();
  12761. }
  12762. /**
  12763. * Share lock the selected rows in the table.
  12764. *
  12765. * @return \Illuminate\Database\Query\Builder
  12766. * @static
  12767. */
  12768. public static function sharedLock()
  12769. {
  12770. return \Illuminate\Database\Query\Builder::sharedLock();
  12771. }
  12772. /**
  12773. * Get the SQL representation of the query.
  12774. *
  12775. * @return string
  12776. * @static
  12777. */
  12778. public static function toSql()
  12779. {
  12780. return \Illuminate\Database\Query\Builder::toSql();
  12781. }
  12782. /**
  12783. * Get the count of the total records for the paginator.
  12784. *
  12785. * @param array $columns
  12786. * @return int
  12787. * @static
  12788. */
  12789. public static function getCountForPagination($columns = array())
  12790. {
  12791. return \Illuminate\Database\Query\Builder::getCountForPagination($columns);
  12792. }
  12793. /**
  12794. * Concatenate values of a given column as a string.
  12795. *
  12796. * @param string $column
  12797. * @param string $glue
  12798. * @return string
  12799. * @static
  12800. */
  12801. public static function implode($column, $glue = '')
  12802. {
  12803. return \Illuminate\Database\Query\Builder::implode($column, $glue);
  12804. }
  12805. /**
  12806. * Determine if any rows exist for the current query.
  12807. *
  12808. * @return bool
  12809. * @static
  12810. */
  12811. public static function exists()
  12812. {
  12813. return \Illuminate\Database\Query\Builder::exists();
  12814. }
  12815. /**
  12816. * Retrieve the "count" result of the query.
  12817. *
  12818. * @param string $columns
  12819. * @return int
  12820. * @static
  12821. */
  12822. public static function count($columns = '*')
  12823. {
  12824. return \Illuminate\Database\Query\Builder::count($columns);
  12825. }
  12826. /**
  12827. * Retrieve the minimum value of a given column.
  12828. *
  12829. * @param string $column
  12830. * @return mixed
  12831. * @static
  12832. */
  12833. public static function min($column)
  12834. {
  12835. return \Illuminate\Database\Query\Builder::min($column);
  12836. }
  12837. /**
  12838. * Retrieve the maximum value of a given column.
  12839. *
  12840. * @param string $column
  12841. * @return mixed
  12842. * @static
  12843. */
  12844. public static function max($column)
  12845. {
  12846. return \Illuminate\Database\Query\Builder::max($column);
  12847. }
  12848. /**
  12849. * Retrieve the sum of the values of a given column.
  12850. *
  12851. * @param string $column
  12852. * @return mixed
  12853. * @static
  12854. */
  12855. public static function sum($column)
  12856. {
  12857. return \Illuminate\Database\Query\Builder::sum($column);
  12858. }
  12859. /**
  12860. * Retrieve the average of the values of a given column.
  12861. *
  12862. * @param string $column
  12863. * @return mixed
  12864. * @static
  12865. */
  12866. public static function avg($column)
  12867. {
  12868. return \Illuminate\Database\Query\Builder::avg($column);
  12869. }
  12870. /**
  12871. * Alias for the "avg" method.
  12872. *
  12873. * @param string $column
  12874. * @return mixed
  12875. * @static
  12876. */
  12877. public static function average($column)
  12878. {
  12879. return \Illuminate\Database\Query\Builder::average($column);
  12880. }
  12881. /**
  12882. * Execute an aggregate function on the database.
  12883. *
  12884. * @param string $function
  12885. * @param array $columns
  12886. * @return mixed
  12887. * @static
  12888. */
  12889. public static function aggregate($function, $columns = array())
  12890. {
  12891. return \Illuminate\Database\Query\Builder::aggregate($function, $columns);
  12892. }
  12893. /**
  12894. * Execute a numeric aggregate function on the database.
  12895. *
  12896. * @param string $function
  12897. * @param array $columns
  12898. * @return float|int
  12899. * @static
  12900. */
  12901. public static function numericAggregate($function, $columns = array())
  12902. {
  12903. return \Illuminate\Database\Query\Builder::numericAggregate($function, $columns);
  12904. }
  12905. /**
  12906. * Insert a new record into the database.
  12907. *
  12908. * @param array $values
  12909. * @return bool
  12910. * @static
  12911. */
  12912. public static function insert($values)
  12913. {
  12914. return \Illuminate\Database\Query\Builder::insert($values);
  12915. }
  12916. /**
  12917. * Insert a new record and get the value of the primary key.
  12918. *
  12919. * @param array $values
  12920. * @param string $sequence
  12921. * @return int
  12922. * @static
  12923. */
  12924. public static function insertGetId($values, $sequence = null)
  12925. {
  12926. return \Illuminate\Database\Query\Builder::insertGetId($values, $sequence);
  12927. }
  12928. /**
  12929. * Insert or update a record matching the attributes, and fill it with values.
  12930. *
  12931. * @param array $attributes
  12932. * @param array $values
  12933. * @return bool
  12934. * @static
  12935. */
  12936. public static function updateOrInsert($attributes, $values = array())
  12937. {
  12938. return \Illuminate\Database\Query\Builder::updateOrInsert($attributes, $values);
  12939. }
  12940. /**
  12941. * Run a truncate statement on the table.
  12942. *
  12943. * @return void
  12944. * @static
  12945. */
  12946. public static function truncate()
  12947. {
  12948. \Illuminate\Database\Query\Builder::truncate();
  12949. }
  12950. /**
  12951. * Create a raw database expression.
  12952. *
  12953. * @param mixed $value
  12954. * @return \Illuminate\Database\Query\Expression
  12955. * @static
  12956. */
  12957. public static function raw($value)
  12958. {
  12959. return \Illuminate\Database\Query\Builder::raw($value);
  12960. }
  12961. /**
  12962. * Get the current query value bindings in a flattened array.
  12963. *
  12964. * @return array
  12965. * @static
  12966. */
  12967. public static function getBindings()
  12968. {
  12969. return \Illuminate\Database\Query\Builder::getBindings();
  12970. }
  12971. /**
  12972. * Get the raw array of bindings.
  12973. *
  12974. * @return array
  12975. * @static
  12976. */
  12977. public static function getRawBindings()
  12978. {
  12979. return \Illuminate\Database\Query\Builder::getRawBindings();
  12980. }
  12981. /**
  12982. * Set the bindings on the query builder.
  12983. *
  12984. * @param array $bindings
  12985. * @param string $type
  12986. * @return $this
  12987. * @throws \InvalidArgumentException
  12988. * @static
  12989. */
  12990. public static function setBindings($bindings, $type = 'where')
  12991. {
  12992. return \Illuminate\Database\Query\Builder::setBindings($bindings, $type);
  12993. }
  12994. /**
  12995. * Add a binding to the query.
  12996. *
  12997. * @param mixed $value
  12998. * @param string $type
  12999. * @return $this
  13000. * @throws \InvalidArgumentException
  13001. * @static
  13002. */
  13003. public static function addBinding($value, $type = 'where')
  13004. {
  13005. return \Illuminate\Database\Query\Builder::addBinding($value, $type);
  13006. }
  13007. /**
  13008. * Merge an array of bindings into our bindings.
  13009. *
  13010. * @param \Illuminate\Database\Query\Builder $query
  13011. * @return $this
  13012. * @static
  13013. */
  13014. public static function mergeBindings($query)
  13015. {
  13016. return \Illuminate\Database\Query\Builder::mergeBindings($query);
  13017. }
  13018. /**
  13019. * Get the database query processor instance.
  13020. *
  13021. * @return \Illuminate\Database\Query\Processors\Processor
  13022. * @static
  13023. */
  13024. public static function getProcessor()
  13025. {
  13026. return \Illuminate\Database\Query\Builder::getProcessor();
  13027. }
  13028. /**
  13029. * Get the query grammar instance.
  13030. *
  13031. * @return \Illuminate\Database\Query\Grammars\Grammar
  13032. * @static
  13033. */
  13034. public static function getGrammar()
  13035. {
  13036. return \Illuminate\Database\Query\Builder::getGrammar();
  13037. }
  13038. /**
  13039. * Use the write pdo for query.
  13040. *
  13041. * @return $this
  13042. * @static
  13043. */
  13044. public static function useWritePdo()
  13045. {
  13046. return \Illuminate\Database\Query\Builder::useWritePdo();
  13047. }
  13048. /**
  13049. * Clone the query without the given properties.
  13050. *
  13051. * @param array $except
  13052. * @return static
  13053. * @static
  13054. */
  13055. public static function cloneWithout($except)
  13056. {
  13057. return \Illuminate\Database\Query\Builder::cloneWithout($except);
  13058. }
  13059. /**
  13060. * Clone the query without the given bindings.
  13061. *
  13062. * @param array $except
  13063. * @return static
  13064. * @static
  13065. */
  13066. public static function cloneWithoutBindings($except)
  13067. {
  13068. return \Illuminate\Database\Query\Builder::cloneWithoutBindings($except);
  13069. }
  13070. /**
  13071. * Register a custom macro.
  13072. *
  13073. * @param string $name
  13074. * @param callable $macro
  13075. * @return void
  13076. * @static
  13077. */
  13078. public static function macro($name, $macro)
  13079. {
  13080. \Illuminate\Database\Query\Builder::macro($name, $macro);
  13081. }
  13082. /**
  13083. * Checks if macro is registered.
  13084. *
  13085. * @param string $name
  13086. * @return bool
  13087. * @static
  13088. */
  13089. public static function hasMacro($name)
  13090. {
  13091. return \Illuminate\Database\Query\Builder::hasMacro($name);
  13092. }
  13093. /**
  13094. * Dynamically handle calls to the class.
  13095. *
  13096. * @param string $method
  13097. * @param array $parameters
  13098. * @return mixed
  13099. * @throws \BadMethodCallException
  13100. * @static
  13101. */
  13102. public static function macroCall($method, $parameters)
  13103. {
  13104. return \Illuminate\Database\Query\Builder::macroCall($method, $parameters);
  13105. }
  13106. }
  13107. class Event extends \Illuminate\Support\Facades\Event {}
  13108. class File extends \Illuminate\Support\Facades\File {}
  13109. class Gate extends \Illuminate\Support\Facades\Gate {}
  13110. class Hash extends \Illuminate\Support\Facades\Hash {}
  13111. class Lang extends \Illuminate\Support\Facades\Lang {}
  13112. class Log extends \Illuminate\Support\Facades\Log {}
  13113. class Mail extends \Illuminate\Support\Facades\Mail {}
  13114. class Notification extends \Illuminate\Support\Facades\Notification {}
  13115. class Password extends \Illuminate\Support\Facades\Password {}
  13116. class Queue extends \Illuminate\Support\Facades\Queue {}
  13117. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  13118. class Request extends \Illuminate\Support\Facades\Request {}
  13119. class Response extends \Illuminate\Support\Facades\Response {}
  13120. class Route extends \Illuminate\Support\Facades\Route {}
  13121. class Schema extends \Illuminate\Support\Facades\Schema {}
  13122. class Session extends \Illuminate\Support\Facades\Session {}
  13123. class Storage extends \Illuminate\Support\Facades\Storage {}
  13124. class URL extends \Illuminate\Support\Facades\URL {}
  13125. class Validator extends \Illuminate\Support\Facades\Validator {}
  13126. class View extends \Illuminate\Support\Facades\View {}
  13127. class Captcha extends \Mews\Captcha\Facades\Captcha {}
  13128. class Agent extends \Jenssegers\Agent\Facades\Agent {}
  13129. class Purifier extends \Mews\Purifier\Facades\Purifier {}
  13130. }