PHP 8.3.31
Preview: Recaller.php Size: 1.83 KB
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Auth/Recaller.php

<?php

namespace Illuminate\Auth;

class Recaller
{
    /**
     * The "recaller" / "remember me" cookie string.
     *
     * @var string
     */
    protected $recaller;

    /**
     * Create a new recaller instance.
     *
     * @param  string  $recaller
     * @return void
     */
    public function __construct($recaller)
    {
        $this->recaller = @unserialize($recaller, ['allowed_classes' => false]) ?: $recaller;
    }

    /**
     * Get the user ID from the recaller.
     *
     * @return string
     */
    public function id()
    {
        return explode('|', $this->recaller, 3)[0];
    }

    /**
     * Get the "remember token" token from the recaller.
     *
     * @return string
     */
    public function token()
    {
        return explode('|', $this->recaller, 3)[1];
    }

    /**
     * Get the password from the recaller.
     *
     * @return string
     */
    public function hash()
    {
        return explode('|', $this->recaller, 4)[2];
    }

    /**
     * Determine if the recaller is valid.
     *
     * @return bool
     */
    public function valid()
    {
        return $this->properString() && $this->hasAllSegments();
    }

    /**
     * Determine if the recaller is an invalid string.
     *
     * @return bool
     */
    protected function properString()
    {
        return is_string($this->recaller) && str_contains($this->recaller, '|');
    }

    /**
     * Determine if the recaller has all segments.
     *
     * @return bool
     */
    protected function hasAllSegments()
    {
        $segments = explode('|', $this->recaller);

        return count($segments) >= 3 && trim($segments[0]) !== '' && trim($segments[1]) !== '';
    }

    /**
     * Get the recaller's segments.
     *
     * @return array
     */
    public function segments()
    {
        return explode('|', $this->recaller);
    }
}

Directory Contents

Dirs: 7 × Files: 16

Name Size Perms Modified Actions
Access DIR
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
Console DIR
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
Events DIR
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
Listeners DIR
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
Passwords DIR
- drwxrwxrwx 2025-09-17 06:52:56
Edit Download
2.12 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1.81 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
8.31 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
3.04 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1.24 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
2.43 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
5.51 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
7.05 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
2.69 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
2.48 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1.05 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
979 B lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
1.83 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
2.10 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
27.28 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download
3.42 KB lrw-rw-rw- 2025-09-17 06:52:56
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).