attla / cookier
Powerful wrapper for improved cookie integration on Laravel.
dev-main
2024-11-27 20:18 UTC
Requires
- php: >=7.2.5
- attla/support: dev-main
- illuminate/cookie: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/http: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/support: ^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
This package is auto-updated.
Last update: 2024-12-27 20:34:21 UTC
README
🍪 Powerful wrapper for improved cookie integration on Laravel.
Installation
composer require attla/cookier
Usage
This wrapper use same functionality as the Laravel cookie facade but a little incremented.
// on setting a cookie you can retrieve the cookie while set it $httpCookie = \Cookier::set('user', 'nicolau'); // retrieve the cookie from request $user = \Cookier::get('user', 'default'); // forget a cookie \Cookier::forget('user'); // check if the cookie has queued \Cookier::hasQueued('user'); // getting many cookies $cookies = \Cookier::getMany([ 'user' => 'default', 'password', ]);
All methods available on laravel cookie facade can be used.
License
This package is licensed under the MIT license © Zunq.