{"id":19165847,"url":"https://github.com/barchart/laravel-remember-all","last_synced_at":"2025-04-16T01:27:33.293Z","repository":{"id":56950455,"uuid":"152111560","full_name":"barchart/laravel-remember-all","owner":"barchart","description":"A Laravel session driver to remember all devices a user has logged in with.","archived":false,"fork":false,"pushed_at":"2022-09-30T11:31:49.000Z","size":14,"stargazers_count":30,"open_issues_count":1,"forks_count":12,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-03-29T03:31:59.923Z","etag":null,"topics":["laravel","remember-many","remember-me","remember-multiple","session","session-management"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/barchart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-08T16:27:06.000Z","updated_at":"2023-03-08T07:29:32.000Z","dependencies_parsed_at":"2022-08-21T09:20:26.316Z","dependency_job_id":null,"html_url":"https://github.com/barchart/laravel-remember-all","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barchart%2Flaravel-remember-all","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barchart%2Flaravel-remember-all/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barchart%2Flaravel-remember-all/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/barchart%2Flaravel-remember-all/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/barchart","download_url":"https://codeload.github.com/barchart/laravel-remember-all/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654030,"owners_count":21140235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","remember-many","remember-me","remember-multiple","session","session-management"],"created_at":"2024-11-09T09:29:38.967Z","updated_at":"2025-04-16T01:27:33.265Z","avatar_url":"https://github.com/barchart.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Laravel Remember All Devices\nLaravel currently only supports the \"remember me\" feature for one device. When you log in to multiple devices, then log out of one, you will be logged out of all. This solves that by storing the tokens in a separate table.\n\nThere is a current proposal to put this into Laravel core, but we needed this now: https://github.com/laravel/ideas/issues/971\n\n### Setup\nInstall via composer:\n```\ncomposer require barchart/laravel-remember-all\n```\n\nMigrate the new `remember_tokens` table:\n```\nphp artisan migrate\n```\n\nUpdate your authentication guard:\n```php\n'guards' =\u003e [\n    'web' =\u003e [\n        'driver' =\u003e 'rememberall',\n        'provider' =\u003e 'users',\n        'expire' =\u003e 10080, // optional token expiration time, in minutes (7 days is the default)\n    ],\n],\n```\n\n#### Eloquent\nFor Eloquent, you also need to update your model. Just replace Laravel's default `User` model with the following:\n```php\nuse Barchart\\Laravel\\RememberAll\\User as Authenticatable;\n\nclass User extends Authenticatable\n{\n\n}\n```\n\nIf you're not extending off of Laravel's base `User` model and instead extending directly off of Eloquent's `Model`, replace Laravel's default `Authenticatable` and `AuthenticatableContract` with the following:\n```php\nuse Barchart\\Laravel\\RememberAll\\EloquentAuthenticatable as Authenticatable;\nuse Barchart\\Laravel\\RememberAll\\Contracts\\Authenticatable as AuthenticatableContract;\n\nclass User extends Model implements AuthenticatableContract\n{\n    use Authenticatable;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarchart%2Flaravel-remember-all","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbarchart%2Flaravel-remember-all","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbarchart%2Flaravel-remember-all/lists"}