{"id":23288391,"url":"https://github.com/zetaret/laravel-example2","last_synced_at":"2026-05-04T01:34:45.149Z","repository":{"id":262264172,"uuid":"880338278","full_name":"ZetaRet/laravel-example2","owner":"ZetaRet","description":"Laravel Example 2","archived":false,"fork":false,"pushed_at":"2025-11-05T18:10:04.000Z","size":125,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-05T20:26:27.909Z","etag":null,"topics":["api","blade","eloquent-orm","laravel","migration","mysql","postman","seed"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"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/ZetaRet.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,"publiccode":null,"codemeta":null}},"created_at":"2024-10-29T14:46:32.000Z","updated_at":"2025-11-05T18:09:03.000Z","dependencies_parsed_at":"2024-11-11T14:26:33.420Z","dependency_job_id":"06fbcdf6-8820-4e8c-8359-c9dc57b156ee","html_url":"https://github.com/ZetaRet/laravel-example2","commit_stats":null,"previous_names":["zetaret/laravel-example2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZetaRet/laravel-example2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZetaRet%2Flaravel-example2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZetaRet%2Flaravel-example2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZetaRet%2Flaravel-example2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZetaRet%2Flaravel-example2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZetaRet","download_url":"https://codeload.github.com/ZetaRet/laravel-example2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZetaRet%2Flaravel-example2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32591601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: 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":["api","blade","eloquent-orm","laravel","migration","mysql","postman","seed"],"created_at":"2024-12-20T03:17:51.404Z","updated_at":"2026-05-04T01:34:45.135Z","avatar_url":"https://github.com/ZetaRet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Setup\n\nRead the `setup.md` of [`laravel-example1`](https://github.com/ZetaRet/laravel-example1) and choose the steps missing on your computer to finalize the install.  \n\n## Main Page\n\n`Basket` describes steps to use Postman API.  \n\n## Postman\n\n__get products:__ GET request to list all products from database  \n__get csrf:__ GET request to save in collection variables the form token, needed for POST requests  \n__get basket:__ GET request to retrieve current items in the basket and user wallet  \n__increment basket:__ POST request to set product in the basket plus 1, checks wallet total  \n__decrement basket:__ POST request to set product in the basket minus 1  \n__clear basket:__ POST request to clear the basket  \n__update basket:__ POST request to set products in the basket, real quantity is invisible on this step, checks wallet total, deletes previous basket  \n__purchase basket:__ POST request to sum transaction query and set the user purchase from the basket, checks all baskets to ensure 1 quantity left per user and manages maximum per product using stored total (per user max is 5), clears the basket  \n\n## Models\n\n`User` model is extended to support virtual wallet. New model `Product` with table is created.  \n\n## Seeding\n\nSeeding the database using `php artisan db:seed --class=UserSeeder` for 3 records. Change the class to `ProductSeeder` to generate 2 products or type `php artisan db:seed --class=UserProductsReset` to reset user wallet to 100 and initial products count.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzetaret%2Flaravel-example2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzetaret%2Flaravel-example2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzetaret%2Flaravel-example2/lists"}