Skip to content
/ cookier Public

🍪 Powerful wrapper for improved cookie integration on Laravel

License

Notifications You must be signed in to change notification settings

attla/cookier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cookier

License Latest Stable Version Total Downloads

🍪 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.

About

🍪 Powerful wrapper for improved cookie integration on Laravel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages