_ide_helper.php 408 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823
  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-11-07.
  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 {
  10763. class App extends \Illuminate\Support\Facades\App {}
  10764. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  10765. class Auth extends \Illuminate\Support\Facades\Auth {}
  10766. class Blade extends \Illuminate\Support\Facades\Blade {}
  10767. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  10768. class Bus extends \Illuminate\Support\Facades\Bus {}
  10769. class Cache extends \Illuminate\Support\Facades\Cache {}
  10770. class Config extends \Illuminate\Support\Facades\Config {}
  10771. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  10772. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  10773. class DB extends \Illuminate\Support\Facades\DB {}
  10774. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  10775. /**
  10776. * Create and return an un-saved model instance.
  10777. *
  10778. * @param array $attributes
  10779. * @return \Illuminate\Database\Eloquent\Model
  10780. * @static
  10781. */
  10782. public static function make($attributes = array())
  10783. {
  10784. return \Illuminate\Database\Eloquent\Builder::make($attributes);
  10785. }
  10786. /**
  10787. * Register a new global scope.
  10788. *
  10789. * @param string $identifier
  10790. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  10791. * @return $this
  10792. * @static
  10793. */
  10794. public static function withGlobalScope($identifier, $scope)
  10795. {
  10796. return \Illuminate\Database\Eloquent\Builder::withGlobalScope($identifier, $scope);
  10797. }
  10798. /**
  10799. * Remove a registered global scope.
  10800. *
  10801. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  10802. * @return $this
  10803. * @static
  10804. */
  10805. public static function withoutGlobalScope($scope)
  10806. {
  10807. return \Illuminate\Database\Eloquent\Builder::withoutGlobalScope($scope);
  10808. }
  10809. /**
  10810. * Remove all or passed registered global scopes.
  10811. *
  10812. * @param array|null $scopes
  10813. * @return $this
  10814. * @static
  10815. */
  10816. public static function withoutGlobalScopes($scopes = null)
  10817. {
  10818. return \Illuminate\Database\Eloquent\Builder::withoutGlobalScopes($scopes);
  10819. }
  10820. /**
  10821. * Get an array of global scopes that were removed from the query.
  10822. *
  10823. * @return array
  10824. * @static
  10825. */
  10826. public static function removedScopes()
  10827. {
  10828. return \Illuminate\Database\Eloquent\Builder::removedScopes();
  10829. }
  10830. /**
  10831. * Add a where clause on the primary key to the query.
  10832. *
  10833. * @param mixed $id
  10834. * @return $this
  10835. * @static
  10836. */
  10837. public static function whereKey($id)
  10838. {
  10839. return \Illuminate\Database\Eloquent\Builder::whereKey($id);
  10840. }
  10841. /**
  10842. * Add a basic where clause to the query.
  10843. *
  10844. * @param string|array|\Closure $column
  10845. * @param string $operator
  10846. * @param mixed $value
  10847. * @param string $boolean
  10848. * @return $this
  10849. * @static
  10850. */
  10851. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  10852. {
  10853. return \Illuminate\Database\Eloquent\Builder::where($column, $operator, $value, $boolean);
  10854. }
  10855. /**
  10856. * Add an "or where" clause to the query.
  10857. *
  10858. * @param string|\Closure $column
  10859. * @param string $operator
  10860. * @param mixed $value
  10861. * @return \Illuminate\Database\Eloquent\Builder|static
  10862. * @static
  10863. */
  10864. public static function orWhere($column, $operator = null, $value = null)
  10865. {
  10866. return \Illuminate\Database\Eloquent\Builder::orWhere($column, $operator, $value);
  10867. }
  10868. /**
  10869. * Create a collection of models from plain arrays.
  10870. *
  10871. * @param array $items
  10872. * @return \Illuminate\Database\Eloquent\Collection
  10873. * @static
  10874. */
  10875. public static function hydrate($items)
  10876. {
  10877. return \Illuminate\Database\Eloquent\Builder::hydrate($items);
  10878. }
  10879. /**
  10880. * Create a collection of models from a raw query.
  10881. *
  10882. * @param string $query
  10883. * @param array $bindings
  10884. * @return \Illuminate\Database\Eloquent\Collection
  10885. * @static
  10886. */
  10887. public static function fromQuery($query, $bindings = array())
  10888. {
  10889. return \Illuminate\Database\Eloquent\Builder::fromQuery($query, $bindings);
  10890. }
  10891. /**
  10892. * Find a model by its primary key.
  10893. *
  10894. * @param mixed $id
  10895. * @param array $columns
  10896. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  10897. * @static
  10898. */
  10899. public static function find($id, $columns = array())
  10900. {
  10901. return \Illuminate\Database\Eloquent\Builder::find($id, $columns);
  10902. }
  10903. /**
  10904. * Find multiple models by their primary keys.
  10905. *
  10906. * @param array $ids
  10907. * @param array $columns
  10908. * @return \Illuminate\Database\Eloquent\Collection
  10909. * @static
  10910. */
  10911. public static function findMany($ids, $columns = array())
  10912. {
  10913. return \Illuminate\Database\Eloquent\Builder::findMany($ids, $columns);
  10914. }
  10915. /**
  10916. * Find a model by its primary key or throw an exception.
  10917. *
  10918. * @param mixed $id
  10919. * @param array $columns
  10920. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
  10921. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10922. * @static
  10923. */
  10924. public static function findOrFail($id, $columns = array())
  10925. {
  10926. return \Illuminate\Database\Eloquent\Builder::findOrFail($id, $columns);
  10927. }
  10928. /**
  10929. * Find a model by its primary key or return fresh model instance.
  10930. *
  10931. * @param mixed $id
  10932. * @param array $columns
  10933. * @return \Illuminate\Database\Eloquent\Model
  10934. * @static
  10935. */
  10936. public static function findOrNew($id, $columns = array())
  10937. {
  10938. return \Illuminate\Database\Eloquent\Builder::findOrNew($id, $columns);
  10939. }
  10940. /**
  10941. * Get the first record matching the attributes or instantiate it.
  10942. *
  10943. * @param array $attributes
  10944. * @param array $values
  10945. * @return \Illuminate\Database\Eloquent\Model
  10946. * @static
  10947. */
  10948. public static function firstOrNew($attributes, $values = array())
  10949. {
  10950. return \Illuminate\Database\Eloquent\Builder::firstOrNew($attributes, $values);
  10951. }
  10952. /**
  10953. * Get the first record matching the attributes or create it.
  10954. *
  10955. * @param array $attributes
  10956. * @param array $values
  10957. * @return \Illuminate\Database\Eloquent\Model
  10958. * @static
  10959. */
  10960. public static function firstOrCreate($attributes, $values = array())
  10961. {
  10962. return \Illuminate\Database\Eloquent\Builder::firstOrCreate($attributes, $values);
  10963. }
  10964. /**
  10965. * Create or update a record matching the attributes, and fill it with values.
  10966. *
  10967. * @param array $attributes
  10968. * @param array $values
  10969. * @return \Illuminate\Database\Eloquent\Model
  10970. * @static
  10971. */
  10972. public static function updateOrCreate($attributes, $values = array())
  10973. {
  10974. return \Illuminate\Database\Eloquent\Builder::updateOrCreate($attributes, $values);
  10975. }
  10976. /**
  10977. * Execute the query and get the first result or throw an exception.
  10978. *
  10979. * @param array $columns
  10980. * @return \Illuminate\Database\Eloquent\Model|static
  10981. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10982. * @static
  10983. */
  10984. public static function firstOrFail($columns = array())
  10985. {
  10986. return \Illuminate\Database\Eloquent\Builder::firstOrFail($columns);
  10987. }
  10988. /**
  10989. * Execute the query and get the first result or call a callback.
  10990. *
  10991. * @param \Closure|array $columns
  10992. * @param \Closure|null $callback
  10993. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  10994. * @static
  10995. */
  10996. public static function firstOr($columns = array(), $callback = null)
  10997. {
  10998. return \Illuminate\Database\Eloquent\Builder::firstOr($columns, $callback);
  10999. }
  11000. /**
  11001. * Get a single column's value from the first result of a query.
  11002. *
  11003. * @param string $column
  11004. * @return mixed
  11005. * @static
  11006. */
  11007. public static function value($column)
  11008. {
  11009. return \Illuminate\Database\Eloquent\Builder::value($column);
  11010. }
  11011. /**
  11012. * Execute the query as a "select" statement.
  11013. *
  11014. * @param array $columns
  11015. * @return \Illuminate\Database\Eloquent\Collection|static[]
  11016. * @static
  11017. */
  11018. public static function get($columns = array())
  11019. {
  11020. return \Illuminate\Database\Eloquent\Builder::get($columns);
  11021. }
  11022. /**
  11023. * Get the hydrated models without eager loading.
  11024. *
  11025. * @param array $columns
  11026. * @return \Illuminate\Database\Eloquent\Model[]
  11027. * @static
  11028. */
  11029. public static function getModels($columns = array())
  11030. {
  11031. return \Illuminate\Database\Eloquent\Builder::getModels($columns);
  11032. }
  11033. /**
  11034. * Eager load the relationships for the models.
  11035. *
  11036. * @param array $models
  11037. * @return array
  11038. * @static
  11039. */
  11040. public static function eagerLoadRelations($models)
  11041. {
  11042. return \Illuminate\Database\Eloquent\Builder::eagerLoadRelations($models);
  11043. }
  11044. /**
  11045. * Get a generator for the given query.
  11046. *
  11047. * @return \Generator
  11048. * @static
  11049. */
  11050. public static function cursor()
  11051. {
  11052. return \Illuminate\Database\Eloquent\Builder::cursor();
  11053. }
  11054. /**
  11055. * Chunk the results of a query by comparing numeric IDs.
  11056. *
  11057. * @param int $count
  11058. * @param callable $callback
  11059. * @param string $column
  11060. * @param string|null $alias
  11061. * @return bool
  11062. * @static
  11063. */
  11064. public static function chunkById($count, $callback, $column = null, $alias = null)
  11065. {
  11066. return \Illuminate\Database\Eloquent\Builder::chunkById($count, $callback, $column, $alias);
  11067. }
  11068. /**
  11069. * Get an array with the values of a given column.
  11070. *
  11071. * @param string $column
  11072. * @param string|null $key
  11073. * @return \Illuminate\Support\Collection
  11074. * @static
  11075. */
  11076. public static function pluck($column, $key = null)
  11077. {
  11078. return \Illuminate\Database\Eloquent\Builder::pluck($column, $key);
  11079. }
  11080. /**
  11081. * Paginate the given query.
  11082. *
  11083. * @param int $perPage
  11084. * @param array $columns
  11085. * @param string $pageName
  11086. * @param int|null $page
  11087. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  11088. * @throws \InvalidArgumentException
  11089. * @static
  11090. */
  11091. public static function paginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  11092. {
  11093. return \Illuminate\Database\Eloquent\Builder::paginate($perPage, $columns, $pageName, $page);
  11094. }
  11095. /**
  11096. * Paginate the given query into a simple paginator.
  11097. *
  11098. * @param int $perPage
  11099. * @param array $columns
  11100. * @param string $pageName
  11101. * @param int|null $page
  11102. * @return \Illuminate\Contracts\Pagination\Paginator
  11103. * @static
  11104. */
  11105. public static function simplePaginate($perPage = null, $columns = array(), $pageName = 'page', $page = null)
  11106. {
  11107. return \Illuminate\Database\Eloquent\Builder::simplePaginate($perPage, $columns, $pageName, $page);
  11108. }
  11109. /**
  11110. * Save a new model and return the instance.
  11111. *
  11112. * @param array $attributes
  11113. * @return \Illuminate\Database\Eloquent\Model|$this
  11114. * @static
  11115. */
  11116. public static function create($attributes = array())
  11117. {
  11118. return \Illuminate\Database\Eloquent\Builder::create($attributes);
  11119. }
  11120. /**
  11121. * Save a new model and return the instance. Allow mass-assignment.
  11122. *
  11123. * @param array $attributes
  11124. * @return \Illuminate\Database\Eloquent\Model|$this
  11125. * @static
  11126. */
  11127. public static function forceCreate($attributes)
  11128. {
  11129. return \Illuminate\Database\Eloquent\Builder::forceCreate($attributes);
  11130. }
  11131. /**
  11132. * Register a replacement for the default delete function.
  11133. *
  11134. * @param \Closure $callback
  11135. * @return void
  11136. * @static
  11137. */
  11138. public static function onDelete($callback)
  11139. {
  11140. \Illuminate\Database\Eloquent\Builder::onDelete($callback);
  11141. }
  11142. /**
  11143. * Call the given local model scopes.
  11144. *
  11145. * @param array $scopes
  11146. * @return mixed
  11147. * @static
  11148. */
  11149. public static function scopes($scopes)
  11150. {
  11151. return \Illuminate\Database\Eloquent\Builder::scopes($scopes);
  11152. }
  11153. /**
  11154. * Apply the scopes to the Eloquent builder instance and return it.
  11155. *
  11156. * @return \Illuminate\Database\Eloquent\Builder|static
  11157. * @static
  11158. */
  11159. public static function applyScopes()
  11160. {
  11161. return \Illuminate\Database\Eloquent\Builder::applyScopes();
  11162. }
  11163. /**
  11164. * Prevent the specified relations from being eager loaded.
  11165. *
  11166. * @param mixed $relations
  11167. * @return $this
  11168. * @static
  11169. */
  11170. public static function without($relations)
  11171. {
  11172. return \Illuminate\Database\Eloquent\Builder::without($relations);
  11173. }
  11174. /**
  11175. * Create a new instance of the model being queried.
  11176. *
  11177. * @param array $attributes
  11178. * @return \Illuminate\Database\Eloquent\Model
  11179. * @static
  11180. */
  11181. public static function newModelInstance($attributes = array())
  11182. {
  11183. return \Illuminate\Database\Eloquent\Builder::newModelInstance($attributes);
  11184. }
  11185. /**
  11186. * Get the underlying query builder instance.
  11187. *
  11188. * @return \Illuminate\Database\Query\Builder
  11189. * @static
  11190. */
  11191. public static function getQuery()
  11192. {
  11193. return \Illuminate\Database\Eloquent\Builder::getQuery();
  11194. }
  11195. /**
  11196. * Set the underlying query builder instance.
  11197. *
  11198. * @param \Illuminate\Database\Query\Builder $query
  11199. * @return $this
  11200. * @static
  11201. */
  11202. public static function setQuery($query)
  11203. {
  11204. return \Illuminate\Database\Eloquent\Builder::setQuery($query);
  11205. }
  11206. /**
  11207. * Get a base query builder instance.
  11208. *
  11209. * @return \Illuminate\Database\Query\Builder
  11210. * @static
  11211. */
  11212. public static function toBase()
  11213. {
  11214. return \Illuminate\Database\Eloquent\Builder::toBase();
  11215. }
  11216. /**
  11217. * Get the relationships being eagerly loaded.
  11218. *
  11219. * @return array
  11220. * @static
  11221. */
  11222. public static function getEagerLoads()
  11223. {
  11224. return \Illuminate\Database\Eloquent\Builder::getEagerLoads();
  11225. }
  11226. /**
  11227. * Set the relationships being eagerly loaded.
  11228. *
  11229. * @param array $eagerLoad
  11230. * @return $this
  11231. * @static
  11232. */
  11233. public static function setEagerLoads($eagerLoad)
  11234. {
  11235. return \Illuminate\Database\Eloquent\Builder::setEagerLoads($eagerLoad);
  11236. }
  11237. /**
  11238. * Get the model instance being queried.
  11239. *
  11240. * @return \Illuminate\Database\Eloquent\Model
  11241. * @static
  11242. */
  11243. public static function getModel()
  11244. {
  11245. return \Illuminate\Database\Eloquent\Builder::getModel();
  11246. }
  11247. /**
  11248. * Set a model instance for the model being queried.
  11249. *
  11250. * @param \Illuminate\Database\Eloquent\Model $model
  11251. * @return $this
  11252. * @static
  11253. */
  11254. public static function setModel($model)
  11255. {
  11256. return \Illuminate\Database\Eloquent\Builder::setModel($model);
  11257. }
  11258. /**
  11259. * Get the given macro by name.
  11260. *
  11261. * @param string $name
  11262. * @return \Closure
  11263. * @static
  11264. */
  11265. public static function getMacro($name)
  11266. {
  11267. return \Illuminate\Database\Eloquent\Builder::getMacro($name);
  11268. }
  11269. /**
  11270. * Chunk the results of the query.
  11271. *
  11272. * @param int $count
  11273. * @param callable $callback
  11274. * @return bool
  11275. * @static
  11276. */
  11277. public static function chunk($count, $callback)
  11278. {
  11279. return \Illuminate\Database\Eloquent\Builder::chunk($count, $callback);
  11280. }
  11281. /**
  11282. * Execute a callback over each item while chunking.
  11283. *
  11284. * @param callable $callback
  11285. * @param int $count
  11286. * @return bool
  11287. * @static
  11288. */
  11289. public static function each($callback, $count = 1000)
  11290. {
  11291. return \Illuminate\Database\Eloquent\Builder::each($callback, $count);
  11292. }
  11293. /**
  11294. * Execute the query and get the first result.
  11295. *
  11296. * @param array $columns
  11297. * @return mixed
  11298. * @static
  11299. */
  11300. public static function first($columns = array())
  11301. {
  11302. return \Illuminate\Database\Eloquent\Builder::first($columns);
  11303. }
  11304. /**
  11305. * Apply the callback's query changes if the given "value" is true.
  11306. *
  11307. * @param mixed $value
  11308. * @param callable $callback
  11309. * @param callable $default
  11310. * @return mixed
  11311. * @static
  11312. */
  11313. public static function when($value, $callback, $default = null)
  11314. {
  11315. return \Illuminate\Database\Eloquent\Builder::when($value, $callback, $default);
  11316. }
  11317. /**
  11318. * Apply the callback's query changes if the given "value" is false.
  11319. *
  11320. * @param mixed $value
  11321. * @param callable $callback
  11322. * @param callable $default
  11323. * @return mixed
  11324. * @static
  11325. */
  11326. public static function unless($value, $callback, $default = null)
  11327. {
  11328. return \Illuminate\Database\Eloquent\Builder::unless($value, $callback, $default);
  11329. }
  11330. /**
  11331. * Add a relationship count / exists condition to the query.
  11332. *
  11333. * @param string $relation
  11334. * @param string $operator
  11335. * @param int $count
  11336. * @param string $boolean
  11337. * @param \Closure|null $callback
  11338. * @return \Illuminate\Database\Eloquent\Builder|static
  11339. * @static
  11340. */
  11341. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  11342. {
  11343. return \Illuminate\Database\Eloquent\Builder::has($relation, $operator, $count, $boolean, $callback);
  11344. }
  11345. /**
  11346. * Add a relationship count / exists condition to the query with an "or".
  11347. *
  11348. * @param string $relation
  11349. * @param string $operator
  11350. * @param int $count
  11351. * @return \Illuminate\Database\Eloquent\Builder|static
  11352. * @static
  11353. */
  11354. public static function orHas($relation, $operator = '>=', $count = 1)
  11355. {
  11356. return \Illuminate\Database\Eloquent\Builder::orHas($relation, $operator, $count);
  11357. }
  11358. /**
  11359. * Add a relationship count / exists condition to the query.
  11360. *
  11361. * @param string $relation
  11362. * @param string $boolean
  11363. * @param \Closure|null $callback
  11364. * @return \Illuminate\Database\Eloquent\Builder|static
  11365. * @static
  11366. */
  11367. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  11368. {
  11369. return \Illuminate\Database\Eloquent\Builder::doesntHave($relation, $boolean, $callback);
  11370. }
  11371. /**
  11372. * Add a relationship count / exists condition to the query with where clauses.
  11373. *
  11374. * @param string $relation
  11375. * @param \Closure|null $callback
  11376. * @param string $operator
  11377. * @param int $count
  11378. * @return \Illuminate\Database\Eloquent\Builder|static
  11379. * @static
  11380. */
  11381. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  11382. {
  11383. return \Illuminate\Database\Eloquent\Builder::whereHas($relation, $callback, $operator, $count);
  11384. }
  11385. /**
  11386. * Add a relationship count / exists condition to the query with where clauses and an "or".
  11387. *
  11388. * @param string $relation
  11389. * @param \Closure $callback
  11390. * @param string $operator
  11391. * @param int $count
  11392. * @return \Illuminate\Database\Eloquent\Builder|static
  11393. * @static
  11394. */
  11395. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  11396. {
  11397. return \Illuminate\Database\Eloquent\Builder::orWhereHas($relation, $callback, $operator, $count);
  11398. }
  11399. /**
  11400. * Add a relationship count / exists condition to the query with where clauses.
  11401. *
  11402. * @param string $relation
  11403. * @param \Closure|null $callback
  11404. * @return \Illuminate\Database\Eloquent\Builder|static
  11405. * @static
  11406. */
  11407. public static function whereDoesntHave($relation, $callback = null)
  11408. {
  11409. return \Illuminate\Database\Eloquent\Builder::whereDoesntHave($relation, $callback);
  11410. }
  11411. /**
  11412. * Add subselect queries to count the relations.
  11413. *
  11414. * @param mixed $relations
  11415. * @return $this
  11416. * @static
  11417. */
  11418. public static function withCount($relations)
  11419. {
  11420. return \Illuminate\Database\Eloquent\Builder::withCount($relations);
  11421. }
  11422. /**
  11423. * Merge the where constraints from another query to the current query.
  11424. *
  11425. * @param \Illuminate\Database\Eloquent\Builder $from
  11426. * @return \Illuminate\Database\Eloquent\Builder|static
  11427. * @static
  11428. */
  11429. public static function mergeConstraintsFrom($from)
  11430. {
  11431. return \Illuminate\Database\Eloquent\Builder::mergeConstraintsFrom($from);
  11432. }
  11433. /**
  11434. * Set the columns to be selected.
  11435. *
  11436. * @param array|mixed $columns
  11437. * @return $this
  11438. * @static
  11439. */
  11440. public static function select($columns = array())
  11441. {
  11442. return \Illuminate\Database\Query\Builder::select($columns);
  11443. }
  11444. /**
  11445. * Add a new "raw" select expression to the query.
  11446. *
  11447. * @param string $expression
  11448. * @param array $bindings
  11449. * @return \Illuminate\Database\Query\Builder|static
  11450. * @static
  11451. */
  11452. public static function selectRaw($expression, $bindings = array())
  11453. {
  11454. return \Illuminate\Database\Query\Builder::selectRaw($expression, $bindings);
  11455. }
  11456. /**
  11457. * Add a subselect expression to the query.
  11458. *
  11459. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  11460. * @param string $as
  11461. * @return \Illuminate\Database\Query\Builder|static
  11462. * @throws \InvalidArgumentException
  11463. * @static
  11464. */
  11465. public static function selectSub($query, $as)
  11466. {
  11467. return \Illuminate\Database\Query\Builder::selectSub($query, $as);
  11468. }
  11469. /**
  11470. * Add a new select column to the query.
  11471. *
  11472. * @param array|mixed $column
  11473. * @return $this
  11474. * @static
  11475. */
  11476. public static function addSelect($column)
  11477. {
  11478. return \Illuminate\Database\Query\Builder::addSelect($column);
  11479. }
  11480. /**
  11481. * Force the query to only return distinct results.
  11482. *
  11483. * @return $this
  11484. * @static
  11485. */
  11486. public static function distinct()
  11487. {
  11488. return \Illuminate\Database\Query\Builder::distinct();
  11489. }
  11490. /**
  11491. * Set the table which the query is targeting.
  11492. *
  11493. * @param string $table
  11494. * @return $this
  11495. * @static
  11496. */
  11497. public static function from($table)
  11498. {
  11499. return \Illuminate\Database\Query\Builder::from($table);
  11500. }
  11501. /**
  11502. * Add a join clause to the query.
  11503. *
  11504. * @param string $table
  11505. * @param string $first
  11506. * @param string $operator
  11507. * @param string $second
  11508. * @param string $type
  11509. * @param bool $where
  11510. * @return $this
  11511. * @static
  11512. */
  11513. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  11514. {
  11515. return \Illuminate\Database\Query\Builder::join($table, $first, $operator, $second, $type, $where);
  11516. }
  11517. /**
  11518. * Add a "join where" clause to the query.
  11519. *
  11520. * @param string $table
  11521. * @param string $first
  11522. * @param string $operator
  11523. * @param string $second
  11524. * @param string $type
  11525. * @return \Illuminate\Database\Query\Builder|static
  11526. * @static
  11527. */
  11528. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  11529. {
  11530. return \Illuminate\Database\Query\Builder::joinWhere($table, $first, $operator, $second, $type);
  11531. }
  11532. /**
  11533. * Add a left join to the query.
  11534. *
  11535. * @param string $table
  11536. * @param string $first
  11537. * @param string $operator
  11538. * @param string $second
  11539. * @return \Illuminate\Database\Query\Builder|static
  11540. * @static
  11541. */
  11542. public static function leftJoin($table, $first, $operator = null, $second = null)
  11543. {
  11544. return \Illuminate\Database\Query\Builder::leftJoin($table, $first, $operator, $second);
  11545. }
  11546. /**
  11547. * Add a "join where" clause to the query.
  11548. *
  11549. * @param string $table
  11550. * @param string $first
  11551. * @param string $operator
  11552. * @param string $second
  11553. * @return \Illuminate\Database\Query\Builder|static
  11554. * @static
  11555. */
  11556. public static function leftJoinWhere($table, $first, $operator, $second)
  11557. {
  11558. return \Illuminate\Database\Query\Builder::leftJoinWhere($table, $first, $operator, $second);
  11559. }
  11560. /**
  11561. * Add a right join to the query.
  11562. *
  11563. * @param string $table
  11564. * @param string $first
  11565. * @param string $operator
  11566. * @param string $second
  11567. * @return \Illuminate\Database\Query\Builder|static
  11568. * @static
  11569. */
  11570. public static function rightJoin($table, $first, $operator = null, $second = null)
  11571. {
  11572. return \Illuminate\Database\Query\Builder::rightJoin($table, $first, $operator, $second);
  11573. }
  11574. /**
  11575. * Add a "right join where" clause to the query.
  11576. *
  11577. * @param string $table
  11578. * @param string $first
  11579. * @param string $operator
  11580. * @param string $second
  11581. * @return \Illuminate\Database\Query\Builder|static
  11582. * @static
  11583. */
  11584. public static function rightJoinWhere($table, $first, $operator, $second)
  11585. {
  11586. return \Illuminate\Database\Query\Builder::rightJoinWhere($table, $first, $operator, $second);
  11587. }
  11588. /**
  11589. * Add a "cross join" clause to the query.
  11590. *
  11591. * @param string $table
  11592. * @param string $first
  11593. * @param string $operator
  11594. * @param string $second
  11595. * @return \Illuminate\Database\Query\Builder|static
  11596. * @static
  11597. */
  11598. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  11599. {
  11600. return \Illuminate\Database\Query\Builder::crossJoin($table, $first, $operator, $second);
  11601. }
  11602. /**
  11603. * Pass the query to a given callback.
  11604. *
  11605. * @param \Closure $callback
  11606. * @return \Illuminate\Database\Query\Builder
  11607. * @static
  11608. */
  11609. public static function tap($callback)
  11610. {
  11611. return \Illuminate\Database\Query\Builder::tap($callback);
  11612. }
  11613. /**
  11614. * Merge an array of where clauses and bindings.
  11615. *
  11616. * @param array $wheres
  11617. * @param array $bindings
  11618. * @return void
  11619. * @static
  11620. */
  11621. public static function mergeWheres($wheres, $bindings)
  11622. {
  11623. \Illuminate\Database\Query\Builder::mergeWheres($wheres, $bindings);
  11624. }
  11625. /**
  11626. * Add a "where" clause comparing two columns to the query.
  11627. *
  11628. * @param string|array $first
  11629. * @param string|null $operator
  11630. * @param string|null $second
  11631. * @param string|null $boolean
  11632. * @return \Illuminate\Database\Query\Builder|static
  11633. * @static
  11634. */
  11635. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  11636. {
  11637. return \Illuminate\Database\Query\Builder::whereColumn($first, $operator, $second, $boolean);
  11638. }
  11639. /**
  11640. * Add an "or where" clause comparing two columns to the query.
  11641. *
  11642. * @param string|array $first
  11643. * @param string|null $operator
  11644. * @param string|null $second
  11645. * @return \Illuminate\Database\Query\Builder|static
  11646. * @static
  11647. */
  11648. public static function orWhereColumn($first, $operator = null, $second = null)
  11649. {
  11650. return \Illuminate\Database\Query\Builder::orWhereColumn($first, $operator, $second);
  11651. }
  11652. /**
  11653. * Add a raw where clause to the query.
  11654. *
  11655. * @param string $sql
  11656. * @param mixed $bindings
  11657. * @param string $boolean
  11658. * @return $this
  11659. * @static
  11660. */
  11661. public static function whereRaw($sql, $bindings = array(), $boolean = 'and')
  11662. {
  11663. return \Illuminate\Database\Query\Builder::whereRaw($sql, $bindings, $boolean);
  11664. }
  11665. /**
  11666. * Add a raw or where clause to the query.
  11667. *
  11668. * @param string $sql
  11669. * @param array $bindings
  11670. * @return \Illuminate\Database\Query\Builder|static
  11671. * @static
  11672. */
  11673. public static function orWhereRaw($sql, $bindings = array())
  11674. {
  11675. return \Illuminate\Database\Query\Builder::orWhereRaw($sql, $bindings);
  11676. }
  11677. /**
  11678. * Add a "where in" clause to the query.
  11679. *
  11680. * @param string $column
  11681. * @param mixed $values
  11682. * @param string $boolean
  11683. * @param bool $not
  11684. * @return $this
  11685. * @static
  11686. */
  11687. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  11688. {
  11689. return \Illuminate\Database\Query\Builder::whereIn($column, $values, $boolean, $not);
  11690. }
  11691. /**
  11692. * Add an "or where in" clause to the query.
  11693. *
  11694. * @param string $column
  11695. * @param mixed $values
  11696. * @return \Illuminate\Database\Query\Builder|static
  11697. * @static
  11698. */
  11699. public static function orWhereIn($column, $values)
  11700. {
  11701. return \Illuminate\Database\Query\Builder::orWhereIn($column, $values);
  11702. }
  11703. /**
  11704. * Add a "where not in" clause to the query.
  11705. *
  11706. * @param string $column
  11707. * @param mixed $values
  11708. * @param string $boolean
  11709. * @return \Illuminate\Database\Query\Builder|static
  11710. * @static
  11711. */
  11712. public static function whereNotIn($column, $values, $boolean = 'and')
  11713. {
  11714. return \Illuminate\Database\Query\Builder::whereNotIn($column, $values, $boolean);
  11715. }
  11716. /**
  11717. * Add an "or where not in" clause to the query.
  11718. *
  11719. * @param string $column
  11720. * @param mixed $values
  11721. * @return \Illuminate\Database\Query\Builder|static
  11722. * @static
  11723. */
  11724. public static function orWhereNotIn($column, $values)
  11725. {
  11726. return \Illuminate\Database\Query\Builder::orWhereNotIn($column, $values);
  11727. }
  11728. /**
  11729. * Add a "where null" clause to the query.
  11730. *
  11731. * @param string $column
  11732. * @param string $boolean
  11733. * @param bool $not
  11734. * @return $this
  11735. * @static
  11736. */
  11737. public static function whereNull($column, $boolean = 'and', $not = false)
  11738. {
  11739. return \Illuminate\Database\Query\Builder::whereNull($column, $boolean, $not);
  11740. }
  11741. /**
  11742. * Add an "or where null" clause to the query.
  11743. *
  11744. * @param string $column
  11745. * @return \Illuminate\Database\Query\Builder|static
  11746. * @static
  11747. */
  11748. public static function orWhereNull($column)
  11749. {
  11750. return \Illuminate\Database\Query\Builder::orWhereNull($column);
  11751. }
  11752. /**
  11753. * Add a "where not null" clause to the query.
  11754. *
  11755. * @param string $column
  11756. * @param string $boolean
  11757. * @return \Illuminate\Database\Query\Builder|static
  11758. * @static
  11759. */
  11760. public static function whereNotNull($column, $boolean = 'and')
  11761. {
  11762. return \Illuminate\Database\Query\Builder::whereNotNull($column, $boolean);
  11763. }
  11764. /**
  11765. * Add a where between statement to the query.
  11766. *
  11767. * @param string $column
  11768. * @param array $values
  11769. * @param string $boolean
  11770. * @param bool $not
  11771. * @return $this
  11772. * @static
  11773. */
  11774. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  11775. {
  11776. return \Illuminate\Database\Query\Builder::whereBetween($column, $values, $boolean, $not);
  11777. }
  11778. /**
  11779. * Add an or where between statement to the query.
  11780. *
  11781. * @param string $column
  11782. * @param array $values
  11783. * @return \Illuminate\Database\Query\Builder|static
  11784. * @static
  11785. */
  11786. public static function orWhereBetween($column, $values)
  11787. {
  11788. return \Illuminate\Database\Query\Builder::orWhereBetween($column, $values);
  11789. }
  11790. /**
  11791. * Add a where not between statement to the query.
  11792. *
  11793. * @param string $column
  11794. * @param array $values
  11795. * @param string $boolean
  11796. * @return \Illuminate\Database\Query\Builder|static
  11797. * @static
  11798. */
  11799. public static function whereNotBetween($column, $values, $boolean = 'and')
  11800. {
  11801. return \Illuminate\Database\Query\Builder::whereNotBetween($column, $values, $boolean);
  11802. }
  11803. /**
  11804. * Add an or where not between statement to the query.
  11805. *
  11806. * @param string $column
  11807. * @param array $values
  11808. * @return \Illuminate\Database\Query\Builder|static
  11809. * @static
  11810. */
  11811. public static function orWhereNotBetween($column, $values)
  11812. {
  11813. return \Illuminate\Database\Query\Builder::orWhereNotBetween($column, $values);
  11814. }
  11815. /**
  11816. * Add an "or where not null" clause to the query.
  11817. *
  11818. * @param string $column
  11819. * @return \Illuminate\Database\Query\Builder|static
  11820. * @static
  11821. */
  11822. public static function orWhereNotNull($column)
  11823. {
  11824. return \Illuminate\Database\Query\Builder::orWhereNotNull($column);
  11825. }
  11826. /**
  11827. * Add a "where date" statement to the query.
  11828. *
  11829. * @param string $column
  11830. * @param string $operator
  11831. * @param mixed $value
  11832. * @param string $boolean
  11833. * @return \Illuminate\Database\Query\Builder|static
  11834. * @static
  11835. */
  11836. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  11837. {
  11838. return \Illuminate\Database\Query\Builder::whereDate($column, $operator, $value, $boolean);
  11839. }
  11840. /**
  11841. * Add an "or where date" statement to the query.
  11842. *
  11843. * @param string $column
  11844. * @param string $operator
  11845. * @param string $value
  11846. * @return \Illuminate\Database\Query\Builder|static
  11847. * @static
  11848. */
  11849. public static function orWhereDate($column, $operator, $value)
  11850. {
  11851. return \Illuminate\Database\Query\Builder::orWhereDate($column, $operator, $value);
  11852. }
  11853. /**
  11854. * Add a "where time" statement to the query.
  11855. *
  11856. * @param string $column
  11857. * @param string $operator
  11858. * @param int $value
  11859. * @param string $boolean
  11860. * @return \Illuminate\Database\Query\Builder|static
  11861. * @static
  11862. */
  11863. public static function whereTime($column, $operator, $value, $boolean = 'and')
  11864. {
  11865. return \Illuminate\Database\Query\Builder::whereTime($column, $operator, $value, $boolean);
  11866. }
  11867. /**
  11868. * Add an "or where time" statement to the query.
  11869. *
  11870. * @param string $column
  11871. * @param string $operator
  11872. * @param int $value
  11873. * @return \Illuminate\Database\Query\Builder|static
  11874. * @static
  11875. */
  11876. public static function orWhereTime($column, $operator, $value)
  11877. {
  11878. return \Illuminate\Database\Query\Builder::orWhereTime($column, $operator, $value);
  11879. }
  11880. /**
  11881. * Add a "where day" statement to the query.
  11882. *
  11883. * @param string $column
  11884. * @param string $operator
  11885. * @param mixed $value
  11886. * @param string $boolean
  11887. * @return \Illuminate\Database\Query\Builder|static
  11888. * @static
  11889. */
  11890. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  11891. {
  11892. return \Illuminate\Database\Query\Builder::whereDay($column, $operator, $value, $boolean);
  11893. }
  11894. /**
  11895. * Add a "where month" statement to the query.
  11896. *
  11897. * @param string $column
  11898. * @param string $operator
  11899. * @param mixed $value
  11900. * @param string $boolean
  11901. * @return \Illuminate\Database\Query\Builder|static
  11902. * @static
  11903. */
  11904. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  11905. {
  11906. return \Illuminate\Database\Query\Builder::whereMonth($column, $operator, $value, $boolean);
  11907. }
  11908. /**
  11909. * Add a "where year" statement to the query.
  11910. *
  11911. * @param string $column
  11912. * @param string $operator
  11913. * @param mixed $value
  11914. * @param string $boolean
  11915. * @return \Illuminate\Database\Query\Builder|static
  11916. * @static
  11917. */
  11918. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  11919. {
  11920. return \Illuminate\Database\Query\Builder::whereYear($column, $operator, $value, $boolean);
  11921. }
  11922. /**
  11923. * Add a nested where statement to the query.
  11924. *
  11925. * @param \Closure $callback
  11926. * @param string $boolean
  11927. * @return \Illuminate\Database\Query\Builder|static
  11928. * @static
  11929. */
  11930. public static function whereNested($callback, $boolean = 'and')
  11931. {
  11932. return \Illuminate\Database\Query\Builder::whereNested($callback, $boolean);
  11933. }
  11934. /**
  11935. * Create a new query instance for nested where condition.
  11936. *
  11937. * @return \Illuminate\Database\Query\Builder
  11938. * @static
  11939. */
  11940. public static function forNestedWhere()
  11941. {
  11942. return \Illuminate\Database\Query\Builder::forNestedWhere();
  11943. }
  11944. /**
  11945. * Add another query builder as a nested where to the query builder.
  11946. *
  11947. * @param \Illuminate\Database\Query\Builder|static $query
  11948. * @param string $boolean
  11949. * @return $this
  11950. * @static
  11951. */
  11952. public static function addNestedWhereQuery($query, $boolean = 'and')
  11953. {
  11954. return \Illuminate\Database\Query\Builder::addNestedWhereQuery($query, $boolean);
  11955. }
  11956. /**
  11957. * Add an exists clause to the query.
  11958. *
  11959. * @param \Closure $callback
  11960. * @param string $boolean
  11961. * @param bool $not
  11962. * @return $this
  11963. * @static
  11964. */
  11965. public static function whereExists($callback, $boolean = 'and', $not = false)
  11966. {
  11967. return \Illuminate\Database\Query\Builder::whereExists($callback, $boolean, $not);
  11968. }
  11969. /**
  11970. * Add an or exists clause to the query.
  11971. *
  11972. * @param \Closure $callback
  11973. * @param bool $not
  11974. * @return \Illuminate\Database\Query\Builder|static
  11975. * @static
  11976. */
  11977. public static function orWhereExists($callback, $not = false)
  11978. {
  11979. return \Illuminate\Database\Query\Builder::orWhereExists($callback, $not);
  11980. }
  11981. /**
  11982. * Add a where not exists clause to the query.
  11983. *
  11984. * @param \Closure $callback
  11985. * @param string $boolean
  11986. * @return \Illuminate\Database\Query\Builder|static
  11987. * @static
  11988. */
  11989. public static function whereNotExists($callback, $boolean = 'and')
  11990. {
  11991. return \Illuminate\Database\Query\Builder::whereNotExists($callback, $boolean);
  11992. }
  11993. /**
  11994. * Add a where not exists clause to the query.
  11995. *
  11996. * @param \Closure $callback
  11997. * @return \Illuminate\Database\Query\Builder|static
  11998. * @static
  11999. */
  12000. public static function orWhereNotExists($callback)
  12001. {
  12002. return \Illuminate\Database\Query\Builder::orWhereNotExists($callback);
  12003. }
  12004. /**
  12005. * Add an exists clause to the query.
  12006. *
  12007. * @param \Illuminate\Database\Query\Builder $query
  12008. * @param string $boolean
  12009. * @param bool $not
  12010. * @return $this
  12011. * @static
  12012. */
  12013. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  12014. {
  12015. return \Illuminate\Database\Query\Builder::addWhereExistsQuery($query, $boolean, $not);
  12016. }
  12017. /**
  12018. * Handles dynamic "where" clauses to the query.
  12019. *
  12020. * @param string $method
  12021. * @param string $parameters
  12022. * @return $this
  12023. * @static
  12024. */
  12025. public static function dynamicWhere($method, $parameters)
  12026. {
  12027. return \Illuminate\Database\Query\Builder::dynamicWhere($method, $parameters);
  12028. }
  12029. /**
  12030. * Add a "group by" clause to the query.
  12031. *
  12032. * @param array $groups
  12033. * @return $this
  12034. * @static
  12035. */
  12036. public static function groupBy($groups = null)
  12037. {
  12038. return \Illuminate\Database\Query\Builder::groupBy($groups);
  12039. }
  12040. /**
  12041. * Add a "having" clause to the query.
  12042. *
  12043. * @param string $column
  12044. * @param string $operator
  12045. * @param string $value
  12046. * @param string $boolean
  12047. * @return $this
  12048. * @static
  12049. */
  12050. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  12051. {
  12052. return \Illuminate\Database\Query\Builder::having($column, $operator, $value, $boolean);
  12053. }
  12054. /**
  12055. * Add a "or having" clause to the query.
  12056. *
  12057. * @param string $column
  12058. * @param string $operator
  12059. * @param string $value
  12060. * @return \Illuminate\Database\Query\Builder|static
  12061. * @static
  12062. */
  12063. public static function orHaving($column, $operator = null, $value = null)
  12064. {
  12065. return \Illuminate\Database\Query\Builder::orHaving($column, $operator, $value);
  12066. }
  12067. /**
  12068. * Add a raw having clause to the query.
  12069. *
  12070. * @param string $sql
  12071. * @param array $bindings
  12072. * @param string $boolean
  12073. * @return $this
  12074. * @static
  12075. */
  12076. public static function havingRaw($sql, $bindings = array(), $boolean = 'and')
  12077. {
  12078. return \Illuminate\Database\Query\Builder::havingRaw($sql, $bindings, $boolean);
  12079. }
  12080. /**
  12081. * Add a raw or having clause to the query.
  12082. *
  12083. * @param string $sql
  12084. * @param array $bindings
  12085. * @return \Illuminate\Database\Query\Builder|static
  12086. * @static
  12087. */
  12088. public static function orHavingRaw($sql, $bindings = array())
  12089. {
  12090. return \Illuminate\Database\Query\Builder::orHavingRaw($sql, $bindings);
  12091. }
  12092. /**
  12093. * Add an "order by" clause to the query.
  12094. *
  12095. * @param string $column
  12096. * @param string $direction
  12097. * @return $this
  12098. * @static
  12099. */
  12100. public static function orderBy($column, $direction = 'asc')
  12101. {
  12102. return \Illuminate\Database\Query\Builder::orderBy($column, $direction);
  12103. }
  12104. /**
  12105. * Add a descending "order by" clause to the query.
  12106. *
  12107. * @param string $column
  12108. * @return $this
  12109. * @static
  12110. */
  12111. public static function orderByDesc($column)
  12112. {
  12113. return \Illuminate\Database\Query\Builder::orderByDesc($column);
  12114. }
  12115. /**
  12116. * Add an "order by" clause for a timestamp to the query.
  12117. *
  12118. * @param string $column
  12119. * @return \Illuminate\Database\Query\Builder|static
  12120. * @static
  12121. */
  12122. public static function latest($column = 'created_at')
  12123. {
  12124. return \Illuminate\Database\Query\Builder::latest($column);
  12125. }
  12126. /**
  12127. * Add an "order by" clause for a timestamp to the query.
  12128. *
  12129. * @param string $column
  12130. * @return \Illuminate\Database\Query\Builder|static
  12131. * @static
  12132. */
  12133. public static function oldest($column = 'created_at')
  12134. {
  12135. return \Illuminate\Database\Query\Builder::oldest($column);
  12136. }
  12137. /**
  12138. * Put the query's results in random order.
  12139. *
  12140. * @param string $seed
  12141. * @return $this
  12142. * @static
  12143. */
  12144. public static function inRandomOrder($seed = '')
  12145. {
  12146. return \Illuminate\Database\Query\Builder::inRandomOrder($seed);
  12147. }
  12148. /**
  12149. * Add a raw "order by" clause to the query.
  12150. *
  12151. * @param string $sql
  12152. * @param array $bindings
  12153. * @return $this
  12154. * @static
  12155. */
  12156. public static function orderByRaw($sql, $bindings = array())
  12157. {
  12158. return \Illuminate\Database\Query\Builder::orderByRaw($sql, $bindings);
  12159. }
  12160. /**
  12161. * Alias to set the "offset" value of the query.
  12162. *
  12163. * @param int $value
  12164. * @return \Illuminate\Database\Query\Builder|static
  12165. * @static
  12166. */
  12167. public static function skip($value)
  12168. {
  12169. return \Illuminate\Database\Query\Builder::skip($value);
  12170. }
  12171. /**
  12172. * Set the "offset" value of the query.
  12173. *
  12174. * @param int $value
  12175. * @return $this
  12176. * @static
  12177. */
  12178. public static function offset($value)
  12179. {
  12180. return \Illuminate\Database\Query\Builder::offset($value);
  12181. }
  12182. /**
  12183. * Alias to set the "limit" value of the query.
  12184. *
  12185. * @param int $value
  12186. * @return \Illuminate\Database\Query\Builder|static
  12187. * @static
  12188. */
  12189. public static function take($value)
  12190. {
  12191. return \Illuminate\Database\Query\Builder::take($value);
  12192. }
  12193. /**
  12194. * Set the "limit" value of the query.
  12195. *
  12196. * @param int $value
  12197. * @return $this
  12198. * @static
  12199. */
  12200. public static function limit($value)
  12201. {
  12202. return \Illuminate\Database\Query\Builder::limit($value);
  12203. }
  12204. /**
  12205. * Set the limit and offset for a given page.
  12206. *
  12207. * @param int $page
  12208. * @param int $perPage
  12209. * @return \Illuminate\Database\Query\Builder|static
  12210. * @static
  12211. */
  12212. public static function forPage($page, $perPage = 15)
  12213. {
  12214. return \Illuminate\Database\Query\Builder::forPage($page, $perPage);
  12215. }
  12216. /**
  12217. * Constrain the query to the next "page" of results after a given ID.
  12218. *
  12219. * @param int $perPage
  12220. * @param int $lastId
  12221. * @param string $column
  12222. * @return \Illuminate\Database\Query\Builder|static
  12223. * @static
  12224. */
  12225. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  12226. {
  12227. return \Illuminate\Database\Query\Builder::forPageAfterId($perPage, $lastId, $column);
  12228. }
  12229. /**
  12230. * Add a union statement to the query.
  12231. *
  12232. * @param \Illuminate\Database\Query\Builder|\Closure $query
  12233. * @param bool $all
  12234. * @return \Illuminate\Database\Query\Builder|static
  12235. * @static
  12236. */
  12237. public static function union($query, $all = false)
  12238. {
  12239. return \Illuminate\Database\Query\Builder::union($query, $all);
  12240. }
  12241. /**
  12242. * Add a union all statement to the query.
  12243. *
  12244. * @param \Illuminate\Database\Query\Builder|\Closure $query
  12245. * @return \Illuminate\Database\Query\Builder|static
  12246. * @static
  12247. */
  12248. public static function unionAll($query)
  12249. {
  12250. return \Illuminate\Database\Query\Builder::unionAll($query);
  12251. }
  12252. /**
  12253. * Lock the selected rows in the table.
  12254. *
  12255. * @param string|bool $value
  12256. * @return $this
  12257. * @static
  12258. */
  12259. public static function lock($value = true)
  12260. {
  12261. return \Illuminate\Database\Query\Builder::lock($value);
  12262. }
  12263. /**
  12264. * Lock the selected rows in the table for updating.
  12265. *
  12266. * @return \Illuminate\Database\Query\Builder
  12267. * @static
  12268. */
  12269. public static function lockForUpdate()
  12270. {
  12271. return \Illuminate\Database\Query\Builder::lockForUpdate();
  12272. }
  12273. /**
  12274. * Share lock the selected rows in the table.
  12275. *
  12276. * @return \Illuminate\Database\Query\Builder
  12277. * @static
  12278. */
  12279. public static function sharedLock()
  12280. {
  12281. return \Illuminate\Database\Query\Builder::sharedLock();
  12282. }
  12283. /**
  12284. * Get the SQL representation of the query.
  12285. *
  12286. * @return string
  12287. * @static
  12288. */
  12289. public static function toSql()
  12290. {
  12291. return \Illuminate\Database\Query\Builder::toSql();
  12292. }
  12293. /**
  12294. * Get the count of the total records for the paginator.
  12295. *
  12296. * @param array $columns
  12297. * @return int
  12298. * @static
  12299. */
  12300. public static function getCountForPagination($columns = array())
  12301. {
  12302. return \Illuminate\Database\Query\Builder::getCountForPagination($columns);
  12303. }
  12304. /**
  12305. * Concatenate values of a given column as a string.
  12306. *
  12307. * @param string $column
  12308. * @param string $glue
  12309. * @return string
  12310. * @static
  12311. */
  12312. public static function implode($column, $glue = '')
  12313. {
  12314. return \Illuminate\Database\Query\Builder::implode($column, $glue);
  12315. }
  12316. /**
  12317. * Determine if any rows exist for the current query.
  12318. *
  12319. * @return bool
  12320. * @static
  12321. */
  12322. public static function exists()
  12323. {
  12324. return \Illuminate\Database\Query\Builder::exists();
  12325. }
  12326. /**
  12327. * Retrieve the "count" result of the query.
  12328. *
  12329. * @param string $columns
  12330. * @return int
  12331. * @static
  12332. */
  12333. public static function count($columns = '*')
  12334. {
  12335. return \Illuminate\Database\Query\Builder::count($columns);
  12336. }
  12337. /**
  12338. * Retrieve the minimum value of a given column.
  12339. *
  12340. * @param string $column
  12341. * @return mixed
  12342. * @static
  12343. */
  12344. public static function min($column)
  12345. {
  12346. return \Illuminate\Database\Query\Builder::min($column);
  12347. }
  12348. /**
  12349. * Retrieve the maximum value of a given column.
  12350. *
  12351. * @param string $column
  12352. * @return mixed
  12353. * @static
  12354. */
  12355. public static function max($column)
  12356. {
  12357. return \Illuminate\Database\Query\Builder::max($column);
  12358. }
  12359. /**
  12360. * Retrieve the sum of the values of a given column.
  12361. *
  12362. * @param string $column
  12363. * @return mixed
  12364. * @static
  12365. */
  12366. public static function sum($column)
  12367. {
  12368. return \Illuminate\Database\Query\Builder::sum($column);
  12369. }
  12370. /**
  12371. * Retrieve the average of the values of a given column.
  12372. *
  12373. * @param string $column
  12374. * @return mixed
  12375. * @static
  12376. */
  12377. public static function avg($column)
  12378. {
  12379. return \Illuminate\Database\Query\Builder::avg($column);
  12380. }
  12381. /**
  12382. * Alias for the "avg" method.
  12383. *
  12384. * @param string $column
  12385. * @return mixed
  12386. * @static
  12387. */
  12388. public static function average($column)
  12389. {
  12390. return \Illuminate\Database\Query\Builder::average($column);
  12391. }
  12392. /**
  12393. * Execute an aggregate function on the database.
  12394. *
  12395. * @param string $function
  12396. * @param array $columns
  12397. * @return mixed
  12398. * @static
  12399. */
  12400. public static function aggregate($function, $columns = array())
  12401. {
  12402. return \Illuminate\Database\Query\Builder::aggregate($function, $columns);
  12403. }
  12404. /**
  12405. * Execute a numeric aggregate function on the database.
  12406. *
  12407. * @param string $function
  12408. * @param array $columns
  12409. * @return float|int
  12410. * @static
  12411. */
  12412. public static function numericAggregate($function, $columns = array())
  12413. {
  12414. return \Illuminate\Database\Query\Builder::numericAggregate($function, $columns);
  12415. }
  12416. /**
  12417. * Insert a new record into the database.
  12418. *
  12419. * @param array $values
  12420. * @return bool
  12421. * @static
  12422. */
  12423. public static function insert($values)
  12424. {
  12425. return \Illuminate\Database\Query\Builder::insert($values);
  12426. }
  12427. /**
  12428. * Insert a new record and get the value of the primary key.
  12429. *
  12430. * @param array $values
  12431. * @param string $sequence
  12432. * @return int
  12433. * @static
  12434. */
  12435. public static function insertGetId($values, $sequence = null)
  12436. {
  12437. return \Illuminate\Database\Query\Builder::insertGetId($values, $sequence);
  12438. }
  12439. /**
  12440. * Insert or update a record matching the attributes, and fill it with values.
  12441. *
  12442. * @param array $attributes
  12443. * @param array $values
  12444. * @return bool
  12445. * @static
  12446. */
  12447. public static function updateOrInsert($attributes, $values = array())
  12448. {
  12449. return \Illuminate\Database\Query\Builder::updateOrInsert($attributes, $values);
  12450. }
  12451. /**
  12452. * Run a truncate statement on the table.
  12453. *
  12454. * @return void
  12455. * @static
  12456. */
  12457. public static function truncate()
  12458. {
  12459. \Illuminate\Database\Query\Builder::truncate();
  12460. }
  12461. /**
  12462. * Create a raw database expression.
  12463. *
  12464. * @param mixed $value
  12465. * @return \Illuminate\Database\Query\Expression
  12466. * @static
  12467. */
  12468. public static function raw($value)
  12469. {
  12470. return \Illuminate\Database\Query\Builder::raw($value);
  12471. }
  12472. /**
  12473. * Get the current query value bindings in a flattened array.
  12474. *
  12475. * @return array
  12476. * @static
  12477. */
  12478. public static function getBindings()
  12479. {
  12480. return \Illuminate\Database\Query\Builder::getBindings();
  12481. }
  12482. /**
  12483. * Get the raw array of bindings.
  12484. *
  12485. * @return array
  12486. * @static
  12487. */
  12488. public static function getRawBindings()
  12489. {
  12490. return \Illuminate\Database\Query\Builder::getRawBindings();
  12491. }
  12492. /**
  12493. * Set the bindings on the query builder.
  12494. *
  12495. * @param array $bindings
  12496. * @param string $type
  12497. * @return $this
  12498. * @throws \InvalidArgumentException
  12499. * @static
  12500. */
  12501. public static function setBindings($bindings, $type = 'where')
  12502. {
  12503. return \Illuminate\Database\Query\Builder::setBindings($bindings, $type);
  12504. }
  12505. /**
  12506. * Add a binding to the query.
  12507. *
  12508. * @param mixed $value
  12509. * @param string $type
  12510. * @return $this
  12511. * @throws \InvalidArgumentException
  12512. * @static
  12513. */
  12514. public static function addBinding($value, $type = 'where')
  12515. {
  12516. return \Illuminate\Database\Query\Builder::addBinding($value, $type);
  12517. }
  12518. /**
  12519. * Merge an array of bindings into our bindings.
  12520. *
  12521. * @param \Illuminate\Database\Query\Builder $query
  12522. * @return $this
  12523. * @static
  12524. */
  12525. public static function mergeBindings($query)
  12526. {
  12527. return \Illuminate\Database\Query\Builder::mergeBindings($query);
  12528. }
  12529. /**
  12530. * Get the database query processor instance.
  12531. *
  12532. * @return \Illuminate\Database\Query\Processors\Processor
  12533. * @static
  12534. */
  12535. public static function getProcessor()
  12536. {
  12537. return \Illuminate\Database\Query\Builder::getProcessor();
  12538. }
  12539. /**
  12540. * Get the query grammar instance.
  12541. *
  12542. * @return \Illuminate\Database\Query\Grammars\Grammar
  12543. * @static
  12544. */
  12545. public static function getGrammar()
  12546. {
  12547. return \Illuminate\Database\Query\Builder::getGrammar();
  12548. }
  12549. /**
  12550. * Use the write pdo for query.
  12551. *
  12552. * @return $this
  12553. * @static
  12554. */
  12555. public static function useWritePdo()
  12556. {
  12557. return \Illuminate\Database\Query\Builder::useWritePdo();
  12558. }
  12559. /**
  12560. * Clone the query without the given properties.
  12561. *
  12562. * @param array $except
  12563. * @return static
  12564. * @static
  12565. */
  12566. public static function cloneWithout($except)
  12567. {
  12568. return \Illuminate\Database\Query\Builder::cloneWithout($except);
  12569. }
  12570. /**
  12571. * Clone the query without the given bindings.
  12572. *
  12573. * @param array $except
  12574. * @return static
  12575. * @static
  12576. */
  12577. public static function cloneWithoutBindings($except)
  12578. {
  12579. return \Illuminate\Database\Query\Builder::cloneWithoutBindings($except);
  12580. }
  12581. /**
  12582. * Register a custom macro.
  12583. *
  12584. * @param string $name
  12585. * @param callable $macro
  12586. * @return void
  12587. * @static
  12588. */
  12589. public static function macro($name, $macro)
  12590. {
  12591. \Illuminate\Database\Query\Builder::macro($name, $macro);
  12592. }
  12593. /**
  12594. * Checks if macro is registered.
  12595. *
  12596. * @param string $name
  12597. * @return bool
  12598. * @static
  12599. */
  12600. public static function hasMacro($name)
  12601. {
  12602. return \Illuminate\Database\Query\Builder::hasMacro($name);
  12603. }
  12604. /**
  12605. * Dynamically handle calls to the class.
  12606. *
  12607. * @param string $method
  12608. * @param array $parameters
  12609. * @return mixed
  12610. * @throws \BadMethodCallException
  12611. * @static
  12612. */
  12613. public static function macroCall($method, $parameters)
  12614. {
  12615. return \Illuminate\Database\Query\Builder::macroCall($method, $parameters);
  12616. }
  12617. }
  12618. class Event extends \Illuminate\Support\Facades\Event {}
  12619. class File extends \Illuminate\Support\Facades\File {}
  12620. class Gate extends \Illuminate\Support\Facades\Gate {}
  12621. class Hash extends \Illuminate\Support\Facades\Hash {}
  12622. class Lang extends \Illuminate\Support\Facades\Lang {}
  12623. class Log extends \Illuminate\Support\Facades\Log {}
  12624. class Mail extends \Illuminate\Support\Facades\Mail {}
  12625. class Notification extends \Illuminate\Support\Facades\Notification {}
  12626. class Password extends \Illuminate\Support\Facades\Password {}
  12627. class Queue extends \Illuminate\Support\Facades\Queue {}
  12628. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  12629. class Request extends \Illuminate\Support\Facades\Request {}
  12630. class Response extends \Illuminate\Support\Facades\Response {}
  12631. class Route extends \Illuminate\Support\Facades\Route {}
  12632. class Schema extends \Illuminate\Support\Facades\Schema {}
  12633. class Session extends \Illuminate\Support\Facades\Session {}
  12634. class Storage extends \Illuminate\Support\Facades\Storage {}
  12635. class URL extends \Illuminate\Support\Facades\URL {}
  12636. class Validator extends \Illuminate\Support\Facades\Validator {}
  12637. class View extends \Illuminate\Support\Facades\View {}
  12638. class Excel extends \Maatwebsite\Excel\Facades\Excel {}
  12639. class Captcha extends \Mews\Captcha\Facades\Captcha {}
  12640. }