File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1717 "dingo/blueprint" : " ^0.2" ,
1818 "illuminate/routing" : " ^5.5" ,
1919 "illuminate/support" : " ^5.5" ,
20- "league/fractal" : " ^0.17" ,
21- "laravel/framework" : " ^5.5"
20+ "league/fractal" : " ^0.17"
2221 },
2322 "require-dev" : {
2423 "phpdocumentor/reflection-docblock" : " 3.3.2" ,
Original file line number Diff line number Diff line change 33namespace Dingo \Api \Http \RateLimit ;
44
55use Dingo \Api \Http \Request ;
6+ use Illuminate \Support \Carbon ;
67use Illuminate \Cache \CacheManager ;
78use Illuminate \Support \Collection ;
89use Illuminate \Container \Container ;
@@ -185,7 +186,7 @@ protected function key($key)
185186 */
186187 protected function cache ($ key , $ value , $ minutes )
187188 {
188- $ this ->cache ->add ($ this ->key ($ key ), $ value , now ()->addMinutes ($ minutes ));
189+ $ this ->cache ->add ($ this ->key ($ key ), $ value , Carbon:: now ()->addMinutes ($ minutes ));
189190 }
190191
191192 /**
You can’t perform that action at this time.
0 commit comments