• Developer New

    Friday, March 24, 2017

    how to use Cookies in laravel

    Cookie::get('key');
    // Create a cookie that lasts for everCookie::forever('key', 'value');
    // Set a cookie before a response has been createdCookie::queue('key', 'value', 'minutes');
    // Send a cookie with a response$response = Response::make('Hello World');
    $response->withCookie(Cookie::make('name', 'value', $minutes));

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel