{"id":34585169,"url":"https://github.com/planetscale/laravel-caching","last_synced_at":"2026-05-27T06:05:42.076Z","repository":{"id":44530763,"uuid":"457101796","full_name":"planetscale/laravel-caching","owner":"planetscale","description":"Sample repo for Laravel caching blog post","archived":false,"fork":false,"pushed_at":"2022-02-09T19:32:54.000Z","size":87,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T07:33:03.737Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/planetscale.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":"2022-02-08T21:00:03.000Z","updated_at":"2022-10-24T19:30:50.000Z","dependencies_parsed_at":"2022-09-13T14:10:29.004Z","dependency_job_id":null,"html_url":"https://github.com/planetscale/laravel-caching","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/planetscale/laravel-caching","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetscale%2Flaravel-caching","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetscale%2Flaravel-caching/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetscale%2Flaravel-caching/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetscale%2Flaravel-caching/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/planetscale","download_url":"https://codeload.github.com/planetscale/laravel-caching/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/planetscale%2Flaravel-caching/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33553137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-12-24T10:29:46.834Z","updated_at":"2026-05-27T06:05:42.067Z","avatar_url":"https://github.com/planetscale.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\n\nThis is a sample repo for the [Introduction to Laravel caching blog post](https://planetscale.com/blog/introduction-to-laravel-caching). It has two branches: \n\n- `starter` \u0026mdash; What you should work off of if you're going through the tutorial from scratch\n- `main` \u0026mdash; The final version of the app with caching\n\nCheck out the [PlanetScale blog](https://planetscale.com/blog/introduction-to-laravel-caching) for the full tutorial.\n\n## Run the application\n\n1. Create a database on PlanetScale. Refer to [the tutorial for full instructions](https://planetscale.com/blog/introduction-to-laravel-caching#set-up-a-database).\n2. Clone this repo:\n\n```bash\ngit clone -b starter https://github.com/hollylawly/laravel-caching\n```\n\nLeave off the `-b starter` if you just want the final version.\n\n3. Install the dependencies:\n\n```bash\ncomposer install\n```\n\n4. Copy the `.env.example` file to `.env`:\n\n```bash\nmv .env.example .env\n```\n\n5. Update the database connection with the credentials from the PlanetScale dashboard:\n\n```\nDB_CONNECTION=mysql\nDB_HOST=\u003cACCESS HOST URL\u003e \nDB_PORT=3306\nDB_DATABASE=\u003cDATABASE_NAME\u003e \nDB_USERNAME=\u003cUSERNAME\u003e\nDB_PASSWORD=\u003cPASSWORD\u003e\nMYSQL_ATTR_SSL_CA=/etc/ssl/cert.pem\n```\n\n6. Run the migrations and seeder:\n\n```bash\nphp artisan migrate\nphp artisan db:seed\n```\n\n7.  Start your application:\n\n```bash\nphp artisan serve\n```\n\n8. You can now view your non-cached data from the PlanetScale database in the browser at [http://localhost:8000/api/quotes](http://localhost:8000/api/quotes).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplanetscale%2Flaravel-caching","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplanetscale%2Flaravel-caching","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplanetscale%2Flaravel-caching/lists"}