_ide_helper.php 425 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371
  1. <?php
  2. /**
  3. * A helper file for Laravel 5, to provide autocomplete information to your IDE
  4. * Generated for Laravel 5.4.30 on 2017-12-08.
  5. *
  6. * @author Barry vd. Heuvel <[email protected]>
  7. * @see https://github.com/barryvdh/laravel-ide-helper
  8. */
  9. namespace {
  10. exit("This file should not be included, only analyzed by your IDE");
  11. }
  12. namespace Illuminate\Support\Facades {
  13. class App {
  14. /**
  15. * Get the version number of the application.
  16. *
  17. * @return string
  18. * @static
  19. */
  20. public static function version()
  21. {
  22. return \Illuminate\Foundation\Application::version();
  23. }
  24. /**
  25. * Run the given array of bootstrap classes.
  26. *
  27. * @param array $bootstrappers
  28. * @return void
  29. * @static
  30. */
  31. public static function bootstrapWith($bootstrappers)
  32. {
  33. \Illuminate\Foundation\Application::bootstrapWith($bootstrappers);
  34. }
  35. /**
  36. * Register a callback to run after loading the environment.
  37. *
  38. * @param \Closure $callback
  39. * @return void
  40. * @static
  41. */
  42. public static function afterLoadingEnvironment($callback)
  43. {
  44. \Illuminate\Foundation\Application::afterLoadingEnvironment($callback);
  45. }
  46. /**
  47. * Register a callback to run before a bootstrapper.
  48. *
  49. * @param string $bootstrapper
  50. * @param \Closure $callback
  51. * @return void
  52. * @static
  53. */
  54. public static function beforeBootstrapping($bootstrapper, $callback)
  55. {
  56. \Illuminate\Foundation\Application::beforeBootstrapping($bootstrapper, $callback);
  57. }
  58. /**
  59. * Register a callback to run after a bootstrapper.
  60. *
  61. * @param string $bootstrapper
  62. * @param \Closure $callback
  63. * @return void
  64. * @static
  65. */
  66. public static function afterBootstrapping($bootstrapper, $callback)
  67. {
  68. \Illuminate\Foundation\Application::afterBootstrapping($bootstrapper, $callback);
  69. }
  70. /**
  71. * Determine if the application has been bootstrapped before.
  72. *
  73. * @return bool
  74. * @static
  75. */
  76. public static function hasBeenBootstrapped()
  77. {
  78. return \Illuminate\Foundation\Application::hasBeenBootstrapped();
  79. }
  80. /**
  81. * Set the base path for the application.
  82. *
  83. * @param string $basePath
  84. * @return $this
  85. * @static
  86. */
  87. public static function setBasePath($basePath)
  88. {
  89. return \Illuminate\Foundation\Application::setBasePath($basePath);
  90. }
  91. /**
  92. * Get the path to the application "app" directory.
  93. *
  94. * @param string $path Optionally, a path to append to the app path
  95. * @return string
  96. * @static
  97. */
  98. public static function path($path = '')
  99. {
  100. return \Illuminate\Foundation\Application::path($path);
  101. }
  102. /**
  103. * Get the base path of the Laravel installation.
  104. *
  105. * @param string $path Optionally, a path to append to the base path
  106. * @return string
  107. * @static
  108. */
  109. public static function basePath($path = '')
  110. {
  111. return \Illuminate\Foundation\Application::basePath($path);
  112. }
  113. /**
  114. * Get the path to the bootstrap directory.
  115. *
  116. * @param string $path Optionally, a path to append to the bootstrap path
  117. * @return string
  118. * @static
  119. */
  120. public static function bootstrapPath($path = '')
  121. {
  122. return \Illuminate\Foundation\Application::bootstrapPath($path);
  123. }
  124. /**
  125. * Get the path to the application configuration files.
  126. *
  127. * @param string $path Optionally, a path to append to the config path
  128. * @return string
  129. * @static
  130. */
  131. public static function configPath($path = '')
  132. {
  133. return \Illuminate\Foundation\Application::configPath($path);
  134. }
  135. /**
  136. * Get the path to the database directory.
  137. *
  138. * @param string $path Optionally, a path to append to the database path
  139. * @return string
  140. * @static
  141. */
  142. public static function databasePath($path = '')
  143. {
  144. return \Illuminate\Foundation\Application::databasePath($path);
  145. }
  146. /**
  147. * Set the database directory.
  148. *
  149. * @param string $path
  150. * @return $this
  151. * @static
  152. */
  153. public static function useDatabasePath($path)
  154. {
  155. return \Illuminate\Foundation\Application::useDatabasePath($path);
  156. }
  157. /**
  158. * Get the path to the language files.
  159. *
  160. * @return string
  161. * @static
  162. */
  163. public static function langPath()
  164. {
  165. return \Illuminate\Foundation\Application::langPath();
  166. }
  167. /**
  168. * Get the path to the public / web directory.
  169. *
  170. * @return string
  171. * @static
  172. */
  173. public static function publicPath()
  174. {
  175. return \Illuminate\Foundation\Application::publicPath();
  176. }
  177. /**
  178. * Get the path to the storage directory.
  179. *
  180. * @return string
  181. * @static
  182. */
  183. public static function storagePath()
  184. {
  185. return \Illuminate\Foundation\Application::storagePath();
  186. }
  187. /**
  188. * Set the storage directory.
  189. *
  190. * @param string $path
  191. * @return $this
  192. * @static
  193. */
  194. public static function useStoragePath($path)
  195. {
  196. return \Illuminate\Foundation\Application::useStoragePath($path);
  197. }
  198. /**
  199. * Get the path to the resources directory.
  200. *
  201. * @param string $path
  202. * @return string
  203. * @static
  204. */
  205. public static function resourcePath($path = '')
  206. {
  207. return \Illuminate\Foundation\Application::resourcePath($path);
  208. }
  209. /**
  210. * Get the path to the environment file directory.
  211. *
  212. * @return string
  213. * @static
  214. */
  215. public static function environmentPath()
  216. {
  217. return \Illuminate\Foundation\Application::environmentPath();
  218. }
  219. /**
  220. * Set the directory for the environment file.
  221. *
  222. * @param string $path
  223. * @return $this
  224. * @static
  225. */
  226. public static function useEnvironmentPath($path)
  227. {
  228. return \Illuminate\Foundation\Application::useEnvironmentPath($path);
  229. }
  230. /**
  231. * Set the environment file to be loaded during bootstrapping.
  232. *
  233. * @param string $file
  234. * @return $this
  235. * @static
  236. */
  237. public static function loadEnvironmentFrom($file)
  238. {
  239. return \Illuminate\Foundation\Application::loadEnvironmentFrom($file);
  240. }
  241. /**
  242. * Get the environment file the application is using.
  243. *
  244. * @return string
  245. * @static
  246. */
  247. public static function environmentFile()
  248. {
  249. return \Illuminate\Foundation\Application::environmentFile();
  250. }
  251. /**
  252. * Get the fully qualified path to the environment file.
  253. *
  254. * @return string
  255. * @static
  256. */
  257. public static function environmentFilePath()
  258. {
  259. return \Illuminate\Foundation\Application::environmentFilePath();
  260. }
  261. /**
  262. * Get or check the current application environment.
  263. *
  264. * @return string|bool
  265. * @static
  266. */
  267. public static function environment()
  268. {
  269. return \Illuminate\Foundation\Application::environment();
  270. }
  271. /**
  272. * Determine if application is in local environment.
  273. *
  274. * @return bool
  275. * @static
  276. */
  277. public static function isLocal()
  278. {
  279. return \Illuminate\Foundation\Application::isLocal();
  280. }
  281. /**
  282. * Detect the application's current environment.
  283. *
  284. * @param \Closure $callback
  285. * @return string
  286. * @static
  287. */
  288. public static function detectEnvironment($callback)
  289. {
  290. return \Illuminate\Foundation\Application::detectEnvironment($callback);
  291. }
  292. /**
  293. * Determine if we are running in the console.
  294. *
  295. * @return bool
  296. * @static
  297. */
  298. public static function runningInConsole()
  299. {
  300. return \Illuminate\Foundation\Application::runningInConsole();
  301. }
  302. /**
  303. * Determine if we are running unit tests.
  304. *
  305. * @return bool
  306. * @static
  307. */
  308. public static function runningUnitTests()
  309. {
  310. return \Illuminate\Foundation\Application::runningUnitTests();
  311. }
  312. /**
  313. * Register all of the configured providers.
  314. *
  315. * @return void
  316. * @static
  317. */
  318. public static function registerConfiguredProviders()
  319. {
  320. \Illuminate\Foundation\Application::registerConfiguredProviders();
  321. }
  322. /**
  323. * Register a service provider with the application.
  324. *
  325. * @param \Illuminate\Support\ServiceProvider|string $provider
  326. * @param array $options
  327. * @param bool $force
  328. * @return \Illuminate\Support\ServiceProvider
  329. * @static
  330. */
  331. public static function register($provider, $options = array(), $force = false)
  332. {
  333. return \Illuminate\Foundation\Application::register($provider, $options, $force);
  334. }
  335. /**
  336. * Get the registered service provider instance if it exists.
  337. *
  338. * @param \Illuminate\Support\ServiceProvider|string $provider
  339. * @return \Illuminate\Support\ServiceProvider|null
  340. * @static
  341. */
  342. public static function getProvider($provider)
  343. {
  344. return \Illuminate\Foundation\Application::getProvider($provider);
  345. }
  346. /**
  347. * Resolve a service provider instance from the class name.
  348. *
  349. * @param string $provider
  350. * @return \Illuminate\Support\ServiceProvider
  351. * @static
  352. */
  353. public static function resolveProvider($provider)
  354. {
  355. return \Illuminate\Foundation\Application::resolveProvider($provider);
  356. }
  357. /**
  358. * Load and boot all of the remaining deferred providers.
  359. *
  360. * @return void
  361. * @static
  362. */
  363. public static function loadDeferredProviders()
  364. {
  365. \Illuminate\Foundation\Application::loadDeferredProviders();
  366. }
  367. /**
  368. * Load the provider for a deferred service.
  369. *
  370. * @param string $service
  371. * @return void
  372. * @static
  373. */
  374. public static function loadDeferredProvider($service)
  375. {
  376. \Illuminate\Foundation\Application::loadDeferredProvider($service);
  377. }
  378. /**
  379. * Register a deferred provider and service.
  380. *
  381. * @param string $provider
  382. * @param string $service
  383. * @return void
  384. * @static
  385. */
  386. public static function registerDeferredProvider($provider, $service = null)
  387. {
  388. \Illuminate\Foundation\Application::registerDeferredProvider($provider, $service);
  389. }
  390. /**
  391. * Resolve the given type from the container.
  392. *
  393. * (Overriding Container::makeWith)
  394. *
  395. * @param string $abstract
  396. * @param array $parameters
  397. * @return mixed
  398. * @static
  399. */
  400. public static function makeWith($abstract, $parameters)
  401. {
  402. return \Illuminate\Foundation\Application::makeWith($abstract, $parameters);
  403. }
  404. /**
  405. * Resolve the given type from the container.
  406. *
  407. * (Overriding Container::make)
  408. *
  409. * @param string $abstract
  410. * @return mixed
  411. * @static
  412. */
  413. public static function make($abstract)
  414. {
  415. return \Illuminate\Foundation\Application::make($abstract);
  416. }
  417. /**
  418. * Determine if the given abstract type has been bound.
  419. *
  420. * (Overriding Container::bound)
  421. *
  422. * @param string $abstract
  423. * @return bool
  424. * @static
  425. */
  426. public static function bound($abstract)
  427. {
  428. return \Illuminate\Foundation\Application::bound($abstract);
  429. }
  430. /**
  431. * Determine if the application has booted.
  432. *
  433. * @return bool
  434. * @static
  435. */
  436. public static function isBooted()
  437. {
  438. return \Illuminate\Foundation\Application::isBooted();
  439. }
  440. /**
  441. * Boot the application's service providers.
  442. *
  443. * @return void
  444. * @static
  445. */
  446. public static function boot()
  447. {
  448. \Illuminate\Foundation\Application::boot();
  449. }
  450. /**
  451. * Register a new boot listener.
  452. *
  453. * @param mixed $callback
  454. * @return void
  455. * @static
  456. */
  457. public static function booting($callback)
  458. {
  459. \Illuminate\Foundation\Application::booting($callback);
  460. }
  461. /**
  462. * Register a new "booted" listener.
  463. *
  464. * @param mixed $callback
  465. * @return void
  466. * @static
  467. */
  468. public static function booted($callback)
  469. {
  470. \Illuminate\Foundation\Application::booted($callback);
  471. }
  472. /**
  473. * {@inheritdoc}
  474. *
  475. * @static
  476. */
  477. public static function handle($request, $type = 1, $catch = true)
  478. {
  479. return \Illuminate\Foundation\Application::handle($request, $type, $catch);
  480. }
  481. /**
  482. * Determine if middleware has been disabled for the application.
  483. *
  484. * @return bool
  485. * @static
  486. */
  487. public static function shouldSkipMiddleware()
  488. {
  489. return \Illuminate\Foundation\Application::shouldSkipMiddleware();
  490. }
  491. /**
  492. * Get the path to the cached services.php file.
  493. *
  494. * @return string
  495. * @static
  496. */
  497. public static function getCachedServicesPath()
  498. {
  499. return \Illuminate\Foundation\Application::getCachedServicesPath();
  500. }
  501. /**
  502. * Determine if the application configuration is cached.
  503. *
  504. * @return bool
  505. * @static
  506. */
  507. public static function configurationIsCached()
  508. {
  509. return \Illuminate\Foundation\Application::configurationIsCached();
  510. }
  511. /**
  512. * Get the path to the configuration cache file.
  513. *
  514. * @return string
  515. * @static
  516. */
  517. public static function getCachedConfigPath()
  518. {
  519. return \Illuminate\Foundation\Application::getCachedConfigPath();
  520. }
  521. /**
  522. * Determine if the application routes are cached.
  523. *
  524. * @return bool
  525. * @static
  526. */
  527. public static function routesAreCached()
  528. {
  529. return \Illuminate\Foundation\Application::routesAreCached();
  530. }
  531. /**
  532. * Get the path to the routes cache file.
  533. *
  534. * @return string
  535. * @static
  536. */
  537. public static function getCachedRoutesPath()
  538. {
  539. return \Illuminate\Foundation\Application::getCachedRoutesPath();
  540. }
  541. /**
  542. * Determine if the application is currently down for maintenance.
  543. *
  544. * @return bool
  545. * @static
  546. */
  547. public static function isDownForMaintenance()
  548. {
  549. return \Illuminate\Foundation\Application::isDownForMaintenance();
  550. }
  551. /**
  552. * Throw an HttpException with the given data.
  553. *
  554. * @param int $code
  555. * @param string $message
  556. * @param array $headers
  557. * @return void
  558. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  559. * @static
  560. */
  561. public static function abort($code, $message = '', $headers = array())
  562. {
  563. \Illuminate\Foundation\Application::abort($code, $message, $headers);
  564. }
  565. /**
  566. * Register a terminating callback with the application.
  567. *
  568. * @param \Closure $callback
  569. * @return $this
  570. * @static
  571. */
  572. public static function terminating($callback)
  573. {
  574. return \Illuminate\Foundation\Application::terminating($callback);
  575. }
  576. /**
  577. * Terminate the application.
  578. *
  579. * @return void
  580. * @static
  581. */
  582. public static function terminate()
  583. {
  584. \Illuminate\Foundation\Application::terminate();
  585. }
  586. /**
  587. * Get the service providers that have been loaded.
  588. *
  589. * @return array
  590. * @static
  591. */
  592. public static function getLoadedProviders()
  593. {
  594. return \Illuminate\Foundation\Application::getLoadedProviders();
  595. }
  596. /**
  597. * Get the application's deferred services.
  598. *
  599. * @return array
  600. * @static
  601. */
  602. public static function getDeferredServices()
  603. {
  604. return \Illuminate\Foundation\Application::getDeferredServices();
  605. }
  606. /**
  607. * Set the application's deferred services.
  608. *
  609. * @param array $services
  610. * @return void
  611. * @static
  612. */
  613. public static function setDeferredServices($services)
  614. {
  615. \Illuminate\Foundation\Application::setDeferredServices($services);
  616. }
  617. /**
  618. * Add an array of services to the application's deferred services.
  619. *
  620. * @param array $services
  621. * @return void
  622. * @static
  623. */
  624. public static function addDeferredServices($services)
  625. {
  626. \Illuminate\Foundation\Application::addDeferredServices($services);
  627. }
  628. /**
  629. * Determine if the given service is a deferred service.
  630. *
  631. * @param string $service
  632. * @return bool
  633. * @static
  634. */
  635. public static function isDeferredService($service)
  636. {
  637. return \Illuminate\Foundation\Application::isDeferredService($service);
  638. }
  639. /**
  640. * Configure the real-time facade namespace.
  641. *
  642. * @param string $namespace
  643. * @return void
  644. * @static
  645. */
  646. public static function provideFacades($namespace)
  647. {
  648. \Illuminate\Foundation\Application::provideFacades($namespace);
  649. }
  650. /**
  651. * Define a callback to be used to configure Monolog.
  652. *
  653. * @param callable $callback
  654. * @return $this
  655. * @static
  656. */
  657. public static function configureMonologUsing($callback)
  658. {
  659. return \Illuminate\Foundation\Application::configureMonologUsing($callback);
  660. }
  661. /**
  662. * Determine if the application has a custom Monolog configurator.
  663. *
  664. * @return bool
  665. * @static
  666. */
  667. public static function hasMonologConfigurator()
  668. {
  669. return \Illuminate\Foundation\Application::hasMonologConfigurator();
  670. }
  671. /**
  672. * Get the custom Monolog configurator for the application.
  673. *
  674. * @return callable
  675. * @static
  676. */
  677. public static function getMonologConfigurator()
  678. {
  679. return \Illuminate\Foundation\Application::getMonologConfigurator();
  680. }
  681. /**
  682. * Get the current application locale.
  683. *
  684. * @return string
  685. * @static
  686. */
  687. public static function getLocale()
  688. {
  689. return \Illuminate\Foundation\Application::getLocale();
  690. }
  691. /**
  692. * Set the current application locale.
  693. *
  694. * @param string $locale
  695. * @return void
  696. * @static
  697. */
  698. public static function setLocale($locale)
  699. {
  700. \Illuminate\Foundation\Application::setLocale($locale);
  701. }
  702. /**
  703. * Determine if application locale is the given locale.
  704. *
  705. * @param string $locale
  706. * @return bool
  707. * @static
  708. */
  709. public static function isLocale($locale)
  710. {
  711. return \Illuminate\Foundation\Application::isLocale($locale);
  712. }
  713. /**
  714. * Register the core class aliases in the container.
  715. *
  716. * @return void
  717. * @static
  718. */
  719. public static function registerCoreContainerAliases()
  720. {
  721. \Illuminate\Foundation\Application::registerCoreContainerAliases();
  722. }
  723. /**
  724. * Flush the container of all bindings and resolved instances.
  725. *
  726. * @return void
  727. * @static
  728. */
  729. public static function flush()
  730. {
  731. \Illuminate\Foundation\Application::flush();
  732. }
  733. /**
  734. * Get the application namespace.
  735. *
  736. * @return string
  737. * @throws \RuntimeException
  738. * @static
  739. */
  740. public static function getNamespace()
  741. {
  742. return \Illuminate\Foundation\Application::getNamespace();
  743. }
  744. /**
  745. * Define a contextual binding.
  746. *
  747. * @param string $concrete
  748. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  749. * @static
  750. */
  751. public static function when($concrete)
  752. {
  753. //Method inherited from \Illuminate\Container\Container
  754. return \Illuminate\Foundation\Application::when($concrete);
  755. }
  756. /**
  757. * Determine if the given abstract type has been resolved.
  758. *
  759. * @param string $abstract
  760. * @return bool
  761. * @static
  762. */
  763. public static function resolved($abstract)
  764. {
  765. //Method inherited from \Illuminate\Container\Container
  766. return \Illuminate\Foundation\Application::resolved($abstract);
  767. }
  768. /**
  769. * Determine if a given type is shared.
  770. *
  771. * @param string $abstract
  772. * @return bool
  773. * @static
  774. */
  775. public static function isShared($abstract)
  776. {
  777. //Method inherited from \Illuminate\Container\Container
  778. return \Illuminate\Foundation\Application::isShared($abstract);
  779. }
  780. /**
  781. * Determine if a given string is an alias.
  782. *
  783. * @param string $name
  784. * @return bool
  785. * @static
  786. */
  787. public static function isAlias($name)
  788. {
  789. //Method inherited from \Illuminate\Container\Container
  790. return \Illuminate\Foundation\Application::isAlias($name);
  791. }
  792. /**
  793. * Register a binding with the container.
  794. *
  795. * @param string|array $abstract
  796. * @param \Closure|string|null $concrete
  797. * @param bool $shared
  798. * @return void
  799. * @static
  800. */
  801. public static function bind($abstract, $concrete = null, $shared = false)
  802. {
  803. //Method inherited from \Illuminate\Container\Container
  804. \Illuminate\Foundation\Application::bind($abstract, $concrete, $shared);
  805. }
  806. /**
  807. * Determine if the container has a method binding.
  808. *
  809. * @param string $method
  810. * @return bool
  811. * @static
  812. */
  813. public static function hasMethodBinding($method)
  814. {
  815. //Method inherited from \Illuminate\Container\Container
  816. return \Illuminate\Foundation\Application::hasMethodBinding($method);
  817. }
  818. /**
  819. * Bind a callback to resolve with Container::call.
  820. *
  821. * @param string $method
  822. * @param \Closure $callback
  823. * @return void
  824. * @static
  825. */
  826. public static function bindMethod($method, $callback)
  827. {
  828. //Method inherited from \Illuminate\Container\Container
  829. \Illuminate\Foundation\Application::bindMethod($method, $callback);
  830. }
  831. /**
  832. * Get the method binding for the given method.
  833. *
  834. * @param string $method
  835. * @param mixed $instance
  836. * @return mixed
  837. * @static
  838. */
  839. public static function callMethodBinding($method, $instance)
  840. {
  841. //Method inherited from \Illuminate\Container\Container
  842. return \Illuminate\Foundation\Application::callMethodBinding($method, $instance);
  843. }
  844. /**
  845. * Add a contextual binding to the container.
  846. *
  847. * @param string $concrete
  848. * @param string $abstract
  849. * @param \Closure|string $implementation
  850. * @return void
  851. * @static
  852. */
  853. public static function addContextualBinding($concrete, $abstract, $implementation)
  854. {
  855. //Method inherited from \Illuminate\Container\Container
  856. \Illuminate\Foundation\Application::addContextualBinding($concrete, $abstract, $implementation);
  857. }
  858. /**
  859. * Register a binding if it hasn't already been registered.
  860. *
  861. * @param string $abstract
  862. * @param \Closure|string|null $concrete
  863. * @param bool $shared
  864. * @return void
  865. * @static
  866. */
  867. public static function bindIf($abstract, $concrete = null, $shared = false)
  868. {
  869. //Method inherited from \Illuminate\Container\Container
  870. \Illuminate\Foundation\Application::bindIf($abstract, $concrete, $shared);
  871. }
  872. /**
  873. * Register a shared binding in the container.
  874. *
  875. * @param string|array $abstract
  876. * @param \Closure|string|null $concrete
  877. * @return void
  878. * @static
  879. */
  880. public static function singleton($abstract, $concrete = null)
  881. {
  882. //Method inherited from \Illuminate\Container\Container
  883. \Illuminate\Foundation\Application::singleton($abstract, $concrete);
  884. }
  885. /**
  886. * "Extend" an abstract type in the container.
  887. *
  888. * @param string $abstract
  889. * @param \Closure $closure
  890. * @return void
  891. * @throws \InvalidArgumentException
  892. * @static
  893. */
  894. public static function extend($abstract, $closure)
  895. {
  896. //Method inherited from \Illuminate\Container\Container
  897. \Illuminate\Foundation\Application::extend($abstract, $closure);
  898. }
  899. /**
  900. * Register an existing instance as shared in the container.
  901. *
  902. * @param string $abstract
  903. * @param mixed $instance
  904. * @return void
  905. * @static
  906. */
  907. public static function instance($abstract, $instance)
  908. {
  909. //Method inherited from \Illuminate\Container\Container
  910. \Illuminate\Foundation\Application::instance($abstract, $instance);
  911. }
  912. /**
  913. * Assign a set of tags to a given binding.
  914. *
  915. * @param array|string $abstracts
  916. * @param array|mixed $tags
  917. * @return void
  918. * @static
  919. */
  920. public static function tag($abstracts, $tags)
  921. {
  922. //Method inherited from \Illuminate\Container\Container
  923. \Illuminate\Foundation\Application::tag($abstracts, $tags);
  924. }
  925. /**
  926. * Resolve all of the bindings for a given tag.
  927. *
  928. * @param string $tag
  929. * @return array
  930. * @static
  931. */
  932. public static function tagged($tag)
  933. {
  934. //Method inherited from \Illuminate\Container\Container
  935. return \Illuminate\Foundation\Application::tagged($tag);
  936. }
  937. /**
  938. * Alias a type to a different name.
  939. *
  940. * @param string $abstract
  941. * @param string $alias
  942. * @return void
  943. * @static
  944. */
  945. public static function alias($abstract, $alias)
  946. {
  947. //Method inherited from \Illuminate\Container\Container
  948. \Illuminate\Foundation\Application::alias($abstract, $alias);
  949. }
  950. /**
  951. * Bind a new callback to an abstract's rebind event.
  952. *
  953. * @param string $abstract
  954. * @param \Closure $callback
  955. * @return mixed
  956. * @static
  957. */
  958. public static function rebinding($abstract, $callback)
  959. {
  960. //Method inherited from \Illuminate\Container\Container
  961. return \Illuminate\Foundation\Application::rebinding($abstract, $callback);
  962. }
  963. /**
  964. * Refresh an instance on the given target and method.
  965. *
  966. * @param string $abstract
  967. * @param mixed $target
  968. * @param string $method
  969. * @return mixed
  970. * @static
  971. */
  972. public static function refresh($abstract, $target, $method)
  973. {
  974. //Method inherited from \Illuminate\Container\Container
  975. return \Illuminate\Foundation\Application::refresh($abstract, $target, $method);
  976. }
  977. /**
  978. * Wrap the given closure such that its dependencies will be injected when executed.
  979. *
  980. * @param \Closure $callback
  981. * @param array $parameters
  982. * @return \Closure
  983. * @static
  984. */
  985. public static function wrap($callback, $parameters = array())
  986. {
  987. //Method inherited from \Illuminate\Container\Container
  988. return \Illuminate\Foundation\Application::wrap($callback, $parameters);
  989. }
  990. /**
  991. * Call the given Closure / class@method and inject its dependencies.
  992. *
  993. * @param callable|string $callback
  994. * @param array $parameters
  995. * @param string|null $defaultMethod
  996. * @return mixed
  997. * @static
  998. */
  999. public static function call($callback, $parameters = array(), $defaultMethod = null)
  1000. {
  1001. //Method inherited from \Illuminate\Container\Container
  1002. return \Illuminate\Foundation\Application::call($callback, $parameters, $defaultMethod);
  1003. }
  1004. /**
  1005. * Get a closure to resolve the given type from the container.
  1006. *
  1007. * @param string $abstract
  1008. * @return \Closure
  1009. * @static
  1010. */
  1011. public static function factory($abstract)
  1012. {
  1013. //Method inherited from \Illuminate\Container\Container
  1014. return \Illuminate\Foundation\Application::factory($abstract);
  1015. }
  1016. /**
  1017. * Instantiate a concrete instance of the given type.
  1018. *
  1019. * @param string $concrete
  1020. * @return mixed
  1021. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1022. * @static
  1023. */
  1024. public static function build($concrete)
  1025. {
  1026. //Method inherited from \Illuminate\Container\Container
  1027. return \Illuminate\Foundation\Application::build($concrete);
  1028. }
  1029. /**
  1030. * Register a new resolving callback.
  1031. *
  1032. * @param string $abstract
  1033. * @param \Closure|null $callback
  1034. * @return void
  1035. * @static
  1036. */
  1037. public static function resolving($abstract, $callback = null)
  1038. {
  1039. //Method inherited from \Illuminate\Container\Container
  1040. \Illuminate\Foundation\Application::resolving($abstract, $callback);
  1041. }
  1042. /**
  1043. * Register a new after resolving callback for all types.
  1044. *
  1045. * @param string $abstract
  1046. * @param \Closure|null $callback
  1047. * @return void
  1048. * @static
  1049. */
  1050. public static function afterResolving($abstract, $callback = null)
  1051. {
  1052. //Method inherited from \Illuminate\Container\Container
  1053. \Illuminate\Foundation\Application::afterResolving($abstract, $callback);
  1054. }
  1055. /**
  1056. * Get the container's bindings.
  1057. *
  1058. * @return array
  1059. * @static
  1060. */
  1061. public static function getBindings()
  1062. {
  1063. //Method inherited from \Illuminate\Container\Container
  1064. return \Illuminate\Foundation\Application::getBindings();
  1065. }
  1066. /**
  1067. * Get the alias for an abstract if available.
  1068. *
  1069. * @param string $abstract
  1070. * @return string
  1071. * @throws \LogicException
  1072. * @static
  1073. */
  1074. public static function getAlias($abstract)
  1075. {
  1076. //Method inherited from \Illuminate\Container\Container
  1077. return \Illuminate\Foundation\Application::getAlias($abstract);
  1078. }
  1079. /**
  1080. * Remove all of the extender callbacks for a given type.
  1081. *
  1082. * @param string $abstract
  1083. * @return void
  1084. * @static
  1085. */
  1086. public static function forgetExtenders($abstract)
  1087. {
  1088. //Method inherited from \Illuminate\Container\Container
  1089. \Illuminate\Foundation\Application::forgetExtenders($abstract);
  1090. }
  1091. /**
  1092. * Remove a resolved instance from the instance cache.
  1093. *
  1094. * @param string $abstract
  1095. * @return void
  1096. * @static
  1097. */
  1098. public static function forgetInstance($abstract)
  1099. {
  1100. //Method inherited from \Illuminate\Container\Container
  1101. \Illuminate\Foundation\Application::forgetInstance($abstract);
  1102. }
  1103. /**
  1104. * Clear all of the instances from the container.
  1105. *
  1106. * @return void
  1107. * @static
  1108. */
  1109. public static function forgetInstances()
  1110. {
  1111. //Method inherited from \Illuminate\Container\Container
  1112. \Illuminate\Foundation\Application::forgetInstances();
  1113. }
  1114. /**
  1115. * Set the globally available instance of the container.
  1116. *
  1117. * @return static
  1118. * @static
  1119. */
  1120. public static function getInstance()
  1121. {
  1122. //Method inherited from \Illuminate\Container\Container
  1123. return \Illuminate\Foundation\Application::getInstance();
  1124. }
  1125. /**
  1126. * Set the shared instance of the container.
  1127. *
  1128. * @param \Illuminate\Contracts\Container\Container|null $container
  1129. * @return static
  1130. * @static
  1131. */
  1132. public static function setInstance($container = null)
  1133. {
  1134. //Method inherited from \Illuminate\Container\Container
  1135. return \Illuminate\Foundation\Application::setInstance($container);
  1136. }
  1137. /**
  1138. * Determine if a given offset exists.
  1139. *
  1140. * @param string $key
  1141. * @return bool
  1142. * @static
  1143. */
  1144. public static function offsetExists($key)
  1145. {
  1146. //Method inherited from \Illuminate\Container\Container
  1147. return \Illuminate\Foundation\Application::offsetExists($key);
  1148. }
  1149. /**
  1150. * Get the value at a given offset.
  1151. *
  1152. * @param string $key
  1153. * @return mixed
  1154. * @static
  1155. */
  1156. public static function offsetGet($key)
  1157. {
  1158. //Method inherited from \Illuminate\Container\Container
  1159. return \Illuminate\Foundation\Application::offsetGet($key);
  1160. }
  1161. /**
  1162. * Set the value at a given offset.
  1163. *
  1164. * @param string $key
  1165. * @param mixed $value
  1166. * @return void
  1167. * @static
  1168. */
  1169. public static function offsetSet($key, $value)
  1170. {
  1171. //Method inherited from \Illuminate\Container\Container
  1172. \Illuminate\Foundation\Application::offsetSet($key, $value);
  1173. }
  1174. /**
  1175. * Unset the value at a given offset.
  1176. *
  1177. * @param string $key
  1178. * @return void
  1179. * @static
  1180. */
  1181. public static function offsetUnset($key)
  1182. {
  1183. //Method inherited from \Illuminate\Container\Container
  1184. \Illuminate\Foundation\Application::offsetUnset($key);
  1185. }
  1186. }
  1187. class Artisan {
  1188. /**
  1189. * Run the console application.
  1190. *
  1191. * @param \Symfony\Component\Console\Input\InputInterface $input
  1192. * @param \Symfony\Component\Console\Output\OutputInterface $output
  1193. * @return int
  1194. * @static
  1195. */
  1196. public static function handle($input, $output = null)
  1197. {
  1198. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1199. return \App\Console\Kernel::handle($input, $output);
  1200. }
  1201. /**
  1202. * Terminate the application.
  1203. *
  1204. * @param \Symfony\Component\Console\Input\InputInterface $input
  1205. * @param int $status
  1206. * @return void
  1207. * @static
  1208. */
  1209. public static function terminate($input, $status)
  1210. {
  1211. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1212. \App\Console\Kernel::terminate($input, $status);
  1213. }
  1214. /**
  1215. * Register a Closure based command with the application.
  1216. *
  1217. * @param string $signature
  1218. * @param \Closure $callback
  1219. * @return \Illuminate\Foundation\Console\ClosureCommand
  1220. * @static
  1221. */
  1222. public static function command($signature, $callback)
  1223. {
  1224. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1225. return \App\Console\Kernel::command($signature, $callback);
  1226. }
  1227. /**
  1228. * Register the given command with the console application.
  1229. *
  1230. * @param \Symfony\Component\Console\Command\Command $command
  1231. * @return void
  1232. * @static
  1233. */
  1234. public static function registerCommand($command)
  1235. {
  1236. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1237. \App\Console\Kernel::registerCommand($command);
  1238. }
  1239. /**
  1240. * Run an Artisan console command by name.
  1241. *
  1242. * @param string $command
  1243. * @param array $parameters
  1244. * @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
  1245. * @return int
  1246. * @static
  1247. */
  1248. public static function call($command, $parameters = array(), $outputBuffer = null)
  1249. {
  1250. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1251. return \App\Console\Kernel::call($command, $parameters, $outputBuffer);
  1252. }
  1253. /**
  1254. * Queue the given console command.
  1255. *
  1256. * @param string $command
  1257. * @param array $parameters
  1258. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1259. * @static
  1260. */
  1261. public static function queue($command, $parameters = array())
  1262. {
  1263. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1264. return \App\Console\Kernel::queue($command, $parameters);
  1265. }
  1266. /**
  1267. * Get all of the commands registered with the console.
  1268. *
  1269. * @return array
  1270. * @static
  1271. */
  1272. public static function all()
  1273. {
  1274. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1275. return \App\Console\Kernel::all();
  1276. }
  1277. /**
  1278. * Get the output for the last run command.
  1279. *
  1280. * @return string
  1281. * @static
  1282. */
  1283. public static function output()
  1284. {
  1285. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1286. return \App\Console\Kernel::output();
  1287. }
  1288. /**
  1289. * Bootstrap the application for artisan commands.
  1290. *
  1291. * @return void
  1292. * @static
  1293. */
  1294. public static function bootstrap()
  1295. {
  1296. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1297. \App\Console\Kernel::bootstrap();
  1298. }
  1299. /**
  1300. * Set the Artisan application instance.
  1301. *
  1302. * @param \Illuminate\Console\Application $artisan
  1303. * @return void
  1304. * @static
  1305. */
  1306. public static function setArtisan($artisan)
  1307. {
  1308. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1309. \App\Console\Kernel::setArtisan($artisan);
  1310. }
  1311. }
  1312. class Auth {
  1313. /**
  1314. * Attempt to get the guard from the local cache.
  1315. *
  1316. * @param string $name
  1317. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1318. * @static
  1319. */
  1320. public static function guard($name = null)
  1321. {
  1322. return \Illuminate\Auth\AuthManager::guard($name);
  1323. }
  1324. /**
  1325. * Create a session based authentication guard.
  1326. *
  1327. * @param string $name
  1328. * @param array $config
  1329. * @return \Illuminate\Auth\SessionGuard
  1330. * @static
  1331. */
  1332. public static function createSessionDriver($name, $config)
  1333. {
  1334. return \Illuminate\Auth\AuthManager::createSessionDriver($name, $config);
  1335. }
  1336. /**
  1337. * Create a token based authentication guard.
  1338. *
  1339. * @param string $name
  1340. * @param array $config
  1341. * @return \Illuminate\Auth\TokenGuard
  1342. * @static
  1343. */
  1344. public static function createTokenDriver($name, $config)
  1345. {
  1346. return \Illuminate\Auth\AuthManager::createTokenDriver($name, $config);
  1347. }
  1348. /**
  1349. * Get the default authentication driver name.
  1350. *
  1351. * @return string
  1352. * @static
  1353. */
  1354. public static function getDefaultDriver()
  1355. {
  1356. return \Illuminate\Auth\AuthManager::getDefaultDriver();
  1357. }
  1358. /**
  1359. * Set the default guard driver the factory should serve.
  1360. *
  1361. * @param string $name
  1362. * @return void
  1363. * @static
  1364. */
  1365. public static function shouldUse($name)
  1366. {
  1367. \Illuminate\Auth\AuthManager::shouldUse($name);
  1368. }
  1369. /**
  1370. * Set the default authentication driver name.
  1371. *
  1372. * @param string $name
  1373. * @return void
  1374. * @static
  1375. */
  1376. public static function setDefaultDriver($name)
  1377. {
  1378. \Illuminate\Auth\AuthManager::setDefaultDriver($name);
  1379. }
  1380. /**
  1381. * Register a new callback based request guard.
  1382. *
  1383. * @param string $driver
  1384. * @param callable $callback
  1385. * @return $this
  1386. * @static
  1387. */
  1388. public static function viaRequest($driver, $callback)
  1389. {
  1390. return \Illuminate\Auth\AuthManager::viaRequest($driver, $callback);
  1391. }
  1392. /**
  1393. * Get the user resolver callback.
  1394. *
  1395. * @return \Closure
  1396. * @static
  1397. */
  1398. public static function userResolver()
  1399. {
  1400. return \Illuminate\Auth\AuthManager::userResolver();
  1401. }
  1402. /**
  1403. * Set the callback to be used to resolve users.
  1404. *
  1405. * @param \Closure $userResolver
  1406. * @return $this
  1407. * @static
  1408. */
  1409. public static function resolveUsersUsing($userResolver)
  1410. {
  1411. return \Illuminate\Auth\AuthManager::resolveUsersUsing($userResolver);
  1412. }
  1413. /**
  1414. * Register a custom driver creator Closure.
  1415. *
  1416. * @param string $driver
  1417. * @param \Closure $callback
  1418. * @return $this
  1419. * @static
  1420. */
  1421. public static function extend($driver, $callback)
  1422. {
  1423. return \Illuminate\Auth\AuthManager::extend($driver, $callback);
  1424. }
  1425. /**
  1426. * Register a custom provider creator Closure.
  1427. *
  1428. * @param string $name
  1429. * @param \Closure $callback
  1430. * @return $this
  1431. * @static
  1432. */
  1433. public static function provider($name, $callback)
  1434. {
  1435. return \Illuminate\Auth\AuthManager::provider($name, $callback);
  1436. }
  1437. /**
  1438. * Create the user provider implementation for the driver.
  1439. *
  1440. * @param string $provider
  1441. * @return \Illuminate\Contracts\Auth\UserProvider
  1442. * @throws \InvalidArgumentException
  1443. * @static
  1444. */
  1445. public static function createUserProvider($provider)
  1446. {
  1447. return \Illuminate\Auth\AuthManager::createUserProvider($provider);
  1448. }
  1449. /**
  1450. * Get the currently authenticated user.
  1451. *
  1452. * @return \App\User|null
  1453. * @static
  1454. */
  1455. public static function user()
  1456. {
  1457. return \Illuminate\Auth\SessionGuard::user();
  1458. }
  1459. /**
  1460. * Get the ID for the currently authenticated user.
  1461. *
  1462. * @return int|null
  1463. * @static
  1464. */
  1465. public static function id()
  1466. {
  1467. return \Illuminate\Auth\SessionGuard::id();
  1468. }
  1469. /**
  1470. * Log a user into the application without sessions or cookies.
  1471. *
  1472. * @param array $credentials
  1473. * @return bool
  1474. * @static
  1475. */
  1476. public static function once($credentials = array())
  1477. {
  1478. return \Illuminate\Auth\SessionGuard::once($credentials);
  1479. }
  1480. /**
  1481. * Log the given user ID into the application without sessions or cookies.
  1482. *
  1483. * @param mixed $id
  1484. * @return \App\User|false
  1485. * @static
  1486. */
  1487. public static function onceUsingId($id)
  1488. {
  1489. return \Illuminate\Auth\SessionGuard::onceUsingId($id);
  1490. }
  1491. /**
  1492. * Validate a user's credentials.
  1493. *
  1494. * @param array $credentials
  1495. * @return bool
  1496. * @static
  1497. */
  1498. public static function validate($credentials = array())
  1499. {
  1500. return \Illuminate\Auth\SessionGuard::validate($credentials);
  1501. }
  1502. /**
  1503. * Attempt to authenticate using HTTP Basic Auth.
  1504. *
  1505. * @param string $field
  1506. * @param array $extraConditions
  1507. * @return \Symfony\Component\HttpFoundation\Response|null
  1508. * @static
  1509. */
  1510. public static function basic($field = 'email', $extraConditions = array())
  1511. {
  1512. return \Illuminate\Auth\SessionGuard::basic($field, $extraConditions);
  1513. }
  1514. /**
  1515. * Perform a stateless HTTP Basic login attempt.
  1516. *
  1517. * @param string $field
  1518. * @param array $extraConditions
  1519. * @return \Symfony\Component\HttpFoundation\Response|null
  1520. * @static
  1521. */
  1522. public static function onceBasic($field = 'email', $extraConditions = array())
  1523. {
  1524. return \Illuminate\Auth\SessionGuard::onceBasic($field, $extraConditions);
  1525. }
  1526. /**
  1527. * Attempt to authenticate a user using the given credentials.
  1528. *
  1529. * @param array $credentials
  1530. * @param bool $remember
  1531. * @return bool
  1532. * @static
  1533. */
  1534. public static function attempt($credentials = array(), $remember = false)
  1535. {
  1536. return \Illuminate\Auth\SessionGuard::attempt($credentials, $remember);
  1537. }
  1538. /**
  1539. * Log the given user ID into the application.
  1540. *
  1541. * @param mixed $id
  1542. * @param bool $remember
  1543. * @return \App\User|false
  1544. * @static
  1545. */
  1546. public static function loginUsingId($id, $remember = false)
  1547. {
  1548. return \Illuminate\Auth\SessionGuard::loginUsingId($id, $remember);
  1549. }
  1550. /**
  1551. * Log a user into the application.
  1552. *
  1553. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1554. * @param bool $remember
  1555. * @return void
  1556. * @static
  1557. */
  1558. public static function login($user, $remember = false)
  1559. {
  1560. \Illuminate\Auth\SessionGuard::login($user, $remember);
  1561. }
  1562. /**
  1563. * Log the user out of the application.
  1564. *
  1565. * @return void
  1566. * @static
  1567. */
  1568. public static function logout()
  1569. {
  1570. \Illuminate\Auth\SessionGuard::logout();
  1571. }
  1572. /**
  1573. * Register an authentication attempt event listener.
  1574. *
  1575. * @param mixed $callback
  1576. * @return void
  1577. * @static
  1578. */
  1579. public static function attempting($callback)
  1580. {
  1581. \Illuminate\Auth\SessionGuard::attempting($callback);
  1582. }
  1583. /**
  1584. * Get the last user we attempted to authenticate.
  1585. *
  1586. * @return \App\User
  1587. * @static
  1588. */
  1589. public static function getLastAttempted()
  1590. {
  1591. return \Illuminate\Auth\SessionGuard::getLastAttempted();
  1592. }
  1593. /**
  1594. * Get a unique identifier for the auth session value.
  1595. *
  1596. * @return string
  1597. * @static
  1598. */
  1599. public static function getName()
  1600. {
  1601. return \Illuminate\Auth\SessionGuard::getName();
  1602. }
  1603. /**
  1604. * Get the name of the cookie used to store the "recaller".
  1605. *
  1606. * @return string
  1607. * @static
  1608. */
  1609. public static function getRecallerName()
  1610. {
  1611. return \Illuminate\Auth\SessionGuard::getRecallerName();
  1612. }
  1613. /**
  1614. * Determine if the user was authenticated via "remember me" cookie.
  1615. *
  1616. * @return bool
  1617. * @static
  1618. */
  1619. public static function viaRemember()
  1620. {
  1621. return \Illuminate\Auth\SessionGuard::viaRemember();
  1622. }
  1623. /**
  1624. * Get the cookie creator instance used by the guard.
  1625. *
  1626. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1627. * @throws \RuntimeException
  1628. * @static
  1629. */
  1630. public static function getCookieJar()
  1631. {
  1632. return \Illuminate\Auth\SessionGuard::getCookieJar();
  1633. }
  1634. /**
  1635. * Set the cookie creator instance used by the guard.
  1636. *
  1637. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1638. * @return void
  1639. * @static
  1640. */
  1641. public static function setCookieJar($cookie)
  1642. {
  1643. \Illuminate\Auth\SessionGuard::setCookieJar($cookie);
  1644. }
  1645. /**
  1646. * Get the event dispatcher instance.
  1647. *
  1648. * @return \Illuminate\Contracts\Events\Dispatcher
  1649. * @static
  1650. */
  1651. public static function getDispatcher()
  1652. {
  1653. return \Illuminate\Auth\SessionGuard::getDispatcher();
  1654. }
  1655. /**
  1656. * Set the event dispatcher instance.
  1657. *
  1658. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1659. * @return void
  1660. * @static
  1661. */
  1662. public static function setDispatcher($events)
  1663. {
  1664. \Illuminate\Auth\SessionGuard::setDispatcher($events);
  1665. }
  1666. /**
  1667. * Get the session store used by the guard.
  1668. *
  1669. * @return \Illuminate\Session\Store
  1670. * @static
  1671. */
  1672. public static function getSession()
  1673. {
  1674. return \Illuminate\Auth\SessionGuard::getSession();
  1675. }
  1676. /**
  1677. * Get the user provider used by the guard.
  1678. *
  1679. * @return \Illuminate\Contracts\Auth\UserProvider
  1680. * @static
  1681. */
  1682. public static function getProvider()
  1683. {
  1684. return \Illuminate\Auth\SessionGuard::getProvider();
  1685. }
  1686. /**
  1687. * Set the user provider used by the guard.
  1688. *
  1689. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  1690. * @return void
  1691. * @static
  1692. */
  1693. public static function setProvider($provider)
  1694. {
  1695. \Illuminate\Auth\SessionGuard::setProvider($provider);
  1696. }
  1697. /**
  1698. * Return the currently cached user.
  1699. *
  1700. * @return \App\User|null
  1701. * @static
  1702. */
  1703. public static function getUser()
  1704. {
  1705. return \Illuminate\Auth\SessionGuard::getUser();
  1706. }
  1707. /**
  1708. * Set the current user.
  1709. *
  1710. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1711. * @return $this
  1712. * @static
  1713. */
  1714. public static function setUser($user)
  1715. {
  1716. return \Illuminate\Auth\SessionGuard::setUser($user);
  1717. }
  1718. /**
  1719. * Get the current request instance.
  1720. *
  1721. * @return \Symfony\Component\HttpFoundation\Request
  1722. * @static
  1723. */
  1724. public static function getRequest()
  1725. {
  1726. return \Illuminate\Auth\SessionGuard::getRequest();
  1727. }
  1728. /**
  1729. * Set the current request instance.
  1730. *
  1731. * @param \Symfony\Component\HttpFoundation\Request $request
  1732. * @return $this
  1733. * @static
  1734. */
  1735. public static function setRequest($request)
  1736. {
  1737. return \Illuminate\Auth\SessionGuard::setRequest($request);
  1738. }
  1739. /**
  1740. * Determine if the current user is authenticated.
  1741. *
  1742. * @return \App\User
  1743. * @throws \Illuminate\Auth\AuthenticationException
  1744. * @static
  1745. */
  1746. public static function authenticate()
  1747. {
  1748. return \Illuminate\Auth\SessionGuard::authenticate();
  1749. }
  1750. /**
  1751. * Determine if the current user is authenticated.
  1752. *
  1753. * @return bool
  1754. * @static
  1755. */
  1756. public static function check()
  1757. {
  1758. return \Illuminate\Auth\SessionGuard::check();
  1759. }
  1760. /**
  1761. * Determine if the current user is a guest.
  1762. *
  1763. * @return bool
  1764. * @static
  1765. */
  1766. public static function guest()
  1767. {
  1768. return \Illuminate\Auth\SessionGuard::guest();
  1769. }
  1770. /**
  1771. * Register a custom macro.
  1772. *
  1773. * @param string $name
  1774. * @param callable $macro
  1775. * @return void
  1776. * @static
  1777. */
  1778. public static function macro($name, $macro)
  1779. {
  1780. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  1781. }
  1782. /**
  1783. * Checks if macro is registered.
  1784. *
  1785. * @param string $name
  1786. * @return bool
  1787. * @static
  1788. */
  1789. public static function hasMacro($name)
  1790. {
  1791. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  1792. }
  1793. }
  1794. class Blade {
  1795. /**
  1796. * Compile the view at the given path.
  1797. *
  1798. * @param string $path
  1799. * @return void
  1800. * @static
  1801. */
  1802. public static function compile($path = null)
  1803. {
  1804. \Illuminate\View\Compilers\BladeCompiler::compile($path);
  1805. }
  1806. /**
  1807. * Get the path currently being compiled.
  1808. *
  1809. * @return string
  1810. * @static
  1811. */
  1812. public static function getPath()
  1813. {
  1814. return \Illuminate\View\Compilers\BladeCompiler::getPath();
  1815. }
  1816. /**
  1817. * Set the path currently being compiled.
  1818. *
  1819. * @param string $path
  1820. * @return void
  1821. * @static
  1822. */
  1823. public static function setPath($path)
  1824. {
  1825. \Illuminate\View\Compilers\BladeCompiler::setPath($path);
  1826. }
  1827. /**
  1828. * Compile the given Blade template contents.
  1829. *
  1830. * @param string $value
  1831. * @return string
  1832. * @static
  1833. */
  1834. public static function compileString($value)
  1835. {
  1836. return \Illuminate\View\Compilers\BladeCompiler::compileString($value);
  1837. }
  1838. /**
  1839. * Strip the parentheses from the given expression.
  1840. *
  1841. * @param string $expression
  1842. * @return string
  1843. * @static
  1844. */
  1845. public static function stripParentheses($expression)
  1846. {
  1847. return \Illuminate\View\Compilers\BladeCompiler::stripParentheses($expression);
  1848. }
  1849. /**
  1850. * Register a custom Blade compiler.
  1851. *
  1852. * @param callable $compiler
  1853. * @return void
  1854. * @static
  1855. */
  1856. public static function extend($compiler)
  1857. {
  1858. \Illuminate\View\Compilers\BladeCompiler::extend($compiler);
  1859. }
  1860. /**
  1861. * Get the extensions used by the compiler.
  1862. *
  1863. * @return array
  1864. * @static
  1865. */
  1866. public static function getExtensions()
  1867. {
  1868. return \Illuminate\View\Compilers\BladeCompiler::getExtensions();
  1869. }
  1870. /**
  1871. * Register a handler for custom directives.
  1872. *
  1873. * @param string $name
  1874. * @param callable $handler
  1875. * @return void
  1876. * @static
  1877. */
  1878. public static function directive($name, $handler)
  1879. {
  1880. \Illuminate\View\Compilers\BladeCompiler::directive($name, $handler);
  1881. }
  1882. /**
  1883. * Get the list of custom directives.
  1884. *
  1885. * @return array
  1886. * @static
  1887. */
  1888. public static function getCustomDirectives()
  1889. {
  1890. return \Illuminate\View\Compilers\BladeCompiler::getCustomDirectives();
  1891. }
  1892. /**
  1893. * Set the echo format to be used by the compiler.
  1894. *
  1895. * @param string $format
  1896. * @return void
  1897. * @static
  1898. */
  1899. public static function setEchoFormat($format)
  1900. {
  1901. \Illuminate\View\Compilers\BladeCompiler::setEchoFormat($format);
  1902. }
  1903. /**
  1904. * Get the path to the compiled version of a view.
  1905. *
  1906. * @param string $path
  1907. * @return string
  1908. * @static
  1909. */
  1910. public static function getCompiledPath($path)
  1911. {
  1912. //Method inherited from \Illuminate\View\Compilers\Compiler
  1913. return \Illuminate\View\Compilers\BladeCompiler::getCompiledPath($path);
  1914. }
  1915. /**
  1916. * Determine if the view at the given path is expired.
  1917. *
  1918. * @param string $path
  1919. * @return bool
  1920. * @static
  1921. */
  1922. public static function isExpired($path)
  1923. {
  1924. //Method inherited from \Illuminate\View\Compilers\Compiler
  1925. return \Illuminate\View\Compilers\BladeCompiler::isExpired($path);
  1926. }
  1927. /**
  1928. * Compile the default values for the echo statement.
  1929. *
  1930. * @param string $value
  1931. * @return string
  1932. * @static
  1933. */
  1934. public static function compileEchoDefaults($value)
  1935. {
  1936. return \Illuminate\View\Compilers\BladeCompiler::compileEchoDefaults($value);
  1937. }
  1938. }
  1939. class Broadcast {
  1940. /**
  1941. * Register the routes for handling broadcast authentication and sockets.
  1942. *
  1943. * @param array|null $attributes
  1944. * @return void
  1945. * @static
  1946. */
  1947. public static function routes($attributes = null)
  1948. {
  1949. \Illuminate\Broadcasting\BroadcastManager::routes($attributes);
  1950. }
  1951. /**
  1952. * Get the socket ID for the given request.
  1953. *
  1954. * @param \Illuminate\Http\Request|null $request
  1955. * @return string|null
  1956. * @static
  1957. */
  1958. public static function socket($request = null)
  1959. {
  1960. return \Illuminate\Broadcasting\BroadcastManager::socket($request);
  1961. }
  1962. /**
  1963. * Begin broadcasting an event.
  1964. *
  1965. * @param mixed|null $event
  1966. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  1967. * @static
  1968. */
  1969. public static function event($event = null)
  1970. {
  1971. return \Illuminate\Broadcasting\BroadcastManager::event($event);
  1972. }
  1973. /**
  1974. * Queue the given event for broadcast.
  1975. *
  1976. * @param mixed $event
  1977. * @return void
  1978. * @static
  1979. */
  1980. public static function queue($event)
  1981. {
  1982. \Illuminate\Broadcasting\BroadcastManager::queue($event);
  1983. }
  1984. /**
  1985. * Get a driver instance.
  1986. *
  1987. * @param string $driver
  1988. * @return mixed
  1989. * @static
  1990. */
  1991. public static function connection($driver = null)
  1992. {
  1993. return \Illuminate\Broadcasting\BroadcastManager::connection($driver);
  1994. }
  1995. /**
  1996. * Get a driver instance.
  1997. *
  1998. * @param string $name
  1999. * @return mixed
  2000. * @static
  2001. */
  2002. public static function driver($name = null)
  2003. {
  2004. return \Illuminate\Broadcasting\BroadcastManager::driver($name);
  2005. }
  2006. /**
  2007. * Get the default driver name.
  2008. *
  2009. * @return string
  2010. * @static
  2011. */
  2012. public static function getDefaultDriver()
  2013. {
  2014. return \Illuminate\Broadcasting\BroadcastManager::getDefaultDriver();
  2015. }
  2016. /**
  2017. * Set the default driver name.
  2018. *
  2019. * @param string $name
  2020. * @return void
  2021. * @static
  2022. */
  2023. public static function setDefaultDriver($name)
  2024. {
  2025. \Illuminate\Broadcasting\BroadcastManager::setDefaultDriver($name);
  2026. }
  2027. /**
  2028. * Register a custom driver creator Closure.
  2029. *
  2030. * @param string $driver
  2031. * @param \Closure $callback
  2032. * @return $this
  2033. * @static
  2034. */
  2035. public static function extend($driver, $callback)
  2036. {
  2037. return \Illuminate\Broadcasting\BroadcastManager::extend($driver, $callback);
  2038. }
  2039. }
  2040. class Bus {
  2041. /**
  2042. * Dispatch a command to its appropriate handler.
  2043. *
  2044. * @param mixed $command
  2045. * @return mixed
  2046. * @static
  2047. */
  2048. public static function dispatch($command)
  2049. {
  2050. return \Illuminate\Bus\Dispatcher::dispatch($command);
  2051. }
  2052. /**
  2053. * Dispatch a command to its appropriate handler in the current process.
  2054. *
  2055. * @param mixed $command
  2056. * @param mixed $handler
  2057. * @return mixed
  2058. * @static
  2059. */
  2060. public static function dispatchNow($command, $handler = null)
  2061. {
  2062. return \Illuminate\Bus\Dispatcher::dispatchNow($command, $handler);
  2063. }
  2064. /**
  2065. * Determine if the given command has a handler.
  2066. *
  2067. * @param mixed $command
  2068. * @return bool
  2069. * @static
  2070. */
  2071. public static function hasCommandHandler($command)
  2072. {
  2073. return \Illuminate\Bus\Dispatcher::hasCommandHandler($command);
  2074. }
  2075. /**
  2076. * Retrieve the handler for a command.
  2077. *
  2078. * @param mixed $command
  2079. * @return bool|mixed
  2080. * @static
  2081. */
  2082. public static function getCommandHandler($command)
  2083. {
  2084. return \Illuminate\Bus\Dispatcher::getCommandHandler($command);
  2085. }
  2086. /**
  2087. * Dispatch a command to its appropriate handler behind a queue.
  2088. *
  2089. * @param mixed $command
  2090. * @return mixed
  2091. * @throws \RuntimeException
  2092. * @static
  2093. */
  2094. public static function dispatchToQueue($command)
  2095. {
  2096. return \Illuminate\Bus\Dispatcher::dispatchToQueue($command);
  2097. }
  2098. /**
  2099. * Set the pipes through which commands should be piped before dispatching.
  2100. *
  2101. * @param array $pipes
  2102. * @return $this
  2103. * @static
  2104. */
  2105. public static function pipeThrough($pipes)
  2106. {
  2107. return \Illuminate\Bus\Dispatcher::pipeThrough($pipes);
  2108. }
  2109. /**
  2110. * Map a command to a handler.
  2111. *
  2112. * @param array $map
  2113. * @return $this
  2114. * @static
  2115. */
  2116. public static function map($map)
  2117. {
  2118. return \Illuminate\Bus\Dispatcher::map($map);
  2119. }
  2120. }
  2121. class Cache {
  2122. /**
  2123. * Get a cache store instance by name.
  2124. *
  2125. * @param string|null $name
  2126. * @return mixed
  2127. * @static
  2128. */
  2129. public static function store($name = null)
  2130. {
  2131. return \Illuminate\Cache\CacheManager::store($name);
  2132. }
  2133. /**
  2134. * Get a cache driver instance.
  2135. *
  2136. * @param string $driver
  2137. * @return mixed
  2138. * @static
  2139. */
  2140. public static function driver($driver = null)
  2141. {
  2142. return \Illuminate\Cache\CacheManager::driver($driver);
  2143. }
  2144. /**
  2145. * Create a new cache repository with the given implementation.
  2146. *
  2147. * @param \Illuminate\Contracts\Cache\Store $store
  2148. * @return \Illuminate\Cache\Repository
  2149. * @static
  2150. */
  2151. public static function repository($store)
  2152. {
  2153. return \Illuminate\Cache\CacheManager::repository($store);
  2154. }
  2155. /**
  2156. * Get the default cache driver name.
  2157. *
  2158. * @return string
  2159. * @static
  2160. */
  2161. public static function getDefaultDriver()
  2162. {
  2163. return \Illuminate\Cache\CacheManager::getDefaultDriver();
  2164. }
  2165. /**
  2166. * Set the default cache driver name.
  2167. *
  2168. * @param string $name
  2169. * @return void
  2170. * @static
  2171. */
  2172. public static function setDefaultDriver($name)
  2173. {
  2174. \Illuminate\Cache\CacheManager::setDefaultDriver($name);
  2175. }
  2176. /**
  2177. * Register a custom driver creator Closure.
  2178. *
  2179. * @param string $driver
  2180. * @param \Closure $callback
  2181. * @return $this
  2182. * @static
  2183. */
  2184. public static function extend($driver, $callback)
  2185. {
  2186. return \Illuminate\Cache\CacheManager::extend($driver, $callback);
  2187. }
  2188. /**
  2189. * Determine if an item exists in the cache.
  2190. *
  2191. * @param string $key
  2192. * @return bool
  2193. * @static
  2194. */
  2195. public static function has($key)
  2196. {
  2197. return \Illuminate\Cache\Repository::has($key);
  2198. }
  2199. /**
  2200. * Retrieve an item from the cache by key.
  2201. *
  2202. * @param string $key
  2203. * @param mixed $default
  2204. * @return mixed
  2205. * @static
  2206. */
  2207. public static function get($key, $default = null)
  2208. {
  2209. return \Illuminate\Cache\Repository::get($key, $default);
  2210. }
  2211. /**
  2212. * Retrieve multiple items from the cache by key.
  2213. *
  2214. * Items not found in the cache will have a null value.
  2215. *
  2216. * @param array $keys
  2217. * @return array
  2218. * @static
  2219. */
  2220. public static function many($keys)
  2221. {
  2222. return \Illuminate\Cache\Repository::many($keys);
  2223. }
  2224. /**
  2225. * Retrieve an item from the cache and delete it.
  2226. *
  2227. * @param string $key
  2228. * @param mixed $default
  2229. * @return mixed
  2230. * @static
  2231. */
  2232. public static function pull($key, $default = null)
  2233. {
  2234. return \Illuminate\Cache\Repository::pull($key, $default);
  2235. }
  2236. /**
  2237. * Store an item in the cache.
  2238. *
  2239. * @param string $key
  2240. * @param mixed $value
  2241. * @param \DateTime|float|int $minutes
  2242. * @return void
  2243. * @static
  2244. */
  2245. public static function put($key, $value, $minutes = null)
  2246. {
  2247. \Illuminate\Cache\Repository::put($key, $value, $minutes);
  2248. }
  2249. /**
  2250. * Store multiple items in the cache for a given number of minutes.
  2251. *
  2252. * @param array $values
  2253. * @param float|int $minutes
  2254. * @return void
  2255. * @static
  2256. */
  2257. public static function putMany($values, $minutes)
  2258. {
  2259. \Illuminate\Cache\Repository::putMany($values, $minutes);
  2260. }
  2261. /**
  2262. * Store an item in the cache if the key does not exist.
  2263. *
  2264. * @param string $key
  2265. * @param mixed $value
  2266. * @param \DateTime|float|int $minutes
  2267. * @return bool
  2268. * @static
  2269. */
  2270. public static function add($key, $value, $minutes)
  2271. {
  2272. return \Illuminate\Cache\Repository::add($key, $value, $minutes);
  2273. }
  2274. /**
  2275. * Increment the value of an item in the cache.
  2276. *
  2277. * @param string $key
  2278. * @param mixed $value
  2279. * @return int|bool
  2280. * @static
  2281. */
  2282. public static function increment($key, $value = 1)
  2283. {
  2284. return \Illuminate\Cache\Repository::increment($key, $value);
  2285. }
  2286. /**
  2287. * Decrement the value of an item in the cache.
  2288. *
  2289. * @param string $key
  2290. * @param mixed $value
  2291. * @return int|bool
  2292. * @static
  2293. */
  2294. public static function decrement($key, $value = 1)
  2295. {
  2296. return \Illuminate\Cache\Repository::decrement($key, $value);
  2297. }
  2298. /**
  2299. * Store an item in the cache indefinitely.
  2300. *
  2301. * @param string $key
  2302. * @param mixed $value
  2303. * @return void
  2304. * @static
  2305. */
  2306. public static function forever($key, $value)
  2307. {
  2308. \Illuminate\Cache\Repository::forever($key, $value);
  2309. }
  2310. /**
  2311. * Get an item from the cache, or store the default value.
  2312. *
  2313. * @param string $key
  2314. * @param \DateTime|float|int $minutes
  2315. * @param \Closure $callback
  2316. * @return mixed
  2317. * @static
  2318. */
  2319. public static function remember($key, $minutes, $callback)
  2320. {
  2321. return \Illuminate\Cache\Repository::remember($key, $minutes, $callback);
  2322. }
  2323. /**
  2324. * Get an item from the cache, or store the default value forever.
  2325. *
  2326. * @param string $key
  2327. * @param \Closure $callback
  2328. * @return mixed
  2329. * @static
  2330. */
  2331. public static function sear($key, $callback)
  2332. {
  2333. return \Illuminate\Cache\Repository::sear($key, $callback);
  2334. }
  2335. /**
  2336. * Get an item from the cache, or store the default value forever.
  2337. *
  2338. * @param string $key
  2339. * @param \Closure $callback
  2340. * @return mixed
  2341. * @static
  2342. */
  2343. public static function rememberForever($key, $callback)
  2344. {
  2345. return \Illuminate\Cache\Repository::rememberForever($key, $callback);
  2346. }
  2347. /**
  2348. * Remove an item from the cache.
  2349. *
  2350. * @param string $key
  2351. * @return bool
  2352. * @static
  2353. */
  2354. public static function forget($key)
  2355. {
  2356. return \Illuminate\Cache\Repository::forget($key);
  2357. }
  2358. /**
  2359. * Begin executing a new tags operation if the store supports it.
  2360. *
  2361. * @param array|mixed $names
  2362. * @return \Illuminate\Cache\TaggedCache
  2363. * @throws \BadMethodCallException
  2364. * @static
  2365. */
  2366. public static function tags($names)
  2367. {
  2368. return \Illuminate\Cache\Repository::tags($names);
  2369. }
  2370. /**
  2371. * Get the default cache time.
  2372. *
  2373. * @return float|int
  2374. * @static
  2375. */
  2376. public static function getDefaultCacheTime()
  2377. {
  2378. return \Illuminate\Cache\Repository::getDefaultCacheTime();
  2379. }
  2380. /**
  2381. * Set the default cache time in minutes.
  2382. *
  2383. * @param float|int $minutes
  2384. * @return $this
  2385. * @static
  2386. */
  2387. public static function setDefaultCacheTime($minutes)
  2388. {
  2389. return \Illuminate\Cache\Repository::setDefaultCacheTime($minutes);
  2390. }
  2391. /**
  2392. * Get the cache store implementation.
  2393. *
  2394. * @return \Illuminate\Contracts\Cache\Store
  2395. * @static
  2396. */
  2397. public static function getStore()
  2398. {
  2399. return \Illuminate\Cache\Repository::getStore();
  2400. }
  2401. /**
  2402. * Set the event dispatcher instance.
  2403. *
  2404. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2405. * @return void
  2406. * @static
  2407. */
  2408. public static function setEventDispatcher($events)
  2409. {
  2410. \Illuminate\Cache\Repository::setEventDispatcher($events);
  2411. }
  2412. /**
  2413. * Determine if a cached value exists.
  2414. *
  2415. * @param string $key
  2416. * @return bool
  2417. * @static
  2418. */
  2419. public static function offsetExists($key)
  2420. {
  2421. return \Illuminate\Cache\Repository::offsetExists($key);
  2422. }
  2423. /**
  2424. * Retrieve an item from the cache by key.
  2425. *
  2426. * @param string $key
  2427. * @return mixed
  2428. * @static
  2429. */
  2430. public static function offsetGet($key)
  2431. {
  2432. return \Illuminate\Cache\Repository::offsetGet($key);
  2433. }
  2434. /**
  2435. * Store an item in the cache for the default time.
  2436. *
  2437. * @param string $key
  2438. * @param mixed $value
  2439. * @return void
  2440. * @static
  2441. */
  2442. public static function offsetSet($key, $value)
  2443. {
  2444. \Illuminate\Cache\Repository::offsetSet($key, $value);
  2445. }
  2446. /**
  2447. * Remove an item from the cache.
  2448. *
  2449. * @param string $key
  2450. * @return void
  2451. * @static
  2452. */
  2453. public static function offsetUnset($key)
  2454. {
  2455. \Illuminate\Cache\Repository::offsetUnset($key);
  2456. }
  2457. /**
  2458. * Register a custom macro.
  2459. *
  2460. * @param string $name
  2461. * @param callable $macro
  2462. * @return void
  2463. * @static
  2464. */
  2465. public static function macro($name, $macro)
  2466. {
  2467. \Illuminate\Cache\Repository::macro($name, $macro);
  2468. }
  2469. /**
  2470. * Checks if macro is registered.
  2471. *
  2472. * @param string $name
  2473. * @return bool
  2474. * @static
  2475. */
  2476. public static function hasMacro($name)
  2477. {
  2478. return \Illuminate\Cache\Repository::hasMacro($name);
  2479. }
  2480. /**
  2481. * Dynamically handle calls to the class.
  2482. *
  2483. * @param string $method
  2484. * @param array $parameters
  2485. * @return mixed
  2486. * @throws \BadMethodCallException
  2487. * @static
  2488. */
  2489. public static function macroCall($method, $parameters)
  2490. {
  2491. return \Illuminate\Cache\Repository::macroCall($method, $parameters);
  2492. }
  2493. /**
  2494. * Remove all items from the cache.
  2495. *
  2496. * @return bool
  2497. * @static
  2498. */
  2499. public static function flush()
  2500. {
  2501. return \Illuminate\Cache\FileStore::flush();
  2502. }
  2503. /**
  2504. * Get the Filesystem instance.
  2505. *
  2506. * @return \Illuminate\Filesystem\Filesystem
  2507. * @static
  2508. */
  2509. public static function getFilesystem()
  2510. {
  2511. return \Illuminate\Cache\FileStore::getFilesystem();
  2512. }
  2513. /**
  2514. * Get the working directory of the cache.
  2515. *
  2516. * @return string
  2517. * @static
  2518. */
  2519. public static function getDirectory()
  2520. {
  2521. return \Illuminate\Cache\FileStore::getDirectory();
  2522. }
  2523. /**
  2524. * Get the cache key prefix.
  2525. *
  2526. * @return string
  2527. * @static
  2528. */
  2529. public static function getPrefix()
  2530. {
  2531. return \Illuminate\Cache\FileStore::getPrefix();
  2532. }
  2533. }
  2534. class Config {
  2535. /**
  2536. * Determine if the given configuration value exists.
  2537. *
  2538. * @param string $key
  2539. * @return bool
  2540. * @static
  2541. */
  2542. public static function has($key)
  2543. {
  2544. return \Illuminate\Config\Repository::has($key);
  2545. }
  2546. /**
  2547. * Get the specified configuration value.
  2548. *
  2549. * @param string $key
  2550. * @param mixed $default
  2551. * @return mixed
  2552. * @static
  2553. */
  2554. public static function get($key, $default = null)
  2555. {
  2556. return \Illuminate\Config\Repository::get($key, $default);
  2557. }
  2558. /**
  2559. * Set a given configuration value.
  2560. *
  2561. * @param array|string $key
  2562. * @param mixed $value
  2563. * @return void
  2564. * @static
  2565. */
  2566. public static function set($key, $value = null)
  2567. {
  2568. \Illuminate\Config\Repository::set($key, $value);
  2569. }
  2570. /**
  2571. * Prepend a value onto an array configuration value.
  2572. *
  2573. * @param string $key
  2574. * @param mixed $value
  2575. * @return void
  2576. * @static
  2577. */
  2578. public static function prepend($key, $value)
  2579. {
  2580. \Illuminate\Config\Repository::prepend($key, $value);
  2581. }
  2582. /**
  2583. * Push a value onto an array configuration value.
  2584. *
  2585. * @param string $key
  2586. * @param mixed $value
  2587. * @return void
  2588. * @static
  2589. */
  2590. public static function push($key, $value)
  2591. {
  2592. \Illuminate\Config\Repository::push($key, $value);
  2593. }
  2594. /**
  2595. * Get all of the configuration items for the application.
  2596. *
  2597. * @return array
  2598. * @static
  2599. */
  2600. public static function all()
  2601. {
  2602. return \Illuminate\Config\Repository::all();
  2603. }
  2604. /**
  2605. * Determine if the given configuration option exists.
  2606. *
  2607. * @param string $key
  2608. * @return bool
  2609. * @static
  2610. */
  2611. public static function offsetExists($key)
  2612. {
  2613. return \Illuminate\Config\Repository::offsetExists($key);
  2614. }
  2615. /**
  2616. * Get a configuration option.
  2617. *
  2618. * @param string $key
  2619. * @return mixed
  2620. * @static
  2621. */
  2622. public static function offsetGet($key)
  2623. {
  2624. return \Illuminate\Config\Repository::offsetGet($key);
  2625. }
  2626. /**
  2627. * Set a configuration option.
  2628. *
  2629. * @param string $key
  2630. * @param mixed $value
  2631. * @return void
  2632. * @static
  2633. */
  2634. public static function offsetSet($key, $value)
  2635. {
  2636. \Illuminate\Config\Repository::offsetSet($key, $value);
  2637. }
  2638. /**
  2639. * Unset a configuration option.
  2640. *
  2641. * @param string $key
  2642. * @return void
  2643. * @static
  2644. */
  2645. public static function offsetUnset($key)
  2646. {
  2647. \Illuminate\Config\Repository::offsetUnset($key);
  2648. }
  2649. }
  2650. class Cookie {
  2651. /**
  2652. * Create a new cookie instance.
  2653. *
  2654. * @param string $name
  2655. * @param string $value
  2656. * @param int $minutes
  2657. * @param string $path
  2658. * @param string $domain
  2659. * @param bool $secure
  2660. * @param bool $httpOnly
  2661. * @return \Symfony\Component\HttpFoundation\Cookie
  2662. * @static
  2663. */
  2664. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true)
  2665. {
  2666. return \Illuminate\Cookie\CookieJar::make($name, $value, $minutes, $path, $domain, $secure, $httpOnly);
  2667. }
  2668. /**
  2669. * Create a cookie that lasts "forever" (five years).
  2670. *
  2671. * @param string $name
  2672. * @param string $value
  2673. * @param string $path
  2674. * @param string $domain
  2675. * @param bool $secure
  2676. * @param bool $httpOnly
  2677. * @return \Symfony\Component\HttpFoundation\Cookie
  2678. * @static
  2679. */
  2680. public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true)
  2681. {
  2682. return \Illuminate\Cookie\CookieJar::forever($name, $value, $path, $domain, $secure, $httpOnly);
  2683. }
  2684. /**
  2685. * Expire the given cookie.
  2686. *
  2687. * @param string $name
  2688. * @param string $path
  2689. * @param string $domain
  2690. * @return \Symfony\Component\HttpFoundation\Cookie
  2691. * @static
  2692. */
  2693. public static function forget($name, $path = null, $domain = null)
  2694. {
  2695. return \Illuminate\Cookie\CookieJar::forget($name, $path, $domain);
  2696. }
  2697. /**
  2698. * Determine if a cookie has been queued.
  2699. *
  2700. * @param string $key
  2701. * @return bool
  2702. * @static
  2703. */
  2704. public static function hasQueued($key)
  2705. {
  2706. return \Illuminate\Cookie\CookieJar::hasQueued($key);
  2707. }
  2708. /**
  2709. * Get a queued cookie instance.
  2710. *
  2711. * @param string $key
  2712. * @param mixed $default
  2713. * @return \Symfony\Component\HttpFoundation\Cookie
  2714. * @static
  2715. */
  2716. public static function queued($key, $default = null)
  2717. {
  2718. return \Illuminate\Cookie\CookieJar::queued($key, $default);
  2719. }
  2720. /**
  2721. * Queue a cookie to send with the next response.
  2722. *
  2723. * @param array $parameters
  2724. * @return void
  2725. * @static
  2726. */
  2727. public static function queue($parameters = null)
  2728. {
  2729. \Illuminate\Cookie\CookieJar::queue($parameters);
  2730. }
  2731. /**
  2732. * Remove a cookie from the queue.
  2733. *
  2734. * @param string $name
  2735. * @return void
  2736. * @static
  2737. */
  2738. public static function unqueue($name)
  2739. {
  2740. \Illuminate\Cookie\CookieJar::unqueue($name);
  2741. }
  2742. /**
  2743. * Set the default path and domain for the jar.
  2744. *
  2745. * @param string $path
  2746. * @param string $domain
  2747. * @param bool $secure
  2748. * @return $this
  2749. * @static
  2750. */
  2751. public static function setDefaultPathAndDomain($path, $domain, $secure = false)
  2752. {
  2753. return \Illuminate\Cookie\CookieJar::setDefaultPathAndDomain($path, $domain, $secure);
  2754. }
  2755. /**
  2756. * Get the cookies which have been queued for the next request.
  2757. *
  2758. * @return array
  2759. * @static
  2760. */
  2761. public static function getQueuedCookies()
  2762. {
  2763. return \Illuminate\Cookie\CookieJar::getQueuedCookies();
  2764. }
  2765. }
  2766. class Crypt {
  2767. /**
  2768. * Determine if the given key and cipher combination is valid.
  2769. *
  2770. * @param string $key
  2771. * @param string $cipher
  2772. * @return bool
  2773. * @static
  2774. */
  2775. public static function supported($key, $cipher)
  2776. {
  2777. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  2778. }
  2779. /**
  2780. * Encrypt the given value.
  2781. *
  2782. * @param mixed $value
  2783. * @param bool $serialize
  2784. * @return string
  2785. * @throws \Illuminate\Contracts\Encryption\EncryptException
  2786. * @static
  2787. */
  2788. public static function encrypt($value, $serialize = true)
  2789. {
  2790. return \Illuminate\Encryption\Encrypter::encrypt($value, $serialize);
  2791. }
  2792. /**
  2793. * Encrypt a string without serialization.
  2794. *
  2795. * @param string $value
  2796. * @return string
  2797. * @static
  2798. */
  2799. public static function encryptString($value)
  2800. {
  2801. return \Illuminate\Encryption\Encrypter::encryptString($value);
  2802. }
  2803. /**
  2804. * Decrypt the given value.
  2805. *
  2806. * @param mixed $payload
  2807. * @param bool $unserialize
  2808. * @return string
  2809. * @throws \Illuminate\Contracts\Encryption\DecryptException
  2810. * @static
  2811. */
  2812. public static function decrypt($payload, $unserialize = true)
  2813. {
  2814. return \Illuminate\Encryption\Encrypter::decrypt($payload, $unserialize);
  2815. }
  2816. /**
  2817. * Decrypt the given string without unserialization.
  2818. *
  2819. * @param string $payload
  2820. * @return string
  2821. * @static
  2822. */
  2823. public static function decryptString($payload)
  2824. {
  2825. return \Illuminate\Encryption\Encrypter::decryptString($payload);
  2826. }
  2827. /**
  2828. * Get the encryption key.
  2829. *
  2830. * @return string
  2831. * @static
  2832. */
  2833. public static function getKey()
  2834. {
  2835. return \Illuminate\Encryption\Encrypter::getKey();
  2836. }
  2837. }
  2838. class DB {
  2839. /**
  2840. * Get a database connection instance.
  2841. *
  2842. * @param string $name
  2843. * @return \Illuminate\Database\Connection
  2844. * @static
  2845. */
  2846. public static function connection($name = null)
  2847. {
  2848. return \Illuminate\Database\DatabaseManager::connection($name);
  2849. }
  2850. /**
  2851. * Disconnect from the given database and remove from local cache.
  2852. *
  2853. * @param string $name
  2854. * @return void
  2855. * @static
  2856. */
  2857. public static function purge($name = null)
  2858. {
  2859. \Illuminate\Database\DatabaseManager::purge($name);
  2860. }
  2861. /**
  2862. * Disconnect from the given database.
  2863. *
  2864. * @param string $name
  2865. * @return void
  2866. * @static
  2867. */
  2868. public static function disconnect($name = null)
  2869. {
  2870. \Illuminate\Database\DatabaseManager::disconnect($name);
  2871. }
  2872. /**
  2873. * Reconnect to the given database.
  2874. *
  2875. * @param string $name
  2876. * @return \Illuminate\Database\Connection
  2877. * @static
  2878. */
  2879. public static function reconnect($name = null)
  2880. {
  2881. return \Illuminate\Database\DatabaseManager::reconnect($name);
  2882. }
  2883. /**
  2884. * Get the default connection name.
  2885. *
  2886. * @return string
  2887. * @static
  2888. */
  2889. public static function getDefaultConnection()
  2890. {
  2891. return \Illuminate\Database\DatabaseManager::getDefaultConnection();
  2892. }
  2893. /**
  2894. * Set the default connection name.
  2895. *
  2896. * @param string $name
  2897. * @return void
  2898. * @static
  2899. */
  2900. public static function setDefaultConnection($name)
  2901. {
  2902. \Illuminate\Database\DatabaseManager::setDefaultConnection($name);
  2903. }
  2904. /**
  2905. * Get all of the support drivers.
  2906. *
  2907. * @return array
  2908. * @static
  2909. */
  2910. public static function supportedDrivers()
  2911. {
  2912. return \Illuminate\Database\DatabaseManager::supportedDrivers();
  2913. }
  2914. /**
  2915. * Get all of the drivers that are actually available.
  2916. *
  2917. * @return array
  2918. * @static
  2919. */
  2920. public static function availableDrivers()
  2921. {
  2922. return \Illuminate\Database\DatabaseManager::availableDrivers();
  2923. }
  2924. /**
  2925. * Register an extension connection resolver.
  2926. *
  2927. * @param string $name
  2928. * @param callable $resolver
  2929. * @return void
  2930. * @static
  2931. */
  2932. public static function extend($name, $resolver)
  2933. {
  2934. \Illuminate\Database\DatabaseManager::extend($name, $resolver);
  2935. }
  2936. /**
  2937. * Return all of the created connections.
  2938. *
  2939. * @return array
  2940. * @static
  2941. */
  2942. public static function getConnections()
  2943. {
  2944. return \Illuminate\Database\DatabaseManager::getConnections();
  2945. }
  2946. /**
  2947. * Get a schema builder instance for the connection.
  2948. *
  2949. * @return \Illuminate\Database\Schema\MySqlBuilder
  2950. * @static
  2951. */
  2952. public static function getSchemaBuilder()
  2953. {
  2954. return \Illuminate\Database\MySqlConnection::getSchemaBuilder();
  2955. }
  2956. /**
  2957. * Bind values to their parameters in the given statement.
  2958. *
  2959. * @param \PDOStatement $statement
  2960. * @param array $bindings
  2961. * @return void
  2962. * @static
  2963. */
  2964. public static function bindValues($statement, $bindings)
  2965. {
  2966. \Illuminate\Database\MySqlConnection::bindValues($statement, $bindings);
  2967. }
  2968. /**
  2969. * Set the query grammar to the default implementation.
  2970. *
  2971. * @return void
  2972. * @static
  2973. */
  2974. public static function useDefaultQueryGrammar()
  2975. {
  2976. //Method inherited from \Illuminate\Database\Connection
  2977. \Illuminate\Database\MySqlConnection::useDefaultQueryGrammar();
  2978. }
  2979. /**
  2980. * Set the schema grammar to the default implementation.
  2981. *
  2982. * @return void
  2983. * @static
  2984. */
  2985. public static function useDefaultSchemaGrammar()
  2986. {
  2987. //Method inherited from \Illuminate\Database\Connection
  2988. \Illuminate\Database\MySqlConnection::useDefaultSchemaGrammar();
  2989. }
  2990. /**
  2991. * Set the query post processor to the default implementation.
  2992. *
  2993. * @return void
  2994. * @static
  2995. */
  2996. public static function useDefaultPostProcessor()
  2997. {
  2998. //Method inherited from \Illuminate\Database\Connection
  2999. \Illuminate\Database\MySqlConnection::useDefaultPostProcessor();
  3000. }
  3001. /**
  3002. * Begin a fluent query against a database table.
  3003. *
  3004. * @param string $table
  3005. * @return \Illuminate\Database\Query\Builder
  3006. * @static
  3007. */
  3008. public static function table($table)
  3009. {
  3010. //Method inherited from \Illuminate\Database\Connection
  3011. return \Illuminate\Database\MySqlConnection::table($table);
  3012. }
  3013. /**
  3014. * Get a new query builder instance.
  3015. *
  3016. * @return \Illuminate\Database\Query\Builder
  3017. * @static
  3018. */
  3019. public static function query()
  3020. {
  3021. //Method inherited from \Illuminate\Database\Connection
  3022. return \Illuminate\Database\MySqlConnection::query();
  3023. }
  3024. /**
  3025. * Run a select statement and return a single result.
  3026. *
  3027. * @param string $query
  3028. * @param array $bindings
  3029. * @param bool $useReadPdo
  3030. * @return mixed
  3031. * @static
  3032. */
  3033. public static function selectOne($query, $bindings = array(), $useReadPdo = true)
  3034. {
  3035. //Method inherited from \Illuminate\Database\Connection
  3036. return \Illuminate\Database\MySqlConnection::selectOne($query, $bindings, $useReadPdo);
  3037. }
  3038. /**
  3039. * Run a select statement against the database.
  3040. *
  3041. * @param string $query
  3042. * @param array $bindings
  3043. * @return array
  3044. * @static
  3045. */
  3046. public static function selectFromWriteConnection($query, $bindings = array())
  3047. {
  3048. //Method inherited from \Illuminate\Database\Connection
  3049. return \Illuminate\Database\MySqlConnection::selectFromWriteConnection($query, $bindings);
  3050. }
  3051. /**
  3052. * Run a select statement against the database.
  3053. *
  3054. * @param string $query
  3055. * @param array $bindings
  3056. * @param bool $useReadPdo
  3057. * @return array
  3058. * @static
  3059. */
  3060. public static function select($query, $bindings = array(), $useReadPdo = true)
  3061. {
  3062. //Method inherited from \Illuminate\Database\Connection
  3063. return \Illuminate\Database\MySqlConnection::select($query, $bindings, $useReadPdo);
  3064. }
  3065. /**
  3066. * Run a select statement against the database and returns a generator.
  3067. *
  3068. * @param string $query
  3069. * @param array $bindings
  3070. * @param bool $useReadPdo
  3071. * @return \Generator
  3072. * @static
  3073. */
  3074. public static function cursor($query, $bindings = array(), $useReadPdo = true)
  3075. {
  3076. //Method inherited from \Illuminate\Database\Connection
  3077. return \Illuminate\Database\MySqlConnection::cursor($query, $bindings, $useReadPdo);
  3078. }
  3079. /**
  3080. * Run an insert statement against the database.
  3081. *
  3082. * @param string $query
  3083. * @param array $bindings
  3084. * @return bool
  3085. * @static
  3086. */
  3087. public static function insert($query, $bindings = array())
  3088. {
  3089. //Method inherited from \Illuminate\Database\Connection
  3090. return \Illuminate\Database\MySqlConnection::insert($query, $bindings);
  3091. }
  3092. /**
  3093. * Run an update statement against the database.
  3094. *
  3095. * @param string $query
  3096. * @param array $bindings
  3097. * @return int
  3098. * @static
  3099. */
  3100. public static function update($query, $bindings = array())
  3101. {
  3102. //Method inherited from \Illuminate\Database\Connection
  3103. return \Illuminate\Database\MySqlConnection::update($query, $bindings);
  3104. }
  3105. /**
  3106. * Run a delete statement against the database.
  3107. *
  3108. * @param string $query
  3109. * @param array $bindings
  3110. * @return int
  3111. * @static
  3112. */
  3113. public static function delete($query, $bindings = array())
  3114. {
  3115. //Method inherited from \Illuminate\Database\Connection
  3116. return \Illuminate\Database\MySqlConnection::delete($query, $bindings);
  3117. }
  3118. /**
  3119. * Execute an SQL statement and return the boolean result.
  3120. *
  3121. * @param string $query
  3122. * @param array $bindings
  3123. * @return bool
  3124. * @static
  3125. */
  3126. public static function statement($query, $bindings = array())
  3127. {
  3128. //Method inherited from \Illuminate\Database\Connection
  3129. return \Illuminate\Database\MySqlConnection::statement($query, $bindings);
  3130. }
  3131. /**
  3132. * Run an SQL statement and get the number of rows affected.
  3133. *
  3134. * @param string $query
  3135. * @param array $bindings
  3136. * @return int
  3137. * @static
  3138. */
  3139. public static function affectingStatement($query, $bindings = array())
  3140. {
  3141. //Method inherited from \Illuminate\Database\Connection
  3142. return \Illuminate\Database\MySqlConnection::affectingStatement($query, $bindings);
  3143. }
  3144. /**
  3145. * Run a raw, unprepared query against the PDO connection.
  3146. *
  3147. * @param string $query
  3148. * @return bool
  3149. * @static
  3150. */
  3151. public static function unprepared($query)
  3152. {
  3153. //Method inherited from \Illuminate\Database\Connection
  3154. return \Illuminate\Database\MySqlConnection::unprepared($query);
  3155. }
  3156. /**
  3157. * Execute the given callback in "dry run" mode.
  3158. *
  3159. * @param \Closure $callback
  3160. * @return array
  3161. * @static
  3162. */
  3163. public static function pretend($callback)
  3164. {
  3165. //Method inherited from \Illuminate\Database\Connection
  3166. return \Illuminate\Database\MySqlConnection::pretend($callback);
  3167. }
  3168. /**
  3169. * Prepare the query bindings for execution.
  3170. *
  3171. * @param array $bindings
  3172. * @return array
  3173. * @static
  3174. */
  3175. public static function prepareBindings($bindings)
  3176. {
  3177. //Method inherited from \Illuminate\Database\Connection
  3178. return \Illuminate\Database\MySqlConnection::prepareBindings($bindings);
  3179. }
  3180. /**
  3181. * Log a query in the connection's query log.
  3182. *
  3183. * @param string $query
  3184. * @param array $bindings
  3185. * @param float|null $time
  3186. * @return void
  3187. * @static
  3188. */
  3189. public static function logQuery($query, $bindings, $time = null)
  3190. {
  3191. //Method inherited from \Illuminate\Database\Connection
  3192. \Illuminate\Database\MySqlConnection::logQuery($query, $bindings, $time);
  3193. }
  3194. /**
  3195. * Register a database query listener with the connection.
  3196. *
  3197. * @param \Closure $callback
  3198. * @return void
  3199. * @static
  3200. */
  3201. public static function listen($callback)
  3202. {
  3203. //Method inherited from \Illuminate\Database\Connection
  3204. \Illuminate\Database\MySqlConnection::listen($callback);
  3205. }
  3206. /**
  3207. * Get a new raw query expression.
  3208. *
  3209. * @param mixed $value
  3210. * @return \Illuminate\Database\Query\Expression
  3211. * @static
  3212. */
  3213. public static function raw($value)
  3214. {
  3215. //Method inherited from \Illuminate\Database\Connection
  3216. return \Illuminate\Database\MySqlConnection::raw($value);
  3217. }
  3218. /**
  3219. * Is Doctrine available?
  3220. *
  3221. * @return bool
  3222. * @static
  3223. */
  3224. public static function isDoctrineAvailable()
  3225. {
  3226. //Method inherited from \Illuminate\Database\Connection
  3227. return \Illuminate\Database\MySqlConnection::isDoctrineAvailable();
  3228. }
  3229. /**
  3230. * Get a Doctrine Schema Column instance.
  3231. *
  3232. * @param string $table
  3233. * @param string $column
  3234. * @return \Doctrine\DBAL\Schema\Column
  3235. * @static
  3236. */
  3237. public static function getDoctrineColumn($table, $column)
  3238. {
  3239. //Method inherited from \Illuminate\Database\Connection
  3240. return \Illuminate\Database\MySqlConnection::getDoctrineColumn($table, $column);
  3241. }
  3242. /**
  3243. * Get the Doctrine DBAL schema manager for the connection.
  3244. *
  3245. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3246. * @static
  3247. */
  3248. public static function getDoctrineSchemaManager()
  3249. {
  3250. //Method inherited from \Illuminate\Database\Connection
  3251. return \Illuminate\Database\MySqlConnection::getDoctrineSchemaManager();
  3252. }
  3253. /**
  3254. * Get the Doctrine DBAL database connection instance.
  3255. *
  3256. * @return \Doctrine\DBAL\Connection
  3257. * @static
  3258. */
  3259. public static function getDoctrineConnection()
  3260. {
  3261. //Method inherited from \Illuminate\Database\Connection
  3262. return \Illuminate\Database\MySqlConnection::getDoctrineConnection();
  3263. }
  3264. /**
  3265. * Get the current PDO connection.
  3266. *
  3267. * @return \PDO
  3268. * @static
  3269. */
  3270. public static function getPdo()
  3271. {
  3272. //Method inherited from \Illuminate\Database\Connection
  3273. return \Illuminate\Database\MySqlConnection::getPdo();
  3274. }
  3275. /**
  3276. * Get the current PDO connection used for reading.
  3277. *
  3278. * @return \PDO
  3279. * @static
  3280. */
  3281. public static function getReadPdo()
  3282. {
  3283. //Method inherited from \Illuminate\Database\Connection
  3284. return \Illuminate\Database\MySqlConnection::getReadPdo();
  3285. }
  3286. /**
  3287. * Set the PDO connection.
  3288. *
  3289. * @param \PDO|\Closure|null $pdo
  3290. * @return $this
  3291. * @static
  3292. */
  3293. public static function setPdo($pdo)
  3294. {
  3295. //Method inherited from \Illuminate\Database\Connection
  3296. return \Illuminate\Database\MySqlConnection::setPdo($pdo);
  3297. }
  3298. /**
  3299. * Set the PDO connection used for reading.
  3300. *
  3301. * @param \PDO|\Closure|null $pdo
  3302. * @return $this
  3303. * @static
  3304. */
  3305. public static function setReadPdo($pdo)
  3306. {
  3307. //Method inherited from \Illuminate\Database\Connection
  3308. return \Illuminate\Database\MySqlConnection::setReadPdo($pdo);
  3309. }
  3310. /**
  3311. * Set the reconnect instance on the connection.
  3312. *
  3313. * @param callable $reconnector
  3314. * @return $this
  3315. * @static
  3316. */
  3317. public static function setReconnector($reconnector)
  3318. {
  3319. //Method inherited from \Illuminate\Database\Connection
  3320. return \Illuminate\Database\MySqlConnection::setReconnector($reconnector);
  3321. }
  3322. /**
  3323. * Get the database connection name.
  3324. *
  3325. * @return string|null
  3326. * @static
  3327. */
  3328. public static function getName()
  3329. {
  3330. //Method inherited from \Illuminate\Database\Connection
  3331. return \Illuminate\Database\MySqlConnection::getName();
  3332. }
  3333. /**
  3334. * Get an option from the configuration options.
  3335. *
  3336. * @param string|null $option
  3337. * @return mixed
  3338. * @static
  3339. */
  3340. public static function getConfig($option = null)
  3341. {
  3342. //Method inherited from \Illuminate\Database\Connection
  3343. return \Illuminate\Database\MySqlConnection::getConfig($option);
  3344. }
  3345. /**
  3346. * Get the PDO driver name.
  3347. *
  3348. * @return string
  3349. * @static
  3350. */
  3351. public static function getDriverName()
  3352. {
  3353. //Method inherited from \Illuminate\Database\Connection
  3354. return \Illuminate\Database\MySqlConnection::getDriverName();
  3355. }
  3356. /**
  3357. * Get the query grammar used by the connection.
  3358. *
  3359. * @return \Illuminate\Database\Query\Grammars\Grammar
  3360. * @static
  3361. */
  3362. public static function getQueryGrammar()
  3363. {
  3364. //Method inherited from \Illuminate\Database\Connection
  3365. return \Illuminate\Database\MySqlConnection::getQueryGrammar();
  3366. }
  3367. /**
  3368. * Set the query grammar used by the connection.
  3369. *
  3370. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  3371. * @return void
  3372. * @static
  3373. */
  3374. public static function setQueryGrammar($grammar)
  3375. {
  3376. //Method inherited from \Illuminate\Database\Connection
  3377. \Illuminate\Database\MySqlConnection::setQueryGrammar($grammar);
  3378. }
  3379. /**
  3380. * Get the schema grammar used by the connection.
  3381. *
  3382. * @return \Illuminate\Database\Schema\Grammars\Grammar
  3383. * @static
  3384. */
  3385. public static function getSchemaGrammar()
  3386. {
  3387. //Method inherited from \Illuminate\Database\Connection
  3388. return \Illuminate\Database\MySqlConnection::getSchemaGrammar();
  3389. }
  3390. /**
  3391. * Set the schema grammar used by the connection.
  3392. *
  3393. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  3394. * @return void
  3395. * @static
  3396. */
  3397. public static function setSchemaGrammar($grammar)
  3398. {
  3399. //Method inherited from \Illuminate\Database\Connection
  3400. \Illuminate\Database\MySqlConnection::setSchemaGrammar($grammar);
  3401. }
  3402. /**
  3403. * Get the query post processor used by the connection.
  3404. *
  3405. * @return \Illuminate\Database\Query\Processors\Processor
  3406. * @static
  3407. */
  3408. public static function getPostProcessor()
  3409. {
  3410. //Method inherited from \Illuminate\Database\Connection
  3411. return \Illuminate\Database\MySqlConnection::getPostProcessor();
  3412. }
  3413. /**
  3414. * Set the query post processor used by the connection.
  3415. *
  3416. * @param \Illuminate\Database\Query\Processors\Processor $processor
  3417. * @return void
  3418. * @static
  3419. */
  3420. public static function setPostProcessor($processor)
  3421. {
  3422. //Method inherited from \Illuminate\Database\Connection
  3423. \Illuminate\Database\MySqlConnection::setPostProcessor($processor);
  3424. }
  3425. /**
  3426. * Get the event dispatcher used by the connection.
  3427. *
  3428. * @return \Illuminate\Contracts\Events\Dispatcher
  3429. * @static
  3430. */
  3431. public static function getEventDispatcher()
  3432. {
  3433. //Method inherited from \Illuminate\Database\Connection
  3434. return \Illuminate\Database\MySqlConnection::getEventDispatcher();
  3435. }
  3436. /**
  3437. * Set the event dispatcher instance on the connection.
  3438. *
  3439. * @param \Illuminate\Contracts\Events\Dispatcher $events
  3440. * @return void
  3441. * @static
  3442. */
  3443. public static function setEventDispatcher($events)
  3444. {
  3445. //Method inherited from \Illuminate\Database\Connection
  3446. \Illuminate\Database\MySqlConnection::setEventDispatcher($events);
  3447. }
  3448. /**
  3449. * Determine if the connection in a "dry run".
  3450. *
  3451. * @return bool
  3452. * @static
  3453. */
  3454. public static function pretending()
  3455. {
  3456. //Method inherited from \Illuminate\Database\Connection
  3457. return \Illuminate\Database\MySqlConnection::pretending();
  3458. }
  3459. /**
  3460. * Get the connection query log.
  3461. *
  3462. * @return array
  3463. * @static
  3464. */
  3465. public static function getQueryLog()
  3466. {
  3467. //Method inherited from \Illuminate\Database\Connection
  3468. return \Illuminate\Database\MySqlConnection::getQueryLog();
  3469. }
  3470. /**
  3471. * Clear the query log.
  3472. *
  3473. * @return void
  3474. * @static
  3475. */
  3476. public static function flushQueryLog()
  3477. {
  3478. //Method inherited from \Illuminate\Database\Connection
  3479. \Illuminate\Database\MySqlConnection::flushQueryLog();
  3480. }
  3481. /**
  3482. * Enable the query log on the connection.
  3483. *
  3484. * @return void
  3485. * @static
  3486. */
  3487. public static function enableQueryLog()
  3488. {
  3489. //Method inherited from \Illuminate\Database\Connection
  3490. \Illuminate\Database\MySqlConnection::enableQueryLog();
  3491. }
  3492. /**
  3493. * Disable the query log on the connection.
  3494. *
  3495. * @return void
  3496. * @static
  3497. */
  3498. public static function disableQueryLog()
  3499. {
  3500. //Method inherited from \Illuminate\Database\Connection
  3501. \Illuminate\Database\MySqlConnection::disableQueryLog();
  3502. }
  3503. /**
  3504. * Determine whether we're logging queries.
  3505. *
  3506. * @return bool
  3507. * @static
  3508. */
  3509. public static function logging()
  3510. {
  3511. //Method inherited from \Illuminate\Database\Connection
  3512. return \Illuminate\Database\MySqlConnection::logging();
  3513. }
  3514. /**
  3515. * Get the name of the connected database.
  3516. *
  3517. * @return string
  3518. * @static
  3519. */
  3520. public static function getDatabaseName()
  3521. {
  3522. //Method inherited from \Illuminate\Database\Connection
  3523. return \Illuminate\Database\MySqlConnection::getDatabaseName();
  3524. }
  3525. /**
  3526. * Set the name of the connected database.
  3527. *
  3528. * @param string $database
  3529. * @return string
  3530. * @static
  3531. */
  3532. public static function setDatabaseName($database)
  3533. {
  3534. //Method inherited from \Illuminate\Database\Connection
  3535. return \Illuminate\Database\MySqlConnection::setDatabaseName($database);
  3536. }
  3537. /**
  3538. * Get the table prefix for the connection.
  3539. *
  3540. * @return string
  3541. * @static
  3542. */
  3543. public static function getTablePrefix()
  3544. {
  3545. //Method inherited from \Illuminate\Database\Connection
  3546. return \Illuminate\Database\MySqlConnection::getTablePrefix();
  3547. }
  3548. /**
  3549. * Set the table prefix in use by the connection.
  3550. *
  3551. * @param string $prefix
  3552. * @return void
  3553. * @static
  3554. */
  3555. public static function setTablePrefix($prefix)
  3556. {
  3557. //Method inherited from \Illuminate\Database\Connection
  3558. \Illuminate\Database\MySqlConnection::setTablePrefix($prefix);
  3559. }
  3560. /**
  3561. * Set the table prefix and return the grammar.
  3562. *
  3563. * @param \Illuminate\Database\Grammar $grammar
  3564. * @return \Illuminate\Database\Grammar
  3565. * @static
  3566. */
  3567. public static function withTablePrefix($grammar)
  3568. {
  3569. //Method inherited from \Illuminate\Database\Connection
  3570. return \Illuminate\Database\MySqlConnection::withTablePrefix($grammar);
  3571. }
  3572. /**
  3573. * Register a connection resolver.
  3574. *
  3575. * @param string $driver
  3576. * @param \Closure $callback
  3577. * @return void
  3578. * @static
  3579. */
  3580. public static function resolverFor($driver, $callback)
  3581. {
  3582. //Method inherited from \Illuminate\Database\Connection
  3583. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  3584. }
  3585. /**
  3586. * Get the connection resolver for the given driver.
  3587. *
  3588. * @param string $driver
  3589. * @return mixed
  3590. * @static
  3591. */
  3592. public static function getResolver($driver)
  3593. {
  3594. //Method inherited from \Illuminate\Database\Connection
  3595. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  3596. }
  3597. /**
  3598. * Execute a Closure within a transaction.
  3599. *
  3600. * @param \Closure $callback
  3601. * @param int $attempts
  3602. * @return mixed
  3603. * @throws \Exception|\Throwable
  3604. * @static
  3605. */
  3606. public static function transaction($callback, $attempts = 1)
  3607. {
  3608. //Method inherited from \Illuminate\Database\Connection
  3609. return \Illuminate\Database\MySqlConnection::transaction($callback, $attempts);
  3610. }
  3611. /**
  3612. * Start a new database transaction.
  3613. *
  3614. * @return void
  3615. * @throws \Exception
  3616. * @static
  3617. */
  3618. public static function beginTransaction()
  3619. {
  3620. //Method inherited from \Illuminate\Database\Connection
  3621. \Illuminate\Database\MySqlConnection::beginTransaction();
  3622. }
  3623. /**
  3624. * Commit the active database transaction.
  3625. *
  3626. * @return void
  3627. * @static
  3628. */
  3629. public static function commit()
  3630. {
  3631. //Method inherited from \Illuminate\Database\Connection
  3632. \Illuminate\Database\MySqlConnection::commit();
  3633. }
  3634. /**
  3635. * Rollback the active database transaction.
  3636. *
  3637. * @param int|null $toLevel
  3638. * @return void
  3639. * @static
  3640. */
  3641. public static function rollBack($toLevel = null)
  3642. {
  3643. //Method inherited from \Illuminate\Database\Connection
  3644. \Illuminate\Database\MySqlConnection::rollBack($toLevel);
  3645. }
  3646. /**
  3647. * Get the number of active transactions.
  3648. *
  3649. * @return int
  3650. * @static
  3651. */
  3652. public static function transactionLevel()
  3653. {
  3654. //Method inherited from \Illuminate\Database\Connection
  3655. return \Illuminate\Database\MySqlConnection::transactionLevel();
  3656. }
  3657. }
  3658. class Event {
  3659. /**
  3660. * Register an event listener with the dispatcher.
  3661. *
  3662. * @param string|array $events
  3663. * @param mixed $listener
  3664. * @return void
  3665. * @static
  3666. */
  3667. public static function listen($events, $listener)
  3668. {
  3669. \Illuminate\Events\Dispatcher::listen($events, $listener);
  3670. }
  3671. /**
  3672. * Determine if a given event has listeners.
  3673. *
  3674. * @param string $eventName
  3675. * @return bool
  3676. * @static
  3677. */
  3678. public static function hasListeners($eventName)
  3679. {
  3680. return \Illuminate\Events\Dispatcher::hasListeners($eventName);
  3681. }
  3682. /**
  3683. * Register an event and payload to be fired later.
  3684. *
  3685. * @param string $event
  3686. * @param array $payload
  3687. * @return void
  3688. * @static
  3689. */
  3690. public static function push($event, $payload = array())
  3691. {
  3692. \Illuminate\Events\Dispatcher::push($event, $payload);
  3693. }
  3694. /**
  3695. * Flush a set of pushed events.
  3696. *
  3697. * @param string $event
  3698. * @return void
  3699. * @static
  3700. */
  3701. public static function flush($event)
  3702. {
  3703. \Illuminate\Events\Dispatcher::flush($event);
  3704. }
  3705. /**
  3706. * Register an event subscriber with the dispatcher.
  3707. *
  3708. * @param object|string $subscriber
  3709. * @return void
  3710. * @static
  3711. */
  3712. public static function subscribe($subscriber)
  3713. {
  3714. \Illuminate\Events\Dispatcher::subscribe($subscriber);
  3715. }
  3716. /**
  3717. * Fire an event until the first non-null response is returned.
  3718. *
  3719. * @param string|object $event
  3720. * @param mixed $payload
  3721. * @return array|null
  3722. * @static
  3723. */
  3724. public static function until($event, $payload = array())
  3725. {
  3726. return \Illuminate\Events\Dispatcher::until($event, $payload);
  3727. }
  3728. /**
  3729. * Fire an event and call the listeners.
  3730. *
  3731. * @param string|object $event
  3732. * @param mixed $payload
  3733. * @param bool $halt
  3734. * @return array|null
  3735. * @static
  3736. */
  3737. public static function fire($event, $payload = array(), $halt = false)
  3738. {
  3739. return \Illuminate\Events\Dispatcher::fire($event, $payload, $halt);
  3740. }
  3741. /**
  3742. * Fire an event and call the listeners.
  3743. *
  3744. * @param string|object $event
  3745. * @param mixed $payload
  3746. * @param bool $halt
  3747. * @return array|null
  3748. * @static
  3749. */
  3750. public static function dispatch($event, $payload = array(), $halt = false)
  3751. {
  3752. return \Illuminate\Events\Dispatcher::dispatch($event, $payload, $halt);
  3753. }
  3754. /**
  3755. * Get all of the listeners for a given event name.
  3756. *
  3757. * @param string $eventName
  3758. * @return array
  3759. * @static
  3760. */
  3761. public static function getListeners($eventName)
  3762. {
  3763. return \Illuminate\Events\Dispatcher::getListeners($eventName);
  3764. }
  3765. /**
  3766. * Register an event listener with the dispatcher.
  3767. *
  3768. * @param string|\Closure $listener
  3769. * @param bool $wildcard
  3770. * @return \Closure
  3771. * @static
  3772. */
  3773. public static function makeListener($listener, $wildcard = false)
  3774. {
  3775. return \Illuminate\Events\Dispatcher::makeListener($listener, $wildcard);
  3776. }
  3777. /**
  3778. * Create a class based listener using the IoC container.
  3779. *
  3780. * @param string $listener
  3781. * @param bool $wildcard
  3782. * @return \Closure
  3783. * @static
  3784. */
  3785. public static function createClassListener($listener, $wildcard = false)
  3786. {
  3787. return \Illuminate\Events\Dispatcher::createClassListener($listener, $wildcard);
  3788. }
  3789. /**
  3790. * Remove a set of listeners from the dispatcher.
  3791. *
  3792. * @param string $event
  3793. * @return void
  3794. * @static
  3795. */
  3796. public static function forget($event)
  3797. {
  3798. \Illuminate\Events\Dispatcher::forget($event);
  3799. }
  3800. /**
  3801. * Forget all of the pushed listeners.
  3802. *
  3803. * @return void
  3804. * @static
  3805. */
  3806. public static function forgetPushed()
  3807. {
  3808. \Illuminate\Events\Dispatcher::forgetPushed();
  3809. }
  3810. /**
  3811. * Set the queue resolver implementation.
  3812. *
  3813. * @param callable $resolver
  3814. * @return $this
  3815. * @static
  3816. */
  3817. public static function setQueueResolver($resolver)
  3818. {
  3819. return \Illuminate\Events\Dispatcher::setQueueResolver($resolver);
  3820. }
  3821. }
  3822. class File {
  3823. /**
  3824. * Determine if a file or directory exists.
  3825. *
  3826. * @param string $path
  3827. * @return bool
  3828. * @static
  3829. */
  3830. public static function exists($path)
  3831. {
  3832. return \Illuminate\Filesystem\Filesystem::exists($path);
  3833. }
  3834. /**
  3835. * Get the contents of a file.
  3836. *
  3837. * @param string $path
  3838. * @param bool $lock
  3839. * @return string
  3840. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  3841. * @static
  3842. */
  3843. public static function get($path, $lock = false)
  3844. {
  3845. return \Illuminate\Filesystem\Filesystem::get($path, $lock);
  3846. }
  3847. /**
  3848. * Get contents of a file with shared access.
  3849. *
  3850. * @param string $path
  3851. * @return string
  3852. * @static
  3853. */
  3854. public static function sharedGet($path)
  3855. {
  3856. return \Illuminate\Filesystem\Filesystem::sharedGet($path);
  3857. }
  3858. /**
  3859. * Get the returned value of a file.
  3860. *
  3861. * @param string $path
  3862. * @return mixed
  3863. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  3864. * @static
  3865. */
  3866. public static function getRequire($path)
  3867. {
  3868. return \Illuminate\Filesystem\Filesystem::getRequire($path);
  3869. }
  3870. /**
  3871. * Require the given file once.
  3872. *
  3873. * @param string $file
  3874. * @return mixed
  3875. * @static
  3876. */
  3877. public static function requireOnce($file)
  3878. {
  3879. return \Illuminate\Filesystem\Filesystem::requireOnce($file);
  3880. }
  3881. /**
  3882. * Get the MD5 hash of the file at the given path.
  3883. *
  3884. * @param string $path
  3885. * @return string
  3886. * @static
  3887. */
  3888. public static function hash($path)
  3889. {
  3890. return \Illuminate\Filesystem\Filesystem::hash($path);
  3891. }
  3892. /**
  3893. * Write the contents of a file.
  3894. *
  3895. * @param string $path
  3896. * @param string $contents
  3897. * @param bool $lock
  3898. * @return int
  3899. * @static
  3900. */
  3901. public static function put($path, $contents, $lock = false)
  3902. {
  3903. return \Illuminate\Filesystem\Filesystem::put($path, $contents, $lock);
  3904. }
  3905. /**
  3906. * Prepend to a file.
  3907. *
  3908. * @param string $path
  3909. * @param string $data
  3910. * @return int
  3911. * @static
  3912. */
  3913. public static function prepend($path, $data)
  3914. {
  3915. return \Illuminate\Filesystem\Filesystem::prepend($path, $data);
  3916. }
  3917. /**
  3918. * Append to a file.
  3919. *
  3920. * @param string $path
  3921. * @param string $data
  3922. * @return int
  3923. * @static
  3924. */
  3925. public static function append($path, $data)
  3926. {
  3927. return \Illuminate\Filesystem\Filesystem::append($path, $data);
  3928. }
  3929. /**
  3930. * Get or set UNIX mode of a file or directory.
  3931. *
  3932. * @param string $path
  3933. * @param int $mode
  3934. * @return mixed
  3935. * @static
  3936. */
  3937. public static function chmod($path, $mode = null)
  3938. {
  3939. return \Illuminate\Filesystem\Filesystem::chmod($path, $mode);
  3940. }
  3941. /**
  3942. * Delete the file at a given path.
  3943. *
  3944. * @param string|array $paths
  3945. * @return bool
  3946. * @static
  3947. */
  3948. public static function delete($paths)
  3949. {
  3950. return \Illuminate\Filesystem\Filesystem::delete($paths);
  3951. }
  3952. /**
  3953. * Move a file to a new location.
  3954. *
  3955. * @param string $path
  3956. * @param string $target
  3957. * @return bool
  3958. * @static
  3959. */
  3960. public static function move($path, $target)
  3961. {
  3962. return \Illuminate\Filesystem\Filesystem::move($path, $target);
  3963. }
  3964. /**
  3965. * Copy a file to a new location.
  3966. *
  3967. * @param string $path
  3968. * @param string $target
  3969. * @return bool
  3970. * @static
  3971. */
  3972. public static function copy($path, $target)
  3973. {
  3974. return \Illuminate\Filesystem\Filesystem::copy($path, $target);
  3975. }
  3976. /**
  3977. * Create a hard link to the target file or directory.
  3978. *
  3979. * @param string $target
  3980. * @param string $link
  3981. * @return void
  3982. * @static
  3983. */
  3984. public static function link($target, $link)
  3985. {
  3986. \Illuminate\Filesystem\Filesystem::link($target, $link);
  3987. }
  3988. /**
  3989. * Extract the file name from a file path.
  3990. *
  3991. * @param string $path
  3992. * @return string
  3993. * @static
  3994. */
  3995. public static function name($path)
  3996. {
  3997. return \Illuminate\Filesystem\Filesystem::name($path);
  3998. }
  3999. /**
  4000. * Extract the trailing name component from a file path.
  4001. *
  4002. * @param string $path
  4003. * @return string
  4004. * @static
  4005. */
  4006. public static function basename($path)
  4007. {
  4008. return \Illuminate\Filesystem\Filesystem::basename($path);
  4009. }
  4010. /**
  4011. * Extract the parent directory from a file path.
  4012. *
  4013. * @param string $path
  4014. * @return string
  4015. * @static
  4016. */
  4017. public static function dirname($path)
  4018. {
  4019. return \Illuminate\Filesystem\Filesystem::dirname($path);
  4020. }
  4021. /**
  4022. * Extract the file extension from a file path.
  4023. *
  4024. * @param string $path
  4025. * @return string
  4026. * @static
  4027. */
  4028. public static function extension($path)
  4029. {
  4030. return \Illuminate\Filesystem\Filesystem::extension($path);
  4031. }
  4032. /**
  4033. * Get the file type of a given file.
  4034. *
  4035. * @param string $path
  4036. * @return string
  4037. * @static
  4038. */
  4039. public static function type($path)
  4040. {
  4041. return \Illuminate\Filesystem\Filesystem::type($path);
  4042. }
  4043. /**
  4044. * Get the mime-type of a given file.
  4045. *
  4046. * @param string $path
  4047. * @return string|false
  4048. * @static
  4049. */
  4050. public static function mimeType($path)
  4051. {
  4052. return \Illuminate\Filesystem\Filesystem::mimeType($path);
  4053. }
  4054. /**
  4055. * Get the file size of a given file.
  4056. *
  4057. * @param string $path
  4058. * @return int
  4059. * @static
  4060. */
  4061. public static function size($path)
  4062. {
  4063. return \Illuminate\Filesystem\Filesystem::size($path);
  4064. }
  4065. /**
  4066. * Get the file's last modification time.
  4067. *
  4068. * @param string $path
  4069. * @return int
  4070. * @static
  4071. */
  4072. public static function lastModified($path)
  4073. {
  4074. return \Illuminate\Filesystem\Filesystem::lastModified($path);
  4075. }
  4076. /**
  4077. * Determine if the given path is a directory.
  4078. *
  4079. * @param string $directory
  4080. * @return bool
  4081. * @static
  4082. */
  4083. public static function isDirectory($directory)
  4084. {
  4085. return \Illuminate\Filesystem\Filesystem::isDirectory($directory);
  4086. }
  4087. /**
  4088. * Determine if the given path is readable.
  4089. *
  4090. * @param string $path
  4091. * @return bool
  4092. * @static
  4093. */
  4094. public static function isReadable($path)
  4095. {
  4096. return \Illuminate\Filesystem\Filesystem::isReadable($path);
  4097. }
  4098. /**
  4099. * Determine if the given path is writable.
  4100. *
  4101. * @param string $path
  4102. * @return bool
  4103. * @static
  4104. */
  4105. public static function isWritable($path)
  4106. {
  4107. return \Illuminate\Filesystem\Filesystem::isWritable($path);
  4108. }
  4109. /**
  4110. * Determine if the given path is a file.
  4111. *
  4112. * @param string $file
  4113. * @return bool
  4114. * @static
  4115. */
  4116. public static function isFile($file)
  4117. {
  4118. return \Illuminate\Filesystem\Filesystem::isFile($file);
  4119. }
  4120. /**
  4121. * Find path names matching a given pattern.
  4122. *
  4123. * @param string $pattern
  4124. * @param int $flags
  4125. * @return array
  4126. * @static
  4127. */
  4128. public static function glob($pattern, $flags = 0)
  4129. {
  4130. return \Illuminate\Filesystem\Filesystem::glob($pattern, $flags);
  4131. }
  4132. /**
  4133. * Get an array of all files in a directory.
  4134. *
  4135. * @param string $directory
  4136. * @return array
  4137. * @static
  4138. */
  4139. public static function files($directory)
  4140. {
  4141. return \Illuminate\Filesystem\Filesystem::files($directory);
  4142. }
  4143. /**
  4144. * Get all of the files from the given directory (recursive).
  4145. *
  4146. * @param string $directory
  4147. * @param bool $hidden
  4148. * @return array
  4149. * @static
  4150. */
  4151. public static function allFiles($directory, $hidden = false)
  4152. {
  4153. return \Illuminate\Filesystem\Filesystem::allFiles($directory, $hidden);
  4154. }
  4155. /**
  4156. * Get all of the directories within a given directory.
  4157. *
  4158. * @param string $directory
  4159. * @return array
  4160. * @static
  4161. */
  4162. public static function directories($directory)
  4163. {
  4164. return \Illuminate\Filesystem\Filesystem::directories($directory);
  4165. }
  4166. /**
  4167. * Create a directory.
  4168. *
  4169. * @param string $path
  4170. * @param int $mode
  4171. * @param bool $recursive
  4172. * @param bool $force
  4173. * @return bool
  4174. * @static
  4175. */
  4176. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  4177. {
  4178. return \Illuminate\Filesystem\Filesystem::makeDirectory($path, $mode, $recursive, $force);
  4179. }
  4180. /**
  4181. * Move a directory.
  4182. *
  4183. * @param string $from
  4184. * @param string $to
  4185. * @param bool $overwrite
  4186. * @return bool
  4187. * @static
  4188. */
  4189. public static function moveDirectory($from, $to, $overwrite = false)
  4190. {
  4191. return \Illuminate\Filesystem\Filesystem::moveDirectory($from, $to, $overwrite);
  4192. }
  4193. /**
  4194. * Copy a directory from one location to another.
  4195. *
  4196. * @param string $directory
  4197. * @param string $destination
  4198. * @param int $options
  4199. * @return bool
  4200. * @static
  4201. */
  4202. public static function copyDirectory($directory, $destination, $options = null)
  4203. {
  4204. return \Illuminate\Filesystem\Filesystem::copyDirectory($directory, $destination, $options);
  4205. }
  4206. /**
  4207. * Recursively delete a directory.
  4208. *
  4209. * The directory itself may be optionally preserved.
  4210. *
  4211. * @param string $directory
  4212. * @param bool $preserve
  4213. * @return bool
  4214. * @static
  4215. */
  4216. public static function deleteDirectory($directory, $preserve = false)
  4217. {
  4218. return \Illuminate\Filesystem\Filesystem::deleteDirectory($directory, $preserve);
  4219. }
  4220. /**
  4221. * Empty the specified directory of all files and folders.
  4222. *
  4223. * @param string $directory
  4224. * @return bool
  4225. * @static
  4226. */
  4227. public static function cleanDirectory($directory)
  4228. {
  4229. return \Illuminate\Filesystem\Filesystem::cleanDirectory($directory);
  4230. }
  4231. /**
  4232. * Register a custom macro.
  4233. *
  4234. * @param string $name
  4235. * @param callable $macro
  4236. * @return void
  4237. * @static
  4238. */
  4239. public static function macro($name, $macro)
  4240. {
  4241. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  4242. }
  4243. /**
  4244. * Checks if macro is registered.
  4245. *
  4246. * @param string $name
  4247. * @return bool
  4248. * @static
  4249. */
  4250. public static function hasMacro($name)
  4251. {
  4252. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  4253. }
  4254. }
  4255. class Gate {
  4256. /**
  4257. * Determine if a given ability has been defined.
  4258. *
  4259. * @param string $ability
  4260. * @return bool
  4261. * @static
  4262. */
  4263. public static function has($ability)
  4264. {
  4265. return \Illuminate\Auth\Access\Gate::has($ability);
  4266. }
  4267. /**
  4268. * Define a new ability.
  4269. *
  4270. * @param string $ability
  4271. * @param callable|string $callback
  4272. * @return $this
  4273. * @throws \InvalidArgumentException
  4274. * @static
  4275. */
  4276. public static function define($ability, $callback)
  4277. {
  4278. return \Illuminate\Auth\Access\Gate::define($ability, $callback);
  4279. }
  4280. /**
  4281. * Define abilities for a resource.
  4282. *
  4283. * @param string $name
  4284. * @param string $class
  4285. * @param array $abilities
  4286. * @return $this
  4287. * @static
  4288. */
  4289. public static function resource($name, $class, $abilities = null)
  4290. {
  4291. return \Illuminate\Auth\Access\Gate::resource($name, $class, $abilities);
  4292. }
  4293. /**
  4294. * Define a policy class for a given class type.
  4295. *
  4296. * @param string $class
  4297. * @param string $policy
  4298. * @return $this
  4299. * @static
  4300. */
  4301. public static function policy($class, $policy)
  4302. {
  4303. return \Illuminate\Auth\Access\Gate::policy($class, $policy);
  4304. }
  4305. /**
  4306. * Register a callback to run before all Gate checks.
  4307. *
  4308. * @param callable $callback
  4309. * @return $this
  4310. * @static
  4311. */
  4312. public static function before($callback)
  4313. {
  4314. return \Illuminate\Auth\Access\Gate::before($callback);
  4315. }
  4316. /**
  4317. * Register a callback to run after all Gate checks.
  4318. *
  4319. * @param callable $callback
  4320. * @return $this
  4321. * @static
  4322. */
  4323. public static function after($callback)
  4324. {
  4325. return \Illuminate\Auth\Access\Gate::after($callback);
  4326. }
  4327. /**
  4328. * Determine if the given ability should be granted for the current user.
  4329. *
  4330. * @param string $ability
  4331. * @param array|mixed $arguments
  4332. * @return bool
  4333. * @static
  4334. */
  4335. public static function allows($ability, $arguments = array())
  4336. {
  4337. return \Illuminate\Auth\Access\Gate::allows($ability, $arguments);
  4338. }
  4339. /**
  4340. * Determine if the given ability should be denied for the current user.
  4341. *
  4342. * @param string $ability
  4343. * @param array|mixed $arguments
  4344. * @return bool
  4345. * @static
  4346. */
  4347. public static function denies($ability, $arguments = array())
  4348. {
  4349. return \Illuminate\Auth\Access\Gate::denies($ability, $arguments);
  4350. }
  4351. /**
  4352. * Determine if the given ability should be granted for the current user.
  4353. *
  4354. * @param string $ability
  4355. * @param array|mixed $arguments
  4356. * @return bool
  4357. * @static
  4358. */
  4359. public static function check($ability, $arguments = array())
  4360. {
  4361. return \Illuminate\Auth\Access\Gate::check($ability, $arguments);
  4362. }
  4363. /**
  4364. * Determine if the given ability should be granted for the current user.
  4365. *
  4366. * @param string $ability
  4367. * @param array|mixed $arguments
  4368. * @return \Illuminate\Auth\Access\Response
  4369. * @throws \Illuminate\Auth\Access\AuthorizationException
  4370. * @static
  4371. */
  4372. public static function authorize($ability, $arguments = array())
  4373. {
  4374. return \Illuminate\Auth\Access\Gate::authorize($ability, $arguments);
  4375. }
  4376. /**
  4377. * Get a policy instance for a given class.
  4378. *
  4379. * @param object|string $class
  4380. * @return mixed
  4381. * @static
  4382. */
  4383. public static function getPolicyFor($class)
  4384. {
  4385. return \Illuminate\Auth\Access\Gate::getPolicyFor($class);
  4386. }
  4387. /**
  4388. * Build a policy class instance of the given type.
  4389. *
  4390. * @param object|string $class
  4391. * @return mixed
  4392. * @static
  4393. */
  4394. public static function resolvePolicy($class)
  4395. {
  4396. return \Illuminate\Auth\Access\Gate::resolvePolicy($class);
  4397. }
  4398. /**
  4399. * Get a gate instance for the given user.
  4400. *
  4401. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  4402. * @return static
  4403. * @static
  4404. */
  4405. public static function forUser($user)
  4406. {
  4407. return \Illuminate\Auth\Access\Gate::forUser($user);
  4408. }
  4409. /**
  4410. * Get all of the defined abilities.
  4411. *
  4412. * @return array
  4413. * @static
  4414. */
  4415. public static function abilities()
  4416. {
  4417. return \Illuminate\Auth\Access\Gate::abilities();
  4418. }
  4419. }
  4420. class Hash {
  4421. /**
  4422. * Hash the given value.
  4423. *
  4424. * @param string $value
  4425. * @param array $options
  4426. * @return string
  4427. * @throws \RuntimeException
  4428. * @static
  4429. */
  4430. public static function make($value, $options = array())
  4431. {
  4432. return \Illuminate\Hashing\BcryptHasher::make($value, $options);
  4433. }
  4434. /**
  4435. * Check the given plain value against a hash.
  4436. *
  4437. * @param string $value
  4438. * @param string $hashedValue
  4439. * @param array $options
  4440. * @return bool
  4441. * @static
  4442. */
  4443. public static function check($value, $hashedValue, $options = array())
  4444. {
  4445. return \Illuminate\Hashing\BcryptHasher::check($value, $hashedValue, $options);
  4446. }
  4447. /**
  4448. * Check if the given hash has been hashed using the given options.
  4449. *
  4450. * @param string $hashedValue
  4451. * @param array $options
  4452. * @return bool
  4453. * @static
  4454. */
  4455. public static function needsRehash($hashedValue, $options = array())
  4456. {
  4457. return \Illuminate\Hashing\BcryptHasher::needsRehash($hashedValue, $options);
  4458. }
  4459. /**
  4460. * Set the default password work factor.
  4461. *
  4462. * @param int $rounds
  4463. * @return $this
  4464. * @static
  4465. */
  4466. public static function setRounds($rounds)
  4467. {
  4468. return \Illuminate\Hashing\BcryptHasher::setRounds($rounds);
  4469. }
  4470. }
  4471. class Lang {
  4472. /**
  4473. * Determine if a translation exists for a given locale.
  4474. *
  4475. * @param string $key
  4476. * @param string|null $locale
  4477. * @return bool
  4478. * @static
  4479. */
  4480. public static function hasForLocale($key, $locale = null)
  4481. {
  4482. return \Illuminate\Translation\Translator::hasForLocale($key, $locale);
  4483. }
  4484. /**
  4485. * Determine if a translation exists.
  4486. *
  4487. * @param string $key
  4488. * @param string|null $locale
  4489. * @param bool $fallback
  4490. * @return bool
  4491. * @static
  4492. */
  4493. public static function has($key, $locale = null, $fallback = true)
  4494. {
  4495. return \Illuminate\Translation\Translator::has($key, $locale, $fallback);
  4496. }
  4497. /**
  4498. * Get the translation for a given key.
  4499. *
  4500. * @param string $key
  4501. * @param array $replace
  4502. * @param string $locale
  4503. * @return string|array|null
  4504. * @static
  4505. */
  4506. public static function trans($key, $replace = array(), $locale = null)
  4507. {
  4508. return \Illuminate\Translation\Translator::trans($key, $replace, $locale);
  4509. }
  4510. /**
  4511. * Get the translation for the given key.
  4512. *
  4513. * @param string $key
  4514. * @param array $replace
  4515. * @param string|null $locale
  4516. * @param bool $fallback
  4517. * @return string|array|null
  4518. * @static
  4519. */
  4520. public static function get($key, $replace = array(), $locale = null, $fallback = true)
  4521. {
  4522. return \Illuminate\Translation\Translator::get($key, $replace, $locale, $fallback);
  4523. }
  4524. /**
  4525. * Get the translation for a given key from the JSON translation files.
  4526. *
  4527. * @param string $key
  4528. * @param array $replace
  4529. * @param string $locale
  4530. * @return string
  4531. * @static
  4532. */
  4533. public static function getFromJson($key, $replace = array(), $locale = null)
  4534. {
  4535. return \Illuminate\Translation\Translator::getFromJson($key, $replace, $locale);
  4536. }
  4537. /**
  4538. * Get a translation according to an integer value.
  4539. *
  4540. * @param string $key
  4541. * @param int|array|\Countable $number
  4542. * @param array $replace
  4543. * @param string $locale
  4544. * @return string
  4545. * @static
  4546. */
  4547. public static function transChoice($key, $number, $replace = array(), $locale = null)
  4548. {
  4549. return \Illuminate\Translation\Translator::transChoice($key, $number, $replace, $locale);
  4550. }
  4551. /**
  4552. * Get a translation according to an integer value.
  4553. *
  4554. * @param string $key
  4555. * @param int|array|\Countable $number
  4556. * @param array $replace
  4557. * @param string $locale
  4558. * @return string
  4559. * @static
  4560. */
  4561. public static function choice($key, $number, $replace = array(), $locale = null)
  4562. {
  4563. return \Illuminate\Translation\Translator::choice($key, $number, $replace, $locale);
  4564. }
  4565. /**
  4566. * Add translation lines to the given locale.
  4567. *
  4568. * @param array $lines
  4569. * @param string $locale
  4570. * @param string $namespace
  4571. * @return void
  4572. * @static
  4573. */
  4574. public static function addLines($lines, $locale, $namespace = '*')
  4575. {
  4576. \Illuminate\Translation\Translator::addLines($lines, $locale, $namespace);
  4577. }
  4578. /**
  4579. * Load the specified language group.
  4580. *
  4581. * @param string $namespace
  4582. * @param string $group
  4583. * @param string $locale
  4584. * @return void
  4585. * @static
  4586. */
  4587. public static function load($namespace, $group, $locale)
  4588. {
  4589. \Illuminate\Translation\Translator::load($namespace, $group, $locale);
  4590. }
  4591. /**
  4592. * Add a new namespace to the loader.
  4593. *
  4594. * @param string $namespace
  4595. * @param string $hint
  4596. * @return void
  4597. * @static
  4598. */
  4599. public static function addNamespace($namespace, $hint)
  4600. {
  4601. \Illuminate\Translation\Translator::addNamespace($namespace, $hint);
  4602. }
  4603. /**
  4604. * Parse a key into namespace, group, and item.
  4605. *
  4606. * @param string $key
  4607. * @return array
  4608. * @static
  4609. */
  4610. public static function parseKey($key)
  4611. {
  4612. return \Illuminate\Translation\Translator::parseKey($key);
  4613. }
  4614. /**
  4615. * Get the message selector instance.
  4616. *
  4617. * @return \Illuminate\Translation\MessageSelector
  4618. * @static
  4619. */
  4620. public static function getSelector()
  4621. {
  4622. return \Illuminate\Translation\Translator::getSelector();
  4623. }
  4624. /**
  4625. * Set the message selector instance.
  4626. *
  4627. * @param \Illuminate\Translation\MessageSelector $selector
  4628. * @return void
  4629. * @static
  4630. */
  4631. public static function setSelector($selector)
  4632. {
  4633. \Illuminate\Translation\Translator::setSelector($selector);
  4634. }
  4635. /**
  4636. * Get the language line loader implementation.
  4637. *
  4638. * @return \Illuminate\Translation\LoaderInterface
  4639. * @static
  4640. */
  4641. public static function getLoader()
  4642. {
  4643. return \Illuminate\Translation\Translator::getLoader();
  4644. }
  4645. /**
  4646. * Get the default locale being used.
  4647. *
  4648. * @return string
  4649. * @static
  4650. */
  4651. public static function locale()
  4652. {
  4653. return \Illuminate\Translation\Translator::locale();
  4654. }
  4655. /**
  4656. * Get the default locale being used.
  4657. *
  4658. * @return string
  4659. * @static
  4660. */
  4661. public static function getLocale()
  4662. {
  4663. return \Illuminate\Translation\Translator::getLocale();
  4664. }
  4665. /**
  4666. * Set the default locale.
  4667. *
  4668. * @param string $locale
  4669. * @return void
  4670. * @static
  4671. */
  4672. public static function setLocale($locale)
  4673. {
  4674. \Illuminate\Translation\Translator::setLocale($locale);
  4675. }
  4676. /**
  4677. * Get the fallback locale being used.
  4678. *
  4679. * @return string
  4680. * @static
  4681. */
  4682. public static function getFallback()
  4683. {
  4684. return \Illuminate\Translation\Translator::getFallback();
  4685. }
  4686. /**
  4687. * Set the fallback locale being used.
  4688. *
  4689. * @param string $fallback
  4690. * @return void
  4691. * @static
  4692. */
  4693. public static function setFallback($fallback)
  4694. {
  4695. \Illuminate\Translation\Translator::setFallback($fallback);
  4696. }
  4697. /**
  4698. * Set the parsed value of a key.
  4699. *
  4700. * @param string $key
  4701. * @param array $parsed
  4702. * @return void
  4703. * @static
  4704. */
  4705. public static function setParsedKey($key, $parsed)
  4706. {
  4707. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  4708. \Illuminate\Translation\Translator::setParsedKey($key, $parsed);
  4709. }
  4710. /**
  4711. * Register a custom macro.
  4712. *
  4713. * @param string $name
  4714. * @param callable $macro
  4715. * @return void
  4716. * @static
  4717. */
  4718. public static function macro($name, $macro)
  4719. {
  4720. \Illuminate\Translation\Translator::macro($name, $macro);
  4721. }
  4722. /**
  4723. * Checks if macro is registered.
  4724. *
  4725. * @param string $name
  4726. * @return bool
  4727. * @static
  4728. */
  4729. public static function hasMacro($name)
  4730. {
  4731. return \Illuminate\Translation\Translator::hasMacro($name);
  4732. }
  4733. }
  4734. class Log {
  4735. /**
  4736. * Adds a log record at the DEBUG level.
  4737. *
  4738. * @param string $message The log message
  4739. * @param array $context The log context
  4740. * @return Boolean Whether the record has been processed
  4741. * @static
  4742. */
  4743. public static function debug($message, $context = array())
  4744. {
  4745. return \Monolog\Logger::debug($message, $context);
  4746. }
  4747. /**
  4748. * Adds a log record at the INFO level.
  4749. *
  4750. * @param string $message The log message
  4751. * @param array $context The log context
  4752. * @return Boolean Whether the record has been processed
  4753. * @static
  4754. */
  4755. public static function info($message, $context = array())
  4756. {
  4757. return \Monolog\Logger::info($message, $context);
  4758. }
  4759. /**
  4760. * Adds a log record at the NOTICE level.
  4761. *
  4762. * @param string $message The log message
  4763. * @param array $context The log context
  4764. * @return Boolean Whether the record has been processed
  4765. * @static
  4766. */
  4767. public static function notice($message, $context = array())
  4768. {
  4769. return \Monolog\Logger::notice($message, $context);
  4770. }
  4771. /**
  4772. * Adds a log record at the WARNING level.
  4773. *
  4774. * @param string $message The log message
  4775. * @param array $context The log context
  4776. * @return Boolean Whether the record has been processed
  4777. * @static
  4778. */
  4779. public static function warning($message, $context = array())
  4780. {
  4781. return \Monolog\Logger::warning($message, $context);
  4782. }
  4783. /**
  4784. * Adds a log record at the ERROR level.
  4785. *
  4786. * @param string $message The log message
  4787. * @param array $context The log context
  4788. * @return Boolean Whether the record has been processed
  4789. * @static
  4790. */
  4791. public static function error($message, $context = array())
  4792. {
  4793. return \Monolog\Logger::error($message, $context);
  4794. }
  4795. /**
  4796. * Adds a log record at the CRITICAL level.
  4797. *
  4798. * @param string $message The log message
  4799. * @param array $context The log context
  4800. * @return Boolean Whether the record has been processed
  4801. * @static
  4802. */
  4803. public static function critical($message, $context = array())
  4804. {
  4805. return \Monolog\Logger::critical($message, $context);
  4806. }
  4807. /**
  4808. * Adds a log record at the ALERT level.
  4809. *
  4810. * @param string $message The log message
  4811. * @param array $context The log context
  4812. * @return Boolean Whether the record has been processed
  4813. * @static
  4814. */
  4815. public static function alert($message, $context = array())
  4816. {
  4817. return \Monolog\Logger::alert($message, $context);
  4818. }
  4819. /**
  4820. * Adds a log record at the EMERGENCY level.
  4821. *
  4822. * @param string $message The log message
  4823. * @param array $context The log context
  4824. * @return Boolean Whether the record has been processed
  4825. * @static
  4826. */
  4827. public static function emergency($message, $context = array())
  4828. {
  4829. return \Monolog\Logger::emergency($message, $context);
  4830. }
  4831. /**
  4832. * Log a message to the logs.
  4833. *
  4834. * @param string $level
  4835. * @param string $message
  4836. * @param array $context
  4837. * @return void
  4838. * @static
  4839. */
  4840. public static function log($level, $message, $context = array())
  4841. {
  4842. \Illuminate\Log\Writer::log($level, $message, $context);
  4843. }
  4844. /**
  4845. * Dynamically pass log calls into the writer.
  4846. *
  4847. * @param string $level
  4848. * @param string $message
  4849. * @param array $context
  4850. * @return void
  4851. * @static
  4852. */
  4853. public static function write($level, $message, $context = array())
  4854. {
  4855. \Illuminate\Log\Writer::write($level, $message, $context);
  4856. }
  4857. /**
  4858. * Register a file log handler.
  4859. *
  4860. * @param string $path
  4861. * @param string $level
  4862. * @return void
  4863. * @static
  4864. */
  4865. public static function useFiles($path, $level = 'debug')
  4866. {
  4867. \Illuminate\Log\Writer::useFiles($path, $level);
  4868. }
  4869. /**
  4870. * Register a daily file log handler.
  4871. *
  4872. * @param string $path
  4873. * @param int $days
  4874. * @param string $level
  4875. * @return void
  4876. * @static
  4877. */
  4878. public static function useDailyFiles($path, $days = 0, $level = 'debug')
  4879. {
  4880. \Illuminate\Log\Writer::useDailyFiles($path, $days, $level);
  4881. }
  4882. /**
  4883. * Register a Syslog handler.
  4884. *
  4885. * @param string $name
  4886. * @param string $level
  4887. * @param mixed $facility
  4888. * @return \Psr\Log\LoggerInterface
  4889. * @static
  4890. */
  4891. public static function useSyslog($name = 'laravel', $level = 'debug', $facility = 8)
  4892. {
  4893. return \Illuminate\Log\Writer::useSyslog($name, $level, $facility);
  4894. }
  4895. /**
  4896. * Register an error_log handler.
  4897. *
  4898. * @param string $level
  4899. * @param int $messageType
  4900. * @return void
  4901. * @static
  4902. */
  4903. public static function useErrorLog($level = 'debug', $messageType = 0)
  4904. {
  4905. \Illuminate\Log\Writer::useErrorLog($level, $messageType);
  4906. }
  4907. /**
  4908. * Register a new callback handler for when a log event is triggered.
  4909. *
  4910. * @param \Closure $callback
  4911. * @return void
  4912. * @throws \RuntimeException
  4913. * @static
  4914. */
  4915. public static function listen($callback)
  4916. {
  4917. \Illuminate\Log\Writer::listen($callback);
  4918. }
  4919. /**
  4920. * Get the underlying Monolog instance.
  4921. *
  4922. * @return \Monolog\Logger
  4923. * @static
  4924. */
  4925. public static function getMonolog()
  4926. {
  4927. return \Illuminate\Log\Writer::getMonolog();
  4928. }
  4929. /**
  4930. * Get the event dispatcher instance.
  4931. *
  4932. * @return \Illuminate\Contracts\Events\Dispatcher
  4933. * @static
  4934. */
  4935. public static function getEventDispatcher()
  4936. {
  4937. return \Illuminate\Log\Writer::getEventDispatcher();
  4938. }
  4939. /**
  4940. * Set the event dispatcher instance.
  4941. *
  4942. * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher
  4943. * @return void
  4944. * @static
  4945. */
  4946. public static function setEventDispatcher($dispatcher)
  4947. {
  4948. \Illuminate\Log\Writer::setEventDispatcher($dispatcher);
  4949. }
  4950. }
  4951. class Mail {
  4952. /**
  4953. * Set the global from address and name.
  4954. *
  4955. * @param string $address
  4956. * @param string|null $name
  4957. * @return void
  4958. * @static
  4959. */
  4960. public static function alwaysFrom($address, $name = null)
  4961. {
  4962. \Illuminate\Mail\Mailer::alwaysFrom($address, $name);
  4963. }
  4964. /**
  4965. * Set the global reply-to address and name.
  4966. *
  4967. * @param string $address
  4968. * @param string|null $name
  4969. * @return void
  4970. * @static
  4971. */
  4972. public static function alwaysReplyTo($address, $name = null)
  4973. {
  4974. \Illuminate\Mail\Mailer::alwaysReplyTo($address, $name);
  4975. }
  4976. /**
  4977. * Set the global to address and name.
  4978. *
  4979. * @param string $address
  4980. * @param string|null $name
  4981. * @return void
  4982. * @static
  4983. */
  4984. public static function alwaysTo($address, $name = null)
  4985. {
  4986. \Illuminate\Mail\Mailer::alwaysTo($address, $name);
  4987. }
  4988. /**
  4989. * Begin the process of mailing a mailable class instance.
  4990. *
  4991. * @param mixed $users
  4992. * @return \Illuminate\Mail\PendingMail
  4993. * @static
  4994. */
  4995. public static function to($users)
  4996. {
  4997. return \Illuminate\Mail\Mailer::to($users);
  4998. }
  4999. /**
  5000. * Begin the process of mailing a mailable class instance.
  5001. *
  5002. * @param mixed $users
  5003. * @return \Illuminate\Mail\PendingMail
  5004. * @static
  5005. */
  5006. public static function bcc($users)
  5007. {
  5008. return \Illuminate\Mail\Mailer::bcc($users);
  5009. }
  5010. /**
  5011. * Send a new message when only a raw text part.
  5012. *
  5013. * @param string $text
  5014. * @param mixed $callback
  5015. * @return void
  5016. * @static
  5017. */
  5018. public static function raw($text, $callback)
  5019. {
  5020. \Illuminate\Mail\Mailer::raw($text, $callback);
  5021. }
  5022. /**
  5023. * Send a new message when only a plain part.
  5024. *
  5025. * @param string $view
  5026. * @param array $data
  5027. * @param mixed $callback
  5028. * @return void
  5029. * @static
  5030. */
  5031. public static function plain($view, $data, $callback)
  5032. {
  5033. \Illuminate\Mail\Mailer::plain($view, $data, $callback);
  5034. }
  5035. /**
  5036. * Send a new message using a view.
  5037. *
  5038. * @param string|array $view
  5039. * @param array $data
  5040. * @param \Closure|string $callback
  5041. * @return void
  5042. * @static
  5043. */
  5044. public static function send($view, $data = array(), $callback = null)
  5045. {
  5046. \Illuminate\Mail\Mailer::send($view, $data, $callback);
  5047. }
  5048. /**
  5049. * Queue a new e-mail message for sending.
  5050. *
  5051. * @param string|array $view
  5052. * @param array $data
  5053. * @param \Closure|string $callback
  5054. * @param string|null $queue
  5055. * @return mixed
  5056. * @static
  5057. */
  5058. public static function queue($view, $data = array(), $callback = null, $queue = null)
  5059. {
  5060. return \Illuminate\Mail\Mailer::queue($view, $data, $callback, $queue);
  5061. }
  5062. /**
  5063. * Queue a new e-mail message for sending on the given queue.
  5064. *
  5065. * @param string $queue
  5066. * @param string|array $view
  5067. * @param array $data
  5068. * @param \Closure|string $callback
  5069. * @return mixed
  5070. * @static
  5071. */
  5072. public static function onQueue($queue, $view, $data, $callback)
  5073. {
  5074. return \Illuminate\Mail\Mailer::onQueue($queue, $view, $data, $callback);
  5075. }
  5076. /**
  5077. * Queue a new e-mail message for sending on the given queue.
  5078. *
  5079. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  5080. *
  5081. * @param string $queue
  5082. * @param string|array $view
  5083. * @param array $data
  5084. * @param \Closure|string $callback
  5085. * @return mixed
  5086. * @static
  5087. */
  5088. public static function queueOn($queue, $view, $data, $callback)
  5089. {
  5090. return \Illuminate\Mail\Mailer::queueOn($queue, $view, $data, $callback);
  5091. }
  5092. /**
  5093. * Queue a new e-mail message for sending after (n) seconds.
  5094. *
  5095. * @param int $delay
  5096. * @param string|array $view
  5097. * @param array $data
  5098. * @param \Closure|string $callback
  5099. * @param string|null $queue
  5100. * @return mixed
  5101. * @static
  5102. */
  5103. public static function later($delay, $view, $data = array(), $callback = null, $queue = null)
  5104. {
  5105. return \Illuminate\Mail\Mailer::later($delay, $view, $data, $callback, $queue);
  5106. }
  5107. /**
  5108. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  5109. *
  5110. * @param string $queue
  5111. * @param int $delay
  5112. * @param string|array $view
  5113. * @param array $data
  5114. * @param \Closure|string $callback
  5115. * @return mixed
  5116. * @static
  5117. */
  5118. public static function laterOn($queue, $delay, $view, $data, $callback)
  5119. {
  5120. return \Illuminate\Mail\Mailer::laterOn($queue, $delay, $view, $data, $callback);
  5121. }
  5122. /**
  5123. * Get the view factory instance.
  5124. *
  5125. * @return \Illuminate\Contracts\View\Factory
  5126. * @static
  5127. */
  5128. public static function getViewFactory()
  5129. {
  5130. return \Illuminate\Mail\Mailer::getViewFactory();
  5131. }
  5132. /**
  5133. * Get the Swift Mailer instance.
  5134. *
  5135. * @return \Swift_Mailer
  5136. * @static
  5137. */
  5138. public static function getSwiftMailer()
  5139. {
  5140. return \Illuminate\Mail\Mailer::getSwiftMailer();
  5141. }
  5142. /**
  5143. * Get the array of failed recipients.
  5144. *
  5145. * @return array
  5146. * @static
  5147. */
  5148. public static function failures()
  5149. {
  5150. return \Illuminate\Mail\Mailer::failures();
  5151. }
  5152. /**
  5153. * Set the Swift Mailer instance.
  5154. *
  5155. * @param \Swift_Mailer $swift
  5156. * @return void
  5157. * @static
  5158. */
  5159. public static function setSwiftMailer($swift)
  5160. {
  5161. \Illuminate\Mail\Mailer::setSwiftMailer($swift);
  5162. }
  5163. /**
  5164. * Set the queue manager instance.
  5165. *
  5166. * @param \Illuminate\Contracts\Queue\Factory $queue
  5167. * @return $this
  5168. * @static
  5169. */
  5170. public static function setQueue($queue)
  5171. {
  5172. return \Illuminate\Mail\Mailer::setQueue($queue);
  5173. }
  5174. /**
  5175. * Register a custom macro.
  5176. *
  5177. * @param string $name
  5178. * @param callable $macro
  5179. * @return void
  5180. * @static
  5181. */
  5182. public static function macro($name, $macro)
  5183. {
  5184. \Illuminate\Mail\Mailer::macro($name, $macro);
  5185. }
  5186. /**
  5187. * Checks if macro is registered.
  5188. *
  5189. * @param string $name
  5190. * @return bool
  5191. * @static
  5192. */
  5193. public static function hasMacro($name)
  5194. {
  5195. return \Illuminate\Mail\Mailer::hasMacro($name);
  5196. }
  5197. }
  5198. class Notification {
  5199. /**
  5200. * Send the given notification to the given notifiable entities.
  5201. *
  5202. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  5203. * @param mixed $notification
  5204. * @return void
  5205. * @static
  5206. */
  5207. public static function send($notifiables, $notification)
  5208. {
  5209. \Illuminate\Notifications\ChannelManager::send($notifiables, $notification);
  5210. }
  5211. /**
  5212. * Send the given notification immediately.
  5213. *
  5214. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  5215. * @param mixed $notification
  5216. * @param array|null $channels
  5217. * @return void
  5218. * @static
  5219. */
  5220. public static function sendNow($notifiables, $notification, $channels = null)
  5221. {
  5222. \Illuminate\Notifications\ChannelManager::sendNow($notifiables, $notification, $channels);
  5223. }
  5224. /**
  5225. * Get a channel instance.
  5226. *
  5227. * @param string|null $name
  5228. * @return mixed
  5229. * @static
  5230. */
  5231. public static function channel($name = null)
  5232. {
  5233. return \Illuminate\Notifications\ChannelManager::channel($name);
  5234. }
  5235. /**
  5236. * Get the default channel driver name.
  5237. *
  5238. * @return string
  5239. * @static
  5240. */
  5241. public static function getDefaultDriver()
  5242. {
  5243. return \Illuminate\Notifications\ChannelManager::getDefaultDriver();
  5244. }
  5245. /**
  5246. * Get the default channel driver name.
  5247. *
  5248. * @return string
  5249. * @static
  5250. */
  5251. public static function deliversVia()
  5252. {
  5253. return \Illuminate\Notifications\ChannelManager::deliversVia();
  5254. }
  5255. /**
  5256. * Set the default channel driver name.
  5257. *
  5258. * @param string $channel
  5259. * @return void
  5260. * @static
  5261. */
  5262. public static function deliverVia($channel)
  5263. {
  5264. \Illuminate\Notifications\ChannelManager::deliverVia($channel);
  5265. }
  5266. /**
  5267. * Get a driver instance.
  5268. *
  5269. * @param string $driver
  5270. * @return mixed
  5271. * @static
  5272. */
  5273. public static function driver($driver = null)
  5274. {
  5275. //Method inherited from \Illuminate\Support\Manager
  5276. return \Illuminate\Notifications\ChannelManager::driver($driver);
  5277. }
  5278. /**
  5279. * Register a custom driver creator Closure.
  5280. *
  5281. * @param string $driver
  5282. * @param \Closure $callback
  5283. * @return $this
  5284. * @static
  5285. */
  5286. public static function extend($driver, $callback)
  5287. {
  5288. //Method inherited from \Illuminate\Support\Manager
  5289. return \Illuminate\Notifications\ChannelManager::extend($driver, $callback);
  5290. }
  5291. /**
  5292. * Get all of the created "drivers".
  5293. *
  5294. * @return array
  5295. * @static
  5296. */
  5297. public static function getDrivers()
  5298. {
  5299. //Method inherited from \Illuminate\Support\Manager
  5300. return \Illuminate\Notifications\ChannelManager::getDrivers();
  5301. }
  5302. }
  5303. class Password {
  5304. /**
  5305. * Attempt to get the broker from the local cache.
  5306. *
  5307. * @param string $name
  5308. * @return \Illuminate\Contracts\Auth\PasswordBroker
  5309. * @static
  5310. */
  5311. public static function broker($name = null)
  5312. {
  5313. return \Illuminate\Auth\Passwords\PasswordBrokerManager::broker($name);
  5314. }
  5315. /**
  5316. * Get the default password broker name.
  5317. *
  5318. * @return string
  5319. * @static
  5320. */
  5321. public static function getDefaultDriver()
  5322. {
  5323. return \Illuminate\Auth\Passwords\PasswordBrokerManager::getDefaultDriver();
  5324. }
  5325. /**
  5326. * Set the default password broker name.
  5327. *
  5328. * @param string $name
  5329. * @return void
  5330. * @static
  5331. */
  5332. public static function setDefaultDriver($name)
  5333. {
  5334. \Illuminate\Auth\Passwords\PasswordBrokerManager::setDefaultDriver($name);
  5335. }
  5336. }
  5337. class Queue {
  5338. /**
  5339. * Register an event listener for the before job event.
  5340. *
  5341. * @param mixed $callback
  5342. * @return void
  5343. * @static
  5344. */
  5345. public static function before($callback)
  5346. {
  5347. \Illuminate\Queue\QueueManager::before($callback);
  5348. }
  5349. /**
  5350. * Register an event listener for the after job event.
  5351. *
  5352. * @param mixed $callback
  5353. * @return void
  5354. * @static
  5355. */
  5356. public static function after($callback)
  5357. {
  5358. \Illuminate\Queue\QueueManager::after($callback);
  5359. }
  5360. /**
  5361. * Register an event listener for the exception occurred job event.
  5362. *
  5363. * @param mixed $callback
  5364. * @return void
  5365. * @static
  5366. */
  5367. public static function exceptionOccurred($callback)
  5368. {
  5369. \Illuminate\Queue\QueueManager::exceptionOccurred($callback);
  5370. }
  5371. /**
  5372. * Register an event listener for the daemon queue loop.
  5373. *
  5374. * @param mixed $callback
  5375. * @return void
  5376. * @static
  5377. */
  5378. public static function looping($callback)
  5379. {
  5380. \Illuminate\Queue\QueueManager::looping($callback);
  5381. }
  5382. /**
  5383. * Register an event listener for the failed job event.
  5384. *
  5385. * @param mixed $callback
  5386. * @return void
  5387. * @static
  5388. */
  5389. public static function failing($callback)
  5390. {
  5391. \Illuminate\Queue\QueueManager::failing($callback);
  5392. }
  5393. /**
  5394. * Register an event listener for the daemon queue stopping.
  5395. *
  5396. * @param mixed $callback
  5397. * @return void
  5398. * @static
  5399. */
  5400. public static function stopping($callback)
  5401. {
  5402. \Illuminate\Queue\QueueManager::stopping($callback);
  5403. }
  5404. /**
  5405. * Determine if the driver is connected.
  5406. *
  5407. * @param string $name
  5408. * @return bool
  5409. * @static
  5410. */
  5411. public static function connected($name = null)
  5412. {
  5413. return \Illuminate\Queue\QueueManager::connected($name);
  5414. }
  5415. /**
  5416. * Resolve a queue connection instance.
  5417. *
  5418. * @param string $name
  5419. * @return \Illuminate\Contracts\Queue\Queue
  5420. * @static
  5421. */
  5422. public static function connection($name = null)
  5423. {
  5424. return \Illuminate\Queue\QueueManager::connection($name);
  5425. }
  5426. /**
  5427. * Add a queue connection resolver.
  5428. *
  5429. * @param string $driver
  5430. * @param \Closure $resolver
  5431. * @return void
  5432. * @static
  5433. */
  5434. public static function extend($driver, $resolver)
  5435. {
  5436. \Illuminate\Queue\QueueManager::extend($driver, $resolver);
  5437. }
  5438. /**
  5439. * Add a queue connection resolver.
  5440. *
  5441. * @param string $driver
  5442. * @param \Closure $resolver
  5443. * @return void
  5444. * @static
  5445. */
  5446. public static function addConnector($driver, $resolver)
  5447. {
  5448. \Illuminate\Queue\QueueManager::addConnector($driver, $resolver);
  5449. }
  5450. /**
  5451. * Get the name of the default queue connection.
  5452. *
  5453. * @return string
  5454. * @static
  5455. */
  5456. public static function getDefaultDriver()
  5457. {
  5458. return \Illuminate\Queue\QueueManager::getDefaultDriver();
  5459. }
  5460. /**
  5461. * Set the name of the default queue connection.
  5462. *
  5463. * @param string $name
  5464. * @return void
  5465. * @static
  5466. */
  5467. public static function setDefaultDriver($name)
  5468. {
  5469. \Illuminate\Queue\QueueManager::setDefaultDriver($name);
  5470. }
  5471. /**
  5472. * Get the full name for the given connection.
  5473. *
  5474. * @param string $connection
  5475. * @return string
  5476. * @static
  5477. */
  5478. public static function getName($connection = null)
  5479. {
  5480. return \Illuminate\Queue\QueueManager::getName($connection);
  5481. }
  5482. /**
  5483. * Determine if the application is in maintenance mode.
  5484. *
  5485. * @return bool
  5486. * @static
  5487. */
  5488. public static function isDownForMaintenance()
  5489. {
  5490. return \Illuminate\Queue\QueueManager::isDownForMaintenance();
  5491. }
  5492. /**
  5493. * Get the size of the queue.
  5494. *
  5495. * @param string $queue
  5496. * @return int
  5497. * @static
  5498. */
  5499. public static function size($queue = null)
  5500. {
  5501. return \Illuminate\Queue\SyncQueue::size($queue);
  5502. }
  5503. /**
  5504. * Push a new job onto the queue.
  5505. *
  5506. * @param string $job
  5507. * @param mixed $data
  5508. * @param string $queue
  5509. * @return mixed
  5510. * @throws \Exception|\Throwable
  5511. * @static
  5512. */
  5513. public static function push($job, $data = '', $queue = null)
  5514. {
  5515. return \Illuminate\Queue\SyncQueue::push($job, $data, $queue);
  5516. }
  5517. /**
  5518. * Push a raw payload onto the queue.
  5519. *
  5520. * @param string $payload
  5521. * @param string $queue
  5522. * @param array $options
  5523. * @return mixed
  5524. * @static
  5525. */
  5526. public static function pushRaw($payload, $queue = null, $options = array())
  5527. {
  5528. return \Illuminate\Queue\SyncQueue::pushRaw($payload, $queue, $options);
  5529. }
  5530. /**
  5531. * Push a new job onto the queue after a delay.
  5532. *
  5533. * @param \DateTime|int $delay
  5534. * @param string $job
  5535. * @param mixed $data
  5536. * @param string $queue
  5537. * @return mixed
  5538. * @static
  5539. */
  5540. public static function later($delay, $job, $data = '', $queue = null)
  5541. {
  5542. return \Illuminate\Queue\SyncQueue::later($delay, $job, $data, $queue);
  5543. }
  5544. /**
  5545. * Pop the next job off of the queue.
  5546. *
  5547. * @param string $queue
  5548. * @return \Illuminate\Contracts\Queue\Job|null
  5549. * @static
  5550. */
  5551. public static function pop($queue = null)
  5552. {
  5553. return \Illuminate\Queue\SyncQueue::pop($queue);
  5554. }
  5555. /**
  5556. * Push a new job onto the queue.
  5557. *
  5558. * @param string $queue
  5559. * @param string $job
  5560. * @param mixed $data
  5561. * @return mixed
  5562. * @static
  5563. */
  5564. public static function pushOn($queue, $job, $data = '')
  5565. {
  5566. //Method inherited from \Illuminate\Queue\Queue
  5567. return \Illuminate\Queue\SyncQueue::pushOn($queue, $job, $data);
  5568. }
  5569. /**
  5570. * Push a new job onto the queue after a delay.
  5571. *
  5572. * @param string $queue
  5573. * @param \DateTime|int $delay
  5574. * @param string $job
  5575. * @param mixed $data
  5576. * @return mixed
  5577. * @static
  5578. */
  5579. public static function laterOn($queue, $delay, $job, $data = '')
  5580. {
  5581. //Method inherited from \Illuminate\Queue\Queue
  5582. return \Illuminate\Queue\SyncQueue::laterOn($queue, $delay, $job, $data);
  5583. }
  5584. /**
  5585. * Push an array of jobs onto the queue.
  5586. *
  5587. * @param array $jobs
  5588. * @param mixed $data
  5589. * @param string $queue
  5590. * @return mixed
  5591. * @static
  5592. */
  5593. public static function bulk($jobs, $data = '', $queue = null)
  5594. {
  5595. //Method inherited from \Illuminate\Queue\Queue
  5596. return \Illuminate\Queue\SyncQueue::bulk($jobs, $data, $queue);
  5597. }
  5598. /**
  5599. * Get the connection name for the queue.
  5600. *
  5601. * @return string
  5602. * @static
  5603. */
  5604. public static function getConnectionName()
  5605. {
  5606. //Method inherited from \Illuminate\Queue\Queue
  5607. return \Illuminate\Queue\SyncQueue::getConnectionName();
  5608. }
  5609. /**
  5610. * Set the connection name for the queue.
  5611. *
  5612. * @param string $name
  5613. * @return $this
  5614. * @static
  5615. */
  5616. public static function setConnectionName($name)
  5617. {
  5618. //Method inherited from \Illuminate\Queue\Queue
  5619. return \Illuminate\Queue\SyncQueue::setConnectionName($name);
  5620. }
  5621. /**
  5622. * Set the IoC container instance.
  5623. *
  5624. * @param \Illuminate\Container\Container $container
  5625. * @return void
  5626. * @static
  5627. */
  5628. public static function setContainer($container)
  5629. {
  5630. //Method inherited from \Illuminate\Queue\Queue
  5631. \Illuminate\Queue\SyncQueue::setContainer($container);
  5632. }
  5633. }
  5634. class Redirect {
  5635. /**
  5636. * Create a new redirect response to the "home" route.
  5637. *
  5638. * @param int $status
  5639. * @return \Illuminate\Http\RedirectResponse
  5640. * @static
  5641. */
  5642. public static function home($status = 302)
  5643. {
  5644. return \Illuminate\Routing\Redirector::home($status);
  5645. }
  5646. /**
  5647. * Create a new redirect response to the previous location.
  5648. *
  5649. * @param int $status
  5650. * @param array $headers
  5651. * @param mixed $fallback
  5652. * @return \Illuminate\Http\RedirectResponse
  5653. * @static
  5654. */
  5655. public static function back($status = 302, $headers = array(), $fallback = false)
  5656. {
  5657. return \Illuminate\Routing\Redirector::back($status, $headers, $fallback);
  5658. }
  5659. /**
  5660. * Create a new redirect response to the current URI.
  5661. *
  5662. * @param int $status
  5663. * @param array $headers
  5664. * @return \Illuminate\Http\RedirectResponse
  5665. * @static
  5666. */
  5667. public static function refresh($status = 302, $headers = array())
  5668. {
  5669. return \Illuminate\Routing\Redirector::refresh($status, $headers);
  5670. }
  5671. /**
  5672. * Create a new redirect response, while putting the current URL in the session.
  5673. *
  5674. * @param string $path
  5675. * @param int $status
  5676. * @param array $headers
  5677. * @param bool $secure
  5678. * @return \Illuminate\Http\RedirectResponse
  5679. * @static
  5680. */
  5681. public static function guest($path, $status = 302, $headers = array(), $secure = null)
  5682. {
  5683. return \Illuminate\Routing\Redirector::guest($path, $status, $headers, $secure);
  5684. }
  5685. /**
  5686. * Create a new redirect response to the previously intended location.
  5687. *
  5688. * @param string $default
  5689. * @param int $status
  5690. * @param array $headers
  5691. * @param bool $secure
  5692. * @return \Illuminate\Http\RedirectResponse
  5693. * @static
  5694. */
  5695. public static function intended($default = '/', $status = 302, $headers = array(), $secure = null)
  5696. {
  5697. return \Illuminate\Routing\Redirector::intended($default, $status, $headers, $secure);
  5698. }
  5699. /**
  5700. * Create a new redirect response to the given path.
  5701. *
  5702. * @param string $path
  5703. * @param int $status
  5704. * @param array $headers
  5705. * @param bool $secure
  5706. * @return \Illuminate\Http\RedirectResponse
  5707. * @static
  5708. */
  5709. public static function to($path, $status = 302, $headers = array(), $secure = null)
  5710. {
  5711. return \Illuminate\Routing\Redirector::to($path, $status, $headers, $secure);
  5712. }
  5713. /**
  5714. * Create a new redirect response to an external URL (no validation).
  5715. *
  5716. * @param string $path
  5717. * @param int $status
  5718. * @param array $headers
  5719. * @return \Illuminate\Http\RedirectResponse
  5720. * @static
  5721. */
  5722. public static function away($path, $status = 302, $headers = array())
  5723. {
  5724. return \Illuminate\Routing\Redirector::away($path, $status, $headers);
  5725. }
  5726. /**
  5727. * Create a new redirect response to the given HTTPS path.
  5728. *
  5729. * @param string $path
  5730. * @param int $status
  5731. * @param array $headers
  5732. * @return \Illuminate\Http\RedirectResponse
  5733. * @static
  5734. */
  5735. public static function secure($path, $status = 302, $headers = array())
  5736. {
  5737. return \Illuminate\Routing\Redirector::secure($path, $status, $headers);
  5738. }
  5739. /**
  5740. * Create a new redirect response to a named route.
  5741. *
  5742. * @param string $route
  5743. * @param array $parameters
  5744. * @param int $status
  5745. * @param array $headers
  5746. * @return \Illuminate\Http\RedirectResponse
  5747. * @static
  5748. */
  5749. public static function route($route, $parameters = array(), $status = 302, $headers = array())
  5750. {
  5751. return \Illuminate\Routing\Redirector::route($route, $parameters, $status, $headers);
  5752. }
  5753. /**
  5754. * Create a new redirect response to a controller action.
  5755. *
  5756. * @param string $action
  5757. * @param array $parameters
  5758. * @param int $status
  5759. * @param array $headers
  5760. * @return \Illuminate\Http\RedirectResponse
  5761. * @static
  5762. */
  5763. public static function action($action, $parameters = array(), $status = 302, $headers = array())
  5764. {
  5765. return \Illuminate\Routing\Redirector::action($action, $parameters, $status, $headers);
  5766. }
  5767. /**
  5768. * Get the URL generator instance.
  5769. *
  5770. * @return \Illuminate\Routing\UrlGenerator
  5771. * @static
  5772. */
  5773. public static function getUrlGenerator()
  5774. {
  5775. return \Illuminate\Routing\Redirector::getUrlGenerator();
  5776. }
  5777. /**
  5778. * Set the active session store.
  5779. *
  5780. * @param \Illuminate\Session\Store $session
  5781. * @return void
  5782. * @static
  5783. */
  5784. public static function setSession($session)
  5785. {
  5786. \Illuminate\Routing\Redirector::setSession($session);
  5787. }
  5788. }
  5789. class Request {
  5790. /**
  5791. * Create a new Illuminate HTTP request from server variables.
  5792. *
  5793. * @return static
  5794. * @static
  5795. */
  5796. public static function capture()
  5797. {
  5798. return \Illuminate\Http\Request::capture();
  5799. }
  5800. /**
  5801. * Return the Request instance.
  5802. *
  5803. * @return $this
  5804. * @static
  5805. */
  5806. public static function instance()
  5807. {
  5808. return \Illuminate\Http\Request::instance();
  5809. }
  5810. /**
  5811. * Get the request method.
  5812. *
  5813. * @return string
  5814. * @static
  5815. */
  5816. public static function method()
  5817. {
  5818. return \Illuminate\Http\Request::method();
  5819. }
  5820. /**
  5821. * Get the root URL for the application.
  5822. *
  5823. * @return string
  5824. * @static
  5825. */
  5826. public static function root()
  5827. {
  5828. return \Illuminate\Http\Request::root();
  5829. }
  5830. /**
  5831. * Get the URL (no query string) for the request.
  5832. *
  5833. * @return string
  5834. * @static
  5835. */
  5836. public static function url()
  5837. {
  5838. return \Illuminate\Http\Request::url();
  5839. }
  5840. /**
  5841. * Get the full URL for the request.
  5842. *
  5843. * @return string
  5844. * @static
  5845. */
  5846. public static function fullUrl()
  5847. {
  5848. return \Illuminate\Http\Request::fullUrl();
  5849. }
  5850. /**
  5851. * Get the full URL for the request with the added query string parameters.
  5852. *
  5853. * @param array $query
  5854. * @return string
  5855. * @static
  5856. */
  5857. public static function fullUrlWithQuery($query)
  5858. {
  5859. return \Illuminate\Http\Request::fullUrlWithQuery($query);
  5860. }
  5861. /**
  5862. * Get the current path info for the request.
  5863. *
  5864. * @return string
  5865. * @static
  5866. */
  5867. public static function path()
  5868. {
  5869. return \Illuminate\Http\Request::path();
  5870. }
  5871. /**
  5872. * Get the current encoded path info for the request.
  5873. *
  5874. * @return string
  5875. * @static
  5876. */
  5877. public static function decodedPath()
  5878. {
  5879. return \Illuminate\Http\Request::decodedPath();
  5880. }
  5881. /**
  5882. * Get a segment from the URI (1 based index).
  5883. *
  5884. * @param int $index
  5885. * @param string|null $default
  5886. * @return string|null
  5887. * @static
  5888. */
  5889. public static function segment($index, $default = null)
  5890. {
  5891. return \Illuminate\Http\Request::segment($index, $default);
  5892. }
  5893. /**
  5894. * Get all of the segments for the request path.
  5895. *
  5896. * @return array
  5897. * @static
  5898. */
  5899. public static function segments()
  5900. {
  5901. return \Illuminate\Http\Request::segments();
  5902. }
  5903. /**
  5904. * Determine if the current request URI matches a pattern.
  5905. *
  5906. * @return bool
  5907. * @static
  5908. */
  5909. public static function is()
  5910. {
  5911. return \Illuminate\Http\Request::is();
  5912. }
  5913. /**
  5914. * Check if the route name matches the given string.
  5915. *
  5916. * @param string $name
  5917. * @return bool
  5918. * @static
  5919. */
  5920. public static function routeIs($name)
  5921. {
  5922. return \Illuminate\Http\Request::routeIs($name);
  5923. }
  5924. /**
  5925. * Determine if the current request URL and query string matches a pattern.
  5926. *
  5927. * @return bool
  5928. * @static
  5929. */
  5930. public static function fullUrlIs()
  5931. {
  5932. return \Illuminate\Http\Request::fullUrlIs();
  5933. }
  5934. /**
  5935. * Determine if the request is the result of an AJAX call.
  5936. *
  5937. * @return bool
  5938. * @static
  5939. */
  5940. public static function ajax()
  5941. {
  5942. return \Illuminate\Http\Request::ajax();
  5943. }
  5944. /**
  5945. * Determine if the request is the result of an PJAX call.
  5946. *
  5947. * @return bool
  5948. * @static
  5949. */
  5950. public static function pjax()
  5951. {
  5952. return \Illuminate\Http\Request::pjax();
  5953. }
  5954. /**
  5955. * Determine if the request is over HTTPS.
  5956. *
  5957. * @return bool
  5958. * @static
  5959. */
  5960. public static function secure()
  5961. {
  5962. return \Illuminate\Http\Request::secure();
  5963. }
  5964. /**
  5965. * Returns the client IP address.
  5966. *
  5967. * @return string
  5968. * @static
  5969. */
  5970. public static function ip()
  5971. {
  5972. return \Illuminate\Http\Request::ip();
  5973. }
  5974. /**
  5975. * Returns the client IP addresses.
  5976. *
  5977. * @return array
  5978. * @static
  5979. */
  5980. public static function ips()
  5981. {
  5982. return \Illuminate\Http\Request::ips();
  5983. }
  5984. /**
  5985. * Merge new input into the current request's input array.
  5986. *
  5987. * @param array $input
  5988. * @return void
  5989. * @static
  5990. */
  5991. public static function merge($input)
  5992. {
  5993. \Illuminate\Http\Request::merge($input);
  5994. }
  5995. /**
  5996. * Replace the input for the current request.
  5997. *
  5998. * @param array $input
  5999. * @return void
  6000. * @static
  6001. */
  6002. public static function replace($input)
  6003. {
  6004. \Illuminate\Http\Request::replace($input);
  6005. }
  6006. /**
  6007. * Get the JSON payload for the request.
  6008. *
  6009. * @param string $key
  6010. * @param mixed $default
  6011. * @return mixed
  6012. * @static
  6013. */
  6014. public static function json($key = null, $default = null)
  6015. {
  6016. return \Illuminate\Http\Request::json($key, $default);
  6017. }
  6018. /**
  6019. * Create an Illuminate request from a Symfony instance.
  6020. *
  6021. * @param \Symfony\Component\HttpFoundation\Request $request
  6022. * @return \Illuminate\Http\Request
  6023. * @static
  6024. */
  6025. public static function createFromBase($request)
  6026. {
  6027. return \Illuminate\Http\Request::createFromBase($request);
  6028. }
  6029. /**
  6030. * Clones a request and overrides some of its parameters.
  6031. *
  6032. * @param array $query The GET parameters
  6033. * @param array $request The POST parameters
  6034. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  6035. * @param array $cookies The COOKIE parameters
  6036. * @param array $files The FILES parameters
  6037. * @param array $server The SERVER parameters
  6038. * @return static
  6039. * @static
  6040. */
  6041. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  6042. {
  6043. return \Illuminate\Http\Request::duplicate($query, $request, $attributes, $cookies, $files, $server);
  6044. }
  6045. /**
  6046. * Get the session associated with the request.
  6047. *
  6048. * @return \Illuminate\Session\Store
  6049. * @throws \RuntimeException
  6050. * @static
  6051. */
  6052. public static function session()
  6053. {
  6054. return \Illuminate\Http\Request::session();
  6055. }
  6056. /**
  6057. * Set the session instance on the request.
  6058. *
  6059. * @param \Illuminate\Contracts\Session\Session $session
  6060. * @return void
  6061. * @static
  6062. */
  6063. public static function setLaravelSession($session)
  6064. {
  6065. \Illuminate\Http\Request::setLaravelSession($session);
  6066. }
  6067. /**
  6068. * Get the user making the request.
  6069. *
  6070. * @param string|null $guard
  6071. * @return mixed
  6072. * @static
  6073. */
  6074. public static function user($guard = null)
  6075. {
  6076. return \Illuminate\Http\Request::user($guard);
  6077. }
  6078. /**
  6079. * Get the route handling the request.
  6080. *
  6081. * @param string|null $param
  6082. * @return \Illuminate\Routing\Route|object|string
  6083. * @static
  6084. */
  6085. public static function route($param = null)
  6086. {
  6087. return \Illuminate\Http\Request::route($param);
  6088. }
  6089. /**
  6090. * Get a unique fingerprint for the request / route / IP address.
  6091. *
  6092. * @return string
  6093. * @throws \RuntimeException
  6094. * @static
  6095. */
  6096. public static function fingerprint()
  6097. {
  6098. return \Illuminate\Http\Request::fingerprint();
  6099. }
  6100. /**
  6101. * Set the JSON payload for the request.
  6102. *
  6103. * @param array $json
  6104. * @return $this
  6105. * @static
  6106. */
  6107. public static function setJson($json)
  6108. {
  6109. return \Illuminate\Http\Request::setJson($json);
  6110. }
  6111. /**
  6112. * Get the user resolver callback.
  6113. *
  6114. * @return \Closure
  6115. * @static
  6116. */
  6117. public static function getUserResolver()
  6118. {
  6119. return \Illuminate\Http\Request::getUserResolver();
  6120. }
  6121. /**
  6122. * Set the user resolver callback.
  6123. *
  6124. * @param \Closure $callback
  6125. * @return $this
  6126. * @static
  6127. */
  6128. public static function setUserResolver($callback)
  6129. {
  6130. return \Illuminate\Http\Request::setUserResolver($callback);
  6131. }
  6132. /**
  6133. * Get the route resolver callback.
  6134. *
  6135. * @return \Closure
  6136. * @static
  6137. */
  6138. public static function getRouteResolver()
  6139. {
  6140. return \Illuminate\Http\Request::getRouteResolver();
  6141. }
  6142. /**
  6143. * Set the route resolver callback.
  6144. *
  6145. * @param \Closure $callback
  6146. * @return $this
  6147. * @static
  6148. */
  6149. public static function setRouteResolver($callback)
  6150. {
  6151. return \Illuminate\Http\Request::setRouteResolver($callback);
  6152. }
  6153. /**
  6154. * Get all of the input and files for the request.
  6155. *
  6156. * @return array
  6157. * @static
  6158. */
  6159. public static function toArray()
  6160. {
  6161. return \Illuminate\Http\Request::toArray();
  6162. }
  6163. /**
  6164. * Determine if the given offset exists.
  6165. *
  6166. * @param string $offset
  6167. * @return bool
  6168. * @static
  6169. */
  6170. public static function offsetExists($offset)
  6171. {
  6172. return \Illuminate\Http\Request::offsetExists($offset);
  6173. }
  6174. /**
  6175. * Get the value at the given offset.
  6176. *
  6177. * @param string $offset
  6178. * @return mixed
  6179. * @static
  6180. */
  6181. public static function offsetGet($offset)
  6182. {
  6183. return \Illuminate\Http\Request::offsetGet($offset);
  6184. }
  6185. /**
  6186. * Set the value at the given offset.
  6187. *
  6188. * @param string $offset
  6189. * @param mixed $value
  6190. * @return void
  6191. * @static
  6192. */
  6193. public static function offsetSet($offset, $value)
  6194. {
  6195. \Illuminate\Http\Request::offsetSet($offset, $value);
  6196. }
  6197. /**
  6198. * Remove the value at the given offset.
  6199. *
  6200. * @param string $offset
  6201. * @return void
  6202. * @static
  6203. */
  6204. public static function offsetUnset($offset)
  6205. {
  6206. \Illuminate\Http\Request::offsetUnset($offset);
  6207. }
  6208. /**
  6209. * Sets the parameters for this request.
  6210. *
  6211. * This method also re-initializes all properties.
  6212. *
  6213. * @param array $query The GET parameters
  6214. * @param array $request The POST parameters
  6215. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  6216. * @param array $cookies The COOKIE parameters
  6217. * @param array $files The FILES parameters
  6218. * @param array $server The SERVER parameters
  6219. * @param string|resource $content The raw body data
  6220. * @static
  6221. */
  6222. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  6223. {
  6224. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6225. return \Illuminate\Http\Request::initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  6226. }
  6227. /**
  6228. * Creates a new request with values from PHP's super globals.
  6229. *
  6230. * @return static
  6231. * @static
  6232. */
  6233. public static function createFromGlobals()
  6234. {
  6235. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6236. return \Illuminate\Http\Request::createFromGlobals();
  6237. }
  6238. /**
  6239. * Creates a Request based on a given URI and configuration.
  6240. *
  6241. * The information contained in the URI always take precedence
  6242. * over the other information (server and parameters).
  6243. *
  6244. * @param string $uri The URI
  6245. * @param string $method The HTTP method
  6246. * @param array $parameters The query (GET) or request (POST) parameters
  6247. * @param array $cookies The request cookies ($_COOKIE)
  6248. * @param array $files The request files ($_FILES)
  6249. * @param array $server The server parameters ($_SERVER)
  6250. * @param string $content The raw body data
  6251. * @return static
  6252. * @static
  6253. */
  6254. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null)
  6255. {
  6256. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6257. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  6258. }
  6259. /**
  6260. * Sets a callable able to create a Request instance.
  6261. *
  6262. * This is mainly useful when you need to override the Request class
  6263. * to keep BC with an existing system. It should not be used for any
  6264. * other purpose.
  6265. *
  6266. * @param callable|null $callable A PHP callable
  6267. * @static
  6268. */
  6269. public static function setFactory($callable)
  6270. {
  6271. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6272. return \Illuminate\Http\Request::setFactory($callable);
  6273. }
  6274. /**
  6275. * Overrides the PHP global variables according to this request instance.
  6276. *
  6277. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  6278. * $_FILES is never overridden, see rfc1867
  6279. *
  6280. * @static
  6281. */
  6282. public static function overrideGlobals()
  6283. {
  6284. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6285. return \Illuminate\Http\Request::overrideGlobals();
  6286. }
  6287. /**
  6288. * Sets a list of trusted proxies.
  6289. *
  6290. * You should only list the reverse proxies that you manage directly.
  6291. *
  6292. * @param array $proxies A list of trusted proxies
  6293. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  6294. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  6295. * @static
  6296. */
  6297. public static function setTrustedProxies($proxies)
  6298. {
  6299. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6300. return \Illuminate\Http\Request::setTrustedProxies($proxies);
  6301. }
  6302. /**
  6303. * Gets the list of trusted proxies.
  6304. *
  6305. * @return array An array of trusted proxies
  6306. * @static
  6307. */
  6308. public static function getTrustedProxies()
  6309. {
  6310. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6311. return \Illuminate\Http\Request::getTrustedProxies();
  6312. }
  6313. /**
  6314. * Gets the set of trusted headers from trusted proxies.
  6315. *
  6316. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  6317. * @static
  6318. */
  6319. public static function getTrustedHeaderSet()
  6320. {
  6321. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6322. return \Illuminate\Http\Request::getTrustedHeaderSet();
  6323. }
  6324. /**
  6325. * Sets a list of trusted host patterns.
  6326. *
  6327. * You should only list the hosts you manage using regexs.
  6328. *
  6329. * @param array $hostPatterns A list of trusted host patterns
  6330. * @static
  6331. */
  6332. public static function setTrustedHosts($hostPatterns)
  6333. {
  6334. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6335. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  6336. }
  6337. /**
  6338. * Gets the list of trusted host patterns.
  6339. *
  6340. * @return array An array of trusted host patterns
  6341. * @static
  6342. */
  6343. public static function getTrustedHosts()
  6344. {
  6345. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6346. return \Illuminate\Http\Request::getTrustedHosts();
  6347. }
  6348. /**
  6349. * Sets the name for trusted headers.
  6350. *
  6351. * The following header keys are supported:
  6352. *
  6353. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  6354. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getHost())
  6355. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getPort())
  6356. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  6357. * * Request::HEADER_FORWARDED: defaults to Forwarded (see RFC 7239)
  6358. *
  6359. * Setting an empty value allows to disable the trusted header for the given key.
  6360. *
  6361. * @param string $key The header key
  6362. * @param string $value The header name
  6363. * @throws \InvalidArgumentException
  6364. * @deprecated since version 3.3, to be removed in 4.0. Use the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.
  6365. * @static
  6366. */
  6367. public static function setTrustedHeaderName($key, $value)
  6368. {
  6369. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6370. return \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  6371. }
  6372. /**
  6373. * Gets the trusted proxy header name.
  6374. *
  6375. * @param string $key The header key
  6376. * @return string The header name
  6377. * @throws \InvalidArgumentException
  6378. * @deprecated since version 3.3, to be removed in 4.0. Use the Request::getTrustedHeaderSet() method instead.
  6379. * @static
  6380. */
  6381. public static function getTrustedHeaderName($key)
  6382. {
  6383. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6384. return \Illuminate\Http\Request::getTrustedHeaderName($key);
  6385. }
  6386. /**
  6387. * Normalizes a query string.
  6388. *
  6389. * It builds a normalized query string, where keys/value pairs are alphabetized,
  6390. * have consistent escaping and unneeded delimiters are removed.
  6391. *
  6392. * @param string $qs Query string
  6393. * @return string A normalized query string for the Request
  6394. * @static
  6395. */
  6396. public static function normalizeQueryString($qs)
  6397. {
  6398. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6399. return \Illuminate\Http\Request::normalizeQueryString($qs);
  6400. }
  6401. /**
  6402. * Enables support for the _method request parameter to determine the intended HTTP method.
  6403. *
  6404. * Be warned that enabling this feature might lead to CSRF issues in your code.
  6405. * Check that you are using CSRF tokens when required.
  6406. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  6407. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  6408. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  6409. *
  6410. * The HTTP method can only be overridden when the real HTTP method is POST.
  6411. *
  6412. * @static
  6413. */
  6414. public static function enableHttpMethodParameterOverride()
  6415. {
  6416. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6417. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  6418. }
  6419. /**
  6420. * Checks whether support for the _method request parameter is enabled.
  6421. *
  6422. * @return bool True when the _method request parameter is enabled, false otherwise
  6423. * @static
  6424. */
  6425. public static function getHttpMethodParameterOverride()
  6426. {
  6427. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6428. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  6429. }
  6430. /**
  6431. * Gets a "parameter" value from any bag.
  6432. *
  6433. * This method is mainly useful for libraries that want to provide some flexibility. If you don't need the
  6434. * flexibility in controllers, it is better to explicitly get request parameters from the appropriate
  6435. * public property instead (attributes, query, request).
  6436. *
  6437. * Order of precedence: PATH (routing placeholders or custom attributes), GET, BODY
  6438. *
  6439. * @param string $key the key
  6440. * @param mixed $default the default value if the parameter key does not exist
  6441. * @return mixed
  6442. * @static
  6443. */
  6444. public static function get($key, $default = null)
  6445. {
  6446. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6447. return \Illuminate\Http\Request::get($key, $default);
  6448. }
  6449. /**
  6450. * Gets the Session.
  6451. *
  6452. * @return \Symfony\Component\HttpFoundation\SessionInterface|null The session
  6453. * @static
  6454. */
  6455. public static function getSession()
  6456. {
  6457. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6458. return \Illuminate\Http\Request::getSession();
  6459. }
  6460. /**
  6461. * Whether the request contains a Session which was started in one of the
  6462. * previous requests.
  6463. *
  6464. * @return bool
  6465. * @static
  6466. */
  6467. public static function hasPreviousSession()
  6468. {
  6469. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6470. return \Illuminate\Http\Request::hasPreviousSession();
  6471. }
  6472. /**
  6473. * Whether the request contains a Session object.
  6474. *
  6475. * This method does not give any information about the state of the session object,
  6476. * like whether the session is started or not. It is just a way to check if this Request
  6477. * is associated with a Session instance.
  6478. *
  6479. * @return bool true when the Request contains a Session object, false otherwise
  6480. * @static
  6481. */
  6482. public static function hasSession()
  6483. {
  6484. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6485. return \Illuminate\Http\Request::hasSession();
  6486. }
  6487. /**
  6488. * Sets the Session.
  6489. *
  6490. * @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
  6491. * @static
  6492. */
  6493. public static function setSession($session)
  6494. {
  6495. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6496. return \Illuminate\Http\Request::setSession($session);
  6497. }
  6498. /**
  6499. * Returns the client IP addresses.
  6500. *
  6501. * In the returned array the most trusted IP address is first, and the
  6502. * least trusted one last. The "real" client IP address is the last one,
  6503. * but this is also the least trusted one. Trusted proxies are stripped.
  6504. *
  6505. * Use this method carefully; you should use getClientIp() instead.
  6506. *
  6507. * @return array The client IP addresses
  6508. * @see getClientIp()
  6509. * @static
  6510. */
  6511. public static function getClientIps()
  6512. {
  6513. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6514. return \Illuminate\Http\Request::getClientIps();
  6515. }
  6516. /**
  6517. * Returns the client IP address.
  6518. *
  6519. * This method can read the client IP address from the "X-Forwarded-For" header
  6520. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  6521. * header value is a comma+space separated list of IP addresses, the left-most
  6522. * being the original client, and each successive proxy that passed the request
  6523. * adding the IP address where it received the request from.
  6524. *
  6525. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  6526. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  6527. * argument of the Request::setTrustedProxies() method instead.
  6528. *
  6529. * @return string|null The client IP address
  6530. * @see getClientIps()
  6531. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  6532. * @static
  6533. */
  6534. public static function getClientIp()
  6535. {
  6536. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6537. return \Illuminate\Http\Request::getClientIp();
  6538. }
  6539. /**
  6540. * Returns current script name.
  6541. *
  6542. * @return string
  6543. * @static
  6544. */
  6545. public static function getScriptName()
  6546. {
  6547. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6548. return \Illuminate\Http\Request::getScriptName();
  6549. }
  6550. /**
  6551. * Returns the path being requested relative to the executed script.
  6552. *
  6553. * The path info always starts with a /.
  6554. *
  6555. * Suppose this request is instantiated from /mysite on localhost:
  6556. *
  6557. * * http://localhost/mysite returns an empty string
  6558. * * http://localhost/mysite/about returns '/about'
  6559. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  6560. * * http://localhost/mysite/about?var=1 returns '/about'
  6561. *
  6562. * @return string The raw path (i.e. not urldecoded)
  6563. * @static
  6564. */
  6565. public static function getPathInfo()
  6566. {
  6567. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6568. return \Illuminate\Http\Request::getPathInfo();
  6569. }
  6570. /**
  6571. * Returns the root path from which this request is executed.
  6572. *
  6573. * Suppose that an index.php file instantiates this request object:
  6574. *
  6575. * * http://localhost/index.php returns an empty string
  6576. * * http://localhost/index.php/page returns an empty string
  6577. * * http://localhost/web/index.php returns '/web'
  6578. * * http://localhost/we%20b/index.php returns '/we%20b'
  6579. *
  6580. * @return string The raw path (i.e. not urldecoded)
  6581. * @static
  6582. */
  6583. public static function getBasePath()
  6584. {
  6585. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6586. return \Illuminate\Http\Request::getBasePath();
  6587. }
  6588. /**
  6589. * Returns the root URL from which this request is executed.
  6590. *
  6591. * The base URL never ends with a /.
  6592. *
  6593. * This is similar to getBasePath(), except that it also includes the
  6594. * script filename (e.g. index.php) if one exists.
  6595. *
  6596. * @return string The raw URL (i.e. not urldecoded)
  6597. * @static
  6598. */
  6599. public static function getBaseUrl()
  6600. {
  6601. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6602. return \Illuminate\Http\Request::getBaseUrl();
  6603. }
  6604. /**
  6605. * Gets the request's scheme.
  6606. *
  6607. * @return string
  6608. * @static
  6609. */
  6610. public static function getScheme()
  6611. {
  6612. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6613. return \Illuminate\Http\Request::getScheme();
  6614. }
  6615. /**
  6616. * Returns the port on which the request is made.
  6617. *
  6618. * This method can read the client port from the "X-Forwarded-Port" header
  6619. * when trusted proxies were set via "setTrustedProxies()".
  6620. *
  6621. * The "X-Forwarded-Port" header must contain the client port.
  6622. *
  6623. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  6624. * configure it via via the $trustedHeaderSet argument of the
  6625. * Request::setTrustedProxies() method instead.
  6626. *
  6627. * @return int|string can be a string if fetched from the server bag
  6628. * @static
  6629. */
  6630. public static function getPort()
  6631. {
  6632. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6633. return \Illuminate\Http\Request::getPort();
  6634. }
  6635. /**
  6636. * Returns the user.
  6637. *
  6638. * @return string|null
  6639. * @static
  6640. */
  6641. public static function getUser()
  6642. {
  6643. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6644. return \Illuminate\Http\Request::getUser();
  6645. }
  6646. /**
  6647. * Returns the password.
  6648. *
  6649. * @return string|null
  6650. * @static
  6651. */
  6652. public static function getPassword()
  6653. {
  6654. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6655. return \Illuminate\Http\Request::getPassword();
  6656. }
  6657. /**
  6658. * Gets the user info.
  6659. *
  6660. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  6661. * @static
  6662. */
  6663. public static function getUserInfo()
  6664. {
  6665. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6666. return \Illuminate\Http\Request::getUserInfo();
  6667. }
  6668. /**
  6669. * Returns the HTTP host being requested.
  6670. *
  6671. * The port name will be appended to the host if it's non-standard.
  6672. *
  6673. * @return string
  6674. * @static
  6675. */
  6676. public static function getHttpHost()
  6677. {
  6678. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6679. return \Illuminate\Http\Request::getHttpHost();
  6680. }
  6681. /**
  6682. * Returns the requested URI (path and query string).
  6683. *
  6684. * @return string The raw URI (i.e. not URI decoded)
  6685. * @static
  6686. */
  6687. public static function getRequestUri()
  6688. {
  6689. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6690. return \Illuminate\Http\Request::getRequestUri();
  6691. }
  6692. /**
  6693. * Gets the scheme and HTTP host.
  6694. *
  6695. * If the URL was called with basic authentication, the user
  6696. * and the password are not added to the generated string.
  6697. *
  6698. * @return string The scheme and HTTP host
  6699. * @static
  6700. */
  6701. public static function getSchemeAndHttpHost()
  6702. {
  6703. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6704. return \Illuminate\Http\Request::getSchemeAndHttpHost();
  6705. }
  6706. /**
  6707. * Generates a normalized URI (URL) for the Request.
  6708. *
  6709. * @return string A normalized URI (URL) for the Request
  6710. * @see getQueryString()
  6711. * @static
  6712. */
  6713. public static function getUri()
  6714. {
  6715. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6716. return \Illuminate\Http\Request::getUri();
  6717. }
  6718. /**
  6719. * Generates a normalized URI for the given path.
  6720. *
  6721. * @param string $path A path to use instead of the current one
  6722. * @return string The normalized URI for the path
  6723. * @static
  6724. */
  6725. public static function getUriForPath($path)
  6726. {
  6727. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6728. return \Illuminate\Http\Request::getUriForPath($path);
  6729. }
  6730. /**
  6731. * Returns the path as relative reference from the current Request path.
  6732. *
  6733. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  6734. * Both paths must be absolute and not contain relative parts.
  6735. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  6736. * Furthermore, they can be used to reduce the link size in documents.
  6737. *
  6738. * Example target paths, given a base path of "/a/b/c/d":
  6739. * - "/a/b/c/d" -> ""
  6740. * - "/a/b/c/" -> "./"
  6741. * - "/a/b/" -> "../"
  6742. * - "/a/b/c/other" -> "other"
  6743. * - "/a/x/y" -> "../../x/y"
  6744. *
  6745. * @param string $path The target path
  6746. * @return string The relative target path
  6747. * @static
  6748. */
  6749. public static function getRelativeUriForPath($path)
  6750. {
  6751. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6752. return \Illuminate\Http\Request::getRelativeUriForPath($path);
  6753. }
  6754. /**
  6755. * Generates the normalized query string for the Request.
  6756. *
  6757. * It builds a normalized query string, where keys/value pairs are alphabetized
  6758. * and have consistent escaping.
  6759. *
  6760. * @return string|null A normalized query string for the Request
  6761. * @static
  6762. */
  6763. public static function getQueryString()
  6764. {
  6765. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6766. return \Illuminate\Http\Request::getQueryString();
  6767. }
  6768. /**
  6769. * Checks whether the request is secure or not.
  6770. *
  6771. * This method can read the client protocol from the "X-Forwarded-Proto" header
  6772. * when trusted proxies were set via "setTrustedProxies()".
  6773. *
  6774. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  6775. *
  6776. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  6777. * ("SSL_HTTPS" for instance), configure it via the $trustedHeaderSet
  6778. * argument of the Request::setTrustedProxies() method instead.
  6779. *
  6780. * @return bool
  6781. * @static
  6782. */
  6783. public static function isSecure()
  6784. {
  6785. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6786. return \Illuminate\Http\Request::isSecure();
  6787. }
  6788. /**
  6789. * Returns the host name.
  6790. *
  6791. * This method can read the client host name from the "X-Forwarded-Host" header
  6792. * when trusted proxies were set via "setTrustedProxies()".
  6793. *
  6794. * The "X-Forwarded-Host" header must contain the client host name.
  6795. *
  6796. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  6797. * configure it via the $trustedHeaderSet argument of the
  6798. * Request::setTrustedProxies() method instead.
  6799. *
  6800. * @return string
  6801. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  6802. * @static
  6803. */
  6804. public static function getHost()
  6805. {
  6806. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6807. return \Illuminate\Http\Request::getHost();
  6808. }
  6809. /**
  6810. * Sets the request method.
  6811. *
  6812. * @param string $method
  6813. * @static
  6814. */
  6815. public static function setMethod($method)
  6816. {
  6817. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6818. return \Illuminate\Http\Request::setMethod($method);
  6819. }
  6820. /**
  6821. * Gets the request "intended" method.
  6822. *
  6823. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  6824. * then it is used to determine the "real" intended HTTP method.
  6825. *
  6826. * The _method request parameter can also be used to determine the HTTP method,
  6827. * but only if enableHttpMethodParameterOverride() has been called.
  6828. *
  6829. * The method is always an uppercased string.
  6830. *
  6831. * @return string The request method
  6832. * @see getRealMethod()
  6833. * @static
  6834. */
  6835. public static function getMethod()
  6836. {
  6837. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6838. return \Illuminate\Http\Request::getMethod();
  6839. }
  6840. /**
  6841. * Gets the "real" request method.
  6842. *
  6843. * @return string The request method
  6844. * @see getMethod()
  6845. * @static
  6846. */
  6847. public static function getRealMethod()
  6848. {
  6849. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6850. return \Illuminate\Http\Request::getRealMethod();
  6851. }
  6852. /**
  6853. * Gets the mime type associated with the format.
  6854. *
  6855. * @param string $format The format
  6856. * @return string The associated mime type (null if not found)
  6857. * @static
  6858. */
  6859. public static function getMimeType($format)
  6860. {
  6861. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6862. return \Illuminate\Http\Request::getMimeType($format);
  6863. }
  6864. /**
  6865. * Gets the mime types associated with the format.
  6866. *
  6867. * @param string $format The format
  6868. * @return array The associated mime types
  6869. * @static
  6870. */
  6871. public static function getMimeTypes($format)
  6872. {
  6873. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6874. return \Illuminate\Http\Request::getMimeTypes($format);
  6875. }
  6876. /**
  6877. * Gets the format associated with the mime type.
  6878. *
  6879. * @param string $mimeType The associated mime type
  6880. * @return string|null The format (null if not found)
  6881. * @static
  6882. */
  6883. public static function getFormat($mimeType)
  6884. {
  6885. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6886. return \Illuminate\Http\Request::getFormat($mimeType);
  6887. }
  6888. /**
  6889. * Associates a format with mime types.
  6890. *
  6891. * @param string $format The format
  6892. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  6893. * @static
  6894. */
  6895. public static function setFormat($format, $mimeTypes)
  6896. {
  6897. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6898. return \Illuminate\Http\Request::setFormat($format, $mimeTypes);
  6899. }
  6900. /**
  6901. * Gets the request format.
  6902. *
  6903. * Here is the process to determine the format:
  6904. *
  6905. * * format defined by the user (with setRequestFormat())
  6906. * * _format request attribute
  6907. * * $default
  6908. *
  6909. * @param string $default The default format
  6910. * @return string The request format
  6911. * @static
  6912. */
  6913. public static function getRequestFormat($default = 'html')
  6914. {
  6915. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6916. return \Illuminate\Http\Request::getRequestFormat($default);
  6917. }
  6918. /**
  6919. * Sets the request format.
  6920. *
  6921. * @param string $format The request format
  6922. * @static
  6923. */
  6924. public static function setRequestFormat($format)
  6925. {
  6926. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6927. return \Illuminate\Http\Request::setRequestFormat($format);
  6928. }
  6929. /**
  6930. * Gets the format associated with the request.
  6931. *
  6932. * @return string|null The format (null if no content type is present)
  6933. * @static
  6934. */
  6935. public static function getContentType()
  6936. {
  6937. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6938. return \Illuminate\Http\Request::getContentType();
  6939. }
  6940. /**
  6941. * Sets the default locale.
  6942. *
  6943. * @param string $locale
  6944. * @static
  6945. */
  6946. public static function setDefaultLocale($locale)
  6947. {
  6948. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6949. return \Illuminate\Http\Request::setDefaultLocale($locale);
  6950. }
  6951. /**
  6952. * Get the default locale.
  6953. *
  6954. * @return string
  6955. * @static
  6956. */
  6957. public static function getDefaultLocale()
  6958. {
  6959. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6960. return \Illuminate\Http\Request::getDefaultLocale();
  6961. }
  6962. /**
  6963. * Sets the locale.
  6964. *
  6965. * @param string $locale
  6966. * @static
  6967. */
  6968. public static function setLocale($locale)
  6969. {
  6970. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6971. return \Illuminate\Http\Request::setLocale($locale);
  6972. }
  6973. /**
  6974. * Get the locale.
  6975. *
  6976. * @return string
  6977. * @static
  6978. */
  6979. public static function getLocale()
  6980. {
  6981. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6982. return \Illuminate\Http\Request::getLocale();
  6983. }
  6984. /**
  6985. * Checks if the request method is of specified type.
  6986. *
  6987. * @param string $method Uppercase request method (GET, POST etc)
  6988. * @return bool
  6989. * @static
  6990. */
  6991. public static function isMethod($method)
  6992. {
  6993. //Method inherited from \Symfony\Component\HttpFoundation\Request
  6994. return \Illuminate\Http\Request::isMethod($method);
  6995. }
  6996. /**
  6997. * Checks whether or not the method is safe.
  6998. *
  6999. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  7000. * @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default.
  7001. * @return bool
  7002. * @static
  7003. */
  7004. public static function isMethodSafe()
  7005. {
  7006. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7007. return \Illuminate\Http\Request::isMethodSafe();
  7008. }
  7009. /**
  7010. * Checks whether or not the method is idempotent.
  7011. *
  7012. * @return bool
  7013. * @static
  7014. */
  7015. public static function isMethodIdempotent()
  7016. {
  7017. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7018. return \Illuminate\Http\Request::isMethodIdempotent();
  7019. }
  7020. /**
  7021. * Checks whether the method is cacheable or not.
  7022. *
  7023. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  7024. * @return bool
  7025. * @static
  7026. */
  7027. public static function isMethodCacheable()
  7028. {
  7029. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7030. return \Illuminate\Http\Request::isMethodCacheable();
  7031. }
  7032. /**
  7033. * Returns the request body content.
  7034. *
  7035. * @param bool $asResource If true, a resource will be returned
  7036. * @return string|resource The request body content or a resource to read the body stream
  7037. * @throws \LogicException
  7038. * @static
  7039. */
  7040. public static function getContent($asResource = false)
  7041. {
  7042. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7043. return \Illuminate\Http\Request::getContent($asResource);
  7044. }
  7045. /**
  7046. * Gets the Etags.
  7047. *
  7048. * @return array The entity tags
  7049. * @static
  7050. */
  7051. public static function getETags()
  7052. {
  7053. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7054. return \Illuminate\Http\Request::getETags();
  7055. }
  7056. /**
  7057. *
  7058. *
  7059. * @return bool
  7060. * @static
  7061. */
  7062. public static function isNoCache()
  7063. {
  7064. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7065. return \Illuminate\Http\Request::isNoCache();
  7066. }
  7067. /**
  7068. * Returns the preferred language.
  7069. *
  7070. * @param array $locales An array of ordered available locales
  7071. * @return string|null The preferred locale
  7072. * @static
  7073. */
  7074. public static function getPreferredLanguage($locales = null)
  7075. {
  7076. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7077. return \Illuminate\Http\Request::getPreferredLanguage($locales);
  7078. }
  7079. /**
  7080. * Gets a list of languages acceptable by the client browser.
  7081. *
  7082. * @return array Languages ordered in the user browser preferences
  7083. * @static
  7084. */
  7085. public static function getLanguages()
  7086. {
  7087. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7088. return \Illuminate\Http\Request::getLanguages();
  7089. }
  7090. /**
  7091. * Gets a list of charsets acceptable by the client browser.
  7092. *
  7093. * @return array List of charsets in preferable order
  7094. * @static
  7095. */
  7096. public static function getCharsets()
  7097. {
  7098. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7099. return \Illuminate\Http\Request::getCharsets();
  7100. }
  7101. /**
  7102. * Gets a list of encodings acceptable by the client browser.
  7103. *
  7104. * @return array List of encodings in preferable order
  7105. * @static
  7106. */
  7107. public static function getEncodings()
  7108. {
  7109. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7110. return \Illuminate\Http\Request::getEncodings();
  7111. }
  7112. /**
  7113. * Gets a list of content types acceptable by the client browser.
  7114. *
  7115. * @return array List of content types in preferable order
  7116. * @static
  7117. */
  7118. public static function getAcceptableContentTypes()
  7119. {
  7120. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7121. return \Illuminate\Http\Request::getAcceptableContentTypes();
  7122. }
  7123. /**
  7124. * Returns true if the request is a XMLHttpRequest.
  7125. *
  7126. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  7127. * It is known to work with common JavaScript frameworks:
  7128. *
  7129. * @see http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  7130. * @return bool true if the request is an XMLHttpRequest, false otherwise
  7131. * @static
  7132. */
  7133. public static function isXmlHttpRequest()
  7134. {
  7135. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7136. return \Illuminate\Http\Request::isXmlHttpRequest();
  7137. }
  7138. /**
  7139. * Indicates whether this request originated from a trusted proxy.
  7140. *
  7141. * This can be useful to determine whether or not to trust the
  7142. * contents of a proxy-specific header.
  7143. *
  7144. * @return bool true if the request came from a trusted proxy, false otherwise
  7145. * @static
  7146. */
  7147. public static function isFromTrustedProxy()
  7148. {
  7149. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7150. return \Illuminate\Http\Request::isFromTrustedProxy();
  7151. }
  7152. /**
  7153. * Determine if the given content types match.
  7154. *
  7155. * @param string $actual
  7156. * @param string $type
  7157. * @return bool
  7158. * @static
  7159. */
  7160. public static function matchesType($actual, $type)
  7161. {
  7162. return \Illuminate\Http\Request::matchesType($actual, $type);
  7163. }
  7164. /**
  7165. * Determine if the request is sending JSON.
  7166. *
  7167. * @return bool
  7168. * @static
  7169. */
  7170. public static function isJson()
  7171. {
  7172. return \Illuminate\Http\Request::isJson();
  7173. }
  7174. /**
  7175. * Determine if the current request probably expects a JSON response.
  7176. *
  7177. * @return bool
  7178. * @static
  7179. */
  7180. public static function expectsJson()
  7181. {
  7182. return \Illuminate\Http\Request::expectsJson();
  7183. }
  7184. /**
  7185. * Determine if the current request is asking for JSON in return.
  7186. *
  7187. * @return bool
  7188. * @static
  7189. */
  7190. public static function wantsJson()
  7191. {
  7192. return \Illuminate\Http\Request::wantsJson();
  7193. }
  7194. /**
  7195. * Determines whether the current requests accepts a given content type.
  7196. *
  7197. * @param string|array $contentTypes
  7198. * @return bool
  7199. * @static
  7200. */
  7201. public static function accepts($contentTypes)
  7202. {
  7203. return \Illuminate\Http\Request::accepts($contentTypes);
  7204. }
  7205. /**
  7206. * Return the most suitable content type from the given array based on content negotiation.
  7207. *
  7208. * @param string|array $contentTypes
  7209. * @return string|null
  7210. * @static
  7211. */
  7212. public static function prefers($contentTypes)
  7213. {
  7214. return \Illuminate\Http\Request::prefers($contentTypes);
  7215. }
  7216. /**
  7217. * Determines whether a request accepts JSON.
  7218. *
  7219. * @return bool
  7220. * @static
  7221. */
  7222. public static function acceptsJson()
  7223. {
  7224. return \Illuminate\Http\Request::acceptsJson();
  7225. }
  7226. /**
  7227. * Determines whether a request accepts HTML.
  7228. *
  7229. * @return bool
  7230. * @static
  7231. */
  7232. public static function acceptsHtml()
  7233. {
  7234. return \Illuminate\Http\Request::acceptsHtml();
  7235. }
  7236. /**
  7237. * Get the data format expected in the response.
  7238. *
  7239. * @param string $default
  7240. * @return string
  7241. * @static
  7242. */
  7243. public static function format($default = 'html')
  7244. {
  7245. return \Illuminate\Http\Request::format($default);
  7246. }
  7247. /**
  7248. * Retrieve an old input item.
  7249. *
  7250. * @param string $key
  7251. * @param string|array|null $default
  7252. * @return string|array
  7253. * @static
  7254. */
  7255. public static function old($key = null, $default = null)
  7256. {
  7257. return \Illuminate\Http\Request::old($key, $default);
  7258. }
  7259. /**
  7260. * Flash the input for the current request to the session.
  7261. *
  7262. * @return void
  7263. * @static
  7264. */
  7265. public static function flash()
  7266. {
  7267. \Illuminate\Http\Request::flash();
  7268. }
  7269. /**
  7270. * Flash only some of the input to the session.
  7271. *
  7272. * @param array|mixed $keys
  7273. * @return void
  7274. * @static
  7275. */
  7276. public static function flashOnly($keys)
  7277. {
  7278. \Illuminate\Http\Request::flashOnly($keys);
  7279. }
  7280. /**
  7281. * Flash only some of the input to the session.
  7282. *
  7283. * @param array|mixed $keys
  7284. * @return void
  7285. * @static
  7286. */
  7287. public static function flashExcept($keys)
  7288. {
  7289. \Illuminate\Http\Request::flashExcept($keys);
  7290. }
  7291. /**
  7292. * Flush all of the old input from the session.
  7293. *
  7294. * @return void
  7295. * @static
  7296. */
  7297. public static function flush()
  7298. {
  7299. \Illuminate\Http\Request::flush();
  7300. }
  7301. /**
  7302. * Retrieve a server variable from the request.
  7303. *
  7304. * @param string $key
  7305. * @param string|array|null $default
  7306. * @return string|array
  7307. * @static
  7308. */
  7309. public static function server($key = null, $default = null)
  7310. {
  7311. return \Illuminate\Http\Request::server($key, $default);
  7312. }
  7313. /**
  7314. * Determine if a header is set on the request.
  7315. *
  7316. * @param string $key
  7317. * @return bool
  7318. * @static
  7319. */
  7320. public static function hasHeader($key)
  7321. {
  7322. return \Illuminate\Http\Request::hasHeader($key);
  7323. }
  7324. /**
  7325. * Retrieve a header from the request.
  7326. *
  7327. * @param string $key
  7328. * @param string|array|null $default
  7329. * @return string|array
  7330. * @static
  7331. */
  7332. public static function header($key = null, $default = null)
  7333. {
  7334. return \Illuminate\Http\Request::header($key, $default);
  7335. }
  7336. /**
  7337. * Get the bearer token from the request headers.
  7338. *
  7339. * @return string|null
  7340. * @static
  7341. */
  7342. public static function bearerToken()
  7343. {
  7344. return \Illuminate\Http\Request::bearerToken();
  7345. }
  7346. /**
  7347. * Determine if the request contains a given input item key.
  7348. *
  7349. * @param string|array $key
  7350. * @return bool
  7351. * @static
  7352. */
  7353. public static function exists($key)
  7354. {
  7355. return \Illuminate\Http\Request::exists($key);
  7356. }
  7357. /**
  7358. * Determine if the request contains a non-empty value for an input item.
  7359. *
  7360. * @param string|array $key
  7361. * @return bool
  7362. * @static
  7363. */
  7364. public static function has($key)
  7365. {
  7366. return \Illuminate\Http\Request::has($key);
  7367. }
  7368. /**
  7369. * Get all of the input and files for the request.
  7370. *
  7371. * @return array
  7372. * @static
  7373. */
  7374. public static function all()
  7375. {
  7376. return \Illuminate\Http\Request::all();
  7377. }
  7378. /**
  7379. * Retrieve an input item from the request.
  7380. *
  7381. * @param string $key
  7382. * @param string|array|null $default
  7383. * @return string|array
  7384. * @static
  7385. */
  7386. public static function input($key = null, $default = null)
  7387. {
  7388. return \Illuminate\Http\Request::input($key, $default);
  7389. }
  7390. /**
  7391. * Get a subset containing the provided keys with values from the input data.
  7392. *
  7393. * @param array|mixed $keys
  7394. * @return array
  7395. * @static
  7396. */
  7397. public static function only($keys)
  7398. {
  7399. return \Illuminate\Http\Request::only($keys);
  7400. }
  7401. /**
  7402. * Get all of the input except for a specified array of items.
  7403. *
  7404. * @param array|mixed $keys
  7405. * @return array
  7406. * @static
  7407. */
  7408. public static function except($keys)
  7409. {
  7410. return \Illuminate\Http\Request::except($keys);
  7411. }
  7412. /**
  7413. * Intersect an array of items with the input data.
  7414. *
  7415. * @param array|mixed $keys
  7416. * @return array
  7417. * @static
  7418. */
  7419. public static function intersect($keys)
  7420. {
  7421. return \Illuminate\Http\Request::intersect($keys);
  7422. }
  7423. /**
  7424. * Retrieve a query string item from the request.
  7425. *
  7426. * @param string $key
  7427. * @param string|array|null $default
  7428. * @return string|array
  7429. * @static
  7430. */
  7431. public static function query($key = null, $default = null)
  7432. {
  7433. return \Illuminate\Http\Request::query($key, $default);
  7434. }
  7435. /**
  7436. * Determine if a cookie is set on the request.
  7437. *
  7438. * @param string $key
  7439. * @return bool
  7440. * @static
  7441. */
  7442. public static function hasCookie($key)
  7443. {
  7444. return \Illuminate\Http\Request::hasCookie($key);
  7445. }
  7446. /**
  7447. * Retrieve a cookie from the request.
  7448. *
  7449. * @param string $key
  7450. * @param string|array|null $default
  7451. * @return string|array
  7452. * @static
  7453. */
  7454. public static function cookie($key = null, $default = null)
  7455. {
  7456. return \Illuminate\Http\Request::cookie($key, $default);
  7457. }
  7458. /**
  7459. * Get an array of all of the files on the request.
  7460. *
  7461. * @return array
  7462. * @static
  7463. */
  7464. public static function allFiles()
  7465. {
  7466. return \Illuminate\Http\Request::allFiles();
  7467. }
  7468. /**
  7469. * Determine if the uploaded data contains a file.
  7470. *
  7471. * @param string $key
  7472. * @return bool
  7473. * @static
  7474. */
  7475. public static function hasFile($key)
  7476. {
  7477. return \Illuminate\Http\Request::hasFile($key);
  7478. }
  7479. /**
  7480. * Retrieve a file from the request.
  7481. *
  7482. * @param string $key
  7483. * @param mixed $default
  7484. * @return \Illuminate\Http\UploadedFile|array|null
  7485. * @static
  7486. */
  7487. public static function file($key = null, $default = null)
  7488. {
  7489. return \Illuminate\Http\Request::file($key, $default);
  7490. }
  7491. /**
  7492. * Register a custom macro.
  7493. *
  7494. * @param string $name
  7495. * @param callable $macro
  7496. * @return void
  7497. * @static
  7498. */
  7499. public static function macro($name, $macro)
  7500. {
  7501. \Illuminate\Http\Request::macro($name, $macro);
  7502. }
  7503. /**
  7504. * Checks if macro is registered.
  7505. *
  7506. * @param string $name
  7507. * @return bool
  7508. * @static
  7509. */
  7510. public static function hasMacro($name)
  7511. {
  7512. return \Illuminate\Http\Request::hasMacro($name);
  7513. }
  7514. }
  7515. class Response {
  7516. /**
  7517. * Return a new response from the application.
  7518. *
  7519. * @param string $content
  7520. * @param int $status
  7521. * @param array $headers
  7522. * @return \Illuminate\Http\Response
  7523. * @static
  7524. */
  7525. public static function make($content = '', $status = 200, $headers = array())
  7526. {
  7527. return \Illuminate\Routing\ResponseFactory::make($content, $status, $headers);
  7528. }
  7529. /**
  7530. * Return a new view response from the application.
  7531. *
  7532. * @param string $view
  7533. * @param array $data
  7534. * @param int $status
  7535. * @param array $headers
  7536. * @return \Illuminate\Http\Response
  7537. * @static
  7538. */
  7539. public static function view($view, $data = array(), $status = 200, $headers = array())
  7540. {
  7541. return \Illuminate\Routing\ResponseFactory::view($view, $data, $status, $headers);
  7542. }
  7543. /**
  7544. * Return a new JSON response from the application.
  7545. *
  7546. * @param mixed $data
  7547. * @param int $status
  7548. * @param array $headers
  7549. * @param int $options
  7550. * @return \Illuminate\Http\JsonResponse
  7551. * @static
  7552. */
  7553. public static function json($data = array(), $status = 200, $headers = array(), $options = 0)
  7554. {
  7555. return \Illuminate\Routing\ResponseFactory::json($data, $status, $headers, $options);
  7556. }
  7557. /**
  7558. * Return a new JSONP response from the application.
  7559. *
  7560. * @param string $callback
  7561. * @param mixed $data
  7562. * @param int $status
  7563. * @param array $headers
  7564. * @param int $options
  7565. * @return \Illuminate\Http\JsonResponse
  7566. * @static
  7567. */
  7568. public static function jsonp($callback, $data = array(), $status = 200, $headers = array(), $options = 0)
  7569. {
  7570. return \Illuminate\Routing\ResponseFactory::jsonp($callback, $data, $status, $headers, $options);
  7571. }
  7572. /**
  7573. * Return a new streamed response from the application.
  7574. *
  7575. * @param \Closure $callback
  7576. * @param int $status
  7577. * @param array $headers
  7578. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  7579. * @static
  7580. */
  7581. public static function stream($callback, $status = 200, $headers = array())
  7582. {
  7583. return \Illuminate\Routing\ResponseFactory::stream($callback, $status, $headers);
  7584. }
  7585. /**
  7586. * Create a new file download response.
  7587. *
  7588. * @param \SplFileInfo|string $file
  7589. * @param string $name
  7590. * @param array $headers
  7591. * @param string|null $disposition
  7592. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  7593. * @static
  7594. */
  7595. public static function download($file, $name = null, $headers = array(), $disposition = 'attachment')
  7596. {
  7597. return \Illuminate\Routing\ResponseFactory::download($file, $name, $headers, $disposition);
  7598. }
  7599. /**
  7600. * Return the raw contents of a binary file.
  7601. *
  7602. * @param \SplFileInfo|string $file
  7603. * @param array $headers
  7604. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  7605. * @static
  7606. */
  7607. public static function file($file, $headers = array())
  7608. {
  7609. return \Illuminate\Routing\ResponseFactory::file($file, $headers);
  7610. }
  7611. /**
  7612. * Create a new redirect response to the given path.
  7613. *
  7614. * @param string $path
  7615. * @param int $status
  7616. * @param array $headers
  7617. * @param bool|null $secure
  7618. * @return \Illuminate\Http\RedirectResponse
  7619. * @static
  7620. */
  7621. public static function redirectTo($path, $status = 302, $headers = array(), $secure = null)
  7622. {
  7623. return \Illuminate\Routing\ResponseFactory::redirectTo($path, $status, $headers, $secure);
  7624. }
  7625. /**
  7626. * Create a new redirect response to a named route.
  7627. *
  7628. * @param string $route
  7629. * @param array $parameters
  7630. * @param int $status
  7631. * @param array $headers
  7632. * @return \Illuminate\Http\RedirectResponse
  7633. * @static
  7634. */
  7635. public static function redirectToRoute($route, $parameters = array(), $status = 302, $headers = array())
  7636. {
  7637. return \Illuminate\Routing\ResponseFactory::redirectToRoute($route, $parameters, $status, $headers);
  7638. }
  7639. /**
  7640. * Create a new redirect response to a controller action.
  7641. *
  7642. * @param string $action
  7643. * @param array $parameters
  7644. * @param int $status
  7645. * @param array $headers
  7646. * @return \Illuminate\Http\RedirectResponse
  7647. * @static
  7648. */
  7649. public static function redirectToAction($action, $parameters = array(), $status = 302, $headers = array())
  7650. {
  7651. return \Illuminate\Routing\ResponseFactory::redirectToAction($action, $parameters, $status, $headers);
  7652. }
  7653. /**
  7654. * Create a new redirect response, while putting the current URL in the session.
  7655. *
  7656. * @param string $path
  7657. * @param int $status
  7658. * @param array $headers
  7659. * @param bool|null $secure
  7660. * @return \Illuminate\Http\RedirectResponse
  7661. * @static
  7662. */
  7663. public static function redirectGuest($path, $status = 302, $headers = array(), $secure = null)
  7664. {
  7665. return \Illuminate\Routing\ResponseFactory::redirectGuest($path, $status, $headers, $secure);
  7666. }
  7667. /**
  7668. * Create a new redirect response to the previously intended location.
  7669. *
  7670. * @param string $default
  7671. * @param int $status
  7672. * @param array $headers
  7673. * @param bool|null $secure
  7674. * @return \Illuminate\Http\RedirectResponse
  7675. * @static
  7676. */
  7677. public static function redirectToIntended($default = '/', $status = 302, $headers = array(), $secure = null)
  7678. {
  7679. return \Illuminate\Routing\ResponseFactory::redirectToIntended($default, $status, $headers, $secure);
  7680. }
  7681. /**
  7682. * Register a custom macro.
  7683. *
  7684. * @param string $name
  7685. * @param callable $macro
  7686. * @return void
  7687. * @static
  7688. */
  7689. public static function macro($name, $macro)
  7690. {
  7691. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  7692. }
  7693. /**
  7694. * Checks if macro is registered.
  7695. *
  7696. * @param string $name
  7697. * @return bool
  7698. * @static
  7699. */
  7700. public static function hasMacro($name)
  7701. {
  7702. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  7703. }
  7704. }
  7705. class Route {
  7706. /**
  7707. * Register a new GET route with the router.
  7708. *
  7709. * @param string $uri
  7710. * @param \Closure|array|string|null $action
  7711. * @return \Illuminate\Routing\Route
  7712. * @static
  7713. */
  7714. public static function get($uri, $action = null)
  7715. {
  7716. return \Illuminate\Routing\Router::get($uri, $action);
  7717. }
  7718. /**
  7719. * Register a new POST route with the router.
  7720. *
  7721. * @param string $uri
  7722. * @param \Closure|array|string|null $action
  7723. * @return \Illuminate\Routing\Route
  7724. * @static
  7725. */
  7726. public static function post($uri, $action = null)
  7727. {
  7728. return \Illuminate\Routing\Router::post($uri, $action);
  7729. }
  7730. /**
  7731. * Register a new PUT route with the router.
  7732. *
  7733. * @param string $uri
  7734. * @param \Closure|array|string|null $action
  7735. * @return \Illuminate\Routing\Route
  7736. * @static
  7737. */
  7738. public static function put($uri, $action = null)
  7739. {
  7740. return \Illuminate\Routing\Router::put($uri, $action);
  7741. }
  7742. /**
  7743. * Register a new PATCH route with the router.
  7744. *
  7745. * @param string $uri
  7746. * @param \Closure|array|string|null $action
  7747. * @return \Illuminate\Routing\Route
  7748. * @static
  7749. */
  7750. public static function patch($uri, $action = null)
  7751. {
  7752. return \Illuminate\Routing\Router::patch($uri, $action);
  7753. }
  7754. /**
  7755. * Register a new DELETE route with the router.
  7756. *
  7757. * @param string $uri
  7758. * @param \Closure|array|string|null $action
  7759. * @return \Illuminate\Routing\Route
  7760. * @static
  7761. */
  7762. public static function delete($uri, $action = null)
  7763. {
  7764. return \Illuminate\Routing\Router::delete($uri, $action);
  7765. }
  7766. /**
  7767. * Register a new OPTIONS route with the router.
  7768. *
  7769. * @param string $uri
  7770. * @param \Closure|array|string|null $action
  7771. * @return \Illuminate\Routing\Route
  7772. * @static
  7773. */
  7774. public static function options($uri, $action = null)
  7775. {
  7776. return \Illuminate\Routing\Router::options($uri, $action);
  7777. }
  7778. /**
  7779. * Register a new route responding to all verbs.
  7780. *
  7781. * @param string $uri
  7782. * @param \Closure|array|string|null $action
  7783. * @return \Illuminate\Routing\Route
  7784. * @static
  7785. */
  7786. public static function any($uri, $action = null)
  7787. {
  7788. return \Illuminate\Routing\Router::any($uri, $action);
  7789. }
  7790. /**
  7791. * Register a new route with the given verbs.
  7792. *
  7793. * @param array|string $methods
  7794. * @param string $uri
  7795. * @param \Closure|array|string|null $action
  7796. * @return \Illuminate\Routing\Route
  7797. * @static
  7798. */
  7799. public static function match($methods, $uri, $action = null)
  7800. {
  7801. return \Illuminate\Routing\Router::match($methods, $uri, $action);
  7802. }
  7803. /**
  7804. * Register an array of resource controllers.
  7805. *
  7806. * @param array $resources
  7807. * @return void
  7808. * @static
  7809. */
  7810. public static function resources($resources)
  7811. {
  7812. \Illuminate\Routing\Router::resources($resources);
  7813. }
  7814. /**
  7815. * Route a resource to a controller.
  7816. *
  7817. * @param string $name
  7818. * @param string $controller
  7819. * @param array $options
  7820. * @return void
  7821. * @static
  7822. */
  7823. public static function resource($name, $controller, $options = array())
  7824. {
  7825. \Illuminate\Routing\Router::resource($name, $controller, $options);
  7826. }
  7827. /**
  7828. * Route an api resource to a controller.
  7829. *
  7830. * @param string $name
  7831. * @param string $controller
  7832. * @param array $options
  7833. * @return void
  7834. * @static
  7835. */
  7836. public static function apiResource($name, $controller, $options = array())
  7837. {
  7838. \Illuminate\Routing\Router::apiResource($name, $controller, $options);
  7839. }
  7840. /**
  7841. * Create a route group with shared attributes.
  7842. *
  7843. * @param array $attributes
  7844. * @param \Closure|string $routes
  7845. * @return void
  7846. * @static
  7847. */
  7848. public static function group($attributes, $routes)
  7849. {
  7850. \Illuminate\Routing\Router::group($attributes, $routes);
  7851. }
  7852. /**
  7853. * Merge the given array with the last group stack.
  7854. *
  7855. * @param array $new
  7856. * @return array
  7857. * @static
  7858. */
  7859. public static function mergeWithLastGroup($new)
  7860. {
  7861. return \Illuminate\Routing\Router::mergeWithLastGroup($new);
  7862. }
  7863. /**
  7864. * Get the prefix from the last group on the stack.
  7865. *
  7866. * @return string
  7867. * @static
  7868. */
  7869. public static function getLastGroupPrefix()
  7870. {
  7871. return \Illuminate\Routing\Router::getLastGroupPrefix();
  7872. }
  7873. /**
  7874. * Dispatch the request to the application.
  7875. *
  7876. * @param \Illuminate\Http\Request $request
  7877. * @return \Illuminate\Http\Response
  7878. * @static
  7879. */
  7880. public static function dispatch($request)
  7881. {
  7882. return \Illuminate\Routing\Router::dispatch($request);
  7883. }
  7884. /**
  7885. * Dispatch the request to a route and return the response.
  7886. *
  7887. * @param \Illuminate\Http\Request $request
  7888. * @return mixed
  7889. * @static
  7890. */
  7891. public static function dispatchToRoute($request)
  7892. {
  7893. return \Illuminate\Routing\Router::dispatchToRoute($request);
  7894. }
  7895. /**
  7896. * Gather the middleware for the given route with resolved class names.
  7897. *
  7898. * @param \Illuminate\Routing\Route $route
  7899. * @return array
  7900. * @static
  7901. */
  7902. public static function gatherRouteMiddleware($route)
  7903. {
  7904. return \Illuminate\Routing\Router::gatherRouteMiddleware($route);
  7905. }
  7906. /**
  7907. * Create a response instance from the given value.
  7908. *
  7909. * @param \Symfony\Component\HttpFoundation\Request $request
  7910. * @param mixed $response
  7911. * @return \Illuminate\Http\Response
  7912. * @static
  7913. */
  7914. public static function prepareResponse($request, $response)
  7915. {
  7916. return \Illuminate\Routing\Router::prepareResponse($request, $response);
  7917. }
  7918. /**
  7919. * Substitute the route bindings onto the route.
  7920. *
  7921. * @param \Illuminate\Routing\Route $route
  7922. * @return \Illuminate\Routing\Route
  7923. * @static
  7924. */
  7925. public static function substituteBindings($route)
  7926. {
  7927. return \Illuminate\Routing\Router::substituteBindings($route);
  7928. }
  7929. /**
  7930. * Substitute the implicit Eloquent model bindings for the route.
  7931. *
  7932. * @param \Illuminate\Routing\Route $route
  7933. * @return void
  7934. * @static
  7935. */
  7936. public static function substituteImplicitBindings($route)
  7937. {
  7938. \Illuminate\Routing\Router::substituteImplicitBindings($route);
  7939. }
  7940. /**
  7941. * Register a route matched event listener.
  7942. *
  7943. * @param string|callable $callback
  7944. * @return void
  7945. * @static
  7946. */
  7947. public static function matched($callback)
  7948. {
  7949. \Illuminate\Routing\Router::matched($callback);
  7950. }
  7951. /**
  7952. * Get all of the defined middleware short-hand names.
  7953. *
  7954. * @return array
  7955. * @static
  7956. */
  7957. public static function getMiddleware()
  7958. {
  7959. return \Illuminate\Routing\Router::getMiddleware();
  7960. }
  7961. /**
  7962. * Register a short-hand name for a middleware.
  7963. *
  7964. * @param string $name
  7965. * @param string $class
  7966. * @return $this
  7967. * @static
  7968. */
  7969. public static function aliasMiddleware($name, $class)
  7970. {
  7971. return \Illuminate\Routing\Router::aliasMiddleware($name, $class);
  7972. }
  7973. /**
  7974. * Check if a middlewareGroup with the given name exists.
  7975. *
  7976. * @param string $name
  7977. * @return bool
  7978. * @static
  7979. */
  7980. public static function hasMiddlewareGroup($name)
  7981. {
  7982. return \Illuminate\Routing\Router::hasMiddlewareGroup($name);
  7983. }
  7984. /**
  7985. * Get all of the defined middleware groups.
  7986. *
  7987. * @return array
  7988. * @static
  7989. */
  7990. public static function getMiddlewareGroups()
  7991. {
  7992. return \Illuminate\Routing\Router::getMiddlewareGroups();
  7993. }
  7994. /**
  7995. * Register a group of middleware.
  7996. *
  7997. * @param string $name
  7998. * @param array $middleware
  7999. * @return $this
  8000. * @static
  8001. */
  8002. public static function middlewareGroup($name, $middleware)
  8003. {
  8004. return \Illuminate\Routing\Router::middlewareGroup($name, $middleware);
  8005. }
  8006. /**
  8007. * Add a middleware to the beginning of a middleware group.
  8008. *
  8009. * If the middleware is already in the group, it will not be added again.
  8010. *
  8011. * @param string $group
  8012. * @param string $middleware
  8013. * @return $this
  8014. * @static
  8015. */
  8016. public static function prependMiddlewareToGroup($group, $middleware)
  8017. {
  8018. return \Illuminate\Routing\Router::prependMiddlewareToGroup($group, $middleware);
  8019. }
  8020. /**
  8021. * Add a middleware to the end of a middleware group.
  8022. *
  8023. * If the middleware is already in the group, it will not be added again.
  8024. *
  8025. * @param string $group
  8026. * @param string $middleware
  8027. * @return $this
  8028. * @static
  8029. */
  8030. public static function pushMiddlewareToGroup($group, $middleware)
  8031. {
  8032. return \Illuminate\Routing\Router::pushMiddlewareToGroup($group, $middleware);
  8033. }
  8034. /**
  8035. * Add a new route parameter binder.
  8036. *
  8037. * @param string $key
  8038. * @param string|callable $binder
  8039. * @return void
  8040. * @static
  8041. */
  8042. public static function bind($key, $binder)
  8043. {
  8044. \Illuminate\Routing\Router::bind($key, $binder);
  8045. }
  8046. /**
  8047. * Register a model binder for a wildcard.
  8048. *
  8049. * @param string $key
  8050. * @param string $class
  8051. * @param \Closure|null $callback
  8052. * @return void
  8053. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  8054. * @static
  8055. */
  8056. public static function model($key, $class, $callback = null)
  8057. {
  8058. \Illuminate\Routing\Router::model($key, $class, $callback);
  8059. }
  8060. /**
  8061. * Get the binding callback for a given binding.
  8062. *
  8063. * @param string $key
  8064. * @return \Closure|null
  8065. * @static
  8066. */
  8067. public static function getBindingCallback($key)
  8068. {
  8069. return \Illuminate\Routing\Router::getBindingCallback($key);
  8070. }
  8071. /**
  8072. * Get the global "where" patterns.
  8073. *
  8074. * @return array
  8075. * @static
  8076. */
  8077. public static function getPatterns()
  8078. {
  8079. return \Illuminate\Routing\Router::getPatterns();
  8080. }
  8081. /**
  8082. * Set a global where pattern on all routes.
  8083. *
  8084. * @param string $key
  8085. * @param string $pattern
  8086. * @return void
  8087. * @static
  8088. */
  8089. public static function pattern($key, $pattern)
  8090. {
  8091. \Illuminate\Routing\Router::pattern($key, $pattern);
  8092. }
  8093. /**
  8094. * Set a group of global where patterns on all routes.
  8095. *
  8096. * @param array $patterns
  8097. * @return void
  8098. * @static
  8099. */
  8100. public static function patterns($patterns)
  8101. {
  8102. \Illuminate\Routing\Router::patterns($patterns);
  8103. }
  8104. /**
  8105. * Determine if the router currently has a group stack.
  8106. *
  8107. * @return bool
  8108. * @static
  8109. */
  8110. public static function hasGroupStack()
  8111. {
  8112. return \Illuminate\Routing\Router::hasGroupStack();
  8113. }
  8114. /**
  8115. * Get the current group stack for the router.
  8116. *
  8117. * @return array
  8118. * @static
  8119. */
  8120. public static function getGroupStack()
  8121. {
  8122. return \Illuminate\Routing\Router::getGroupStack();
  8123. }
  8124. /**
  8125. * Get a route parameter for the current route.
  8126. *
  8127. * @param string $key
  8128. * @param string $default
  8129. * @return mixed
  8130. * @static
  8131. */
  8132. public static function input($key, $default = null)
  8133. {
  8134. return \Illuminate\Routing\Router::input($key, $default);
  8135. }
  8136. /**
  8137. * Get the request currently being dispatched.
  8138. *
  8139. * @return \Illuminate\Http\Request
  8140. * @static
  8141. */
  8142. public static function getCurrentRequest()
  8143. {
  8144. return \Illuminate\Routing\Router::getCurrentRequest();
  8145. }
  8146. /**
  8147. * Get the currently dispatched route instance.
  8148. *
  8149. * @return \Illuminate\Routing\Route
  8150. * @static
  8151. */
  8152. public static function getCurrentRoute()
  8153. {
  8154. return \Illuminate\Routing\Router::getCurrentRoute();
  8155. }
  8156. /**
  8157. * Get the currently dispatched route instance.
  8158. *
  8159. * @return \Illuminate\Routing\Route
  8160. * @static
  8161. */
  8162. public static function current()
  8163. {
  8164. return \Illuminate\Routing\Router::current();
  8165. }
  8166. /**
  8167. * Check if a route with the given name exists.
  8168. *
  8169. * @param string $name
  8170. * @return bool
  8171. * @static
  8172. */
  8173. public static function has($name)
  8174. {
  8175. return \Illuminate\Routing\Router::has($name);
  8176. }
  8177. /**
  8178. * Get the current route name.
  8179. *
  8180. * @return string|null
  8181. * @static
  8182. */
  8183. public static function currentRouteName()
  8184. {
  8185. return \Illuminate\Routing\Router::currentRouteName();
  8186. }
  8187. /**
  8188. * Alias for the "currentRouteNamed" method.
  8189. *
  8190. * @return bool
  8191. * @static
  8192. */
  8193. public static function is()
  8194. {
  8195. return \Illuminate\Routing\Router::is();
  8196. }
  8197. /**
  8198. * Determine if the current route matches a given name.
  8199. *
  8200. * @param string $name
  8201. * @return bool
  8202. * @static
  8203. */
  8204. public static function currentRouteNamed($name)
  8205. {
  8206. return \Illuminate\Routing\Router::currentRouteNamed($name);
  8207. }
  8208. /**
  8209. * Get the current route action.
  8210. *
  8211. * @return string|null
  8212. * @static
  8213. */
  8214. public static function currentRouteAction()
  8215. {
  8216. return \Illuminate\Routing\Router::currentRouteAction();
  8217. }
  8218. /**
  8219. * Alias for the "currentRouteUses" method.
  8220. *
  8221. * @return bool
  8222. * @static
  8223. */
  8224. public static function uses()
  8225. {
  8226. return \Illuminate\Routing\Router::uses();
  8227. }
  8228. /**
  8229. * Determine if the current route action matches a given action.
  8230. *
  8231. * @param string $action
  8232. * @return bool
  8233. * @static
  8234. */
  8235. public static function currentRouteUses($action)
  8236. {
  8237. return \Illuminate\Routing\Router::currentRouteUses($action);
  8238. }
  8239. /**
  8240. * Register the typical authentication routes for an application.
  8241. *
  8242. * @return void
  8243. * @static
  8244. */
  8245. public static function auth()
  8246. {
  8247. \Illuminate\Routing\Router::auth();
  8248. }
  8249. /**
  8250. * Set the unmapped global resource parameters to singular.
  8251. *
  8252. * @param bool $singular
  8253. * @return void
  8254. * @static
  8255. */
  8256. public static function singularResourceParameters($singular = true)
  8257. {
  8258. \Illuminate\Routing\Router::singularResourceParameters($singular);
  8259. }
  8260. /**
  8261. * Set the global resource parameter mapping.
  8262. *
  8263. * @param array $parameters
  8264. * @return void
  8265. * @static
  8266. */
  8267. public static function resourceParameters($parameters = array())
  8268. {
  8269. \Illuminate\Routing\Router::resourceParameters($parameters);
  8270. }
  8271. /**
  8272. * Get or set the verbs used in the resource URIs.
  8273. *
  8274. * @param array $verbs
  8275. * @return array|null
  8276. * @static
  8277. */
  8278. public static function resourceVerbs($verbs = array())
  8279. {
  8280. return \Illuminate\Routing\Router::resourceVerbs($verbs);
  8281. }
  8282. /**
  8283. * Get the underlying route collection.
  8284. *
  8285. * @return \Illuminate\Routing\RouteCollection
  8286. * @static
  8287. */
  8288. public static function getRoutes()
  8289. {
  8290. return \Illuminate\Routing\Router::getRoutes();
  8291. }
  8292. /**
  8293. * Set the route collection instance.
  8294. *
  8295. * @param \Illuminate\Routing\RouteCollection $routes
  8296. * @return void
  8297. * @static
  8298. */
  8299. public static function setRoutes($routes)
  8300. {
  8301. \Illuminate\Routing\Router::setRoutes($routes);
  8302. }
  8303. /**
  8304. * Register a custom macro.
  8305. *
  8306. * @param string $name
  8307. * @param callable $macro
  8308. * @return void
  8309. * @static
  8310. */
  8311. public static function macro($name, $macro)
  8312. {
  8313. \Illuminate\Routing\Router::macro($name, $macro);
  8314. }
  8315. /**
  8316. * Checks if macro is registered.
  8317. *
  8318. * @param string $name
  8319. * @return bool
  8320. * @static
  8321. */
  8322. public static function hasMacro($name)
  8323. {
  8324. return \Illuminate\Routing\Router::hasMacro($name);
  8325. }
  8326. /**
  8327. * Dynamically handle calls to the class.
  8328. *
  8329. * @param string $method
  8330. * @param array $parameters
  8331. * @return mixed
  8332. * @throws \BadMethodCallException
  8333. * @static
  8334. */
  8335. public static function macroCall($method, $parameters)
  8336. {
  8337. return \Illuminate\Routing\Router::macroCall($method, $parameters);
  8338. }
  8339. }
  8340. class Schema {
  8341. /**
  8342. * Determine if the given table exists.
  8343. *
  8344. * @param string $table
  8345. * @return bool
  8346. * @static
  8347. */
  8348. public static function hasTable($table)
  8349. {
  8350. return \Illuminate\Database\Schema\MySqlBuilder::hasTable($table);
  8351. }
  8352. /**
  8353. * Get the column listing for a given table.
  8354. *
  8355. * @param string $table
  8356. * @return array
  8357. * @static
  8358. */
  8359. public static function getColumnListing($table)
  8360. {
  8361. return \Illuminate\Database\Schema\MySqlBuilder::getColumnListing($table);
  8362. }
  8363. /**
  8364. * Set the default string length for migrations.
  8365. *
  8366. * @param int $length
  8367. * @return void
  8368. * @static
  8369. */
  8370. public static function defaultStringLength($length)
  8371. {
  8372. //Method inherited from \Illuminate\Database\Schema\Builder
  8373. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  8374. }
  8375. /**
  8376. * Determine if the given table has a given column.
  8377. *
  8378. * @param string $table
  8379. * @param string $column
  8380. * @return bool
  8381. * @static
  8382. */
  8383. public static function hasColumn($table, $column)
  8384. {
  8385. //Method inherited from \Illuminate\Database\Schema\Builder
  8386. return \Illuminate\Database\Schema\MySqlBuilder::hasColumn($table, $column);
  8387. }
  8388. /**
  8389. * Determine if the given table has given columns.
  8390. *
  8391. * @param string $table
  8392. * @param array $columns
  8393. * @return bool
  8394. * @static
  8395. */
  8396. public static function hasColumns($table, $columns)
  8397. {
  8398. //Method inherited from \Illuminate\Database\Schema\Builder
  8399. return \Illuminate\Database\Schema\MySqlBuilder::hasColumns($table, $columns);
  8400. }
  8401. /**
  8402. * Get the data type for the given column name.
  8403. *
  8404. * @param string $table
  8405. * @param string $column
  8406. * @return string
  8407. * @static
  8408. */
  8409. public static function getColumnType($table, $column)
  8410. {
  8411. //Method inherited from \Illuminate\Database\Schema\Builder
  8412. return \Illuminate\Database\Schema\MySqlBuilder::getColumnType($table, $column);
  8413. }
  8414. /**
  8415. * Modify a table on the schema.
  8416. *
  8417. * @param string $table
  8418. * @param \Closure $callback
  8419. * @return void
  8420. * @static
  8421. */
  8422. public static function table($table, $callback)
  8423. {
  8424. //Method inherited from \Illuminate\Database\Schema\Builder
  8425. \Illuminate\Database\Schema\MySqlBuilder::table($table, $callback);
  8426. }
  8427. /**
  8428. * Create a new table on the schema.
  8429. *
  8430. * @param string $table
  8431. * @param \Closure $callback
  8432. * @return void
  8433. * @static
  8434. */
  8435. public static function create($table, $callback)
  8436. {
  8437. //Method inherited from \Illuminate\Database\Schema\Builder
  8438. \Illuminate\Database\Schema\MySqlBuilder::create($table, $callback);
  8439. }
  8440. /**
  8441. * Drop a table from the schema.
  8442. *
  8443. * @param string $table
  8444. * @return void
  8445. * @static
  8446. */
  8447. public static function drop($table)
  8448. {
  8449. //Method inherited from \Illuminate\Database\Schema\Builder
  8450. \Illuminate\Database\Schema\MySqlBuilder::drop($table);
  8451. }
  8452. /**
  8453. * Drop a table from the schema if it exists.
  8454. *
  8455. * @param string $table
  8456. * @return void
  8457. * @static
  8458. */
  8459. public static function dropIfExists($table)
  8460. {
  8461. //Method inherited from \Illuminate\Database\Schema\Builder
  8462. \Illuminate\Database\Schema\MySqlBuilder::dropIfExists($table);
  8463. }
  8464. /**
  8465. * Rename a table on the schema.
  8466. *
  8467. * @param string $from
  8468. * @param string $to
  8469. * @return void
  8470. * @static
  8471. */
  8472. public static function rename($from, $to)
  8473. {
  8474. //Method inherited from \Illuminate\Database\Schema\Builder
  8475. \Illuminate\Database\Schema\MySqlBuilder::rename($from, $to);
  8476. }
  8477. /**
  8478. * Enable foreign key constraints.
  8479. *
  8480. * @return bool
  8481. * @static
  8482. */
  8483. public static function enableForeignKeyConstraints()
  8484. {
  8485. //Method inherited from \Illuminate\Database\Schema\Builder
  8486. return \Illuminate\Database\Schema\MySqlBuilder::enableForeignKeyConstraints();
  8487. }
  8488. /**
  8489. * Disable foreign key constraints.
  8490. *
  8491. * @return bool
  8492. * @static
  8493. */
  8494. public static function disableForeignKeyConstraints()
  8495. {
  8496. //Method inherited from \Illuminate\Database\Schema\Builder
  8497. return \Illuminate\Database\Schema\MySqlBuilder::disableForeignKeyConstraints();
  8498. }
  8499. /**
  8500. * Get the database connection instance.
  8501. *
  8502. * @return \Illuminate\Database\Connection
  8503. * @static
  8504. */
  8505. public static function getConnection()
  8506. {
  8507. //Method inherited from \Illuminate\Database\Schema\Builder
  8508. return \Illuminate\Database\Schema\MySqlBuilder::getConnection();
  8509. }
  8510. /**
  8511. * Set the database connection instance.
  8512. *
  8513. * @param \Illuminate\Database\Connection $connection
  8514. * @return $this
  8515. * @static
  8516. */
  8517. public static function setConnection($connection)
  8518. {
  8519. //Method inherited from \Illuminate\Database\Schema\Builder
  8520. return \Illuminate\Database\Schema\MySqlBuilder::setConnection($connection);
  8521. }
  8522. /**
  8523. * Set the Schema Blueprint resolver callback.
  8524. *
  8525. * @param \Closure $resolver
  8526. * @return void
  8527. * @static
  8528. */
  8529. public static function blueprintResolver($resolver)
  8530. {
  8531. //Method inherited from \Illuminate\Database\Schema\Builder
  8532. \Illuminate\Database\Schema\MySqlBuilder::blueprintResolver($resolver);
  8533. }
  8534. }
  8535. class Session {
  8536. /**
  8537. * Get the session configuration.
  8538. *
  8539. * @return array
  8540. * @static
  8541. */
  8542. public static function getSessionConfig()
  8543. {
  8544. return \Illuminate\Session\SessionManager::getSessionConfig();
  8545. }
  8546. /**
  8547. * Get the default session driver name.
  8548. *
  8549. * @return string
  8550. * @static
  8551. */
  8552. public static function getDefaultDriver()
  8553. {
  8554. return \Illuminate\Session\SessionManager::getDefaultDriver();
  8555. }
  8556. /**
  8557. * Set the default session driver name.
  8558. *
  8559. * @param string $name
  8560. * @return void
  8561. * @static
  8562. */
  8563. public static function setDefaultDriver($name)
  8564. {
  8565. \Illuminate\Session\SessionManager::setDefaultDriver($name);
  8566. }
  8567. /**
  8568. * Get a driver instance.
  8569. *
  8570. * @param string $driver
  8571. * @return mixed
  8572. * @static
  8573. */
  8574. public static function driver($driver = null)
  8575. {
  8576. //Method inherited from \Illuminate\Support\Manager
  8577. return \Illuminate\Session\SessionManager::driver($driver);
  8578. }
  8579. /**
  8580. * Register a custom driver creator Closure.
  8581. *
  8582. * @param string $driver
  8583. * @param \Closure $callback
  8584. * @return $this
  8585. * @static
  8586. */
  8587. public static function extend($driver, $callback)
  8588. {
  8589. //Method inherited from \Illuminate\Support\Manager
  8590. return \Illuminate\Session\SessionManager::extend($driver, $callback);
  8591. }
  8592. /**
  8593. * Get all of the created "drivers".
  8594. *
  8595. * @return array
  8596. * @static
  8597. */
  8598. public static function getDrivers()
  8599. {
  8600. //Method inherited from \Illuminate\Support\Manager
  8601. return \Illuminate\Session\SessionManager::getDrivers();
  8602. }
  8603. /**
  8604. * Start the session, reading the data from a handler.
  8605. *
  8606. * @return bool
  8607. * @static
  8608. */
  8609. public static function start()
  8610. {
  8611. return \Illuminate\Session\Store::start();
  8612. }
  8613. /**
  8614. * Save the session data to storage.
  8615. *
  8616. * @return bool
  8617. * @static
  8618. */
  8619. public static function save()
  8620. {
  8621. return \Illuminate\Session\Store::save();
  8622. }
  8623. /**
  8624. * Age the flash data for the session.
  8625. *
  8626. * @return void
  8627. * @static
  8628. */
  8629. public static function ageFlashData()
  8630. {
  8631. \Illuminate\Session\Store::ageFlashData();
  8632. }
  8633. /**
  8634. * Get all of the session data.
  8635. *
  8636. * @return array
  8637. * @static
  8638. */
  8639. public static function all()
  8640. {
  8641. return \Illuminate\Session\Store::all();
  8642. }
  8643. /**
  8644. * Checks if a key exists.
  8645. *
  8646. * @param string|array $key
  8647. * @return bool
  8648. * @static
  8649. */
  8650. public static function exists($key)
  8651. {
  8652. return \Illuminate\Session\Store::exists($key);
  8653. }
  8654. /**
  8655. * Checks if a key is present and not null.
  8656. *
  8657. * @param string|array $key
  8658. * @return bool
  8659. * @static
  8660. */
  8661. public static function has($key)
  8662. {
  8663. return \Illuminate\Session\Store::has($key);
  8664. }
  8665. /**
  8666. * Get an item from the session.
  8667. *
  8668. * @param string $key
  8669. * @param mixed $default
  8670. * @return mixed
  8671. * @static
  8672. */
  8673. public static function get($key, $default = null)
  8674. {
  8675. return \Illuminate\Session\Store::get($key, $default);
  8676. }
  8677. /**
  8678. * Get the value of a given key and then forget it.
  8679. *
  8680. * @param string $key
  8681. * @param string $default
  8682. * @return mixed
  8683. * @static
  8684. */
  8685. public static function pull($key, $default = null)
  8686. {
  8687. return \Illuminate\Session\Store::pull($key, $default);
  8688. }
  8689. /**
  8690. * Determine if the session contains old input.
  8691. *
  8692. * @param string $key
  8693. * @return bool
  8694. * @static
  8695. */
  8696. public static function hasOldInput($key = null)
  8697. {
  8698. return \Illuminate\Session\Store::hasOldInput($key);
  8699. }
  8700. /**
  8701. * Get the requested item from the flashed input array.
  8702. *
  8703. * @param string $key
  8704. * @param mixed $default
  8705. * @return mixed
  8706. * @static
  8707. */
  8708. public static function getOldInput($key = null, $default = null)
  8709. {
  8710. return \Illuminate\Session\Store::getOldInput($key, $default);
  8711. }
  8712. /**
  8713. * Replace the given session attributes entirely.
  8714. *
  8715. * @param array $attributes
  8716. * @return void
  8717. * @static
  8718. */
  8719. public static function replace($attributes)
  8720. {
  8721. \Illuminate\Session\Store::replace($attributes);
  8722. }
  8723. /**
  8724. * Put a key / value pair or array of key / value pairs in the session.
  8725. *
  8726. * @param string|array $key
  8727. * @param mixed $value
  8728. * @return void
  8729. * @static
  8730. */
  8731. public static function put($key, $value = null)
  8732. {
  8733. \Illuminate\Session\Store::put($key, $value);
  8734. }
  8735. /**
  8736. * Get an item from the session, or store the default value.
  8737. *
  8738. * @param string $key
  8739. * @param \Closure $callback
  8740. * @return mixed
  8741. * @static
  8742. */
  8743. public static function remember($key, $callback)
  8744. {
  8745. return \Illuminate\Session\Store::remember($key, $callback);
  8746. }
  8747. /**
  8748. * Push a value onto a session array.
  8749. *
  8750. * @param string $key
  8751. * @param mixed $value
  8752. * @return void
  8753. * @static
  8754. */
  8755. public static function push($key, $value)
  8756. {
  8757. \Illuminate\Session\Store::push($key, $value);
  8758. }
  8759. /**
  8760. * Increment the value of an item in the session.
  8761. *
  8762. * @param string $key
  8763. * @param int $amount
  8764. * @return mixed
  8765. * @static
  8766. */
  8767. public static function increment($key, $amount = 1)
  8768. {
  8769. return \Illuminate\Session\Store::increment($key, $amount);
  8770. }
  8771. /**
  8772. * Decrement the value of an item in the session.
  8773. *
  8774. * @param string $key
  8775. * @param int $amount
  8776. * @return int
  8777. * @static
  8778. */
  8779. public static function decrement($key, $amount = 1)
  8780. {
  8781. return \Illuminate\Session\Store::decrement($key, $amount);
  8782. }
  8783. /**
  8784. * Flash a key / value pair to the session.
  8785. *
  8786. * @param string $key
  8787. * @param mixed $value
  8788. * @return void
  8789. * @static
  8790. */
  8791. public static function flash($key, $value)
  8792. {
  8793. \Illuminate\Session\Store::flash($key, $value);
  8794. }
  8795. /**
  8796. * Flash a key / value pair to the session for immediate use.
  8797. *
  8798. * @param string $key
  8799. * @param mixed $value
  8800. * @return void
  8801. * @static
  8802. */
  8803. public static function now($key, $value)
  8804. {
  8805. \Illuminate\Session\Store::now($key, $value);
  8806. }
  8807. /**
  8808. * Reflash all of the session flash data.
  8809. *
  8810. * @return void
  8811. * @static
  8812. */
  8813. public static function reflash()
  8814. {
  8815. \Illuminate\Session\Store::reflash();
  8816. }
  8817. /**
  8818. * Reflash a subset of the current flash data.
  8819. *
  8820. * @param array|mixed $keys
  8821. * @return void
  8822. * @static
  8823. */
  8824. public static function keep($keys = null)
  8825. {
  8826. \Illuminate\Session\Store::keep($keys);
  8827. }
  8828. /**
  8829. * Flash an input array to the session.
  8830. *
  8831. * @param array $value
  8832. * @return void
  8833. * @static
  8834. */
  8835. public static function flashInput($value)
  8836. {
  8837. \Illuminate\Session\Store::flashInput($value);
  8838. }
  8839. /**
  8840. * Remove an item from the session, returning its value.
  8841. *
  8842. * @param string $key
  8843. * @return mixed
  8844. * @static
  8845. */
  8846. public static function remove($key)
  8847. {
  8848. return \Illuminate\Session\Store::remove($key);
  8849. }
  8850. /**
  8851. * Remove one or many items from the session.
  8852. *
  8853. * @param string|array $keys
  8854. * @return void
  8855. * @static
  8856. */
  8857. public static function forget($keys)
  8858. {
  8859. \Illuminate\Session\Store::forget($keys);
  8860. }
  8861. /**
  8862. * Remove all of the items from the session.
  8863. *
  8864. * @return void
  8865. * @static
  8866. */
  8867. public static function flush()
  8868. {
  8869. \Illuminate\Session\Store::flush();
  8870. }
  8871. /**
  8872. * Flush the session data and regenerate the ID.
  8873. *
  8874. * @return bool
  8875. * @static
  8876. */
  8877. public static function invalidate()
  8878. {
  8879. return \Illuminate\Session\Store::invalidate();
  8880. }
  8881. /**
  8882. * Generate a new session identifier.
  8883. *
  8884. * @param bool $destroy
  8885. * @return bool
  8886. * @static
  8887. */
  8888. public static function regenerate($destroy = false)
  8889. {
  8890. return \Illuminate\Session\Store::regenerate($destroy);
  8891. }
  8892. /**
  8893. * Generate a new session ID for the session.
  8894. *
  8895. * @param bool $destroy
  8896. * @return bool
  8897. * @static
  8898. */
  8899. public static function migrate($destroy = false)
  8900. {
  8901. return \Illuminate\Session\Store::migrate($destroy);
  8902. }
  8903. /**
  8904. * Determine if the session has been started.
  8905. *
  8906. * @return bool
  8907. * @static
  8908. */
  8909. public static function isStarted()
  8910. {
  8911. return \Illuminate\Session\Store::isStarted();
  8912. }
  8913. /**
  8914. * Get the name of the session.
  8915. *
  8916. * @return string
  8917. * @static
  8918. */
  8919. public static function getName()
  8920. {
  8921. return \Illuminate\Session\Store::getName();
  8922. }
  8923. /**
  8924. * Set the name of the session.
  8925. *
  8926. * @param string $name
  8927. * @return void
  8928. * @static
  8929. */
  8930. public static function setName($name)
  8931. {
  8932. \Illuminate\Session\Store::setName($name);
  8933. }
  8934. /**
  8935. * Get the current session ID.
  8936. *
  8937. * @return string
  8938. * @static
  8939. */
  8940. public static function getId()
  8941. {
  8942. return \Illuminate\Session\Store::getId();
  8943. }
  8944. /**
  8945. * Set the session ID.
  8946. *
  8947. * @param string $id
  8948. * @return void
  8949. * @static
  8950. */
  8951. public static function setId($id)
  8952. {
  8953. \Illuminate\Session\Store::setId($id);
  8954. }
  8955. /**
  8956. * Determine if this is a valid session ID.
  8957. *
  8958. * @param string $id
  8959. * @return bool
  8960. * @static
  8961. */
  8962. public static function isValidId($id)
  8963. {
  8964. return \Illuminate\Session\Store::isValidId($id);
  8965. }
  8966. /**
  8967. * Set the existence of the session on the handler if applicable.
  8968. *
  8969. * @param bool $value
  8970. * @return void
  8971. * @static
  8972. */
  8973. public static function setExists($value)
  8974. {
  8975. \Illuminate\Session\Store::setExists($value);
  8976. }
  8977. /**
  8978. * Get the CSRF token value.
  8979. *
  8980. * @return string
  8981. * @static
  8982. */
  8983. public static function token()
  8984. {
  8985. return \Illuminate\Session\Store::token();
  8986. }
  8987. /**
  8988. * Regenerate the CSRF token value.
  8989. *
  8990. * @return void
  8991. * @static
  8992. */
  8993. public static function regenerateToken()
  8994. {
  8995. \Illuminate\Session\Store::regenerateToken();
  8996. }
  8997. /**
  8998. * Get the previous URL from the session.
  8999. *
  9000. * @return string|null
  9001. * @static
  9002. */
  9003. public static function previousUrl()
  9004. {
  9005. return \Illuminate\Session\Store::previousUrl();
  9006. }
  9007. /**
  9008. * Set the "previous" URL in the session.
  9009. *
  9010. * @param string $url
  9011. * @return void
  9012. * @static
  9013. */
  9014. public static function setPreviousUrl($url)
  9015. {
  9016. \Illuminate\Session\Store::setPreviousUrl($url);
  9017. }
  9018. /**
  9019. * Get the underlying session handler implementation.
  9020. *
  9021. * @return \SessionHandlerInterface
  9022. * @static
  9023. */
  9024. public static function getHandler()
  9025. {
  9026. return \Illuminate\Session\Store::getHandler();
  9027. }
  9028. /**
  9029. * Determine if the session handler needs a request.
  9030. *
  9031. * @return bool
  9032. * @static
  9033. */
  9034. public static function handlerNeedsRequest()
  9035. {
  9036. return \Illuminate\Session\Store::handlerNeedsRequest();
  9037. }
  9038. /**
  9039. * Set the request on the handler instance.
  9040. *
  9041. * @param \Illuminate\Http\Request $request
  9042. * @return void
  9043. * @static
  9044. */
  9045. public static function setRequestOnHandler($request)
  9046. {
  9047. \Illuminate\Session\Store::setRequestOnHandler($request);
  9048. }
  9049. }
  9050. class Storage {
  9051. /**
  9052. * Get a filesystem instance.
  9053. *
  9054. * @param string $name
  9055. * @return \Illuminate\Filesystem\FilesystemAdapter
  9056. * @static
  9057. */
  9058. public static function drive($name = null)
  9059. {
  9060. return \Illuminate\Filesystem\FilesystemManager::drive($name);
  9061. }
  9062. /**
  9063. * Get a filesystem instance.
  9064. *
  9065. * @param string $name
  9066. * @return \Illuminate\Filesystem\FilesystemAdapter
  9067. * @static
  9068. */
  9069. public static function disk($name = null)
  9070. {
  9071. return \Illuminate\Filesystem\FilesystemManager::disk($name);
  9072. }
  9073. /**
  9074. * Get a default cloud filesystem instance.
  9075. *
  9076. * @return \Illuminate\Filesystem\FilesystemAdapter
  9077. * @static
  9078. */
  9079. public static function cloud()
  9080. {
  9081. return \Illuminate\Filesystem\FilesystemManager::cloud();
  9082. }
  9083. /**
  9084. * Create an instance of the local driver.
  9085. *
  9086. * @param array $config
  9087. * @return \Illuminate\Filesystem\FilesystemAdapter
  9088. * @static
  9089. */
  9090. public static function createLocalDriver($config)
  9091. {
  9092. return \Illuminate\Filesystem\FilesystemManager::createLocalDriver($config);
  9093. }
  9094. /**
  9095. * Create an instance of the ftp driver.
  9096. *
  9097. * @param array $config
  9098. * @return \Illuminate\Filesystem\FilesystemAdapter
  9099. * @static
  9100. */
  9101. public static function createFtpDriver($config)
  9102. {
  9103. return \Illuminate\Filesystem\FilesystemManager::createFtpDriver($config);
  9104. }
  9105. /**
  9106. * Create an instance of the Amazon S3 driver.
  9107. *
  9108. * @param array $config
  9109. * @return \Illuminate\Contracts\Filesystem\Cloud
  9110. * @static
  9111. */
  9112. public static function createS3Driver($config)
  9113. {
  9114. return \Illuminate\Filesystem\FilesystemManager::createS3Driver($config);
  9115. }
  9116. /**
  9117. * Create an instance of the Rackspace driver.
  9118. *
  9119. * @param array $config
  9120. * @return \Illuminate\Contracts\Filesystem\Cloud
  9121. * @static
  9122. */
  9123. public static function createRackspaceDriver($config)
  9124. {
  9125. return \Illuminate\Filesystem\FilesystemManager::createRackspaceDriver($config);
  9126. }
  9127. /**
  9128. * Set the given disk instance.
  9129. *
  9130. * @param string $name
  9131. * @param mixed $disk
  9132. * @return void
  9133. * @static
  9134. */
  9135. public static function set($name, $disk)
  9136. {
  9137. \Illuminate\Filesystem\FilesystemManager::set($name, $disk);
  9138. }
  9139. /**
  9140. * Get the default driver name.
  9141. *
  9142. * @return string
  9143. * @static
  9144. */
  9145. public static function getDefaultDriver()
  9146. {
  9147. return \Illuminate\Filesystem\FilesystemManager::getDefaultDriver();
  9148. }
  9149. /**
  9150. * Get the default cloud driver name.
  9151. *
  9152. * @return string
  9153. * @static
  9154. */
  9155. public static function getDefaultCloudDriver()
  9156. {
  9157. return \Illuminate\Filesystem\FilesystemManager::getDefaultCloudDriver();
  9158. }
  9159. /**
  9160. * Register a custom driver creator Closure.
  9161. *
  9162. * @param string $driver
  9163. * @param \Closure $callback
  9164. * @return $this
  9165. * @static
  9166. */
  9167. public static function extend($driver, $callback)
  9168. {
  9169. return \Illuminate\Filesystem\FilesystemManager::extend($driver, $callback);
  9170. }
  9171. /**
  9172. * Assert that the given file exists.
  9173. *
  9174. * @param string $path
  9175. * @return void
  9176. * @static
  9177. */
  9178. public static function assertExists($path)
  9179. {
  9180. \Illuminate\Filesystem\FilesystemAdapter::assertExists($path);
  9181. }
  9182. /**
  9183. * Assert that the given file does not exist.
  9184. *
  9185. * @param string $path
  9186. * @return void
  9187. * @static
  9188. */
  9189. public static function assertMissing($path)
  9190. {
  9191. \Illuminate\Filesystem\FilesystemAdapter::assertMissing($path);
  9192. }
  9193. /**
  9194. * Determine if a file exists.
  9195. *
  9196. * @param string $path
  9197. * @return bool
  9198. * @static
  9199. */
  9200. public static function exists($path)
  9201. {
  9202. return \Illuminate\Filesystem\FilesystemAdapter::exists($path);
  9203. }
  9204. /**
  9205. * Get the contents of a file.
  9206. *
  9207. * @param string $path
  9208. * @return string
  9209. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  9210. * @static
  9211. */
  9212. public static function get($path)
  9213. {
  9214. return \Illuminate\Filesystem\FilesystemAdapter::get($path);
  9215. }
  9216. /**
  9217. * Write the contents of a file.
  9218. *
  9219. * @param string $path
  9220. * @param string|resource $contents
  9221. * @param array $options
  9222. * @return bool
  9223. * @static
  9224. */
  9225. public static function put($path, $contents, $options = array())
  9226. {
  9227. return \Illuminate\Filesystem\FilesystemAdapter::put($path, $contents, $options);
  9228. }
  9229. /**
  9230. * Store the uploaded file on the disk.
  9231. *
  9232. * @param string $path
  9233. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  9234. * @param array $options
  9235. * @return string|false
  9236. * @static
  9237. */
  9238. public static function putFile($path, $file, $options = array())
  9239. {
  9240. return \Illuminate\Filesystem\FilesystemAdapter::putFile($path, $file, $options);
  9241. }
  9242. /**
  9243. * Store the uploaded file on the disk with a given name.
  9244. *
  9245. * @param string $path
  9246. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  9247. * @param string $name
  9248. * @param array $options
  9249. * @return string|false
  9250. * @static
  9251. */
  9252. public static function putFileAs($path, $file, $name, $options = array())
  9253. {
  9254. return \Illuminate\Filesystem\FilesystemAdapter::putFileAs($path, $file, $name, $options);
  9255. }
  9256. /**
  9257. * Get the visibility for the given path.
  9258. *
  9259. * @param string $path
  9260. * @return string
  9261. * @static
  9262. */
  9263. public static function getVisibility($path)
  9264. {
  9265. return \Illuminate\Filesystem\FilesystemAdapter::getVisibility($path);
  9266. }
  9267. /**
  9268. * Set the visibility for the given path.
  9269. *
  9270. * @param string $path
  9271. * @param string $visibility
  9272. * @return void
  9273. * @static
  9274. */
  9275. public static function setVisibility($path, $visibility)
  9276. {
  9277. \Illuminate\Filesystem\FilesystemAdapter::setVisibility($path, $visibility);
  9278. }
  9279. /**
  9280. * Prepend to a file.
  9281. *
  9282. * @param string $path
  9283. * @param string $data
  9284. * @param string $separator
  9285. * @return int
  9286. * @static
  9287. */
  9288. public static function prepend($path, $data, $separator = '')
  9289. {
  9290. return \Illuminate\Filesystem\FilesystemAdapter::prepend($path, $data, $separator);
  9291. }
  9292. /**
  9293. * Append to a file.
  9294. *
  9295. * @param string $path
  9296. * @param string $data
  9297. * @param string $separator
  9298. * @return int
  9299. * @static
  9300. */
  9301. public static function append($path, $data, $separator = '')
  9302. {
  9303. return \Illuminate\Filesystem\FilesystemAdapter::append($path, $data, $separator);
  9304. }
  9305. /**
  9306. * Delete the file at a given path.
  9307. *
  9308. * @param string|array $paths
  9309. * @return bool
  9310. * @static
  9311. */
  9312. public static function delete($paths)
  9313. {
  9314. return \Illuminate\Filesystem\FilesystemAdapter::delete($paths);
  9315. }
  9316. /**
  9317. * Copy a file to a new location.
  9318. *
  9319. * @param string $from
  9320. * @param string $to
  9321. * @return bool
  9322. * @static
  9323. */
  9324. public static function copy($from, $to)
  9325. {
  9326. return \Illuminate\Filesystem\FilesystemAdapter::copy($from, $to);
  9327. }
  9328. /**
  9329. * Move a file to a new location.
  9330. *
  9331. * @param string $from
  9332. * @param string $to
  9333. * @return bool
  9334. * @static
  9335. */
  9336. public static function move($from, $to)
  9337. {
  9338. return \Illuminate\Filesystem\FilesystemAdapter::move($from, $to);
  9339. }
  9340. /**
  9341. * Get the file size of a given file.
  9342. *
  9343. * @param string $path
  9344. * @return int
  9345. * @static
  9346. */
  9347. public static function size($path)
  9348. {
  9349. return \Illuminate\Filesystem\FilesystemAdapter::size($path);
  9350. }
  9351. /**
  9352. * Get the mime-type of a given file.
  9353. *
  9354. * @param string $path
  9355. * @return string|false
  9356. * @static
  9357. */
  9358. public static function mimeType($path)
  9359. {
  9360. return \Illuminate\Filesystem\FilesystemAdapter::mimeType($path);
  9361. }
  9362. /**
  9363. * Get the file's last modification time.
  9364. *
  9365. * @param string $path
  9366. * @return int
  9367. * @static
  9368. */
  9369. public static function lastModified($path)
  9370. {
  9371. return \Illuminate\Filesystem\FilesystemAdapter::lastModified($path);
  9372. }
  9373. /**
  9374. * Get the URL for the file at the given path.
  9375. *
  9376. * @param string $path
  9377. * @return string
  9378. * @static
  9379. */
  9380. public static function url($path)
  9381. {
  9382. return \Illuminate\Filesystem\FilesystemAdapter::url($path);
  9383. }
  9384. /**
  9385. * Get an array of all files in a directory.
  9386. *
  9387. * @param string|null $directory
  9388. * @param bool $recursive
  9389. * @return array
  9390. * @static
  9391. */
  9392. public static function files($directory = null, $recursive = false)
  9393. {
  9394. return \Illuminate\Filesystem\FilesystemAdapter::files($directory, $recursive);
  9395. }
  9396. /**
  9397. * Get all of the files from the given directory (recursive).
  9398. *
  9399. * @param string|null $directory
  9400. * @return array
  9401. * @static
  9402. */
  9403. public static function allFiles($directory = null)
  9404. {
  9405. return \Illuminate\Filesystem\FilesystemAdapter::allFiles($directory);
  9406. }
  9407. /**
  9408. * Get all of the directories within a given directory.
  9409. *
  9410. * @param string|null $directory
  9411. * @param bool $recursive
  9412. * @return array
  9413. * @static
  9414. */
  9415. public static function directories($directory = null, $recursive = false)
  9416. {
  9417. return \Illuminate\Filesystem\FilesystemAdapter::directories($directory, $recursive);
  9418. }
  9419. /**
  9420. * Get all (recursive) of the directories within a given directory.
  9421. *
  9422. * @param string|null $directory
  9423. * @return array
  9424. * @static
  9425. */
  9426. public static function allDirectories($directory = null)
  9427. {
  9428. return \Illuminate\Filesystem\FilesystemAdapter::allDirectories($directory);
  9429. }
  9430. /**
  9431. * Create a directory.
  9432. *
  9433. * @param string $path
  9434. * @return bool
  9435. * @static
  9436. */
  9437. public static function makeDirectory($path)
  9438. {
  9439. return \Illuminate\Filesystem\FilesystemAdapter::makeDirectory($path);
  9440. }
  9441. /**
  9442. * Recursively delete a directory.
  9443. *
  9444. * @param string $directory
  9445. * @return bool
  9446. * @static
  9447. */
  9448. public static function deleteDirectory($directory)
  9449. {
  9450. return \Illuminate\Filesystem\FilesystemAdapter::deleteDirectory($directory);
  9451. }
  9452. /**
  9453. * Get the Flysystem driver.
  9454. *
  9455. * @return \League\Flysystem\FilesystemInterface
  9456. * @static
  9457. */
  9458. public static function getDriver()
  9459. {
  9460. return \Illuminate\Filesystem\FilesystemAdapter::getDriver();
  9461. }
  9462. }
  9463. class URL {
  9464. /**
  9465. * Get the full URL for the current request.
  9466. *
  9467. * @return string
  9468. * @static
  9469. */
  9470. public static function full()
  9471. {
  9472. return \Illuminate\Routing\UrlGenerator::full();
  9473. }
  9474. /**
  9475. * Get the current URL for the request.
  9476. *
  9477. * @return string
  9478. * @static
  9479. */
  9480. public static function current()
  9481. {
  9482. return \Illuminate\Routing\UrlGenerator::current();
  9483. }
  9484. /**
  9485. * Get the URL for the previous request.
  9486. *
  9487. * @param mixed $fallback
  9488. * @return string
  9489. * @static
  9490. */
  9491. public static function previous($fallback = false)
  9492. {
  9493. return \Illuminate\Routing\UrlGenerator::previous($fallback);
  9494. }
  9495. /**
  9496. * Generate an absolute URL to the given path.
  9497. *
  9498. * @param string $path
  9499. * @param mixed $extra
  9500. * @param bool|null $secure
  9501. * @return string
  9502. * @static
  9503. */
  9504. public static function to($path, $extra = array(), $secure = null)
  9505. {
  9506. return \Illuminate\Routing\UrlGenerator::to($path, $extra, $secure);
  9507. }
  9508. /**
  9509. * Generate a secure, absolute URL to the given path.
  9510. *
  9511. * @param string $path
  9512. * @param array $parameters
  9513. * @return string
  9514. * @static
  9515. */
  9516. public static function secure($path, $parameters = array())
  9517. {
  9518. return \Illuminate\Routing\UrlGenerator::secure($path, $parameters);
  9519. }
  9520. /**
  9521. * Generate the URL to an application asset.
  9522. *
  9523. * @param string $path
  9524. * @param bool|null $secure
  9525. * @return string
  9526. * @static
  9527. */
  9528. public static function asset($path, $secure = null)
  9529. {
  9530. return \Illuminate\Routing\UrlGenerator::asset($path, $secure);
  9531. }
  9532. /**
  9533. * Generate the URL to a secure asset.
  9534. *
  9535. * @param string $path
  9536. * @return string
  9537. * @static
  9538. */
  9539. public static function secureAsset($path)
  9540. {
  9541. return \Illuminate\Routing\UrlGenerator::secureAsset($path);
  9542. }
  9543. /**
  9544. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  9545. *
  9546. * @param string $root
  9547. * @param string $path
  9548. * @param bool|null $secure
  9549. * @return string
  9550. * @static
  9551. */
  9552. public static function assetFrom($root, $path, $secure = null)
  9553. {
  9554. return \Illuminate\Routing\UrlGenerator::assetFrom($root, $path, $secure);
  9555. }
  9556. /**
  9557. * Get the default scheme for a raw URL.
  9558. *
  9559. * @param bool|null $secure
  9560. * @return string
  9561. * @static
  9562. */
  9563. public static function formatScheme($secure)
  9564. {
  9565. return \Illuminate\Routing\UrlGenerator::formatScheme($secure);
  9566. }
  9567. /**
  9568. * Get the URL to a named route.
  9569. *
  9570. * @param string $name
  9571. * @param mixed $parameters
  9572. * @param bool $absolute
  9573. * @return string
  9574. * @throws \InvalidArgumentException
  9575. * @static
  9576. */
  9577. public static function route($name, $parameters = array(), $absolute = true)
  9578. {
  9579. return \Illuminate\Routing\UrlGenerator::route($name, $parameters, $absolute);
  9580. }
  9581. /**
  9582. * Get the URL to a controller action.
  9583. *
  9584. * @param string $action
  9585. * @param mixed $parameters
  9586. * @param bool $absolute
  9587. * @return string
  9588. * @throws \InvalidArgumentException
  9589. * @static
  9590. */
  9591. public static function action($action, $parameters = array(), $absolute = true)
  9592. {
  9593. return \Illuminate\Routing\UrlGenerator::action($action, $parameters, $absolute);
  9594. }
  9595. /**
  9596. * Format the array of URL parameters.
  9597. *
  9598. * @param mixed|array $parameters
  9599. * @return array
  9600. * @static
  9601. */
  9602. public static function formatParameters($parameters)
  9603. {
  9604. return \Illuminate\Routing\UrlGenerator::formatParameters($parameters);
  9605. }
  9606. /**
  9607. * Get the base URL for the request.
  9608. *
  9609. * @param string $scheme
  9610. * @param string $root
  9611. * @return string
  9612. * @static
  9613. */
  9614. public static function formatRoot($scheme, $root = null)
  9615. {
  9616. return \Illuminate\Routing\UrlGenerator::formatRoot($scheme, $root);
  9617. }
  9618. /**
  9619. * Format the given URL segments into a single URL.
  9620. *
  9621. * @param string $root
  9622. * @param string $path
  9623. * @return string
  9624. * @static
  9625. */
  9626. public static function format($root, $path)
  9627. {
  9628. return \Illuminate\Routing\UrlGenerator::format($root, $path);
  9629. }
  9630. /**
  9631. * Determine if the given path is a valid URL.
  9632. *
  9633. * @param string $path
  9634. * @return bool
  9635. * @static
  9636. */
  9637. public static function isValidUrl($path)
  9638. {
  9639. return \Illuminate\Routing\UrlGenerator::isValidUrl($path);
  9640. }
  9641. /**
  9642. * Set the default named parameters used by the URL generator.
  9643. *
  9644. * @param array $defaults
  9645. * @return void
  9646. * @static
  9647. */
  9648. public static function defaults($defaults)
  9649. {
  9650. \Illuminate\Routing\UrlGenerator::defaults($defaults);
  9651. }
  9652. /**
  9653. * Force the scheme for URLs.
  9654. *
  9655. * @param string $schema
  9656. * @return void
  9657. * @static
  9658. */
  9659. public static function forceScheme($schema)
  9660. {
  9661. \Illuminate\Routing\UrlGenerator::forceScheme($schema);
  9662. }
  9663. /**
  9664. * Set the forced root URL.
  9665. *
  9666. * @param string $root
  9667. * @return void
  9668. * @static
  9669. */
  9670. public static function forceRootUrl($root)
  9671. {
  9672. \Illuminate\Routing\UrlGenerator::forceRootUrl($root);
  9673. }
  9674. /**
  9675. * Set a callback to be used to format the host of generated URLs.
  9676. *
  9677. * @param \Closure $callback
  9678. * @return $this
  9679. * @static
  9680. */
  9681. public static function formatHostUsing($callback)
  9682. {
  9683. return \Illuminate\Routing\UrlGenerator::formatHostUsing($callback);
  9684. }
  9685. /**
  9686. * Set a callback to be used to format the path of generated URLs.
  9687. *
  9688. * @param \Closure $callback
  9689. * @return $this
  9690. * @static
  9691. */
  9692. public static function formatPathUsing($callback)
  9693. {
  9694. return \Illuminate\Routing\UrlGenerator::formatPathUsing($callback);
  9695. }
  9696. /**
  9697. * Get the path formatter being used by the URL generator.
  9698. *
  9699. * @return \Closure
  9700. * @static
  9701. */
  9702. public static function pathFormatter()
  9703. {
  9704. return \Illuminate\Routing\UrlGenerator::pathFormatter();
  9705. }
  9706. /**
  9707. * Get the request instance.
  9708. *
  9709. * @return \Illuminate\Http\Request
  9710. * @static
  9711. */
  9712. public static function getRequest()
  9713. {
  9714. return \Illuminate\Routing\UrlGenerator::getRequest();
  9715. }
  9716. /**
  9717. * Set the current request instance.
  9718. *
  9719. * @param \Illuminate\Http\Request $request
  9720. * @return void
  9721. * @static
  9722. */
  9723. public static function setRequest($request)
  9724. {
  9725. \Illuminate\Routing\UrlGenerator::setRequest($request);
  9726. }
  9727. /**
  9728. * Set the route collection.
  9729. *
  9730. * @param \Illuminate\Routing\RouteCollection $routes
  9731. * @return $this
  9732. * @static
  9733. */
  9734. public static function setRoutes($routes)
  9735. {
  9736. return \Illuminate\Routing\UrlGenerator::setRoutes($routes);
  9737. }
  9738. /**
  9739. * Set the session resolver for the generator.
  9740. *
  9741. * @param callable $sessionResolver
  9742. * @return $this
  9743. * @static
  9744. */
  9745. public static function setSessionResolver($sessionResolver)
  9746. {
  9747. return \Illuminate\Routing\UrlGenerator::setSessionResolver($sessionResolver);
  9748. }
  9749. /**
  9750. * Set the root controller namespace.
  9751. *
  9752. * @param string $rootNamespace
  9753. * @return $this
  9754. * @static
  9755. */
  9756. public static function setRootControllerNamespace($rootNamespace)
  9757. {
  9758. return \Illuminate\Routing\UrlGenerator::setRootControllerNamespace($rootNamespace);
  9759. }
  9760. /**
  9761. * Register a custom macro.
  9762. *
  9763. * @param string $name
  9764. * @param callable $macro
  9765. * @return void
  9766. * @static
  9767. */
  9768. public static function macro($name, $macro)
  9769. {
  9770. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  9771. }
  9772. /**
  9773. * Checks if macro is registered.
  9774. *
  9775. * @param string $name
  9776. * @return bool
  9777. * @static
  9778. */
  9779. public static function hasMacro($name)
  9780. {
  9781. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  9782. }
  9783. }
  9784. class Validator {
  9785. /**
  9786. * Create a new Validator instance.
  9787. *
  9788. * @param array $data
  9789. * @param array $rules
  9790. * @param array $messages
  9791. * @param array $customAttributes
  9792. * @return \Illuminate\Validation\Validator
  9793. * @static
  9794. */
  9795. public static function make($data, $rules, $messages = array(), $customAttributes = array())
  9796. {
  9797. return \Illuminate\Validation\Factory::make($data, $rules, $messages, $customAttributes);
  9798. }
  9799. /**
  9800. * Validate the given data against the provided rules.
  9801. *
  9802. * @param array $data
  9803. * @param array $rules
  9804. * @param array $messages
  9805. * @param array $customAttributes
  9806. * @return void
  9807. * @throws \Illuminate\Validation\ValidationException
  9808. * @static
  9809. */
  9810. public static function validate($data, $rules, $messages = array(), $customAttributes = array())
  9811. {
  9812. \Illuminate\Validation\Factory::validate($data, $rules, $messages, $customAttributes);
  9813. }
  9814. /**
  9815. * Register a custom validator extension.
  9816. *
  9817. * @param string $rule
  9818. * @param \Closure|string $extension
  9819. * @param string $message
  9820. * @return void
  9821. * @static
  9822. */
  9823. public static function extend($rule, $extension, $message = null)
  9824. {
  9825. \Illuminate\Validation\Factory::extend($rule, $extension, $message);
  9826. }
  9827. /**
  9828. * Register a custom implicit validator extension.
  9829. *
  9830. * @param string $rule
  9831. * @param \Closure|string $extension
  9832. * @param string $message
  9833. * @return void
  9834. * @static
  9835. */
  9836. public static function extendImplicit($rule, $extension, $message = null)
  9837. {
  9838. \Illuminate\Validation\Factory::extendImplicit($rule, $extension, $message);
  9839. }
  9840. /**
  9841. * Register a custom dependent validator extension.
  9842. *
  9843. * @param string $rule
  9844. * @param \Closure|string $extension
  9845. * @param string $message
  9846. * @return void
  9847. * @static
  9848. */
  9849. public static function extendDependent($rule, $extension, $message = null)
  9850. {
  9851. \Illuminate\Validation\Factory::extendDependent($rule, $extension, $message);
  9852. }
  9853. /**
  9854. * Register a custom validator message replacer.
  9855. *
  9856. * @param string $rule
  9857. * @param \Closure|string $replacer
  9858. * @return void
  9859. * @static
  9860. */
  9861. public static function replacer($rule, $replacer)
  9862. {
  9863. \Illuminate\Validation\Factory::replacer($rule, $replacer);
  9864. }
  9865. /**
  9866. * Set the Validator instance resolver.
  9867. *
  9868. * @param \Closure $resolver
  9869. * @return void
  9870. * @static
  9871. */
  9872. public static function resolver($resolver)
  9873. {
  9874. \Illuminate\Validation\Factory::resolver($resolver);
  9875. }
  9876. /**
  9877. * Get the Translator implementation.
  9878. *
  9879. * @return \Illuminate\Contracts\Translation\Translator
  9880. * @static
  9881. */
  9882. public static function getTranslator()
  9883. {
  9884. return \Illuminate\Validation\Factory::getTranslator();
  9885. }
  9886. /**
  9887. * Get the Presence Verifier implementation.
  9888. *
  9889. * @return \Illuminate\Validation\PresenceVerifierInterface
  9890. * @static
  9891. */
  9892. public static function getPresenceVerifier()
  9893. {
  9894. return \Illuminate\Validation\Factory::getPresenceVerifier();
  9895. }
  9896. /**
  9897. * Set the Presence Verifier implementation.
  9898. *
  9899. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  9900. * @return void
  9901. * @static
  9902. */
  9903. public static function setPresenceVerifier($presenceVerifier)
  9904. {
  9905. \Illuminate\Validation\Factory::setPresenceVerifier($presenceVerifier);
  9906. }
  9907. }
  9908. class View {
  9909. /**
  9910. * Get the evaluated view contents for the given view.
  9911. *
  9912. * @param string $path
  9913. * @param array $data
  9914. * @param array $mergeData
  9915. * @return \Illuminate\Contracts\View\View
  9916. * @static
  9917. */
  9918. public static function file($path, $data = array(), $mergeData = array())
  9919. {
  9920. return \Illuminate\View\Factory::file($path, $data, $mergeData);
  9921. }
  9922. /**
  9923. * Get the evaluated view contents for the given view.
  9924. *
  9925. * @param string $view
  9926. * @param array $data
  9927. * @param array $mergeData
  9928. * @return \Illuminate\Contracts\View\View
  9929. * @static
  9930. */
  9931. public static function make($view, $data = array(), $mergeData = array())
  9932. {
  9933. return \Illuminate\View\Factory::make($view, $data, $mergeData);
  9934. }
  9935. /**
  9936. * Get the rendered content of the view based on a given condition.
  9937. *
  9938. * @param bool $condition
  9939. * @param string $view
  9940. * @param array $data
  9941. * @param array $mergeData
  9942. * @return string
  9943. * @static
  9944. */
  9945. public static function renderWhen($condition, $view, $data = array(), $mergeData = array())
  9946. {
  9947. return \Illuminate\View\Factory::renderWhen($condition, $view, $data, $mergeData);
  9948. }
  9949. /**
  9950. * Get the rendered contents of a partial from a loop.
  9951. *
  9952. * @param string $view
  9953. * @param array $data
  9954. * @param string $iterator
  9955. * @param string $empty
  9956. * @return string
  9957. * @static
  9958. */
  9959. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  9960. {
  9961. return \Illuminate\View\Factory::renderEach($view, $data, $iterator, $empty);
  9962. }
  9963. /**
  9964. * Determine if a given view exists.
  9965. *
  9966. * @param string $view
  9967. * @return bool
  9968. * @static
  9969. */
  9970. public static function exists($view)
  9971. {
  9972. return \Illuminate\View\Factory::exists($view);
  9973. }
  9974. /**
  9975. * Get the appropriate view engine for the given path.
  9976. *
  9977. * @param string $path
  9978. * @return \Illuminate\View\Engines\EngineInterface
  9979. * @throws \InvalidArgumentException
  9980. * @static
  9981. */
  9982. public static function getEngineFromPath($path)
  9983. {
  9984. return \Illuminate\View\Factory::getEngineFromPath($path);
  9985. }
  9986. /**
  9987. * Add a piece of shared data to the environment.
  9988. *
  9989. * @param array|string $key
  9990. * @param mixed $value
  9991. * @return mixed
  9992. * @static
  9993. */
  9994. public static function share($key, $value = null)
  9995. {
  9996. return \Illuminate\View\Factory::share($key, $value);
  9997. }
  9998. /**
  9999. * Increment the rendering counter.
  10000. *
  10001. * @return void
  10002. * @static
  10003. */
  10004. public static function incrementRender()
  10005. {
  10006. \Illuminate\View\Factory::incrementRender();
  10007. }
  10008. /**
  10009. * Decrement the rendering counter.
  10010. *
  10011. * @return void
  10012. * @static
  10013. */
  10014. public static function decrementRender()
  10015. {
  10016. \Illuminate\View\Factory::decrementRender();
  10017. }
  10018. /**
  10019. * Check if there are no active render operations.
  10020. *
  10021. * @return bool
  10022. * @static
  10023. */
  10024. public static function doneRendering()
  10025. {
  10026. return \Illuminate\View\Factory::doneRendering();
  10027. }
  10028. /**
  10029. * Add a location to the array of view locations.
  10030. *
  10031. * @param string $location
  10032. * @return void
  10033. * @static
  10034. */
  10035. public static function addLocation($location)
  10036. {
  10037. \Illuminate\View\Factory::addLocation($location);
  10038. }
  10039. /**
  10040. * Add a new namespace to the loader.
  10041. *
  10042. * @param string $namespace
  10043. * @param string|array $hints
  10044. * @return $this
  10045. * @static
  10046. */
  10047. public static function addNamespace($namespace, $hints)
  10048. {
  10049. return \Illuminate\View\Factory::addNamespace($namespace, $hints);
  10050. }
  10051. /**
  10052. * Prepend a new namespace to the loader.
  10053. *
  10054. * @param string $namespace
  10055. * @param string|array $hints
  10056. * @return $this
  10057. * @static
  10058. */
  10059. public static function prependNamespace($namespace, $hints)
  10060. {
  10061. return \Illuminate\View\Factory::prependNamespace($namespace, $hints);
  10062. }
  10063. /**
  10064. * Replace the namespace hints for the given namespace.
  10065. *
  10066. * @param string $namespace
  10067. * @param string|array $hints
  10068. * @return $this
  10069. * @static
  10070. */
  10071. public static function replaceNamespace($namespace, $hints)
  10072. {
  10073. return \Illuminate\View\Factory::replaceNamespace($namespace, $hints);
  10074. }
  10075. /**
  10076. * Register a valid view extension and its engine.
  10077. *
  10078. * @param string $extension
  10079. * @param string $engine
  10080. * @param \Closure $resolver
  10081. * @return void
  10082. * @static
  10083. */
  10084. public static function addExtension($extension, $engine, $resolver = null)
  10085. {
  10086. \Illuminate\View\Factory::addExtension($extension, $engine, $resolver);
  10087. }
  10088. /**
  10089. * Flush all of the factory state like sections and stacks.
  10090. *
  10091. * @return void
  10092. * @static
  10093. */
  10094. public static function flushState()
  10095. {
  10096. \Illuminate\View\Factory::flushState();
  10097. }
  10098. /**
  10099. * Flush all of the section contents if done rendering.
  10100. *
  10101. * @return void
  10102. * @static
  10103. */
  10104. public static function flushStateIfDoneRendering()
  10105. {
  10106. \Illuminate\View\Factory::flushStateIfDoneRendering();
  10107. }
  10108. /**
  10109. * Get the extension to engine bindings.
  10110. *
  10111. * @return array
  10112. * @static
  10113. */
  10114. public static function getExtensions()
  10115. {
  10116. return \Illuminate\View\Factory::getExtensions();
  10117. }
  10118. /**
  10119. * Get the engine resolver instance.
  10120. *
  10121. * @return \Illuminate\View\Engines\EngineResolver
  10122. * @static
  10123. */
  10124. public static function getEngineResolver()
  10125. {
  10126. return \Illuminate\View\Factory::getEngineResolver();
  10127. }
  10128. /**
  10129. * Get the view finder instance.
  10130. *
  10131. * @return \Illuminate\View\ViewFinderInterface
  10132. * @static
  10133. */
  10134. public static function getFinder()
  10135. {
  10136. return \Illuminate\View\Factory::getFinder();
  10137. }
  10138. /**
  10139. * Set the view finder instance.
  10140. *
  10141. * @param \Illuminate\View\ViewFinderInterface $finder
  10142. * @return void
  10143. * @static
  10144. */
  10145. public static function setFinder($finder)
  10146. {
  10147. \Illuminate\View\Factory::setFinder($finder);
  10148. }
  10149. /**
  10150. * Flush the cache of views located by the finder.
  10151. *
  10152. * @return void
  10153. * @static
  10154. */
  10155. public static function flushFinderCache()
  10156. {
  10157. \Illuminate\View\Factory::flushFinderCache();
  10158. }
  10159. /**
  10160. * Get the event dispatcher instance.
  10161. *
  10162. * @return \Illuminate\Contracts\Events\Dispatcher
  10163. * @static
  10164. */
  10165. public static function getDispatcher()
  10166. {
  10167. return \Illuminate\View\Factory::getDispatcher();
  10168. }
  10169. /**
  10170. * Set the event dispatcher instance.
  10171. *
  10172. * @param \Illuminate\Contracts\Events\Dispatcher $events
  10173. * @return void
  10174. * @static
  10175. */
  10176. public static function setDispatcher($events)
  10177. {
  10178. \Illuminate\View\Factory::setDispatcher($events);
  10179. }
  10180. /**
  10181. * Get the IoC container instance.
  10182. *
  10183. * @return \Illuminate\Contracts\Container\Container
  10184. * @static
  10185. */
  10186. public static function getContainer()
  10187. {
  10188. return \Illuminate\View\Factory::getContainer();
  10189. }
  10190. /**
  10191. * Set the IoC container instance.
  10192. *
  10193. * @param \Illuminate\Contracts\Container\Container $container
  10194. * @return void
  10195. * @static
  10196. */
  10197. public static function setContainer($container)
  10198. {
  10199. \Illuminate\View\Factory::setContainer($container);
  10200. }
  10201. /**
  10202. * Get an item from the shared data.
  10203. *
  10204. * @param string $key
  10205. * @param mixed $default
  10206. * @return mixed
  10207. * @static
  10208. */
  10209. public static function shared($key, $default = null)
  10210. {
  10211. return \Illuminate\View\Factory::shared($key, $default);
  10212. }
  10213. /**
  10214. * Get all of the shared data for the environment.
  10215. *
  10216. * @return array
  10217. * @static
  10218. */
  10219. public static function getShared()
  10220. {
  10221. return \Illuminate\View\Factory::getShared();
  10222. }
  10223. /**
  10224. * Start a component rendering process.
  10225. *
  10226. * @param string $name
  10227. * @param array $data
  10228. * @return void
  10229. * @static
  10230. */
  10231. public static function startComponent($name, $data = array())
  10232. {
  10233. \Illuminate\View\Factory::startComponent($name, $data);
  10234. }
  10235. /**
  10236. * Render the current component.
  10237. *
  10238. * @return string
  10239. * @static
  10240. */
  10241. public static function renderComponent()
  10242. {
  10243. return \Illuminate\View\Factory::renderComponent();
  10244. }
  10245. /**
  10246. * Start the slot rendering process.
  10247. *
  10248. * @param string $name
  10249. * @param string|null $content
  10250. * @return void
  10251. * @static
  10252. */
  10253. public static function slot($name, $content = null)
  10254. {
  10255. \Illuminate\View\Factory::slot($name, $content);
  10256. }
  10257. /**
  10258. * Save the slot content for rendering.
  10259. *
  10260. * @return void
  10261. * @static
  10262. */
  10263. public static function endSlot()
  10264. {
  10265. \Illuminate\View\Factory::endSlot();
  10266. }
  10267. /**
  10268. * Register a view creator event.
  10269. *
  10270. * @param array|string $views
  10271. * @param \Closure|string $callback
  10272. * @return array
  10273. * @static
  10274. */
  10275. public static function creator($views, $callback)
  10276. {
  10277. return \Illuminate\View\Factory::creator($views, $callback);
  10278. }
  10279. /**
  10280. * Register multiple view composers via an array.
  10281. *
  10282. * @param array $composers
  10283. * @return array
  10284. * @static
  10285. */
  10286. public static function composers($composers)
  10287. {
  10288. return \Illuminate\View\Factory::composers($composers);
  10289. }
  10290. /**
  10291. * Register a view composer event.
  10292. *
  10293. * @param array|string $views
  10294. * @param \Closure|string $callback
  10295. * @return array
  10296. * @static
  10297. */
  10298. public static function composer($views, $callback)
  10299. {
  10300. return \Illuminate\View\Factory::composer($views, $callback);
  10301. }
  10302. /**
  10303. * Call the composer for a given view.
  10304. *
  10305. * @param \Illuminate\Contracts\View\View $view
  10306. * @return void
  10307. * @static
  10308. */
  10309. public static function callComposer($view)
  10310. {
  10311. \Illuminate\View\Factory::callComposer($view);
  10312. }
  10313. /**
  10314. * Call the creator for a given view.
  10315. *
  10316. * @param \Illuminate\Contracts\View\View $view
  10317. * @return void
  10318. * @static
  10319. */
  10320. public static function callCreator($view)
  10321. {
  10322. \Illuminate\View\Factory::callCreator($view);
  10323. }
  10324. /**
  10325. * Start injecting content into a section.
  10326. *
  10327. * @param string $section
  10328. * @param string|null $content
  10329. * @return void
  10330. * @static
  10331. */
  10332. public static function startSection($section, $content = null)
  10333. {
  10334. \Illuminate\View\Factory::startSection($section, $content);
  10335. }
  10336. /**
  10337. * Inject inline content into a section.
  10338. *
  10339. * @param string $section
  10340. * @param string $content
  10341. * @return void
  10342. * @static
  10343. */
  10344. public static function inject($section, $content)
  10345. {
  10346. \Illuminate\View\Factory::inject($section, $content);
  10347. }
  10348. /**
  10349. * Stop injecting content into a section and return its contents.
  10350. *
  10351. * @return string
  10352. * @static
  10353. */
  10354. public static function yieldSection()
  10355. {
  10356. return \Illuminate\View\Factory::yieldSection();
  10357. }
  10358. /**
  10359. * Stop injecting content into a section.
  10360. *
  10361. * @param bool $overwrite
  10362. * @return string
  10363. * @throws \InvalidArgumentException
  10364. * @static
  10365. */
  10366. public static function stopSection($overwrite = false)
  10367. {
  10368. return \Illuminate\View\Factory::stopSection($overwrite);
  10369. }
  10370. /**
  10371. * Stop injecting content into a section and append it.
  10372. *
  10373. * @return string
  10374. * @throws \InvalidArgumentException
  10375. * @static
  10376. */
  10377. public static function appendSection()
  10378. {
  10379. return \Illuminate\View\Factory::appendSection();
  10380. }
  10381. /**
  10382. * Get the string contents of a section.
  10383. *
  10384. * @param string $section
  10385. * @param string $default
  10386. * @return string
  10387. * @static
  10388. */
  10389. public static function yieldContent($section, $default = '')
  10390. {
  10391. return \Illuminate\View\Factory::yieldContent($section, $default);
  10392. }
  10393. /**
  10394. * Get the parent placeholder for the current request.
  10395. *
  10396. * @param string $section
  10397. * @return string
  10398. * @static
  10399. */
  10400. public static function parentPlaceholder($section = '')
  10401. {
  10402. return \Illuminate\View\Factory::parentPlaceholder($section);
  10403. }
  10404. /**
  10405. * Check if section exists.
  10406. *
  10407. * @param string $name
  10408. * @return bool
  10409. * @static
  10410. */
  10411. public static function hasSection($name)
  10412. {
  10413. return \Illuminate\View\Factory::hasSection($name);
  10414. }
  10415. /**
  10416. * Get the contents of a section.
  10417. *
  10418. * @param string $name
  10419. * @param string $default
  10420. * @return mixed
  10421. * @static
  10422. */
  10423. public static function getSection($name, $default = null)
  10424. {
  10425. return \Illuminate\View\Factory::getSection($name, $default);
  10426. }
  10427. /**
  10428. * Get the entire array of sections.
  10429. *
  10430. * @return array
  10431. * @static
  10432. */
  10433. public static function getSections()
  10434. {
  10435. return \Illuminate\View\Factory::getSections();
  10436. }
  10437. /**
  10438. * Flush all of the sections.
  10439. *
  10440. * @return void
  10441. * @static
  10442. */
  10443. public static function flushSections()
  10444. {
  10445. \Illuminate\View\Factory::flushSections();
  10446. }
  10447. /**
  10448. * Add new loop to the stack.
  10449. *
  10450. * @param \Countable|array $data
  10451. * @return void
  10452. * @static
  10453. */
  10454. public static function addLoop($data)
  10455. {
  10456. \Illuminate\View\Factory::addLoop($data);
  10457. }
  10458. /**
  10459. * Increment the top loop's indices.
  10460. *
  10461. * @return void
  10462. * @static
  10463. */
  10464. public static function incrementLoopIndices()
  10465. {
  10466. \Illuminate\View\Factory::incrementLoopIndices();
  10467. }
  10468. /**
  10469. * Pop a loop from the top of the loop stack.
  10470. *
  10471. * @return void
  10472. * @static
  10473. */
  10474. public static function popLoop()
  10475. {
  10476. \Illuminate\View\Factory::popLoop();
  10477. }
  10478. /**
  10479. * Get an instance of the last loop in the stack.
  10480. *
  10481. * @return \stdClass|null
  10482. * @static
  10483. */
  10484. public static function getLastLoop()
  10485. {
  10486. return \Illuminate\View\Factory::getLastLoop();
  10487. }
  10488. /**
  10489. * Get the entire loop stack.
  10490. *
  10491. * @return array
  10492. * @static
  10493. */
  10494. public static function getLoopStack()
  10495. {
  10496. return \Illuminate\View\Factory::getLoopStack();
  10497. }
  10498. /**
  10499. * Start injecting content into a push section.
  10500. *
  10501. * @param string $section
  10502. * @param string $content
  10503. * @return void
  10504. * @static
  10505. */
  10506. public static function startPush($section, $content = '')
  10507. {
  10508. \Illuminate\View\Factory::startPush($section, $content);
  10509. }
  10510. /**
  10511. * Stop injecting content into a push section.
  10512. *
  10513. * @return string
  10514. * @throws \InvalidArgumentException
  10515. * @static
  10516. */
  10517. public static function stopPush()
  10518. {
  10519. return \Illuminate\View\Factory::stopPush();
  10520. }
  10521. /**
  10522. * Start prepending content into a push section.
  10523. *
  10524. * @param string $section
  10525. * @param string $content
  10526. * @return void
  10527. * @static
  10528. */
  10529. public static function startPrepend($section, $content = '')
  10530. {
  10531. \Illuminate\View\Factory::startPrepend($section, $content);
  10532. }
  10533. /**
  10534. * Stop prepending content into a push section.
  10535. *
  10536. * @return string
  10537. * @throws \InvalidArgumentException
  10538. * @static
  10539. */
  10540. public static function stopPrepend()
  10541. {
  10542. return \Illuminate\View\Factory::stopPrepend();
  10543. }
  10544. /**
  10545. * Get the string contents of a push section.
  10546. *
  10547. * @param string $section
  10548. * @param string $default
  10549. * @return string
  10550. * @static
  10551. */
  10552. public static function yieldPushContent($section, $default = '')
  10553. {
  10554. return \Illuminate\View\Factory::yieldPushContent($section, $default);
  10555. }
  10556. /**
  10557. * Flush all of the stacks.
  10558. *
  10559. * @return void
  10560. * @static
  10561. */
  10562. public static function flushStacks()
  10563. {
  10564. \Illuminate\View\Factory::flushStacks();
  10565. }
  10566. /**
  10567. * Start a translation block.
  10568. *
  10569. * @param array $replacements
  10570. * @return void
  10571. * @static
  10572. */
  10573. public static function startTranslation($replacements = array())
  10574. {
  10575. \Illuminate\View\Factory::startTranslation($replacements);
  10576. }
  10577. /**
  10578. * Render the current translation.
  10579. *
  10580. * @return string
  10581. * @static
  10582. */
  10583. public static function renderTranslation()
  10584. {
  10585. return \Illuminate\View\Factory::renderTranslation();
  10586. }
  10587. }
  10588. }
  10589. namespace Maatwebsite\Excel\Facades {
  10590. class Excel {
  10591. /**
  10592. * Create a new file
  10593. *
  10594. * @param $filename
  10595. * @param callable|null $callback
  10596. * @return \Maatwebsite\Excel\LaravelExcelWriter
  10597. * @static
  10598. */
  10599. public static function create($filename, $callback = null)
  10600. {
  10601. return \Maatwebsite\Excel\Excel::create($filename, $callback);
  10602. }
  10603. /**
  10604. * Load an existing file
  10605. *
  10606. * @param string $file The file we want to load
  10607. * @param callback|null $callback
  10608. * @param string|null $encoding
  10609. * @param bool $noBasePath
  10610. * @param callback|null $callbackConfigReader
  10611. * @return \Maatwebsite\Excel\LaravelExcelReader
  10612. * @static
  10613. */
  10614. public static function load($file, $callback = null, $encoding = null, $noBasePath = false, $callbackConfigReader = null)
  10615. {
  10616. return \Maatwebsite\Excel\Excel::load($file, $callback, $encoding, $noBasePath, $callbackConfigReader);
  10617. }
  10618. /**
  10619. * Set select sheets
  10620. *
  10621. * @param $sheets
  10622. * @return \Maatwebsite\Excel\LaravelExcelReader
  10623. * @static
  10624. */
  10625. public static function selectSheets($sheets = array())
  10626. {
  10627. return \Maatwebsite\Excel\Excel::selectSheets($sheets);
  10628. }
  10629. /**
  10630. * Select sheets by index
  10631. *
  10632. * @param array $sheets
  10633. * @return $this
  10634. * @static
  10635. */
  10636. public static function selectSheetsByIndex($sheets = array())
  10637. {
  10638. return \Maatwebsite\Excel\Excel::selectSheetsByIndex($sheets);
  10639. }
  10640. /**
  10641. * Batch import
  10642. *
  10643. * @param $files
  10644. * @param callback $callback
  10645. * @return \PHPExcel
  10646. * @static
  10647. */
  10648. public static function batch($files, $callback)
  10649. {
  10650. return \Maatwebsite\Excel\Excel::batch($files, $callback);
  10651. }
  10652. /**
  10653. * Create a new file and share a view
  10654. *
  10655. * @param string $view
  10656. * @param array $data
  10657. * @param array $mergeData
  10658. * @return \Maatwebsite\Excel\LaravelExcelWriter
  10659. * @static
  10660. */
  10661. public static function shareView($view, $data = array(), $mergeData = array())
  10662. {
  10663. return \Maatwebsite\Excel\Excel::shareView($view, $data, $mergeData);
  10664. }
  10665. /**
  10666. * Create a new file and load a view
  10667. *
  10668. * @param string $view
  10669. * @param array $data
  10670. * @param array $mergeData
  10671. * @return \Maatwebsite\Excel\LaravelExcelWriter
  10672. * @static
  10673. */
  10674. public static function loadView($view, $data = array(), $mergeData = array())
  10675. {
  10676. return \Maatwebsite\Excel\Excel::loadView($view, $data, $mergeData);
  10677. }
  10678. /**
  10679. * Set filters
  10680. *
  10681. * @param array $filters
  10682. * @return \Excel
  10683. * @static
  10684. */
  10685. public static function registerFilters($filters = array())
  10686. {
  10687. return \Maatwebsite\Excel\Excel::registerFilters($filters);
  10688. }
  10689. /**
  10690. * Enable certain filters
  10691. *
  10692. * @param string|array $filter
  10693. * @param bool|false|string $class
  10694. * @return \Excel
  10695. * @static
  10696. */
  10697. public static function filter($filter, $class = false)
  10698. {
  10699. return \Maatwebsite\Excel\Excel::filter($filter, $class);
  10700. }
  10701. /**
  10702. * Get register, enabled (or both) filters
  10703. *
  10704. * @param string|boolean $key [description]
  10705. * @return array
  10706. * @static
  10707. */
  10708. public static function getFilters($key = false)
  10709. {
  10710. return \Maatwebsite\Excel\Excel::getFilters($key);
  10711. }
  10712. }
  10713. }
  10714. namespace Mews\Captcha\Facades {
  10715. class Captcha {
  10716. /**
  10717. * Create captcha image
  10718. *
  10719. * @param string $config
  10720. * @return \Mews\Captcha\ImageManager->response
  10721. * @static
  10722. */
  10723. public static function create($config = 'default')
  10724. {
  10725. return \Mews\Captcha\Captcha::create($config);
  10726. }
  10727. /**
  10728. * Captcha check
  10729. *
  10730. * @param $value
  10731. * @return bool
  10732. * @static
  10733. */
  10734. public static function check($value)
  10735. {
  10736. return \Mews\Captcha\Captcha::check($value);
  10737. }
  10738. /**
  10739. * Generate captcha image source
  10740. *
  10741. * @param null $config
  10742. * @return string
  10743. * @static
  10744. */
  10745. public static function src($config = null)
  10746. {
  10747. return \Mews\Captcha\Captcha::src($config);
  10748. }
  10749. /**
  10750. * Generate captcha image html tag
  10751. *
  10752. * @param null $config
  10753. * @return string
  10754. * @static
  10755. */
  10756. public static function img($config = null)
  10757. {
  10758. return \Mews\Captcha\Captcha::img($config);
  10759. }
  10760. }
  10761. }
  10762. namespace Jenssegers\Agent\Facades {
  10763. class Agent {
  10764. /**
  10765. * Get all detection rules. These rules include the additional
  10766. * platforms and browsers.
  10767. *
  10768. * @return array
  10769. * @static
  10770. */
  10771. public static function getDetectionRulesExtended()
  10772. {
  10773. return \Jenssegers\Agent\Agent::getDetectionRulesExtended();
  10774. }
  10775. /**
  10776. *
  10777. *
  10778. * @inheritdoc
  10779. * @static
  10780. */
  10781. public static function getRules()
  10782. {
  10783. return \Jenssegers\Agent\Agent::getRules();
  10784. }
  10785. /**
  10786. *
  10787. *
  10788. * @return \Jenssegers\Agent\CrawlerDetect
  10789. * @static
  10790. */
  10791. public static function getCrawlerDetect()
  10792. {
  10793. return \Jenssegers\Agent\Agent::getCrawlerDetect();
  10794. }
  10795. /**
  10796. * Get accept languages.
  10797. *
  10798. * @param string $acceptLanguage
  10799. * @return array
  10800. * @static
  10801. */
  10802. public static function languages($acceptLanguage = null)
  10803. {
  10804. return \Jenssegers\Agent\Agent::languages($acceptLanguage);
  10805. }
  10806. /**
  10807. * Get the browser name.
  10808. *
  10809. * @param null $userAgent
  10810. * @return string
  10811. * @static
  10812. */
  10813. public static function browser($userAgent = null)
  10814. {
  10815. return \Jenssegers\Agent\Agent::browser($userAgent);
  10816. }
  10817. /**
  10818. * Get the platform name.
  10819. *
  10820. * @param string $userAgent
  10821. * @return string
  10822. * @static
  10823. */
  10824. public static function platform($userAgent = null)
  10825. {
  10826. return \Jenssegers\Agent\Agent::platform($userAgent);
  10827. }
  10828. /**
  10829. * Get the device name.
  10830. *
  10831. * @param string $userAgent
  10832. * @return string
  10833. * @static
  10834. */
  10835. public static function device($userAgent = null)
  10836. {
  10837. return \Jenssegers\Agent\Agent::device($userAgent);
  10838. }
  10839. /**
  10840. * Check if the device is a desktop computer.
  10841. *
  10842. * @param string $userAgent deprecated
  10843. * @param array $httpHeaders deprecated
  10844. * @return bool
  10845. * @static
  10846. */
  10847. public static function isDesktop($userAgent = null, $httpHeaders = null)
  10848. {
  10849. return \Jenssegers\Agent\Agent::isDesktop($userAgent, $httpHeaders);
  10850. }
  10851. /**
  10852. * Check if the device is a mobile phone.
  10853. *
  10854. * @param string $userAgent deprecated
  10855. * @param array $httpHeaders deprecated
  10856. * @return bool
  10857. * @static
  10858. */
  10859. public static function isPhone($userAgent = null, $httpHeaders = null)
  10860. {
  10861. return \Jenssegers\Agent\Agent::isPhone($userAgent, $httpHeaders);
  10862. }
  10863. /**
  10864. * Get the robot name.
  10865. *
  10866. * @param string $userAgent
  10867. * @return string|bool
  10868. * @static
  10869. */
  10870. public static function robot($userAgent = null)
  10871. {
  10872. return \Jenssegers\Agent\Agent::robot($userAgent);
  10873. }
  10874. /**
  10875. * Check if device is a robot.
  10876. *
  10877. * @param string $userAgent
  10878. * @return bool
  10879. * @static
  10880. */
  10881. public static function isRobot($userAgent = null)
  10882. {
  10883. return \Jenssegers\Agent\Agent::isRobot($userAgent);
  10884. }
  10885. /**
  10886. *
  10887. *
  10888. * @inheritdoc
  10889. * @static
  10890. */
  10891. public static function version($propertyName, $type = 'text')
  10892. {
  10893. return \Jenssegers\Agent\Agent::version($propertyName, $type);
  10894. }
  10895. /**
  10896. * Get the current script version.
  10897. *
  10898. * This is useful for the demo.php file,
  10899. * so people can check on what version they are testing
  10900. * for mobile devices.
  10901. *
  10902. * @return string The version number in semantic version format.
  10903. * @static
  10904. */
  10905. public static function getScriptVersion()
  10906. {
  10907. //Method inherited from \Mobile_Detect
  10908. return \Jenssegers\Agent\Agent::getScriptVersion();
  10909. }
  10910. /**
  10911. * Set the HTTP Headers. Must be PHP-flavored. This method will reset existing headers.
  10912. *
  10913. * @param array $httpHeaders The headers to set. If null, then using PHP's _SERVER to extract
  10914. * the headers. The default null is left for backwards compatibility.
  10915. * @static
  10916. */
  10917. public static function setHttpHeaders($httpHeaders = null)
  10918. {
  10919. //Method inherited from \Mobile_Detect
  10920. return \Jenssegers\Agent\Agent::setHttpHeaders($httpHeaders);
  10921. }
  10922. /**
  10923. * Retrieves the HTTP headers.
  10924. *
  10925. * @return array
  10926. * @static
  10927. */
  10928. public static function getHttpHeaders()
  10929. {
  10930. //Method inherited from \Mobile_Detect
  10931. return \Jenssegers\Agent\Agent::getHttpHeaders();
  10932. }
  10933. /**
  10934. * Retrieves a particular header. If it doesn't exist, no exception/error is caused.
  10935. *
  10936. * Simply null is returned.
  10937. *
  10938. * @param string $header The name of the header to retrieve. Can be HTTP compliant such as
  10939. * "User-Agent" or "X-Device-User-Agent" or can be php-esque with the
  10940. * all-caps, HTTP_ prefixed, underscore seperated awesomeness.
  10941. * @return string|null The value of the header.
  10942. * @static
  10943. */
  10944. public static function getHttpHeader($header)
  10945. {
  10946. //Method inherited from \Mobile_Detect
  10947. return \Jenssegers\Agent\Agent::getHttpHeader($header);
  10948. }
  10949. /**
  10950. *
  10951. *
  10952. * @static
  10953. */
  10954. public static function getMobileHeaders()
  10955. {
  10956. //Method inherited from \Mobile_Detect
  10957. return \Jenssegers\Agent\Agent::getMobileHeaders();
  10958. }
  10959. /**
  10960. * Get all possible HTTP headers that
  10961. * can contain the User-Agent string.
  10962. *
  10963. * @return array List of HTTP headers.
  10964. * @static
  10965. */
  10966. public static function getUaHttpHeaders()
  10967. {
  10968. //Method inherited from \Mobile_Detect
  10969. return \Jenssegers\Agent\Agent::getUaHttpHeaders();
  10970. }
  10971. /**
  10972. * Set CloudFront headers
  10973. * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
  10974. *
  10975. * @param array $cfHeaders List of HTTP headers
  10976. * @return boolean If there were CloudFront headers to be set
  10977. * @static
  10978. */
  10979. public static function setCfHeaders($cfHeaders = null)
  10980. {
  10981. //Method inherited from \Mobile_Detect
  10982. return \Jenssegers\Agent\Agent::setCfHeaders($cfHeaders);
  10983. }
  10984. /**
  10985. * Retrieves the cloudfront headers.
  10986. *
  10987. * @return array
  10988. * @static
  10989. */
  10990. public static function getCfHeaders()
  10991. {
  10992. //Method inherited from \Mobile_Detect
  10993. return \Jenssegers\Agent\Agent::getCfHeaders();
  10994. }
  10995. /**
  10996. * Set the User-Agent to be used.
  10997. *
  10998. * @param string $userAgent The user agent string to set.
  10999. * @return string|null
  11000. * @static
  11001. */
  11002. public static function setUserAgent($userAgent = null)
  11003. {
  11004. //Method inherited from \Mobile_Detect
  11005. return \Jenssegers\Agent\Agent::setUserAgent($userAgent);
  11006. }
  11007. /**
  11008. * Retrieve the User-Agent.
  11009. *
  11010. * @return string|null The user agent if it's set.
  11011. * @static
  11012. */
  11013. public static function getUserAgent()
  11014. {
  11015. //Method inherited from \Mobile_Detect
  11016. return \Jenssegers\Agent\Agent::getUserAgent();
  11017. }
  11018. /**
  11019. * Set the detection type. Must be one of self::DETECTION_TYPE_MOBILE or
  11020. * self::DETECTION_TYPE_EXTENDED. Otherwise, nothing is set.
  11021. *
  11022. * @deprecated since version 2.6.9
  11023. * @param string $type The type. Must be a self::DETECTION_TYPE_* constant. The default
  11024. * parameter is null which will default to self::DETECTION_TYPE_MOBILE.
  11025. * @static
  11026. */
  11027. public static function setDetectionType($type = null)
  11028. {
  11029. //Method inherited from \Mobile_Detect
  11030. return \Jenssegers\Agent\Agent::setDetectionType($type);
  11031. }
  11032. /**
  11033. *
  11034. *
  11035. * @static
  11036. */
  11037. public static function getMatchingRegex()
  11038. {
  11039. //Method inherited from \Mobile_Detect
  11040. return \Jenssegers\Agent\Agent::getMatchingRegex();
  11041. }
  11042. /**
  11043. *
  11044. *
  11045. * @static
  11046. */
  11047. public static function getMatchesArray()
  11048. {
  11049. //Method inherited from \Mobile_Detect
  11050. return \Jenssegers\Agent\Agent::getMatchesArray();
  11051. }
  11052. /**
  11053. * Retrieve the list of known phone devices.
  11054. *
  11055. * @return array List of phone devices.
  11056. * @static
  11057. */
  11058. public static function getPhoneDevices()
  11059. {
  11060. //Method inherited from \Mobile_Detect
  11061. return \Jenssegers\Agent\Agent::getPhoneDevices();
  11062. }
  11063. /**
  11064. * Retrieve the list of known tablet devices.
  11065. *
  11066. * @return array List of tablet devices.
  11067. * @static
  11068. */
  11069. public static function getTabletDevices()
  11070. {
  11071. //Method inherited from \Mobile_Detect
  11072. return \Jenssegers\Agent\Agent::getTabletDevices();
  11073. }
  11074. /**
  11075. * Alias for getBrowsers() method.
  11076. *
  11077. * @return array List of user agents.
  11078. * @static
  11079. */
  11080. public static function getUserAgents()
  11081. {
  11082. //Method inherited from \Mobile_Detect
  11083. return \Jenssegers\Agent\Agent::getUserAgents();
  11084. }
  11085. /**
  11086. * Retrieve the list of known browsers. Specifically, the user agents.
  11087. *
  11088. * @return array List of browsers / user agents.
  11089. * @static
  11090. */
  11091. public static function getBrowsers()
  11092. {
  11093. //Method inherited from \Mobile_Detect
  11094. return \Jenssegers\Agent\Agent::getBrowsers();
  11095. }
  11096. /**
  11097. * Retrieve the list of known utilities.
  11098. *
  11099. * @return array List of utilities.
  11100. * @static
  11101. */
  11102. public static function getUtilities()
  11103. {
  11104. //Method inherited from \Mobile_Detect
  11105. return \Jenssegers\Agent\Agent::getUtilities();
  11106. }
  11107. /**
  11108. * Method gets the mobile detection rules. This method is used for the magic methods $detect->is*().
  11109. *
  11110. * @deprecated since version 2.6.9
  11111. * @return array All the rules (but not extended).
  11112. * @static
  11113. */
  11114. public static function getMobileDetectionRules()
  11115. {
  11116. //Method inherited from \Mobile_Detect
  11117. return \Jenssegers\Agent\Agent::getMobileDetectionRules();
  11118. }
  11119. /**
  11120. * Method gets the mobile detection rules + utilities.
  11121. *
  11122. * The reason this is separate is because utilities rules
  11123. * don't necessary imply mobile. This method is used inside
  11124. * the new $detect->is('stuff') method.
  11125. *
  11126. * @deprecated since version 2.6.9
  11127. * @return array All the rules + extended.
  11128. * @static
  11129. */
  11130. public static function getMobileDetectionRulesExtended()
  11131. {
  11132. //Method inherited from \Mobile_Detect
  11133. return \Jenssegers\Agent\Agent::getMobileDetectionRulesExtended();
  11134. }
  11135. /**
  11136. * Retrieve the list of mobile operating systems.
  11137. *
  11138. * @return array The list of mobile operating systems.
  11139. * @static
  11140. */
  11141. public static function getOperatingSystems()
  11142. {
  11143. //Method inherited from \Mobile_Detect
  11144. return \Jenssegers\Agent\Agent::getOperatingSystems();
  11145. }
  11146. /**
  11147. * Check the HTTP headers for signs of mobile.
  11148. *
  11149. * This is the fastest mobile check possible; it's used
  11150. * inside isMobile() method.
  11151. *
  11152. * @return bool
  11153. * @static
  11154. */
  11155. public static function checkHttpHeadersForMobile()
  11156. {
  11157. //Method inherited from \Mobile_Detect
  11158. return \Jenssegers\Agent\Agent::checkHttpHeadersForMobile();
  11159. }
  11160. /**
  11161. * Check if the device is mobile.
  11162. *
  11163. * Returns true if any type of mobile device detected, including special ones
  11164. *
  11165. * @param null $userAgent deprecated
  11166. * @param null $httpHeaders deprecated
  11167. * @return bool
  11168. * @static
  11169. */
  11170. public static function isMobile($userAgent = null, $httpHeaders = null)
  11171. {
  11172. //Method inherited from \Mobile_Detect
  11173. return \Jenssegers\Agent\Agent::isMobile($userAgent, $httpHeaders);
  11174. }
  11175. /**
  11176. * Check if the device is a tablet.
  11177. *
  11178. * Return true if any type of tablet device is detected.
  11179. *
  11180. * @param string $userAgent deprecated
  11181. * @param array $httpHeaders deprecated
  11182. * @return bool
  11183. * @static
  11184. */
  11185. public static function isTablet($userAgent = null, $httpHeaders = null)
  11186. {
  11187. //Method inherited from \Mobile_Detect
  11188. return \Jenssegers\Agent\Agent::isTablet($userAgent, $httpHeaders);
  11189. }
  11190. /**
  11191. * This method checks for a certain property in the
  11192. * userAgent.
  11193. *
  11194. * @todo : The httpHeaders part is not yet used.
  11195. * @param string $key
  11196. * @param string $userAgent deprecated
  11197. * @param string $httpHeaders deprecated
  11198. * @return bool|int|null
  11199. * @static
  11200. */
  11201. public static function is($key, $userAgent = null, $httpHeaders = null)
  11202. {
  11203. //Method inherited from \Mobile_Detect
  11204. return \Jenssegers\Agent\Agent::is($key, $userAgent, $httpHeaders);
  11205. }
  11206. /**
  11207. * Some detection rules are relative (not standard),
  11208. * because of the diversity of devices, vendors and
  11209. * their conventions in representing the User-Agent or
  11210. * the HTTP headers.
  11211. *
  11212. * This method will be used to check custom regexes against
  11213. * the User-Agent string.
  11214. *
  11215. * @param $regex
  11216. * @param string $userAgent
  11217. * @return bool
  11218. * @todo : search in the HTTP headers too.
  11219. * @static
  11220. */
  11221. public static function match($regex, $userAgent = null)
  11222. {
  11223. //Method inherited from \Mobile_Detect
  11224. return \Jenssegers\Agent\Agent::match($regex, $userAgent);
  11225. }
  11226. /**
  11227. * Get the properties array.
  11228. *
  11229. * @return array
  11230. * @static
  11231. */
  11232. public static function getProperties()
  11233. {
  11234. //Method inherited from \Mobile_Detect
  11235. return \Jenssegers\Agent\Agent::getProperties();
  11236. }
  11237. /**
  11238. * Prepare the version number.
  11239. *
  11240. * @todo Remove the error supression from str_replace() call.
  11241. * @param string $ver The string version, like "2.6.21.2152";
  11242. * @return float
  11243. * @static
  11244. */
  11245. public static function prepareVersionNo($ver)
  11246. {
  11247. //Method inherited from \Mobile_Detect
  11248. return \Jenssegers\Agent\Agent::prepareVersionNo($ver);
  11249. }
  11250. /**
  11251. * Retrieve the mobile grading, using self::MOBILE_GRADE_* constants.
  11252. *
  11253. * @return string One of the self::MOBILE_GRADE_* constants.
  11254. * @static
  11255. */
  11256. public static function mobileGrade()
  11257. {
  11258. //Method inherited from \Mobile_Detect
  11259. return \Jenssegers\Agent\Agent::mobileGrade();
  11260. }
  11261. }
  11262. }
  11263. namespace {
  11264. class App extends \Illuminate\Support\Facades\App {}
  11265. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  11266. class Auth extends \Illuminate\Support\Facades\Auth {}
  11267. class Blade extends \Illuminate\Support\Facades\Blade {}
  11268. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  11269. class Bus extends \Illuminate\Support\Facades\Bus {}
  11270. class Cache extends \Illuminate\Support\Facades\Cache {}
  11271. class Config extends \Illuminate\Support\Facades\Config {}
  11272. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  11273. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  11274. class DB extends \Illuminate\Support\Facades\DB {}
  11275. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  11276. /**
  11277. * Create and return an un-saved model instance.
  11278. *
  11279. * @param array $attributes
  11280. * @return \Illuminate\Database\Eloquent\Model
  11281. * @static
  11282. */
  11283. public static function make($attributes = array())
  11284. {
  11285. return \Illuminate\Database\Eloquent\Builder::make($attributes);
  11286. }
  11287. /**
  11288. * Register a new global scope.
  11289. *
  11290. * @param string $identifier
  11291. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  11292. * @return $this
  11293. * @static
  11294. */
  11295. public static function withGlobalScope($identifier, $scope)
  11296. {
  11297. return \Illuminate\Database\Eloquent\Builder::withGlobalScope($identifier, $scope);
  11298. }
  11299. /**
  11300. * Remove a registered global scope.
  11301. *
  11302. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  11303. * @return $this
  11304. * @static
  11305. */
  11306. public static function withoutGlobalScope($scope)
  11307. {
  11308. return \Illuminate\Database\Eloquent\Builder::withoutGlobalScope($scope);
  11309. }
  11310. /**
  11311. * Remove all or passed registered global scopes.
  11312. *
  11313. * @param array|null $scopes
  11314. * @return $this
  11315. * @static
  11316. */
  11317. public static function withoutGlobalScopes($scopes = null)
  11318. {
  11319. return \Illuminate\Database\Eloquent\Builder::withoutGlobalScopes($scopes);
  11320. }
  11321. /**
  11322. * Get an array of global scopes that were removed from the query.
  11323. *
  11324. * @return array
  11325. * @static
  11326. */
  11327. public static function removedScopes()
  11328. {
  11329. return \Illuminate\Database\Eloquent\Builder::removedScopes();
  11330. }
  11331. /**
  11332. * Add a where clause on the primary key to the query.
  11333. *
  11334. * @param mixed $id
  11335. * @return $this
  11336. * @static
  11337. */
  11338. public static function whereKey($id)
  11339. {
  11340. return \Illuminate\Database\Eloquent\Builder::whereKey($id);
  11341. }
  11342. /**
  11343. * Add a basic where clause to the query.
  11344. *
  11345. * @param string|array|\Closure $column
  11346. * @param string $operator
  11347. * @param mixed $value
  11348. * @param string $boolean
  11349. * @return $this
  11350. * @static
  11351. */
  11352. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  11353. {
  11354. return \Illuminate\Database\Eloquent\Builder::where($column, $operator, $value, $boolean);
  11355. }
  11356. /**
  11357. * Add an "or where" clause to the query.
  11358. *
  11359. * @param string|\Closure $column
  11360. * @param string $operator
  11361. * @param mixed $value
  11362. * @return \Illuminate\Database\Eloquent\Builder|static
  11363. * @static
  11364. */
  11365. public static function orWhere($column, $operator = null, $value = null)
  11366. {
  11367. return \Illuminate\Database\Eloquent\Builder::orWhere($column, $operator, $value);
  11368. }
  11369. /**
  11370. * Create a collection of models from plain arrays.
  11371. *
  11372. * @param array $items
  11373. * @return \Illuminate\Database\Eloquent\Collection
  11374. * @static
  11375. */
  11376. public static function hydrate($items)
  11377. {
  11378. return \Illuminate\Database\Eloquent\Builder::hydrate($items);
  11379. }
  11380. /**
  11381. * Create a collection of models from a raw query.
  11382. *
  11383. * @param string $query
  11384. * @param array $bindings
  11385. * @return \Illuminate\Database\Eloquent\Collection
  11386. * @static
  11387. */
  11388. public static function fromQuery($query, $bindings = array())
  11389. {
  11390. return \Illuminate\Database\Eloquent\Builder::fromQuery($query, $bindings);
  11391. }
  11392. /**
  11393. * Find a model by its primary key.
  11394. *
  11395. * @param mixed $id
  11396. * @param array $columns
  11397. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  11398. * @static
  11399. */
  11400. public static function find($id, $columns = array())
  11401. {
  11402. return \Illuminate\Database\Eloquent\Builder::find($id, $columns);
  11403. }
  11404. /**
  11405. * Find multiple models by their primary keys.
  11406. *
  11407. * @param array $ids
  11408. * @param array $columns
  11409. * @return \Illuminate\Database\Eloquent\Collection
  11410. * @static
  11411. */
  11412. public static function findMany($ids, $columns = array())
  11413. {
  11414. return \Illuminate\Database\Eloquent\Builder::findMany($ids, $columns);
  11415. }
  11416. /**
  11417. * Find a model by its primary key or throw an exception.
  11418. *
  11419. * @param mixed $id
  11420. * @param array $columns
  11421. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
  11422. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  11423. * @static
  11424. */
  11425. public static function findOrFail($id, $columns = array())
  11426. {
  11427. return \Illuminate\Database\Eloquent\Builder::findOrFail($id, $columns);
  11428. }
  11429. /**
  11430. * Find a model by its primary key or return fresh model instance.
  11431. *
  11432. * @param mixed $id
  11433. * @param array $columns
  11434. * @return \Illuminate\Database\Eloquent\Model
  11435. * @static
  11436. */
  11437. public static function findOrNew($id, $columns = array())
  11438. {
  11439. return \Illuminate\Database\Eloquent\Builder::findOrNew($id, $columns);
  11440. }
  11441. /**
  11442. * Get the first record matching the attributes or instantiate it.
  11443. *
  11444. * @param array $attributes
  11445. * @param array $values
  11446. * @return \Illuminate\Database\Eloquent\Model
  11447. * @static
  11448. */
  11449. public static function firstOrNew($attributes, $values = array())
  11450. {
  11451. return \Illuminate\Database\Eloquent\Builder::firstOrNew($attributes, $values);
  11452. }
  11453. /**
  11454. * Get the first record matching the attributes or create it.
  11455. *
  11456. * @param array $attributes
  11457. * @param array $values
  11458. * @return \Illuminate\Database\Eloquent\Model
  11459. * @static
  11460. */
  11461. public static function firstOrCreate($attributes, $values = array())
  11462. {
  11463. return \Illuminate\Database\Eloquent\Builder::firstOrCreate($attributes, $values);
  11464. }
  11465. /**
  11466. * Create or update a record matching the attributes, and fill it with values.
  11467. *
  11468. * @param array $attributes
  11469. * @param array $values
  11470. * @return \Illuminate\Database\Eloquent\Model
  11471. * @static
  11472. */
  11473. public static function updateOrCreate($attributes, $values = array())
  11474. {
  11475. return \Illuminate\Database\Eloquent\Builder::updateOrCreate($attributes, $values);
  11476. }
  11477. /**
  11478. * Execute the query and get the first result or throw an exception.
  11479. *
  11480. * @param array $columns
  11481. * @return \Illuminate\Database\Eloquent\Model|static
  11482. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  11483. * @static
  11484. */
  11485. public static function firstOrFail($columns = array())
  11486. {
  11487. return \Illuminate\Database\Eloquent\Builder::firstOrFail($columns);
  11488. }
  11489. /**
  11490. * Execute the query and get the first result or call a callback.
  11491. *
  11492. * @param \Closure|array $columns
  11493. * @param \Closure|null $callback
  11494. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  11495. * @static
  11496. */
  11497. public static function firstOr($columns = array(), $callback = null)
  11498. {
  11499. return \Illuminate\Database\Eloquent\Builder::firstOr($columns, $callback);
  11500. }
  11501. /**
  11502. * Get a single column's value from the first result of a query.
  11503. *
  11504. * @param string $column
  11505. * @return mixed
  11506. * @static
  11507. */
  11508. public static function value($column)
  11509. {
  11510. return \Illuminate\Database\Eloquent\Builder::value($column);
  11511. }
  11512. /**
  11513. * Execute the query as a "select" statement.
  11514. *
  11515. * @param array $columns
  11516. * @return \Illuminate\Database\Eloquent\Collection|static[]
  11517. * @static
  11518. */
  11519. public static function get($columns = array())
  11520. {
  11521. return \Illuminate\Database\Eloquent\Builder::get($columns);
  11522. }
  11523. /**
  11524. * Get the hydrated models without eager loading.
  11525. *
  11526. * @param array $columns
  11527. * @return \Illuminate\Database\Eloquent\Model[]
  11528. * @static
  11529. */
  11530. public static function getModels($columns = array())
  11531. {
  11532. return \Illuminate\Database\Eloquent\Builder::getModels($columns);
  11533. }
  11534. /**
  11535. * Eager load the relationships for the models.
  11536. *
  11537. * @param array $models
  11538. * @return array
  11539. * @static
  11540. */
  11541. public static function eagerLoadRelations($models)
  11542. {
  11543. return \Illuminate\Database\Eloquent\Builder::eagerLoadRelations($models);
  11544. }
  11545. /**
  11546. * Get a generator for the given query.
  11547. *
  11548. * @return \Generator
  11549. * @static
  11550. */
  11551. public static function cursor()
  11552. {
  11553. return \Illuminate\Database\Eloquent\Builder::cursor();
  11554. }
  11555. /**
  11556. * Chunk the results of a query by comparing numeric IDs.
  11557. *
  11558. * @param int $count
  11559. * @param callable $callback
  11560. * @param string $column
  11561. * @param string|null $alias
  11562. * @return bool
  11563. * @static
  11564. */
  11565. public static function chunkById($count, $callback, $column = null, $alias = null)
  11566. {
  11567. return \Illuminate\Database\Eloquent\Builder::chunkById($count, $callback, $column, $alias);
  11568. }
  11569. /**
  11570. * Get an array with the values of a given column.
  11571. *
  11572. * @param string $column
  11573. * @param string|null $key
  11574. * @return \Illuminate\Support\Collection
  11575. * @static
  11576. */
  11577. public static function pluck($column, $key = null)
  11578. {
  11579. return \Illuminate\Database\Eloquent\Builder::pluck($column, $key);
  11580. }
  11581. /**
  11582. * Paginate the given query.
  11583. *
  11584. * @param int $perPage
  11585. * @param array $columns
  11586. * @param string $pageName
  11587. * @param int|null $page
  11588. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  11589. * @throws \InvalidArgumentException
  11590. * @static
  11591. */
  11592. public static function paginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  11593. {
  11594. return \Illuminate\Database\Eloquent\Builder::paginate($perPage, $columns, $pageName, $page);
  11595. }
  11596. /**
  11597. * Paginate the given query into a simple paginator.
  11598. *
  11599. * @param int $perPage
  11600. * @param array $columns
  11601. * @param string $pageName
  11602. * @param int|null $page
  11603. * @return \Illuminate\Contracts\Pagination\Paginator
  11604. * @static
  11605. */
  11606. public static function simplePaginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  11607. {
  11608. return \Illuminate\Database\Eloquent\Builder::simplePaginate($perPage, $columns, $pageName, $page);
  11609. }
  11610. /**
  11611. * Save a new model and return the instance.
  11612. *
  11613. * @param array $attributes
  11614. * @return \Illuminate\Database\Eloquent\Model|$this
  11615. * @static
  11616. */
  11617. public static function create($attributes = array())
  11618. {
  11619. return \Illuminate\Database\Eloquent\Builder::create($attributes);
  11620. }
  11621. /**
  11622. * Save a new model and return the instance. Allow mass-assignment.
  11623. *
  11624. * @param array $attributes
  11625. * @return \Illuminate\Database\Eloquent\Model|$this
  11626. * @static
  11627. */
  11628. public static function forceCreate($attributes)
  11629. {
  11630. return \Illuminate\Database\Eloquent\Builder::forceCreate($attributes);
  11631. }
  11632. /**
  11633. * Register a replacement for the default delete function.
  11634. *
  11635. * @param \Closure $callback
  11636. * @return void
  11637. * @static
  11638. */
  11639. public static function onDelete($callback)
  11640. {
  11641. \Illuminate\Database\Eloquent\Builder::onDelete($callback);
  11642. }
  11643. /**
  11644. * Call the given local model scopes.
  11645. *
  11646. * @param array $scopes
  11647. * @return mixed
  11648. * @static
  11649. */
  11650. public static function scopes($scopes)
  11651. {
  11652. return \Illuminate\Database\Eloquent\Builder::scopes($scopes);
  11653. }
  11654. /**
  11655. * Apply the scopes to the Eloquent builder instance and return it.
  11656. *
  11657. * @return \Illuminate\Database\Eloquent\Builder|static
  11658. * @static
  11659. */
  11660. public static function applyScopes()
  11661. {
  11662. return \Illuminate\Database\Eloquent\Builder::applyScopes();
  11663. }
  11664. /**
  11665. * Prevent the specified relations from being eager loaded.
  11666. *
  11667. * @param mixed $relations
  11668. * @return $this
  11669. * @static
  11670. */
  11671. public static function without($relations)
  11672. {
  11673. return \Illuminate\Database\Eloquent\Builder::without($relations);
  11674. }
  11675. /**
  11676. * Create a new instance of the model being queried.
  11677. *
  11678. * @param array $attributes
  11679. * @return \Illuminate\Database\Eloquent\Model
  11680. * @static
  11681. */
  11682. public static function newModelInstance($attributes = array())
  11683. {
  11684. return \Illuminate\Database\Eloquent\Builder::newModelInstance($attributes);
  11685. }
  11686. /**
  11687. * Get the underlying query builder instance.
  11688. *
  11689. * @return \Illuminate\Database\Query\Builder
  11690. * @static
  11691. */
  11692. public static function getQuery()
  11693. {
  11694. return \Illuminate\Database\Eloquent\Builder::getQuery();
  11695. }
  11696. /**
  11697. * Set the underlying query builder instance.
  11698. *
  11699. * @param \Illuminate\Database\Query\Builder $query
  11700. * @return $this
  11701. * @static
  11702. */
  11703. public static function setQuery($query)
  11704. {
  11705. return \Illuminate\Database\Eloquent\Builder::setQuery($query);
  11706. }
  11707. /**
  11708. * Get a base query builder instance.
  11709. *
  11710. * @return \Illuminate\Database\Query\Builder
  11711. * @static
  11712. */
  11713. public static function toBase()
  11714. {
  11715. return \Illuminate\Database\Eloquent\Builder::toBase();
  11716. }
  11717. /**
  11718. * Get the relationships being eagerly loaded.
  11719. *
  11720. * @return array
  11721. * @static
  11722. */
  11723. public static function getEagerLoads()
  11724. {
  11725. return \Illuminate\Database\Eloquent\Builder::getEagerLoads();
  11726. }
  11727. /**
  11728. * Set the relationships being eagerly loaded.
  11729. *
  11730. * @param array $eagerLoad
  11731. * @return $this
  11732. * @static
  11733. */
  11734. public static function setEagerLoads($eagerLoad)
  11735. {
  11736. return \Illuminate\Database\Eloquent\Builder::setEagerLoads($eagerLoad);
  11737. }
  11738. /**
  11739. * Get the model instance being queried.
  11740. *
  11741. * @return \Illuminate\Database\Eloquent\Model
  11742. * @static
  11743. */
  11744. public static function getModel()
  11745. {
  11746. return \Illuminate\Database\Eloquent\Builder::getModel();
  11747. }
  11748. /**
  11749. * Set a model instance for the model being queried.
  11750. *
  11751. * @param \Illuminate\Database\Eloquent\Model $model
  11752. * @return $this
  11753. * @static
  11754. */
  11755. public static function setModel($model)
  11756. {
  11757. return \Illuminate\Database\Eloquent\Builder::setModel($model);
  11758. }
  11759. /**
  11760. * Get the given macro by name.
  11761. *
  11762. * @param string $name
  11763. * @return \Closure
  11764. * @static
  11765. */
  11766. public static function getMacro($name)
  11767. {
  11768. return \Illuminate\Database\Eloquent\Builder::getMacro($name);
  11769. }
  11770. /**
  11771. * Chunk the results of the query.
  11772. *
  11773. * @param int $count
  11774. * @param callable $callback
  11775. * @return bool
  11776. * @static
  11777. */
  11778. public static function chunk($count, $callback)
  11779. {
  11780. return \Illuminate\Database\Eloquent\Builder::chunk($count, $callback);
  11781. }
  11782. /**
  11783. * Execute a callback over each item while chunking.
  11784. *
  11785. * @param callable $callback
  11786. * @param int $count
  11787. * @return bool
  11788. * @static
  11789. */
  11790. public static function each($callback, $count = 1000)
  11791. {
  11792. return \Illuminate\Database\Eloquent\Builder::each($callback, $count);
  11793. }
  11794. /**
  11795. * Execute the query and get the first result.
  11796. *
  11797. * @param array $columns
  11798. * @return mixed
  11799. * @static
  11800. */
  11801. public static function first($columns = array())
  11802. {
  11803. return \Illuminate\Database\Eloquent\Builder::first($columns);
  11804. }
  11805. /**
  11806. * Apply the callback's query changes if the given "value" is true.
  11807. *
  11808. * @param mixed $value
  11809. * @param callable $callback
  11810. * @param callable $default
  11811. * @return mixed
  11812. * @static
  11813. */
  11814. public static function when($value, $callback, $default = null)
  11815. {
  11816. return \Illuminate\Database\Eloquent\Builder::when($value, $callback, $default);
  11817. }
  11818. /**
  11819. * Apply the callback's query changes if the given "value" is false.
  11820. *
  11821. * @param mixed $value
  11822. * @param callable $callback
  11823. * @param callable $default
  11824. * @return mixed
  11825. * @static
  11826. */
  11827. public static function unless($value, $callback, $default = null)
  11828. {
  11829. return \Illuminate\Database\Eloquent\Builder::unless($value, $callback, $default);
  11830. }
  11831. /**
  11832. * Add a relationship count / exists condition to the query.
  11833. *
  11834. * @param string $relation
  11835. * @param string $operator
  11836. * @param int $count
  11837. * @param string $boolean
  11838. * @param \Closure|null $callback
  11839. * @return \Illuminate\Database\Eloquent\Builder|static
  11840. * @static
  11841. */
  11842. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  11843. {
  11844. return \Illuminate\Database\Eloquent\Builder::has($relation, $operator, $count, $boolean, $callback);
  11845. }
  11846. /**
  11847. * Add a relationship count / exists condition to the query with an "or".
  11848. *
  11849. * @param string $relation
  11850. * @param string $operator
  11851. * @param int $count
  11852. * @return \Illuminate\Database\Eloquent\Builder|static
  11853. * @static
  11854. */
  11855. public static function orHas($relation, $operator = '>=', $count = 1)
  11856. {
  11857. return \Illuminate\Database\Eloquent\Builder::orHas($relation, $operator, $count);
  11858. }
  11859. /**
  11860. * Add a relationship count / exists condition to the query.
  11861. *
  11862. * @param string $relation
  11863. * @param string $boolean
  11864. * @param \Closure|null $callback
  11865. * @return \Illuminate\Database\Eloquent\Builder|static
  11866. * @static
  11867. */
  11868. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  11869. {
  11870. return \Illuminate\Database\Eloquent\Builder::doesntHave($relation, $boolean, $callback);
  11871. }
  11872. /**
  11873. * Add a relationship count / exists condition to the query with where clauses.
  11874. *
  11875. * @param string $relation
  11876. * @param \Closure|null $callback
  11877. * @param string $operator
  11878. * @param int $count
  11879. * @return \Illuminate\Database\Eloquent\Builder|static
  11880. * @static
  11881. */
  11882. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  11883. {
  11884. return \Illuminate\Database\Eloquent\Builder::whereHas($relation, $callback, $operator, $count);
  11885. }
  11886. /**
  11887. * Add a relationship count / exists condition to the query with where clauses and an "or".
  11888. *
  11889. * @param string $relation
  11890. * @param \Closure $callback
  11891. * @param string $operator
  11892. * @param int $count
  11893. * @return \Illuminate\Database\Eloquent\Builder|static
  11894. * @static
  11895. */
  11896. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  11897. {
  11898. return \Illuminate\Database\Eloquent\Builder::orWhereHas($relation, $callback, $operator, $count);
  11899. }
  11900. /**
  11901. * Add a relationship count / exists condition to the query with where clauses.
  11902. *
  11903. * @param string $relation
  11904. * @param \Closure|null $callback
  11905. * @return \Illuminate\Database\Eloquent\Builder|static
  11906. * @static
  11907. */
  11908. public static function whereDoesntHave($relation, $callback = null)
  11909. {
  11910. return \Illuminate\Database\Eloquent\Builder::whereDoesntHave($relation, $callback);
  11911. }
  11912. /**
  11913. * Add subselect queries to count the relations.
  11914. *
  11915. * @param mixed $relations
  11916. * @return $this
  11917. * @static
  11918. */
  11919. public static function withCount($relations)
  11920. {
  11921. return \Illuminate\Database\Eloquent\Builder::withCount($relations);
  11922. }
  11923. /**
  11924. * Merge the where constraints from another query to the current query.
  11925. *
  11926. * @param \Illuminate\Database\Eloquent\Builder $from
  11927. * @return \Illuminate\Database\Eloquent\Builder|static
  11928. * @static
  11929. */
  11930. public static function mergeConstraintsFrom($from)
  11931. {
  11932. return \Illuminate\Database\Eloquent\Builder::mergeConstraintsFrom($from);
  11933. }
  11934. /**
  11935. * Set the columns to be selected.
  11936. *
  11937. * @param array|mixed $columns
  11938. * @return $this
  11939. * @static
  11940. */
  11941. public static function select($columns = array())
  11942. {
  11943. return \Illuminate\Database\Query\Builder::select($columns);
  11944. }
  11945. /**
  11946. * Add a new "raw" select expression to the query.
  11947. *
  11948. * @param string $expression
  11949. * @param array $bindings
  11950. * @return \Illuminate\Database\Query\Builder|static
  11951. * @static
  11952. */
  11953. public static function selectRaw($expression, $bindings = array())
  11954. {
  11955. return \Illuminate\Database\Query\Builder::selectRaw($expression, $bindings);
  11956. }
  11957. /**
  11958. * Add a subselect expression to the query.
  11959. *
  11960. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  11961. * @param string $as
  11962. * @return \Illuminate\Database\Query\Builder|static
  11963. * @throws \InvalidArgumentException
  11964. * @static
  11965. */
  11966. public static function selectSub($query, $as)
  11967. {
  11968. return \Illuminate\Database\Query\Builder::selectSub($query, $as);
  11969. }
  11970. /**
  11971. * Add a new select column to the query.
  11972. *
  11973. * @param array|mixed $column
  11974. * @return $this
  11975. * @static
  11976. */
  11977. public static function addSelect($column)
  11978. {
  11979. return \Illuminate\Database\Query\Builder::addSelect($column);
  11980. }
  11981. /**
  11982. * Force the query to only return distinct results.
  11983. *
  11984. * @return $this
  11985. * @static
  11986. */
  11987. public static function distinct()
  11988. {
  11989. return \Illuminate\Database\Query\Builder::distinct();
  11990. }
  11991. /**
  11992. * Set the table which the query is targeting.
  11993. *
  11994. * @param string $table
  11995. * @return $this
  11996. * @static
  11997. */
  11998. public static function from($table)
  11999. {
  12000. return \Illuminate\Database\Query\Builder::from($table);
  12001. }
  12002. /**
  12003. * Add a join clause to the query.
  12004. *
  12005. * @param string $table
  12006. * @param string $first
  12007. * @param string $operator
  12008. * @param string $second
  12009. * @param string $type
  12010. * @param bool $where
  12011. * @return $this
  12012. * @static
  12013. */
  12014. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  12015. {
  12016. return \Illuminate\Database\Query\Builder::join($table, $first, $operator, $second, $type, $where);
  12017. }
  12018. /**
  12019. * Add a "join where" clause to the query.
  12020. *
  12021. * @param string $table
  12022. * @param string $first
  12023. * @param string $operator
  12024. * @param string $second
  12025. * @param string $type
  12026. * @return \Illuminate\Database\Query\Builder|static
  12027. * @static
  12028. */
  12029. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  12030. {
  12031. return \Illuminate\Database\Query\Builder::joinWhere($table, $first, $operator, $second, $type);
  12032. }
  12033. /**
  12034. * Add a left join to the query.
  12035. *
  12036. * @param string $table
  12037. * @param string $first
  12038. * @param string $operator
  12039. * @param string $second
  12040. * @return \Illuminate\Database\Query\Builder|static
  12041. * @static
  12042. */
  12043. public static function leftJoin($table, $first, $operator = null, $second = null)
  12044. {
  12045. return \Illuminate\Database\Query\Builder::leftJoin($table, $first, $operator, $second);
  12046. }
  12047. /**
  12048. * Add a "join where" clause to the query.
  12049. *
  12050. * @param string $table
  12051. * @param string $first
  12052. * @param string $operator
  12053. * @param string $second
  12054. * @return \Illuminate\Database\Query\Builder|static
  12055. * @static
  12056. */
  12057. public static function leftJoinWhere($table, $first, $operator, $second)
  12058. {
  12059. return \Illuminate\Database\Query\Builder::leftJoinWhere($table, $first, $operator, $second);
  12060. }
  12061. /**
  12062. * Add a right join to the query.
  12063. *
  12064. * @param string $table
  12065. * @param string $first
  12066. * @param string $operator
  12067. * @param string $second
  12068. * @return \Illuminate\Database\Query\Builder|static
  12069. * @static
  12070. */
  12071. public static function rightJoin($table, $first, $operator = null, $second = null)
  12072. {
  12073. return \Illuminate\Database\Query\Builder::rightJoin($table, $first, $operator, $second);
  12074. }
  12075. /**
  12076. * Add a "right join where" clause to the query.
  12077. *
  12078. * @param string $table
  12079. * @param string $first
  12080. * @param string $operator
  12081. * @param string $second
  12082. * @return \Illuminate\Database\Query\Builder|static
  12083. * @static
  12084. */
  12085. public static function rightJoinWhere($table, $first, $operator, $second)
  12086. {
  12087. return \Illuminate\Database\Query\Builder::rightJoinWhere($table, $first, $operator, $second);
  12088. }
  12089. /**
  12090. * Add a "cross join" clause to the query.
  12091. *
  12092. * @param string $table
  12093. * @param string $first
  12094. * @param string $operator
  12095. * @param string $second
  12096. * @return \Illuminate\Database\Query\Builder|static
  12097. * @static
  12098. */
  12099. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  12100. {
  12101. return \Illuminate\Database\Query\Builder::crossJoin($table, $first, $operator, $second);
  12102. }
  12103. /**
  12104. * Pass the query to a given callback.
  12105. *
  12106. * @param \Closure $callback
  12107. * @return \Illuminate\Database\Query\Builder
  12108. * @static
  12109. */
  12110. public static function tap($callback)
  12111. {
  12112. return \Illuminate\Database\Query\Builder::tap($callback);
  12113. }
  12114. /**
  12115. * Merge an array of where clauses and bindings.
  12116. *
  12117. * @param array $wheres
  12118. * @param array $bindings
  12119. * @return void
  12120. * @static
  12121. */
  12122. public static function mergeWheres($wheres, $bindings)
  12123. {
  12124. \Illuminate\Database\Query\Builder::mergeWheres($wheres, $bindings);
  12125. }
  12126. /**
  12127. * Add a "where" clause comparing two columns to the query.
  12128. *
  12129. * @param string|array $first
  12130. * @param string|null $operator
  12131. * @param string|null $second
  12132. * @param string|null $boolean
  12133. * @return \Illuminate\Database\Query\Builder|static
  12134. * @static
  12135. */
  12136. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  12137. {
  12138. return \Illuminate\Database\Query\Builder::whereColumn($first, $operator, $second, $boolean);
  12139. }
  12140. /**
  12141. * Add an "or where" clause comparing two columns to the query.
  12142. *
  12143. * @param string|array $first
  12144. * @param string|null $operator
  12145. * @param string|null $second
  12146. * @return \Illuminate\Database\Query\Builder|static
  12147. * @static
  12148. */
  12149. public static function orWhereColumn($first, $operator = null, $second = null)
  12150. {
  12151. return \Illuminate\Database\Query\Builder::orWhereColumn($first, $operator, $second);
  12152. }
  12153. /**
  12154. * Add a raw where clause to the query.
  12155. *
  12156. * @param string $sql
  12157. * @param mixed $bindings
  12158. * @param string $boolean
  12159. * @return $this
  12160. * @static
  12161. */
  12162. public static function whereRaw($sql, $bindings = array(), $boolean = 'and')
  12163. {
  12164. return \Illuminate\Database\Query\Builder::whereRaw($sql, $bindings, $boolean);
  12165. }
  12166. /**
  12167. * Add a raw or where clause to the query.
  12168. *
  12169. * @param string $sql
  12170. * @param array $bindings
  12171. * @return \Illuminate\Database\Query\Builder|static
  12172. * @static
  12173. */
  12174. public static function orWhereRaw($sql, $bindings = array())
  12175. {
  12176. return \Illuminate\Database\Query\Builder::orWhereRaw($sql, $bindings);
  12177. }
  12178. /**
  12179. * Add a "where in" clause to the query.
  12180. *
  12181. * @param string $column
  12182. * @param mixed $values
  12183. * @param string $boolean
  12184. * @param bool $not
  12185. * @return $this
  12186. * @static
  12187. */
  12188. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  12189. {
  12190. return \Illuminate\Database\Query\Builder::whereIn($column, $values, $boolean, $not);
  12191. }
  12192. /**
  12193. * Add an "or where in" clause to the query.
  12194. *
  12195. * @param string $column
  12196. * @param mixed $values
  12197. * @return \Illuminate\Database\Query\Builder|static
  12198. * @static
  12199. */
  12200. public static function orWhereIn($column, $values)
  12201. {
  12202. return \Illuminate\Database\Query\Builder::orWhereIn($column, $values);
  12203. }
  12204. /**
  12205. * Add a "where not in" clause to the query.
  12206. *
  12207. * @param string $column
  12208. * @param mixed $values
  12209. * @param string $boolean
  12210. * @return \Illuminate\Database\Query\Builder|static
  12211. * @static
  12212. */
  12213. public static function whereNotIn($column, $values, $boolean = 'and')
  12214. {
  12215. return \Illuminate\Database\Query\Builder::whereNotIn($column, $values, $boolean);
  12216. }
  12217. /**
  12218. * Add an "or where not in" clause to the query.
  12219. *
  12220. * @param string $column
  12221. * @param mixed $values
  12222. * @return \Illuminate\Database\Query\Builder|static
  12223. * @static
  12224. */
  12225. public static function orWhereNotIn($column, $values)
  12226. {
  12227. return \Illuminate\Database\Query\Builder::orWhereNotIn($column, $values);
  12228. }
  12229. /**
  12230. * Add a "where null" clause to the query.
  12231. *
  12232. * @param string $column
  12233. * @param string $boolean
  12234. * @param bool $not
  12235. * @return $this
  12236. * @static
  12237. */
  12238. public static function whereNull($column, $boolean = 'and', $not = false)
  12239. {
  12240. return \Illuminate\Database\Query\Builder::whereNull($column, $boolean, $not);
  12241. }
  12242. /**
  12243. * Add an "or where null" clause to the query.
  12244. *
  12245. * @param string $column
  12246. * @return \Illuminate\Database\Query\Builder|static
  12247. * @static
  12248. */
  12249. public static function orWhereNull($column)
  12250. {
  12251. return \Illuminate\Database\Query\Builder::orWhereNull($column);
  12252. }
  12253. /**
  12254. * Add a "where not null" clause to the query.
  12255. *
  12256. * @param string $column
  12257. * @param string $boolean
  12258. * @return \Illuminate\Database\Query\Builder|static
  12259. * @static
  12260. */
  12261. public static function whereNotNull($column, $boolean = 'and')
  12262. {
  12263. return \Illuminate\Database\Query\Builder::whereNotNull($column, $boolean);
  12264. }
  12265. /**
  12266. * Add a where between statement to the query.
  12267. *
  12268. * @param string $column
  12269. * @param array $values
  12270. * @param string $boolean
  12271. * @param bool $not
  12272. * @return $this
  12273. * @static
  12274. */
  12275. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  12276. {
  12277. return \Illuminate\Database\Query\Builder::whereBetween($column, $values, $boolean, $not);
  12278. }
  12279. /**
  12280. * Add an or where between statement to the query.
  12281. *
  12282. * @param string $column
  12283. * @param array $values
  12284. * @return \Illuminate\Database\Query\Builder|static
  12285. * @static
  12286. */
  12287. public static function orWhereBetween($column, $values)
  12288. {
  12289. return \Illuminate\Database\Query\Builder::orWhereBetween($column, $values);
  12290. }
  12291. /**
  12292. * Add a where not between statement to the query.
  12293. *
  12294. * @param string $column
  12295. * @param array $values
  12296. * @param string $boolean
  12297. * @return \Illuminate\Database\Query\Builder|static
  12298. * @static
  12299. */
  12300. public static function whereNotBetween($column, $values, $boolean = 'and')
  12301. {
  12302. return \Illuminate\Database\Query\Builder::whereNotBetween($column, $values, $boolean);
  12303. }
  12304. /**
  12305. * Add an or where not between statement to the query.
  12306. *
  12307. * @param string $column
  12308. * @param array $values
  12309. * @return \Illuminate\Database\Query\Builder|static
  12310. * @static
  12311. */
  12312. public static function orWhereNotBetween($column, $values)
  12313. {
  12314. return \Illuminate\Database\Query\Builder::orWhereNotBetween($column, $values);
  12315. }
  12316. /**
  12317. * Add an "or where not null" clause to the query.
  12318. *
  12319. * @param string $column
  12320. * @return \Illuminate\Database\Query\Builder|static
  12321. * @static
  12322. */
  12323. public static function orWhereNotNull($column)
  12324. {
  12325. return \Illuminate\Database\Query\Builder::orWhereNotNull($column);
  12326. }
  12327. /**
  12328. * Add a "where date" statement to the query.
  12329. *
  12330. * @param string $column
  12331. * @param string $operator
  12332. * @param mixed $value
  12333. * @param string $boolean
  12334. * @return \Illuminate\Database\Query\Builder|static
  12335. * @static
  12336. */
  12337. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  12338. {
  12339. return \Illuminate\Database\Query\Builder::whereDate($column, $operator, $value, $boolean);
  12340. }
  12341. /**
  12342. * Add an "or where date" statement to the query.
  12343. *
  12344. * @param string $column
  12345. * @param string $operator
  12346. * @param string $value
  12347. * @return \Illuminate\Database\Query\Builder|static
  12348. * @static
  12349. */
  12350. public static function orWhereDate($column, $operator, $value)
  12351. {
  12352. return \Illuminate\Database\Query\Builder::orWhereDate($column, $operator, $value);
  12353. }
  12354. /**
  12355. * Add a "where time" statement to the query.
  12356. *
  12357. * @param string $column
  12358. * @param string $operator
  12359. * @param int $value
  12360. * @param string $boolean
  12361. * @return \Illuminate\Database\Query\Builder|static
  12362. * @static
  12363. */
  12364. public static function whereTime($column, $operator, $value, $boolean = 'and')
  12365. {
  12366. return \Illuminate\Database\Query\Builder::whereTime($column, $operator, $value, $boolean);
  12367. }
  12368. /**
  12369. * Add an "or where time" statement to the query.
  12370. *
  12371. * @param string $column
  12372. * @param string $operator
  12373. * @param int $value
  12374. * @return \Illuminate\Database\Query\Builder|static
  12375. * @static
  12376. */
  12377. public static function orWhereTime($column, $operator, $value)
  12378. {
  12379. return \Illuminate\Database\Query\Builder::orWhereTime($column, $operator, $value);
  12380. }
  12381. /**
  12382. * Add a "where day" statement to the query.
  12383. *
  12384. * @param string $column
  12385. * @param string $operator
  12386. * @param mixed $value
  12387. * @param string $boolean
  12388. * @return \Illuminate\Database\Query\Builder|static
  12389. * @static
  12390. */
  12391. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  12392. {
  12393. return \Illuminate\Database\Query\Builder::whereDay($column, $operator, $value, $boolean);
  12394. }
  12395. /**
  12396. * Add a "where month" statement to the query.
  12397. *
  12398. * @param string $column
  12399. * @param string $operator
  12400. * @param mixed $value
  12401. * @param string $boolean
  12402. * @return \Illuminate\Database\Query\Builder|static
  12403. * @static
  12404. */
  12405. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  12406. {
  12407. return \Illuminate\Database\Query\Builder::whereMonth($column, $operator, $value, $boolean);
  12408. }
  12409. /**
  12410. * Add a "where year" statement to the query.
  12411. *
  12412. * @param string $column
  12413. * @param string $operator
  12414. * @param mixed $value
  12415. * @param string $boolean
  12416. * @return \Illuminate\Database\Query\Builder|static
  12417. * @static
  12418. */
  12419. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  12420. {
  12421. return \Illuminate\Database\Query\Builder::whereYear($column, $operator, $value, $boolean);
  12422. }
  12423. /**
  12424. * Add a nested where statement to the query.
  12425. *
  12426. * @param \Closure $callback
  12427. * @param string $boolean
  12428. * @return \Illuminate\Database\Query\Builder|static
  12429. * @static
  12430. */
  12431. public static function whereNested($callback, $boolean = 'and')
  12432. {
  12433. return \Illuminate\Database\Query\Builder::whereNested($callback, $boolean);
  12434. }
  12435. /**
  12436. * Create a new query instance for nested where condition.
  12437. *
  12438. * @return \Illuminate\Database\Query\Builder
  12439. * @static
  12440. */
  12441. public static function forNestedWhere()
  12442. {
  12443. return \Illuminate\Database\Query\Builder::forNestedWhere();
  12444. }
  12445. /**
  12446. * Add another query builder as a nested where to the query builder.
  12447. *
  12448. * @param \Illuminate\Database\Query\Builder|static $query
  12449. * @param string $boolean
  12450. * @return $this
  12451. * @static
  12452. */
  12453. public static function addNestedWhereQuery($query, $boolean = 'and')
  12454. {
  12455. return \Illuminate\Database\Query\Builder::addNestedWhereQuery($query, $boolean);
  12456. }
  12457. /**
  12458. * Add an exists clause to the query.
  12459. *
  12460. * @param \Closure $callback
  12461. * @param string $boolean
  12462. * @param bool $not
  12463. * @return $this
  12464. * @static
  12465. */
  12466. public static function whereExists($callback, $boolean = 'and', $not = false)
  12467. {
  12468. return \Illuminate\Database\Query\Builder::whereExists($callback, $boolean, $not);
  12469. }
  12470. /**
  12471. * Add an or exists clause to the query.
  12472. *
  12473. * @param \Closure $callback
  12474. * @param bool $not
  12475. * @return \Illuminate\Database\Query\Builder|static
  12476. * @static
  12477. */
  12478. public static function orWhereExists($callback, $not = false)
  12479. {
  12480. return \Illuminate\Database\Query\Builder::orWhereExists($callback, $not);
  12481. }
  12482. /**
  12483. * Add a where not exists clause to the query.
  12484. *
  12485. * @param \Closure $callback
  12486. * @param string $boolean
  12487. * @return \Illuminate\Database\Query\Builder|static
  12488. * @static
  12489. */
  12490. public static function whereNotExists($callback, $boolean = 'and')
  12491. {
  12492. return \Illuminate\Database\Query\Builder::whereNotExists($callback, $boolean);
  12493. }
  12494. /**
  12495. * Add a where not exists clause to the query.
  12496. *
  12497. * @param \Closure $callback
  12498. * @return \Illuminate\Database\Query\Builder|static
  12499. * @static
  12500. */
  12501. public static function orWhereNotExists($callback)
  12502. {
  12503. return \Illuminate\Database\Query\Builder::orWhereNotExists($callback);
  12504. }
  12505. /**
  12506. * Add an exists clause to the query.
  12507. *
  12508. * @param \Illuminate\Database\Query\Builder $query
  12509. * @param string $boolean
  12510. * @param bool $not
  12511. * @return $this
  12512. * @static
  12513. */
  12514. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  12515. {
  12516. return \Illuminate\Database\Query\Builder::addWhereExistsQuery($query, $boolean, $not);
  12517. }
  12518. /**
  12519. * Handles dynamic "where" clauses to the query.
  12520. *
  12521. * @param string $method
  12522. * @param string $parameters
  12523. * @return $this
  12524. * @static
  12525. */
  12526. public static function dynamicWhere($method, $parameters)
  12527. {
  12528. return \Illuminate\Database\Query\Builder::dynamicWhere($method, $parameters);
  12529. }
  12530. /**
  12531. * Add a "group by" clause to the query.
  12532. *
  12533. * @param array $groups
  12534. * @return $this
  12535. * @static
  12536. */
  12537. public static function groupBy($groups = null)
  12538. {
  12539. return \Illuminate\Database\Query\Builder::groupBy($groups);
  12540. }
  12541. /**
  12542. * Add a "having" clause to the query.
  12543. *
  12544. * @param string $column
  12545. * @param string $operator
  12546. * @param string $value
  12547. * @param string $boolean
  12548. * @return $this
  12549. * @static
  12550. */
  12551. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  12552. {
  12553. return \Illuminate\Database\Query\Builder::having($column, $operator, $value, $boolean);
  12554. }
  12555. /**
  12556. * Add a "or having" clause to the query.
  12557. *
  12558. * @param string $column
  12559. * @param string $operator
  12560. * @param string $value
  12561. * @return \Illuminate\Database\Query\Builder|static
  12562. * @static
  12563. */
  12564. public static function orHaving($column, $operator = null, $value = null)
  12565. {
  12566. return \Illuminate\Database\Query\Builder::orHaving($column, $operator, $value);
  12567. }
  12568. /**
  12569. * Add a raw having clause to the query.
  12570. *
  12571. * @param string $sql
  12572. * @param array $bindings
  12573. * @param string $boolean
  12574. * @return $this
  12575. * @static
  12576. */
  12577. public static function havingRaw($sql, $bindings = array(), $boolean = 'and')
  12578. {
  12579. return \Illuminate\Database\Query\Builder::havingRaw($sql, $bindings, $boolean);
  12580. }
  12581. /**
  12582. * Add a raw or having clause to the query.
  12583. *
  12584. * @param string $sql
  12585. * @param array $bindings
  12586. * @return \Illuminate\Database\Query\Builder|static
  12587. * @static
  12588. */
  12589. public static function orHavingRaw($sql, $bindings = array())
  12590. {
  12591. return \Illuminate\Database\Query\Builder::orHavingRaw($sql, $bindings);
  12592. }
  12593. /**
  12594. * Add an "order by" clause to the query.
  12595. *
  12596. * @param string $column
  12597. * @param string $direction
  12598. * @return $this
  12599. * @static
  12600. */
  12601. public static function orderBy($column, $direction = 'asc')
  12602. {
  12603. return \Illuminate\Database\Query\Builder::orderBy($column, $direction);
  12604. }
  12605. /**
  12606. * Add a descending "order by" clause to the query.
  12607. *
  12608. * @param string $column
  12609. * @return $this
  12610. * @static
  12611. */
  12612. public static function orderByDesc($column)
  12613. {
  12614. return \Illuminate\Database\Query\Builder::orderByDesc($column);
  12615. }
  12616. /**
  12617. * Add an "order by" clause for a timestamp to the query.
  12618. *
  12619. * @param string $column
  12620. * @return \Illuminate\Database\Query\Builder|static
  12621. * @static
  12622. */
  12623. public static function latest($column = 'created_at')
  12624. {
  12625. return \Illuminate\Database\Query\Builder::latest($column);
  12626. }
  12627. /**
  12628. * Add an "order by" clause for a timestamp to the query.
  12629. *
  12630. * @param string $column
  12631. * @return \Illuminate\Database\Query\Builder|static
  12632. * @static
  12633. */
  12634. public static function oldest($column = 'created_at')
  12635. {
  12636. return \Illuminate\Database\Query\Builder::oldest($column);
  12637. }
  12638. /**
  12639. * Put the query's results in random order.
  12640. *
  12641. * @param string $seed
  12642. * @return $this
  12643. * @static
  12644. */
  12645. public static function inRandomOrder($seed = '')
  12646. {
  12647. return \Illuminate\Database\Query\Builder::inRandomOrder($seed);
  12648. }
  12649. /**
  12650. * Add a raw "order by" clause to the query.
  12651. *
  12652. * @param string $sql
  12653. * @param array $bindings
  12654. * @return $this
  12655. * @static
  12656. */
  12657. public static function orderByRaw($sql, $bindings = array())
  12658. {
  12659. return \Illuminate\Database\Query\Builder::orderByRaw($sql, $bindings);
  12660. }
  12661. /**
  12662. * Alias to set the "offset" value of the query.
  12663. *
  12664. * @param int $value
  12665. * @return \Illuminate\Database\Query\Builder|static
  12666. * @static
  12667. */
  12668. public static function skip($value)
  12669. {
  12670. return \Illuminate\Database\Query\Builder::skip($value);
  12671. }
  12672. /**
  12673. * Set the "offset" value of the query.
  12674. *
  12675. * @param int $value
  12676. * @return $this
  12677. * @static
  12678. */
  12679. public static function offset($value)
  12680. {
  12681. return \Illuminate\Database\Query\Builder::offset($value);
  12682. }
  12683. /**
  12684. * Alias to set the "limit" value of the query.
  12685. *
  12686. * @param int $value
  12687. * @return \Illuminate\Database\Query\Builder|static
  12688. * @static
  12689. */
  12690. public static function take($value)
  12691. {
  12692. return \Illuminate\Database\Query\Builder::take($value);
  12693. }
  12694. /**
  12695. * Set the "limit" value of the query.
  12696. *
  12697. * @param int $value
  12698. * @return $this
  12699. * @static
  12700. */
  12701. public static function limit($value)
  12702. {
  12703. return \Illuminate\Database\Query\Builder::limit($value);
  12704. }
  12705. /**
  12706. * Set the limit and offset for a given page.
  12707. *
  12708. * @param int $page
  12709. * @param int $perPage
  12710. * @return \Illuminate\Database\Query\Builder|static
  12711. * @static
  12712. */
  12713. public static function forPage($page, $perPage = 15)
  12714. {
  12715. return \Illuminate\Database\Query\Builder::forPage($page, $perPage);
  12716. }
  12717. /**
  12718. * Constrain the query to the next "page" of results after a given ID.
  12719. *
  12720. * @param int $perPage
  12721. * @param int $lastId
  12722. * @param string $column
  12723. * @return \Illuminate\Database\Query\Builder|static
  12724. * @static
  12725. */
  12726. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  12727. {
  12728. return \Illuminate\Database\Query\Builder::forPageAfterId($perPage, $lastId, $column);
  12729. }
  12730. /**
  12731. * Add a union statement to the query.
  12732. *
  12733. * @param \Illuminate\Database\Query\Builder|\Closure $query
  12734. * @param bool $all
  12735. * @return \Illuminate\Database\Query\Builder|static
  12736. * @static
  12737. */
  12738. public static function union($query, $all = false)
  12739. {
  12740. return \Illuminate\Database\Query\Builder::union($query, $all);
  12741. }
  12742. /**
  12743. * Add a union all statement to the query.
  12744. *
  12745. * @param \Illuminate\Database\Query\Builder|\Closure $query
  12746. * @return \Illuminate\Database\Query\Builder|static
  12747. * @static
  12748. */
  12749. public static function unionAll($query)
  12750. {
  12751. return \Illuminate\Database\Query\Builder::unionAll($query);
  12752. }
  12753. /**
  12754. * Lock the selected rows in the table.
  12755. *
  12756. * @param string|bool $value
  12757. * @return $this
  12758. * @static
  12759. */
  12760. public static function lock($value = true)
  12761. {
  12762. return \Illuminate\Database\Query\Builder::lock($value);
  12763. }
  12764. /**
  12765. * Lock the selected rows in the table for updating.
  12766. *
  12767. * @return \Illuminate\Database\Query\Builder
  12768. * @static
  12769. */
  12770. public static function lockForUpdate()
  12771. {
  12772. return \Illuminate\Database\Query\Builder::lockForUpdate();
  12773. }
  12774. /**
  12775. * Share lock the selected rows in the table.
  12776. *
  12777. * @return \Illuminate\Database\Query\Builder
  12778. * @static
  12779. */
  12780. public static function sharedLock()
  12781. {
  12782. return \Illuminate\Database\Query\Builder::sharedLock();
  12783. }
  12784. /**
  12785. * Get the SQL representation of the query.
  12786. *
  12787. * @return string
  12788. * @static
  12789. */
  12790. public static function toSql()
  12791. {
  12792. return \Illuminate\Database\Query\Builder::toSql();
  12793. }
  12794. /**
  12795. * Get the count of the total records for the paginator.
  12796. *
  12797. * @param array $columns
  12798. * @return int
  12799. * @static
  12800. */
  12801. public static function getCountForPagination($columns = array())
  12802. {
  12803. return \Illuminate\Database\Query\Builder::getCountForPagination($columns);
  12804. }
  12805. /**
  12806. * Concatenate values of a given column as a string.
  12807. *
  12808. * @param string $column
  12809. * @param string $glue
  12810. * @return string
  12811. * @static
  12812. */
  12813. public static function implode($column, $glue = '')
  12814. {
  12815. return \Illuminate\Database\Query\Builder::implode($column, $glue);
  12816. }
  12817. /**
  12818. * Determine if any rows exist for the current query.
  12819. *
  12820. * @return bool
  12821. * @static
  12822. */
  12823. public static function exists()
  12824. {
  12825. return \Illuminate\Database\Query\Builder::exists();
  12826. }
  12827. /**
  12828. * Retrieve the "count" result of the query.
  12829. *
  12830. * @param string $columns
  12831. * @return int
  12832. * @static
  12833. */
  12834. public static function count($columns = '*')
  12835. {
  12836. return \Illuminate\Database\Query\Builder::count($columns);
  12837. }
  12838. /**
  12839. * Retrieve the minimum value of a given column.
  12840. *
  12841. * @param string $column
  12842. * @return mixed
  12843. * @static
  12844. */
  12845. public static function min($column)
  12846. {
  12847. return \Illuminate\Database\Query\Builder::min($column);
  12848. }
  12849. /**
  12850. * Retrieve the maximum value of a given column.
  12851. *
  12852. * @param string $column
  12853. * @return mixed
  12854. * @static
  12855. */
  12856. public static function max($column)
  12857. {
  12858. return \Illuminate\Database\Query\Builder::max($column);
  12859. }
  12860. /**
  12861. * Retrieve the sum of the values of a given column.
  12862. *
  12863. * @param string $column
  12864. * @return mixed
  12865. * @static
  12866. */
  12867. public static function sum($column)
  12868. {
  12869. return \Illuminate\Database\Query\Builder::sum($column);
  12870. }
  12871. /**
  12872. * Retrieve the average of the values of a given column.
  12873. *
  12874. * @param string $column
  12875. * @return mixed
  12876. * @static
  12877. */
  12878. public static function avg($column)
  12879. {
  12880. return \Illuminate\Database\Query\Builder::avg($column);
  12881. }
  12882. /**
  12883. * Alias for the "avg" method.
  12884. *
  12885. * @param string $column
  12886. * @return mixed
  12887. * @static
  12888. */
  12889. public static function average($column)
  12890. {
  12891. return \Illuminate\Database\Query\Builder::average($column);
  12892. }
  12893. /**
  12894. * Execute an aggregate function on the database.
  12895. *
  12896. * @param string $function
  12897. * @param array $columns
  12898. * @return mixed
  12899. * @static
  12900. */
  12901. public static function aggregate($function, $columns = array())
  12902. {
  12903. return \Illuminate\Database\Query\Builder::aggregate($function, $columns);
  12904. }
  12905. /**
  12906. * Execute a numeric aggregate function on the database.
  12907. *
  12908. * @param string $function
  12909. * @param array $columns
  12910. * @return float|int
  12911. * @static
  12912. */
  12913. public static function numericAggregate($function, $columns = array())
  12914. {
  12915. return \Illuminate\Database\Query\Builder::numericAggregate($function, $columns);
  12916. }
  12917. /**
  12918. * Insert a new record into the database.
  12919. *
  12920. * @param array $values
  12921. * @return bool
  12922. * @static
  12923. */
  12924. public static function insert($values)
  12925. {
  12926. return \Illuminate\Database\Query\Builder::insert($values);
  12927. }
  12928. /**
  12929. * Insert a new record and get the value of the primary key.
  12930. *
  12931. * @param array $values
  12932. * @param string $sequence
  12933. * @return int
  12934. * @static
  12935. */
  12936. public static function insertGetId($values, $sequence = null)
  12937. {
  12938. return \Illuminate\Database\Query\Builder::insertGetId($values, $sequence);
  12939. }
  12940. /**
  12941. * Insert or update a record matching the attributes, and fill it with values.
  12942. *
  12943. * @param array $attributes
  12944. * @param array $values
  12945. * @return bool
  12946. * @static
  12947. */
  12948. public static function updateOrInsert($attributes, $values = array())
  12949. {
  12950. return \Illuminate\Database\Query\Builder::updateOrInsert($attributes, $values);
  12951. }
  12952. /**
  12953. * Run a truncate statement on the table.
  12954. *
  12955. * @return void
  12956. * @static
  12957. */
  12958. public static function truncate()
  12959. {
  12960. \Illuminate\Database\Query\Builder::truncate();
  12961. }
  12962. /**
  12963. * Create a raw database expression.
  12964. *
  12965. * @param mixed $value
  12966. * @return \Illuminate\Database\Query\Expression
  12967. * @static
  12968. */
  12969. public static function raw($value)
  12970. {
  12971. return \Illuminate\Database\Query\Builder::raw($value);
  12972. }
  12973. /**
  12974. * Get the current query value bindings in a flattened array.
  12975. *
  12976. * @return array
  12977. * @static
  12978. */
  12979. public static function getBindings()
  12980. {
  12981. return \Illuminate\Database\Query\Builder::getBindings();
  12982. }
  12983. /**
  12984. * Get the raw array of bindings.
  12985. *
  12986. * @return array
  12987. * @static
  12988. */
  12989. public static function getRawBindings()
  12990. {
  12991. return \Illuminate\Database\Query\Builder::getRawBindings();
  12992. }
  12993. /**
  12994. * Set the bindings on the query builder.
  12995. *
  12996. * @param array $bindings
  12997. * @param string $type
  12998. * @return $this
  12999. * @throws \InvalidArgumentException
  13000. * @static
  13001. */
  13002. public static function setBindings($bindings, $type = 'where')
  13003. {
  13004. return \Illuminate\Database\Query\Builder::setBindings($bindings, $type);
  13005. }
  13006. /**
  13007. * Add a binding to the query.
  13008. *
  13009. * @param mixed $value
  13010. * @param string $type
  13011. * @return $this
  13012. * @throws \InvalidArgumentException
  13013. * @static
  13014. */
  13015. public static function addBinding($value, $type = 'where')
  13016. {
  13017. return \Illuminate\Database\Query\Builder::addBinding($value, $type);
  13018. }
  13019. /**
  13020. * Merge an array of bindings into our bindings.
  13021. *
  13022. * @param \Illuminate\Database\Query\Builder $query
  13023. * @return $this
  13024. * @static
  13025. */
  13026. public static function mergeBindings($query)
  13027. {
  13028. return \Illuminate\Database\Query\Builder::mergeBindings($query);
  13029. }
  13030. /**
  13031. * Get the database query processor instance.
  13032. *
  13033. * @return \Illuminate\Database\Query\Processors\Processor
  13034. * @static
  13035. */
  13036. public static function getProcessor()
  13037. {
  13038. return \Illuminate\Database\Query\Builder::getProcessor();
  13039. }
  13040. /**
  13041. * Get the query grammar instance.
  13042. *
  13043. * @return \Illuminate\Database\Query\Grammars\Grammar
  13044. * @static
  13045. */
  13046. public static function getGrammar()
  13047. {
  13048. return \Illuminate\Database\Query\Builder::getGrammar();
  13049. }
  13050. /**
  13051. * Use the write pdo for query.
  13052. *
  13053. * @return $this
  13054. * @static
  13055. */
  13056. public static function useWritePdo()
  13057. {
  13058. return \Illuminate\Database\Query\Builder::useWritePdo();
  13059. }
  13060. /**
  13061. * Clone the query without the given properties.
  13062. *
  13063. * @param array $except
  13064. * @return static
  13065. * @static
  13066. */
  13067. public static function cloneWithout($except)
  13068. {
  13069. return \Illuminate\Database\Query\Builder::cloneWithout($except);
  13070. }
  13071. /**
  13072. * Clone the query without the given bindings.
  13073. *
  13074. * @param array $except
  13075. * @return static
  13076. * @static
  13077. */
  13078. public static function cloneWithoutBindings($except)
  13079. {
  13080. return \Illuminate\Database\Query\Builder::cloneWithoutBindings($except);
  13081. }
  13082. /**
  13083. * Register a custom macro.
  13084. *
  13085. * @param string $name
  13086. * @param callable $macro
  13087. * @return void
  13088. * @static
  13089. */
  13090. public static function macro($name, $macro)
  13091. {
  13092. \Illuminate\Database\Query\Builder::macro($name, $macro);
  13093. }
  13094. /**
  13095. * Checks if macro is registered.
  13096. *
  13097. * @param string $name
  13098. * @return bool
  13099. * @static
  13100. */
  13101. public static function hasMacro($name)
  13102. {
  13103. return \Illuminate\Database\Query\Builder::hasMacro($name);
  13104. }
  13105. /**
  13106. * Dynamically handle calls to the class.
  13107. *
  13108. * @param string $method
  13109. * @param array $parameters
  13110. * @return mixed
  13111. * @throws \BadMethodCallException
  13112. * @static
  13113. */
  13114. public static function macroCall($method, $parameters)
  13115. {
  13116. return \Illuminate\Database\Query\Builder::macroCall($method, $parameters);
  13117. }
  13118. }
  13119. class Event extends \Illuminate\Support\Facades\Event {}
  13120. class File extends \Illuminate\Support\Facades\File {}
  13121. class Gate extends \Illuminate\Support\Facades\Gate {}
  13122. class Hash extends \Illuminate\Support\Facades\Hash {}
  13123. class Lang extends \Illuminate\Support\Facades\Lang {}
  13124. class Log extends \Illuminate\Support\Facades\Log {}
  13125. class Mail extends \Illuminate\Support\Facades\Mail {}
  13126. class Notification extends \Illuminate\Support\Facades\Notification {}
  13127. class Password extends \Illuminate\Support\Facades\Password {}
  13128. class Queue extends \Illuminate\Support\Facades\Queue {}
  13129. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  13130. class Request extends \Illuminate\Support\Facades\Request {}
  13131. class Response extends \Illuminate\Support\Facades\Response {}
  13132. class Route extends \Illuminate\Support\Facades\Route {}
  13133. class Schema extends \Illuminate\Support\Facades\Schema {}
  13134. class Session extends \Illuminate\Support\Facades\Session {}
  13135. class Storage extends \Illuminate\Support\Facades\Storage {}
  13136. class URL extends \Illuminate\Support\Facades\URL {}
  13137. class Validator extends \Illuminate\Support\Facades\Validator {}
  13138. class View extends \Illuminate\Support\Facades\View {}
  13139. class Excel extends \Maatwebsite\Excel\Facades\Excel {}
  13140. class Captcha extends \Mews\Captcha\Facades\Captcha {}
  13141. class Agent extends \Jenssegers\Agent\Facades\Agent {}
  13142. }