-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TTL for Route group? #28
Comments
@david-nguyen Put 'Barryvdh\HttpCache\Middleware\CacheRequests' in the $routeMiddleware and implement into Route group you need. |
@khoaspark yes thanks but how would I pass the TTL to it? |
@david-nguyen You could use this code in Controller return \Response::view(Your data) |
in public function __construct()
{
$this->middleware(['ttl:60']);
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry if this is a basic question, is there an example of setting the TTL for a route group?
The text was updated successfully, but these errors were encountered: