{"id":17160953,"url":"https://github.com/ezitisitis/laravel-refresh-database-once","last_synced_at":"2026-01-14T00:37:20.310Z","repository":{"id":220833046,"uuid":"752716077","full_name":"ezitisitis/laravel-refresh-database-once","owner":"ezitisitis","description":"This package provides Trait to refresh database once before running tests","archived":true,"fork":false,"pushed_at":"2025-03-10T19:54:00.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T09:16:33.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ezitisitis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-04T16:00:56.000Z","updated_at":"2025-03-10T20:09:49.000Z","dependencies_parsed_at":"2024-02-04T18:24:52.469Z","dependency_job_id":"2df9762d-9e8d-4923-845a-bed77b475808","html_url":"https://github.com/ezitisitis/laravel-refresh-database-once","commit_stats":null,"previous_names":["ezitisitis/laravel-refresh-database-once"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ezitisitis/laravel-refresh-database-once","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezitisitis%2Flaravel-refresh-database-once","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezitisitis%2Flaravel-refresh-database-once/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezitisitis%2Flaravel-refresh-database-once/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezitisitis%2Flaravel-refresh-database-once/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezitisitis","download_url":"https://codeload.github.com/ezitisitis/laravel-refresh-database-once/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezitisitis%2Flaravel-refresh-database-once/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-10-14T22:26:38.312Z","updated_at":"2026-01-14T00:37:20.288Z","avatar_url":"https://github.com/ezitisitis.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel DB refresh\n\n**⚠️ Notice: This project is no longer maintained. As a replacement please use [RefreshDatabase](https://laravel.com/docs/12.x/database-testing#resetting-the-database-after-each-test).**\n\nThis package contains Trait to refresh and seed database before running test scope.\n\n## Why do you need that\n\nWhen you work in local environment. It sometimes appears that you want to run tests agains clean database (for example you have record count somewhere in tests).\nRunning each test on clear database is bad idea in general, because:\n\n1. You check only that your code works only when there is no records;\n2. **It is insanely time consuming**;\n\n## Installing\n\n1. `composer require --dev ezitisitis/laravel-refresh-database-once`;\n2. Add `MigrateFreshSeedOnce` use to `TestCase` class;\n3. Congratulations, you are done.\n\nExample:\n```php\n\u003c?php\n\nnamespace Tests;\n\nuse EzitisItIs\\LaravelRefreshDatabaseOnce\\MigrateFreshSeedOnce\nuse Illuminate\\Foundation\\Testing\\TestCase as BaseTestCase;\n\nabstract class TestCase extends BaseTestCase\n{\n    use CreatesApplication;\n    use MigrateFreshSeedOnce;\n}\n```\n\n## Credits\n\n- [Marks Bogdanovs](https://www.ezitisitis.com)\n- [Net service](https://www.netservice.dev)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezitisitis%2Flaravel-refresh-database-once","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezitisitis%2Flaravel-refresh-database-once","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezitisitis%2Flaravel-refresh-database-once/lists"}