Skip to content

Commit

Permalink
Use carbon to compatible in laravel/lumen 5.7.*
Browse files Browse the repository at this point in the history
Signed-off-by: Lloric Mayuga Garcia <[email protected]>
  • Loading branch information
lloricode committed Mar 19, 2019
1 parent 67ed884 commit 014413f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/RateLimit/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use Dingo\Api\Http\Request;
use Illuminate\Cache\CacheManager;
use Illuminate\Support\Carbon;
use Illuminate\Support\Collection;
use Illuminate\Container\Container;
use Illuminate\Support\Facades\Date;
use Dingo\Api\Http\RateLimit\Throttle\Route;
use Dingo\Api\Contract\Http\RateLimit\Throttle;
use Dingo\Api\Contract\Http\RateLimit\HasRateLimiter;
Expand Down Expand Up @@ -186,7 +186,7 @@ protected function key($key)
*/
protected function cache($key, $value, $minutes)
{
$this->cache->add($this->key($key), $value, Date::now()->addMinutes($minutes));
$this->cache->add($this->key($key), $value, Carbon::now()->addMinutes($minutes));
}

/**
Expand Down

0 comments on commit 014413f

Please sign in to comment.